code wiki / _hdl_build / nx_connect_api.nx

nx_connect_api.nx

buildroot/runtime/_hdl_build/nx_connect_api.nx

972 B21 linesdepth 4pulls 13 transitivereach 0 importersview sourcekind servicetopic connect
docsdependenciesstructsconstsfunctions

about

nx_connect_api.nx -- the CLI wrapper registered as the MCP tool `nx_connect`. It shifts the program name off argv (so argv[0] becomes the VERB), calls the pure dispatcher, and writes the JSON to stdout. All the logic lives in nx_connect_api_lib.nx so the gate can drive ca_dispatch directly. nx_connect <verb> [args...] e.g. nx_connect match 30 16 1 5 27 1 16 9 0 license_tier: ORIGINAL expect_exit: 0

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_connect_api_lib.nx nx_connect_api.nx

imports: nx_syscalls.nxnx_connect_api_lib.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap ca_dispatch ca_help ca_open ca_puts ca_putn ca_puts ↻ ca_streq ca_v_match ca_err ca_open ↻ ca_puts ↻ mx_match_weight mx_recip_score mx_inter_popc mx_clamp100 mx_hm mx_interest_score mx_inter_popc ↻ mx_clamp100 ↻ ca_ia ca_atoi ca_open ↻ ca_puts ↻ ca_kv ca_puts ↻ ca_putn ↻ ca_v_reconnect ca_err ↻ rc_mk ca_ia ↻ rc_lane rc_score rc_raw rc_inter_popc rc_time_overlap rc_clamp100 rc_mutually_confirmed ca_open ↻

structs

none

consts

8const K_MAGIC_65536: i64 = 65536

functions

10func main(argc: i64, argv: *i64) -> i64