code wiki / _hdl_build / nx_asset_dashboard_page.nx
nx_asset_dashboard_page.nx source
↩ module page · 20 lines · 1121 B
1// nx_asset_dashboard_page.nx -- R5 THE VISIBLE PAYOFF: emit the LIVE asset dashboard
2// /wiki/assets.html surfacing the THREE awareness pillars (HAVE / TO-DO / GOING-ON) from the REAL
3// production catalog (org_research.tsv status-awareness-dashboard).
4//
5// The render core lives in nx_asset_dashboard_lib (dp_emit) so this emitter AND its gate
6// (nx_asset_dashboard_gate) drive the SAME path (DRY #15). This file = main(): emit the production
7// catalog to web_assets/assets.html. The guarded+versioned PUBLISH is a separate organ
8// (nx_asset_dashboard_publish) -- this only WRITES the local staging file.
9// No hardware/persistent-firmware writes (Rule 26). license_tier: ORIGINAL
10import "nx_syscalls.nx"
11import "nx_asset_dashboard_lib.nx"
12
13func main() -> i64 {
14 dp_w("=== ASSET DASHBOARD PAGE (R5): emit LIVE /wiki/assets.html from real catalog ===\n")
15 let wrote: i64 = dp_emit(dp_prefix(), "assets\x00" as *u8, 0)
16 dp_w(" ims_page wrote="); dp_num(wrote); dp_w(" bytes -> web_assets/assets.html\n")
17 if wrote < 0 { dp_w(" RENDER FAILED\n"); sys_exit(1); return 1 }
18 sys_exit(0)
19 return 0
20}