code wiki / _hdl_build / nx_site_command.nx

nx_site_command.nx

buildroot/runtime/_hdl_build/nx_site_command.nx

3208 B66 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind librarytopic site
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_site_command.nx nx_site_command_test.nx

imports: nx_syscalls.nx

imported by: nx_site_command_test.nx

structs

none

consts

11const CMD_UNKNOWN: i64 = 0
12const CMD_SET_HERO: i64 = 1
13const CMD_ADD_SECTION: i64 = 2
14const CMD_REMOVE_SECTION: i64 = 3
15const CMD_SET_CTA: i64 = 4
16const CMD_ROLLBACK: i64 = 5

functions

18func cmd_has(text: *u8, kw: *u8) -> i64
called by 1: cmd_parse
27func cmd_parse(text: *u8) -> i64
called by 1: main calls 1: cmd_has
42func cmd_apply_version(current_version: i64, op: i64) -> i64
called by 1: main
49func cmd_can_rollback(current_version: i64, target_version: i64) -> i64
called by 2: cmd_rollbackmain
54func cmd_rollback(current_version: i64, target_version: i64) -> i64
called by 1: main calls 1: cmd_can_rollback
59func cmd_op_label(op: i64) -> *u8
called by 1: main