code wiki / (root) / nx_skills_emit.nx

nx_skills_emit.nx

buildroot/runtime/nx_skills_emit.nx

8412 B154 linesdepth 7pulls 18 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_skills_emit.nx -- MAIN: seed the skill layer for a dish and render its skills surface. Idempotent (rule 10): every seed is a value-compare put. Separate organ from nx_meal_emit so the recipe page and the skills page can each be re-rendered without touching the other's stores. The seeded levels are DELIBERATELY incomplete: this household has been assessed on the knife and the pan but has NEVER braised. That is the common real case, and it exercises the disclosure rather than hiding it -- the cook-from-scratch option becomes unrankable, the page says exactly why, and the recommendation falls to something we can actually compare. argv[1] = output html path (default /tmp/kitchen-skills.html) license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 6 imports · 0 importers

nx_meal_skills_page.nx nx_meal_cost.nx nx_meal_effort.nx nx_skill_video.nx nx_meal_plan.nx nx_syscalls.nx nx_skills_emit.nx

imports: nx_meal_skills_page.nxnx_meal_cost.nxnx_meal_effort.nxnx_skill_video.nxnx_meal_plan.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main ef_add_skill sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ ef_skill_key as_append as_append ↻ mp_put mp_len fd_streq_store sys_mmap ↻ ss_get sys_mmap ↻ ss_scan sys_mmap ↻ ss_manifest_dyn ss_scan_seglist ss_begin ss_begin_cap sys_mmap ↻ ss_add ss_add2 ss_w32 ss_len fd_seg_next sys_mmap ↻ ss_manifest

structs

none

consts

19const SE_MAGIC_2500: i64 = 2500
20const SE_MAGIC_1800: i64 = 1800
21const SE_MAGIC_2600: i64 = 2600
22const SE_MAGIC_2900: i64 = 2900
23const SE_MAGIC_3600: i64 = 3600
25const SE_PAGE: i64 = 262144
26const SE_WARC: i64 = 4194304
27const SE_MODE: i64 = 420
28const SE_SALE_FLOOR: i64 = 50
29const SE_INTAKE_PORT: i64 = 8033
30const SE_RATE: i64 = 2500 // $25.00/hour -- this household's own stated value for an hour

functions

32func se_p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
calls 1: sys_write
33func se_n(v: i64) -> i64
46func se_port_open(port: i64) -> i64
62func se_write_file(path: *u8, buf: *u8, n: i64) -> i64
70func main(argc: i64, argv: *i64) -> i64