code wiki / _hdl_build / nx_cms_draft_team.nx

nx_cms_draft_team.nx

buildroot/runtime/_hdl_build/nx_cms_draft_team.nx

1611 B24 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tooltopic cms
docsdependenciesstructsconstsfunctions

about

nx_cms_draft_team.nx -- the TEAM authoring the DRAFT-PREVIEW core for the CMS arc (C9, no Claude logic). The table IS the draft lifecycle: states 0=CLEAN (no pending draft; the public page serves the published content) 1=DRAFTED (a pending draft exists alongside the published page); events 0=SAVE_DRAFT 1=PUBLISH_DRAFT 2=DISCARD_DRAFT. PUBLISH_DRAFT and DISCARD_DRAFT from CLEAN are absent from the table -> the authored core refuses them (-1) and the admin answers 409. Engineer verifies the authored test. Same hands-off division as _pe_pub (CAPREG241): table = spec, emitter = author.

dependencies 2 imports · 0 importers

nx_pattern_emit3.nx nx_syscalls.nx nx_cms_draft_team.nx

imports: nx_pattern_emit3.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 sys_mmap pe3_author_state_flow sys_openat_wr pe3_emit_state_flow pe_w sys_write pe_wn sys_mmap ↻ sys_write ↻ sys_close pe3_emit_state_flow_test pe_w ↻ pe_wn ↻ cdt_w sys_write ↻ sys_exit

structs

none

consts

none

functions

10func cdt_w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
12func main() -> i64