code wiki / _hdl_build / nx_site_command.nx
nx_site_command.nx
buildroot/runtime/_hdl_build/nx_site_command.nx
about
nx_site_command.nx -- EDIT YOUR SITE VIA COMMAND PROMPT, the team updates with ROLLBACK (operator: "take
the capabilities of you or openai or other tools that can build a website from scratch easily... with a
wysiwyg piece... where the person can edit their site via command prompt and have the nishi team update
with rollback capabilities"). A natural-language command -> a structured EDIT op -> applied to the spec ->
the team's generator re-emits the site -> a new VERSION is saved (every update is rollback-able). This is
the modern AI-site-builder loop, sovereign. license_tier: ORIGINAL Composes nx_site_generator (regenerate)
+ nx_deploy (safe-swap + rollback).
dependencies 1 imports · 1 importers
imports: nx_syscalls.nx
imported by: nx_site_command_test.nx
structs
| none |
consts
| 11 | const CMD_UNKNOWN: i64 = 0 |
| 12 | const CMD_SET_HERO: i64 = 1 |
| 13 | const CMD_ADD_SECTION: i64 = 2 |
| 14 | const CMD_REMOVE_SECTION: i64 = 3 |
| 15 | const CMD_SET_CTA: i64 = 4 |
| 16 | const CMD_ROLLBACK: i64 = 5 |
functions
| 18 | func cmd_has(text: *u8, kw: *u8) -> i64 called by 1: cmd_parse |
| 27 | func cmd_parse(text: *u8) -> i64 |
| 42 | func cmd_apply_version(current_version: i64, op: i64) -> i64 called by 1: main |
| 49 | func cmd_can_rollback(current_version: i64, target_version: i64) -> i64 |
| 54 | func cmd_rollback(current_version: i64, target_version: i64) -> i64 |
| 59 | func cmd_op_label(op: i64) -> *u8 called by 1: main |