nx_companion_render.nx
buildroot/runtime/nx_companion_render.nx
about
nx_companion_render.nx -- ties the visual arc to the LIVE image-gen API. The sovereign generator already
exists and works: nx_pe_container_sdserver (a Nishi container PE, no Docker) Job-governs sd-server, which
serves an OpenAI-compatible endpoint POST /v1/images/generations on :7861 and returns a real PNG. What was
missing (the "clothes stayed the same, arcs never shifted" defect) is HERE: this composes the generation
request from the persona's ADVANCING visual arc, so each render is the same person in a NEW outfit/scene/pose.
render_request advances the arc and builds the JSON body; render_http wraps it in a POST the sovereign HTTP
client sends to the hubbed generator. The prompt is the load-bearing field (identity anchor + varying state,
from nx_visual_arc) -- projected verbatim, no censor (rule 25). license_tier: ORIGINAL
dependencies 1 imports · 2 importers
imports: nx_visual_arc.nx
imported by: nx_companion_photo.nxnx_companion_render_gate.nx
structs
| none |
consts
| none |
functions
| 12 | func rr_json_esc(d: *u8, o: i64, s: *u8, slen: i64) -> i64 |
| 24 | func rr_catn(d: *u8, o: i64, v: i64) -> i64 |
| 35 | func render_body_at_pfx(prefix: *u8, persona: *u8, step: i64, out: *u8, cap: i64) -> i64 called by 4: render_request_pfxrender_http_at_pfxrender_body_atmain calls 2: varc_prompt_at_pfxrr_json_esc |
| 49 | func render_request_pfx(prefix: *u8, persona: *u8, out: *u8, cap: i64, step_out: *i64) -> i64 |
| 57 | func render_http_at_pfx(prefix: *u8, persona: *u8, step: i64, host: *u8, out: *u8, cap: i64) -> i64 |
| 78 | func render_gen_body_at_pfx(prefix: *u8, persona: *u8, step: i64, out: *u8, cap: i64) -> i64 |
| 90 | func render_gen_request_pfx(prefix: *u8, persona: *u8, out: *u8, cap: i64, step_out: *i64) -> i64 |
| 96 | func render_gen_http_at_pfx(prefix: *u8, persona: *u8, step: i64, host: *u8, out: *u8, cap: i64) -> i64 |
| 110 | func render_gen_body_at(persona: *u8, step: i64, out: *u8, cap: i64) -> i64 { return render_gen_body_at_pfx(VID_PREFIX, persona, step, out, cap) } calls 1: render_gen_body_at_pfx |
| 111 | func render_gen_request(persona: *u8, out: *u8, cap: i64, step_out: *i64) -> i64 { return render_gen_request_pfx(VID_PREFIX, persona, out, cap, step_out) } calls 1: render_gen_request_pfx |
| 112 | func render_gen_http_at(persona: *u8, step: i64, host: *u8, out: *u8, cap: i64) -> i64 { return render_gen_http_at_pfx(VID_PREFIX, persona, step, host, out, cap) } calls 1: render_gen_http_at_pfx |
| 115 | func render_body_at(persona: *u8, step: i64, out: *u8, cap: i64) -> i64 { return render_body_at_pfx(VID_PREFIX, persona, step, out, cap) } calls 1: render_body_at_pfx |
| 116 | func render_request(persona: *u8, out: *u8, cap: i64, step_out: *i64) -> i64 { return render_request_pfx(VID_PREFIX, persona, out, cap, step_out) } calls 1: render_request_pfx |
| 117 | func render_http_at(persona: *u8, step: i64, host: *u8, out: *u8, cap: i64) -> i64 { return render_http_at_pfx(VID_PREFIX, persona, step, host, out, cap) } calls 1: render_http_at_pfx |