nx_aimode_read.nx
buildroot/runtime/nx_aimode_read.nx
about
nx_aimode_read.nx -- CLI for BR50: read a Google AI Mode share link as its answer text.
nx_aimode_read <share-url> [out-path]
Writes knowledge/fetched/aimode_<id>.answer.txt (or <out-path>):
# nx_aimode_read v1
# share_url=<the url the operator pasted -- the CITED url>
# final_url=<the /search url the share resolved to>
# fetched_at=<epoch>
# citations=<N>
<blank>
<answer text>
<blank>
## Citations (<N>) -- the server-rendered /url? beacon references (opaque Google redirect tokens)
<one per line>
then appends a provenance row prov|<epoch>|<share url>|<mirror>|<sha256>|<bytes>|<hops> to the shared
fetch_provenance.jrnl (the CITED url is the SHARE url, never an internal endpoint -- refs-gate contract).
Refuses BY NAME: REFUSED-CONSENT-WALL / REFUSED-SIGNIN / REFUSED-NO-ANSWER / REFUSED-EMPTY-BODY (+fetch).
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 6 imports · 0 importers
imports: nx_syscalls.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_aimode_lib.nxnx_sha256.nxnx_atomic_rewrite.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 25 | const R_CERTCAP: i64 = 4194304 |
| 26 | const R_OUTCAP: i64 = 8388608 |
| 27 | const R_CITECAP: i64 = 262144 |
| 28 | const R_URLCAP: i64 = 16384 |
| 29 | const R_DOCCAP: i64 = 8912896 |
functions
| 31 | func pw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 32 | func pe(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(2, s, n); return 0 } |
| 33 | func pn(v: i64) -> i64 |
| 39 | func rcat(dst: *u8, o: i64, s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { dst[o] = s[i]; o = o + 1; i = i + 1 } return o } called by 1: main |
| 40 | func rcatn(dst: *u8, o: i64, v: i64) -> i64 |
| 48 | func rslen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: r_share_id |
| 51 | func r_share_id(url: *u8, out: *u8) -> i64 |
| 79 | func r_hex32(dst: *u8, o: i64, digest: *u8) -> i64 called by 1: main |
| 92 | func main(argc: i64, argv: *i64) -> i64 |