code wiki / (root) / nx_companion_render.nx

nx_companion_render.nx

buildroot/runtime/nx_companion_render.nx

7048 B117 linesdepth 7pulls 9 transitivereach 3 importersview sourcekind librarytopic companion
docsdependenciesstructsconstsfunctions

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

nx_visual_arc.nx nx_companion_render.nx nx_companion_photo.nx nx_companion_render_gate.nx

imports: nx_visual_arc.nx

imported by: nx_companion_photo.nxnx_companion_render_gate.nx

structs

none

consts

none

functions

12func rr_json_esc(d: *u8, o: i64, s: *u8, slen: i64) -> i64
24func rr_catn(d: *u8, o: i64, v: i64) -> i64
35func render_body_at_pfx(prefix: *u8, persona: *u8, step: i64, out: *u8, cap: i64) -> i64
49func render_request_pfx(prefix: *u8, persona: *u8, out: *u8, cap: i64, step_out: *i64) -> i64
57func render_http_at_pfx(prefix: *u8, persona: *u8, step: i64, host: *u8, out: *u8, cap: i64) -> i64
78func render_gen_body_at_pfx(prefix: *u8, persona: *u8, step: i64, out: *u8, cap: i64) -> i64
90func render_gen_request_pfx(prefix: *u8, persona: *u8, out: *u8, cap: i64, step_out: *i64) -> i64
96func render_gen_http_at_pfx(prefix: *u8, persona: *u8, step: i64, host: *u8, out: *u8, cap: i64) -> i64
110func 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) }
111func 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) }
112func 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) }
115func render_body_at(persona: *u8, step: i64, out: *u8, cap: i64) -> i64 { return render_body_at_pfx(VID_PREFIX, persona, step, out, cap) }
116func render_request(persona: *u8, out: *u8, cap: i64, step_out: *i64) -> i64 { return render_request_pfx(VID_PREFIX, persona, out, cap, step_out) }
117func 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) }