code wiki / (root) / nx_tool_registry.nx

nx_tool_registry.nx

buildroot/runtime/nx_tool_registry.nx

2051 B29 linesdepth 6pulls 8 transitivereach 79 importersview sourcekind librarytopic tool
docsdependenciesstructsconstsfunctions

about

nx_tool_registry.nx -- MCP Tools-primitive parity, sovereign: every Nishi organ/capability registers itself (name / description / how-to-invoke / gate-status) and is DISCOVERABLE. Backed by the canonical nx_registry on seg_store (additive, history kept). The registry IS the capability list the census measures -> one source of truth. Record (tab-separated): name <TAB> description <TAB> invoke <TAB> status. license_tier: ORIGINAL

dependencies 2 imports · 31 importers

nx_registry.nx nx_tabrec.nx nx_tool_registry.nx nx_ask_tool_register.nx nx_code_index_tool_register.nx nx_codereview_tool_register.nx nx_compare_tool_register.nx nx_crew_tool_register.nx nx_docportal_admin_daemon.nx nx_email_tool_register.nx nx_fsops_tool_register.nx nx_genui_tool_register.nx nx_heal_tool_register.nx

diagram shows first 10 each side; +0 more imports, +21 more importers in the complete lists below.

imports: nx_registry.nxnx_tabrec.nx

imported by: nx_ask_tool_register.nxnx_code_index_tool_register.nxnx_codereview_tool_register.nxnx_compare_tool_register.nxnx_crew_tool_register.nxnx_docportal_admin_daemon.nxnx_email_tool_register.nxnx_fsops_tool_register.nxnx_genui_tool_register.nxnx_heal_tool_register.nxnx_memory_tool_register.nxnx_project_tool_register.nxnx_restage_tool_register.nxnx_shelltool_tool_register.nxnx_sitepublish_tool_register.nxnx_stale_check_tool_register.nxnx_swapmotion_tool_register.nxnx_swarmadmit_tool_register.nxnx_tool_registry_gate.nxnx_toolreg_reconcile_lib.nxnx_tools_api.nxnx_tools_api_candidate_t182.nxnx_tools_api_canonical_candidate_t182.nxnx_tools_api_idem_candidate_t190.nxnx_tools_api_recovery_candidate_t316.nxnx_tools_api_recovery_candidate_v2_t316.nxnx_tools_api_recovery_candidate_v3_t316.nxnx_verify_tool_register.nxnx_vizsla_mcp_gate.nxnx_vizsla_tool_register.nxnx_workflow_tool_register.nx

structs

none

consts

7const TOOL_MAGIC_2048: i64 = 2048
9const TOOL_KP: *u8 = "tool:" as *u8
10const TOOL_IDX: *u8 = "__toolidx__" as *u8
11const TOOL_PREFIX: *u8 = "knowledge/toolreg-" as *u8

functions

13func tool_register_pfx(prefix: *u8, name: *u8, desc: *u8, invoke: *u8, status: *u8) -> i64
18func tool_get_pfx(prefix: *u8, name: *u8, ptrout: *i64, lenout: *i64) -> i64 { return reg_get(prefix, TOOL_KP, name, ptrout, lenout) }
24func tool_list_pfx(prefix: *u8, bufout: *i64) -> i64 { return reg_index_read(prefix, TOOL_IDX, bufout) }
27func tool_register(name: *u8, desc: *u8, invoke: *u8, status: *u8) -> i64 { return tool_register_pfx(TOOL_PREFIX, name, desc, invoke, status) }
28func tool_get(name: *u8, ptrout: *i64, lenout: *i64) -> i64 { return tool_get_pfx(TOOL_PREFIX, name, ptrout, lenout) }
29func tool_list(bufout: *i64) -> i64 { return tool_list_pfx(TOOL_PREFIX, bufout) }
calls 1: tool_list_pfx