@melite/estate-queue 0.1.5-pre-alpha → 0.2.2-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/LICENSE +561 -457
  2. package/README.md +0 -5
  3. package/lib/cardsArmError.d.ts +52 -3
  4. package/lib/cardsArmError.js +7 -1
  5. package/lib/cardsCompose.d.ts +31 -0
  6. package/lib/cardsCompose.js +98 -7
  7. package/lib/cardsFacts.d.ts +16 -0
  8. package/lib/cardsFacts.js +25 -1
  9. package/lib/cardsLanes.d.ts +51 -3
  10. package/lib/cardsLanes.js +337 -13
  11. package/lib/cardsLanesCopy.d.ts +21 -0
  12. package/lib/cardsLanesCopy.js +22 -0
  13. package/lib/cardsRegistry.d.ts +105 -5
  14. package/lib/cardsRegistry.js +826 -46
  15. package/lib/cardsVariant.d.ts +12 -7
  16. package/lib/cardsVariant.js +196 -58
  17. package/lib/discloseRegistry.d.ts +41 -6
  18. package/lib/discloseRegistry.js +155 -17
  19. package/lib/filmLead.js +5 -3
  20. package/lib/flowsData.d.ts +77 -21
  21. package/lib/flowsData.js +159 -21
  22. package/lib/flowsFamilyCompose.js +12 -1
  23. package/lib/flowsRegistryRows.d.ts +0 -3
  24. package/lib/flowsRegistryRows.js +166 -222
  25. package/lib/index.d.ts +1 -1
  26. package/lib/index.js +6 -4
  27. package/lib/loadPlane.d.ts +46 -4
  28. package/lib/loadPlane.js +116 -7
  29. package/lib/loadRegistry.js +9 -2
  30. package/lib/manageOps.js +2 -1
  31. package/lib/managePlane.d.ts +16 -1
  32. package/lib/managePlane.js +955 -65
  33. package/lib/managePreflight.d.ts +26 -0
  34. package/lib/managePreflight.js +211 -0
  35. package/lib/manageProbe.d.ts +52 -0
  36. package/lib/manageProbe.js +171 -1
  37. package/lib/queueCore.d.ts +14 -1
  38. package/lib/queueCore.js +13 -0
  39. package/lib/queueLock.js +19 -10
  40. package/lib/queueResurrect.d.ts +7 -5
  41. package/lib/queueResurrect.js +25 -9
  42. package/lib/queueRetry.d.ts +12 -10
  43. package/lib/queueRetry.js +2 -4
  44. package/lib/queueSidecar.d.ts +122 -1
  45. package/lib/queueSidecar.js +192 -7
  46. package/lib/queueSubmit.d.ts +70 -4
  47. package/lib/queueSubmit.js +159 -7
  48. package/lib/runsErrorCodes.js +5 -3
  49. package/lib/runsExecute.d.ts +16 -1
  50. package/lib/runsExecute.js +97 -39
  51. package/lib/runsGates.d.ts +16 -4
  52. package/lib/runsGates.js +17 -5
  53. package/lib/runsList.d.ts +100 -4
  54. package/lib/runsList.js +364 -63
  55. package/lib/runsRefusalVoices.js +50 -1
  56. package/lib/runsRegistry.d.ts +142 -9
  57. package/lib/runsRegistry.js +960 -163
  58. package/lib/runsStart.d.ts +30 -7
  59. package/lib/runsStart.js +136 -14
  60. package/lib/runsTypes.d.ts +46 -3
  61. package/lib/runsTypes.js +63 -9
  62. package/lib/runsValidate.d.ts +1 -0
  63. package/lib/runsValidate.js +5 -0
  64. package/lib/runsValidateArms.js +25 -0
  65. package/lib/runsValidateServe.js +25 -12
  66. package/lib/runsValidateShared.d.ts +8 -1
  67. package/lib/runsValidateShared.js +44 -4
  68. package/lib/runsValidateStages.d.ts +1 -1
  69. package/lib/runsValidateStages.js +107 -55
  70. package/lib/runtimeProvision.d.ts +119 -0
  71. package/lib/runtimeProvision.js +243 -0
  72. package/lib/skillAuthored.d.ts +50 -0
  73. package/lib/skillAuthored.js +178 -0
  74. package/lib/skillPlane.d.ts +40 -2
  75. package/lib/skillPlane.js +63 -13
  76. package/lib/skillRegistry.d.ts +24 -1
  77. package/lib/skillRegistry.js +69 -5
  78. package/lib/skillRows.d.ts +13 -3
  79. package/lib/skillRows.js +49 -5
  80. package/package.json +33 -23
  81. package/lib/resurrect.d.ts +0 -6
  82. package/lib/resurrect.js +0 -18
@@ -3,6 +3,9 @@
3
3
  // module of declarations, one line per flow; flowsData.ts keeps the
4
4
  // types, the helpers, and the assembled REGISTRY.
5
5
  import { CARD_PLANE_ENGINE } from '@melite/contracts/benchStage';
6
+ // linkedStage is NOT imported here: no seed row links another flow
7
+ // (the link builder serves drop-in rows and the tests that drive
8
+ // them — a seed row carrying one would be dead authoring surface).
6
9
  import { plainStage, initial, fromStage } from "./flowsData.js";
7
10
  export const ANNY_HMR_ESTIMATOR = {
8
11
  id: "anny-hmr-estimator",
@@ -55,126 +58,18 @@ export const ANNY_PARAMS = {
55
58
  tool: null,
56
59
  skillRefs: [],
57
60
  };
58
- export const AUDIO_NATIVE_TTS = {
59
- id: "audio-native-tts",
60
- description: "Phase 1b gate: Qwen3-TTS 12Hz CustomVoice via the live melite-audio-nodes " +
61
- "island pack in the serving ComfyUI container (pure-ComfyUI audio lane; " +
62
- "retires the C audio engine for TTS). RUNS on the {flow:} door " +
63
- "(2026-10-04: the VALIDATE-ONLY stamp is GONE — the start door " +
64
- "composes the row's card stages through the card plane); the {model:} " +
65
- "door drives the same card directly.",
66
- stages: [
67
- plainStage({
68
- id: "tts",
69
- engine: CARD_PLANE_ENGINE,
70
- card: "tts",
71
- description: "Qwen3-TTS text to speech via the tts card",
72
-
73
- // merge-hole cure): the wiring law spells every wired channel
74
- // `$<channel>`, and the merge resolves a $spell against links ∪
75
- // request INITIALS — so a channel `text` fed by initial("prompt")
76
- // spelled `$text` resolved against neither and the run died at
77
- // the merge. anny-hmr names all three the same (photo/photo/
78
- // $photo); so does this row now.
79
- inputs: { text: initial("text") },
80
- // every wired input needs its expected Kind (kindsOk's own
81
- // law) — this row shipped without it and only the LIVE
82
- // /v1/flows/validate path tripped it; completed at the
83
-
84
- // the class (kindsOk over every registry flow)
85
- expected: { text: "text" },
86
- outputs: { wav: "audio" },
87
- cardIo: { wav: "audio" },
88
- params: { model: "qwen3-tts", text: "$text", seed: 42 },
89
- }),
90
- ],
91
- initialValidators: { text: "text" },
92
- tool: {
93
- name: "speak",
94
- version: 1,
95
- description: "Qwen3-TTS 12Hz CustomVoice speech in one call — text in, wav out " +
96
- "(pure-ComfyUI audio lane).",
97
- properties: {
98
-
99
- // lifts declared validators only, so a `prompt` property over a
100
- // `text` initial would advertise a key the door never reads.
101
- text: {
102
- ptype: "string",
103
- description: "what to say",
104
- default: null,
105
- hasDefault: false,
106
- minimum: null,
107
- maximum: null,
108
- enum: null,
109
- },
110
- seed: {
111
- ptype: "integer",
112
- description: "voice sampler seed",
113
- default: 42,
114
- hasDefault: true,
115
- minimum: 0,
116
- maximum: 2147483647,
117
- enum: null,
118
- },
119
- },
120
- required: ["text"],
121
- overlays: [{ param: "seed", stage: "tts", path: ["seed"], choices: null }],
122
- },
123
- skillRefs: [],
124
- };
125
- export const BODY_TO_SOMAX = {
126
- id: "body-to-somax",
127
- description: "Bare body GLB → SOMAX-rigged GLB: the anny→kimodo bridge (the baked " +
128
- "SOMA-77 template weight transfer, standalone-rig mode — no Blender). The " +
129
- "motion studio posts this behind the scenes when a wired body isn't SOMAX; " +
130
- "any bare human mesh (anny bake, TRELLIS, upload) rides the same door. " +
131
- "RUNS on the {flow:} door (2026-10-04: the VALIDATE-ONLY stamp is " +
132
- "GONE — the start door composes the row's card stages through the " +
133
- "card plane); drive the rig card " +
134
- "through the bench or {model:}.",
135
- stages: [
136
- plainStage({
137
- id: "rig",
138
- engine: CARD_PLANE_ENGINE,
139
- card: "rig",
140
- description: "SOMA-77 template weight transfer (barycentric, the autorig pack's " +
141
- "baked function) via the rig card's auto mode — the gem_soma " +
142
- "family's declared rig action composes the KimodoExportFBX segment",
143
- inputs: { glb: initial("glb") },
144
- expected: { glb: "mesh" },
145
- outputs: { body: "mesh" },
146
- cardIo: { body: "mesh" },
147
- // THE LANE IS THE FAMILY'S (the atom vocabulary, stroke 3): this
148
- // stage hand-wired the KimodoExportFBX node in the flow plane —
149
- // a second copy of the gem_soma rig lane. It names the card +
150
- // mode; the family's declared action composes the graph.
151
- // (out_dir/timeout_s are RAW-stage knobs — a card stage's
152
- // params are card-admitted knobs only; the compose door owns
153
- // the run dir and the card's own contract the timeout.)
154
- params: {
155
- mesh_glb: "$glb",
156
- mode: "auto",
157
- preserve_texture: true,
158
- decimate_ratio: 0,
159
- },
160
- }),
161
- ],
162
- initialValidators: { glb: "glb" },
163
- tool: null,
164
- skillRefs: [],
165
- };
166
61
  export const FIT_SEAT = {
167
62
  id: "fit-seat",
168
63
  description: "Seat a static prop onto a SOMAX body under the meld fit laws (the " +
169
64
  "dress/prop verb engine): the meld row assembles in-pack from the verb's " +
170
65
  "own vocabulary, and the request MUST carry `bone` (the bone that " +
171
66
  "carries the prop — the door refuses without it), " +
172
- "FitProp grafts, the turnaround proves.",
67
+ "FitProp grafts — the seated GLB is the verb's output.",
173
68
  stages: [
174
69
  plainStage({
175
70
  id: "seat",
176
71
  engine: CARD_PLANE_ENGINE,
177
- description: "FitRow (knobs -> meld row) -> FitProp (graft) -> proof views",
72
+ description: "FitRow (knobs -> meld row) -> FitProp (graft) — the seated GLB out",
178
73
  // THE TWO FILES AND THE BONE (the rest of the fit row is the
179
74
  // verb's own vocabulary inside the action — stroke-89's law).
180
75
  // The bone is a BARE NAME, so it rides the text initial kind,
@@ -184,8 +79,8 @@ export const FIT_SEAT = {
184
79
  expected: { body: "mesh", prop: "mesh", bone: "text" },
185
80
  // THE VERB'S BACKEND IS A DECLARED ACTION (the atom
186
81
  // vocabulary, stroke 4): the fit-seat verb's nodes compose
187
- // from the fit family's DECL — every knob rides verbatim, the
188
- // proof framing is FIXED in the action build. The row routes;
82
+ // from the fit family's DECL — every knob rides verbatim. The
83
+ // row routes;
189
84
  // the declaration owns the graph (SubActionMod law — the
190
85
 
191
86
  // the sanctioned seam, not a revival).
@@ -219,8 +114,18 @@ export const IMAGE_UPSCALE = {
219
114
  inputs: { prompt: initial("prompt") },
220
115
 
221
116
  expected: { prompt: "text" },
117
+ // THE ROW RENAMES THE CARD'S CHANNEL (the object-forge concept
118
+ // precedent): the image-gen card binds `default` on its
119
+ // flowOutputBindings row; this row renames it to the flow-plane
120
+ // `image` the polish stage wires — kind-matched, one-to-one.
121
+ outputs: { image: "image" },
222
122
  cardIo: { image: "image" },
223
- params: { model: "krea-2", prompt: "$prompt", seed: 42 },
123
+ // ONE HOME FOR FLOW DEFAULTS (audit 015 C2): no seed stamp on
124
+ // either stage — the image-gen and upscale-tools cards both
125
+ // default seed -1 (fresh mint per stage), so a stamp here (42)
126
+ // was a second default-write that made every flow-driven gen
127
+ // seed-identical unless the caller stated a seed.
128
+ params: { model: "krea-2", prompt: "$prompt" },
224
129
  }),
225
130
  plainStage({
226
131
  id: "polish",
@@ -231,10 +136,14 @@ export const IMAGE_UPSCALE = {
231
136
  expected: { image: "image" },
232
137
  cardIo: { image: "image" },
233
138
  params: {
234
- model: "seedvr2_ema",
139
+ model: "seedvr2-ema",
235
140
  input_image: "$image",
236
- filename_prefix: "image-upscale",
237
- seed: 42,
141
+
142
+ // upscale-tools card composes its own SaveImage prefix from
143
+ // the run id (seedvr2-ema's action), so the stated key
144
+ // reached NO consumer — dead stage surface the carry wall
145
+ // now refuses. seed left with it (audit 015 C2, the derived
146
+ // sweep's fourth seat): the card's own -1 default mints.
238
147
  },
239
148
  }),
240
149
  ],
@@ -264,15 +173,56 @@ export const IMAGE_UPSCALE = {
264
173
  maximum: null,
265
174
  enum: null,
266
175
  },
176
+ // ONE HOME FOR FLOW DEFAULTS (audit 015 C2): the tool publishes
177
+ // no seed default — the make and polish cards both default -1
178
+ // (fresh mint per stage); a published 42 advertised a take-lock
179
+ // the compose never carried. The overlay stays: a stated seed
180
+ // pins both stages.
267
181
  seed: {
268
182
  ptype: "integer",
269
- description: "sampler seed",
270
- default: 42,
271
- hasDefault: true,
183
+ description: "sampler seed (omit for fresh takes — each stage's card mints one)",
184
+ default: null,
185
+ hasDefault: false,
272
186
  minimum: 0,
273
187
  maximum: 2147483647,
274
188
  enum: null,
275
189
  },
190
+
191
+ // row published no make-size or polish-resolution face, so
192
+ // every press rode the cards' defaults — the make at
193
+ // krea-2's 1024×1024, the polish at the FHD rail (1080 short
194
+ // side) — the burn's "never doubles": a 2x press needs the
195
+ // make at the operator's class (e.g. 1344×768) and the polish
196
+ // resolution at twice that short side (1536). Declared the
197
+ // seed-overlay way (the twin-stage pattern), bounds the cards'
198
+ // own schemas already enforce.
199
+ width: {
200
+ ptype: "integer",
201
+ description: "make canvas width (16-step, 256–2048; state the operator's class, e.g. 1344)",
202
+ default: null,
203
+ hasDefault: false,
204
+ minimum: 256,
205
+ maximum: 2048,
206
+ enum: null,
207
+ },
208
+ height: {
209
+ ptype: "integer",
210
+ description: "make canvas height (16-step, 256–2048; e.g. 768)",
211
+ default: null,
212
+ hasDefault: false,
213
+ minimum: 256,
214
+ maximum: 2048,
215
+ enum: null,
216
+ },
217
+ resolution: {
218
+ ptype: "integer",
219
+ description: "SeedVR2 target short side (256–2160; 1080 = the FHD rail, state twice the make short side to double, e.g. 1536)",
220
+ default: null,
221
+ hasDefault: false,
222
+ minimum: 256,
223
+ maximum: 2160,
224
+ enum: null,
225
+ },
276
226
  },
277
227
  required: ["image_model", "prompt"],
278
228
  overlays: [
@@ -284,6 +234,9 @@ export const IMAGE_UPSCALE = {
284
234
  },
285
235
  { param: "seed", stage: "make", path: ["seed"], choices: null },
286
236
  { param: "seed", stage: "polish", path: ["seed"], choices: null },
237
+ { param: "width", stage: "make", path: ["width"], choices: null },
238
+ { param: "height", stage: "make", path: ["height"], choices: null },
239
+ { param: "resolution", stage: "polish", path: ["resolution"], choices: null },
287
240
  ],
288
241
  },
289
242
  skillRefs: [
@@ -294,71 +247,13 @@ export const IMAGE_UPSCALE = {
294
247
  "model:z-image:prompt-enhance",
295
248
  ],
296
249
  };
297
- export const MUSIC_NATIVE = {
298
- id: "music-native",
299
- description: "Music generation as a CARD stage — prompt in, audio out via the music " +
300
- "card (MiniMax Music 3, the boarded row; see GET /v1/models). Repointed " +
301
- "at the mono-engine law by the wiring wall 2026-09-20: the row still " +
302
- "named the retired audio_cpp tier and a card id that no longer exists — " +
303
- "a fossil only the live validate path ever tripped. RUNS on the " +
304
- "{flow:} door (2026-10-04: the VALIDATE-ONLY stamp is GONE — the " +
305
- "start door composes the row's card stages through the card plane); " +
306
- "the {model:} door drives the same card directly.",
307
- stages: [
308
- plainStage({
309
- id: "music",
310
- engine: CARD_PLANE_ENGINE,
311
- card: "music",
312
- description: "MiniMax Music 3 via the music card — the lane composes the doc " +
313
- "into the ComfyUI graph (UNET/CLIP/VAE loaders + the music sampler)",
314
- inputs: { prompt: initial("prompt") },
315
- expected: { prompt: "text" },
316
- cardIo: { default: "audio" },
317
- params: {
318
- prompt: "$prompt",
319
- model: "music3",
320
- duration: 120,
321
- seed: -1,
322
- },
323
- }),
324
- ],
325
- initialValidators: { prompt: "text" },
326
- tool: {
327
- name: "compose_music",
328
- version: 1,
329
- description: "Music generation in one call (MiniMax Music 3 via the music card) — " +
330
- "prompt in, audio out.",
331
- properties: {
332
- prompt: {
333
- ptype: "string",
334
- description: "what to play",
335
- default: null,
336
- hasDefault: false,
337
- minimum: null,
338
- maximum: null,
339
- enum: null,
340
- },
341
- duration: {
342
- ptype: "integer",
343
- description: "seconds of music (the card caps 5..360)",
344
- default: 120,
345
- hasDefault: true,
346
- minimum: 5,
347
- maximum: 360,
348
- enum: null,
349
- },
350
- },
351
- required: ["prompt"],
352
- overlays: [{ param: "duration", stage: "music", path: ["duration"], choices: null }],
353
- },
354
- skillRefs: [],
355
- };
356
250
  export const CRAFT_LOOP = {
357
251
  id: "craft-loop",
358
252
  description: "The agentic craft loop: a named image-capable model route critiques " +
359
253
  "each capture and decides the next act command until done (or the " +
360
254
  "iteration cap). The act leg rides ANY registered engine (comfyui " +
361
- "graphs, mcp:blender tool calls); captures land in the run dir and " +
255
+ "graphs, MCP tool calls on the DSH-profile seats); captures land " +
256
+ "in the run dir and " +
362
257
  "attach to the critique. Driven by the runs door with engine " +
363
258
  "'craft' stages — see flows/craft-loop/agents/AGENT.md.",
364
259
  stages: [
@@ -366,51 +261,102 @@ export const CRAFT_LOOP = {
366
261
  id: "loop",
367
262
  engine: "craft",
368
263
  description: "act → capture → critique → decide (the loop engine)",
369
- inputs: {},
264
+ // THE CHANNEL LAW (the merge-hole cure, born on the retired
265
+ // audio-native-tts wrapper): a $spell in params must name a channel the stage
266
+ // WIRES — the compose judge's pool is inputNames ∪ initial
267
+ // edges, so the three dials ride as initial("…") edges of the
268
+ // same name (agent_prompt/agent_prompt/$agent_prompt, the
269
+ // anny-hmr naming law). The craft executor consumes them
270
+ // through its own $spell fold against the run's request
271
+ // initials (the executor contract's fifth argument) — the
272
+ // edges are the channel truth, the fold the value truth.
273
+ inputs: {
274
+ agent_prompt: initial("agent_prompt"),
275
+ command: initial("command"),
276
+ max_iterations: initial("max_iterations"),
277
+ },
278
+ // hand-written (the derivation law is for card= stages; this
279
+ // is an engine-verb row): brief prose is TEXT, the command
280
+ // object is DATA, the bound is NUM — the closed Kind
281
+ // vocabulary's own words.
282
+ expected: { agent_prompt: "text", command: "data", max_iterations: "num" },
370
283
  outputs: { default: "image" },
371
- params: {},
284
+
285
+ // $spells against the run's request initials — the brief as
286
+ // PROSE (the door's `brief` kind: no path law, the critic
287
+ // reads it as data), the command as a JSON OBJECT (the `json`
288
+ // kind: the {engine, params} row the craft gate owns — NOT
289
+ // the {engine, comfyui, workflow} shape FAILURES pressed),
290
+ // and max_iterations as a NUMBER (digit-strings refuse at the
291
+ // door; the typed value rides the merge unchanged). An
292
+ // omitted max_iterations omits the key — the engine's own
293
+ // default law. `model` stays a LANE DEFAULT this wave (the
294
+ // loop's route id, not a flow initial — documented in
295
+ // flows/craft-loop/agents/AGENT.md).
296
+ params: {
297
+ agent_prompt: "$agent_prompt",
298
+ command: "$command",
299
+ max_iterations: "$max_iterations",
300
+ },
372
301
  }),
373
302
  ],
374
- initialValidators: {},
303
+ // requiredInitials (fit-seat's GOOD shape): the door refuses an
304
+ // absent brief or command BEFORE the run registers — not sixty
305
+ // seconds in at the engine gate. max_iterations is optional (the
306
+ // engine defaults it).
307
+ initialValidators: {
308
+ agent_prompt: "brief",
309
+ command: "json",
310
+ max_iterations: "number",
311
+ },
312
+ requiredInitials: ["agent_prompt", "command"],
375
313
  tool: null,
376
314
  skillRefs: [],
377
315
  };
378
316
  export const CHARACTER_FACTORY = {
379
317
  id: "character-factory",
380
- description: "Photo → clothed character → rigged → animated (the AssetFurnace-shape " +
381
- "chain, estate-native): img-to-mesh lift with the repair knobs ON, rig " +
382
- "auto (SOMA-77, BODY_TO_SOMAX's lane chained), kimodo text→motion " +
383
- "skinned onto the rigged mesh (somax bake in-graph). Multi-stage: " +
384
- "serves at validate (start refuses multi-stage); agents drive the " +
385
- "stages through the queue door, one card at a time — see " +
386
- "flows/character-factory/agents/AGENT.md. Creature motion rides the " +
387
- "MOTION phase instead (unimate dataset clip → rig copy bridge, " +
388
- "game-profile MCPs) — documented in the leaf, never a registry " +
389
- "stage (unimate is an MCP, not melite).",
318
+ description: "Supplied body → rigged → animated, one merged run (the character " +
319
+ "factory's rig→motion leg): the body GLB path rides the `mesh` " +
320
+ "initial — the rig lane's own feed, any bare human mesh " +
321
+ "(an anny bake, a TRELLIS lift, an estimator body) — the rig stage " +
322
+ "composes SOMA-77 auto (KimodoExportFBX), and the motion stage " +
323
+ "skins kimodo text→motion onto the rigged mesh in-graph " +
324
+ "(RaySomaxBake; the rigged-path link is STRING→STRING, the one " +
325
+ "hop the served engine carries). THE LIFT HOP IS NOT A STAGE " +
326
+ "(2026-11-01, the rig-hop dead ref, GPU live-receipt C9): the " +
327
+ "photo→mesh lift's served producer (img-to-mesh's Save3DAdvanced) " +
328
+ "is a terminal FILE_3D save — no served node consumes FILE_3D and " +
329
+ "the merge's slot-0 link is the only in-graph transport — so the " +
330
+ "lift rides the img-to-mesh card door or the object-forge row, and " +
331
+ "its artifact path feeds THIS row's `mesh` initial (the run-chain; " +
332
+ "the C6→D8 receipt shape). Multi-stage: named registry flows " +
333
+ "DRIVE at start (the curated-lane lift, runsRegistry's own law — " +
334
+ "the refusal is hand-authored inline only); stages also drive one " +
335
+ "card at a time — see flows/character-factory/agents/AGENT.md. " +
336
+ "Creature motion rides the MOTION phase instead (unimate dataset " +
337
+ "clip → rig copy bridge, game-profile MCPs) — documented in the " +
338
+ "leaf, never a registry stage (unimate is an MCP, not melite).",
390
339
  stages: [
391
- plainStage({
392
- id: "lift",
393
- engine: CARD_PLANE_ENGINE,
394
- card: "img-to-mesh",
395
- description: "Photo → textured mesh via the img-to-mesh card (repair knobs ON)",
396
- inputs: { photo: initial("photo") },
397
-
398
- expected: { photo: "image" },
399
- outputs: { mesh: "mesh" },
400
- cardIo: { mesh: "mesh" },
401
- params: { model: "pixal3d", input_image: "$photo" },
402
- }),
403
340
  plainStage({
404
341
  id: "rig",
405
342
  engine: CARD_PLANE_ENGINE,
406
343
  card: "rig",
407
- description: "SOMA-77 auto-rig via the rig card (BODY_TO_SOMAX's lane, chained)",
408
- inputs: { mesh: fromStage("lift", "mesh") },
344
+ // THE SEAT IS THE INITIAL (the re-aim): the rig hop's mesh
345
+ // rides a GLB path initial, exactly the lane the retired
346
+ // body-to-somax wrapper served live — an initial substitutes as a STRING value at
347
+ // the merge, so the carrier (PrimitiveString) is type-clean.
348
+ // The old in-graph `mesh: fromStage("lift", "mesh")` wire is
349
+ // the dead ref: the lift's bound producer slot is FILE_3D,
350
+ // and the engine refuses the STRING carrier input loud
351
+ // (silently dropping the downstream KimodoExportFBX +
352
+ // RaySomaxBake outputs — the C9 class).
353
+ description: "SOMA-77 auto-rig via the rig card (BODY_TO_SOMAX's lane, on the supplied body)",
354
+ inputs: { mesh: initial("mesh") },
409
355
  expected: { mesh: "mesh" },
410
356
  outputs: { body: "mesh" },
411
357
  cardIo: { body: "mesh" },
412
358
  // no model pin (BODY_TO_SOMAX's law): mode auto selects the
413
- // gem_soma family; the card's own contract owns the default
359
+ // gem-soma family; the card's own contract owns the default
414
360
  params: { mesh_glb: "$mesh", mode: "auto", preserve_texture: true },
415
361
  }),
416
362
  plainStage({
@@ -427,8 +373,8 @@ export const CHARACTER_FACTORY = {
427
373
  params: { model: "kimodo", prompt: "$prompt", preview_glb: "$preview" },
428
374
  }),
429
375
  ],
430
- initialValidators: { photo: "photo", prompt: "text" },
431
- requiredInitials: ["photo", "prompt"],
376
+ initialValidators: { mesh: "glb", prompt: "text" },
377
+ requiredInitials: ["mesh", "prompt"],
432
378
  tool: null,
433
379
  skillRefs: [],
434
380
  };
@@ -451,6 +397,13 @@ export const OBJECT_FORGE = {
451
397
  inputs: { prompt: initial("prompt") },
452
398
 
453
399
  expected: { prompt: "text" },
400
+ // THE ROW RENAMES THE CARD'S CHANNEL (the character-factory
401
+ // lift/rig precedent): the image-gen card binds `default` on its
402
+ // flowOutputBindings row (the producer-law declaration door);
403
+ // this row renames it to the flow-plane `image` the lift wires —
404
+ // kind-matched, one-to-one, so output_nodes follow the rename
405
+ // and `concept.image` resolves in the producer table.
406
+ outputs: { image: "image" },
454
407
  cardIo: { image: "image" },
455
408
  params: { model: "z-image", prompt: "$prompt" },
456
409
  }),
@@ -470,9 +423,10 @@ export const OBJECT_FORGE = {
470
423
  tool: {
471
424
  name: "object_forge",
472
425
  version: 1,
473
- description: "Generate a game-ready 3D object from one prompt line: concept render " +
474
- "(z-image), image-to-mesh lift (trellis2-native), quad remesh to game " +
475
- "topology. One POST runs the whole flow and returns both meshes.",
426
+ description: "Generate a 3D object from one prompt line: concept render " +
427
+ "(z-image), image-to-mesh lift (trellis2-native). One POST runs " +
428
+ "the whole flow and returns the textured mesh. (The remesh stage " +
429
+ "left 2026-10-13; quad topology is downstream work.)",
476
430
  properties: {
477
431
  prompt: {
478
432
  ptype: "string",
@@ -483,15 +437,6 @@ export const OBJECT_FORGE = {
483
437
  maximum: null,
484
438
  enum: null,
485
439
  },
486
- target_quads: {
487
- ptype: "integer",
488
- description: "quad budget for the remesh stage",
489
- default: 50000,
490
- hasDefault: true,
491
- minimum: 0,
492
- maximum: 200000,
493
- enum: null,
494
- },
495
440
  image_model: {
496
441
  ptype: "string",
497
442
  description: "the concept generator family",
@@ -510,7 +455,6 @@ export const OBJECT_FORGE = {
510
455
  path: ["model"],
511
456
  choices: { "z-image": "z-image", "krea-2": "krea-2" },
512
457
  },
513
- { param: "target_quads", stage: "remesh", path: ["target_quads"], choices: null },
514
458
  ],
515
459
  },
516
460
  // ref would resolve null (the loadPlane null arm, never fired
package/lib/index.d.ts CHANGED
@@ -6,7 +6,6 @@ export { ManageGatewayService } from "./manageRegistry.js";
6
6
  export type { QueueConfig } from "./service.js";
7
7
  export * from "./vocab.js";
8
8
  export * from "./queue.js";
9
- export { bootSweep } from "./resurrect.js";
10
9
  export declare const name = "estate-queue";
11
10
  export declare const inject: string[];
12
11
  export declare function apply(ctx: Context, config?: QueueConfig): void;
@@ -44,4 +43,5 @@ export declare const runsRegistryPlugin: {
44
43
  inject: readonly ["queue", "draftsRemote", "cardRegistry"];
45
44
  apply(ctx: Context): void;
46
45
  };
46
+ export { engineRootOf, engineOutputDir, resolveRuntimeHome, runtimeEnvView, resolveRuntimeProvision, nodeRuntimeFs, sentinelHit } from "./runtimeProvision.js";
47
47
  //# sourceMappingURL=index.d.ts.map
package/lib/index.js CHANGED
@@ -11,10 +11,6 @@ export { RunsRuntimeService } from "./runsRegistry.js";
11
11
  export { ManageGatewayService } from "./manageRegistry.js";
12
12
  export * from "./vocab.js";
13
13
  export * from "./queue.js";
14
- // bootSweep twins (queue.ts core impl + resurrect.ts QueueRoots
15
- // wrapper): the explicit export wins over the stars — the wrapper
16
- // is the domain seam.
17
- export { bootSweep } from "./resurrect.js";
18
14
  import { FlowsSeatService } from "./flowsData.js";
19
15
  export const name = "estate-queue";
20
16
  export const inject = ["timer"];
@@ -72,4 +68,10 @@ export const runsRegistryPlugin = {
72
68
  new RunsRuntimeService(ctx);
73
69
  },
74
70
  };
71
+ // THE RUNTIME PRESENCE PROBE (the anny burn's serving cure,
72
+
73
+ // doc's runtimes block rides — one probe, every consumer (the
74
+ // press gate in cardsLanes and the doc's presence rows in
75
+ // melite-tools' discovery), never a second spelling.
76
+ export { engineRootOf, engineOutputDir, resolveRuntimeHome, runtimeEnvView, resolveRuntimeProvision, nodeRuntimeFs, sentinelHit } from "./runtimeProvision.js";
75
77
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  import { emitModifierKinds } from "@melite/comfyui-cordis";
2
2
  import type { ModelsService } from "@melite/comfyui-cordis";
3
3
  import type { CardRegistryService } from "./cardsRegistry.js";
4
- import type { FlowsSeat } from "./flowsData.js";
4
+ import type { FlowsSeat, RegistryFlow } from "./flowsData.js";
5
5
  import { toolBaseRows } from "./toolProjection.js";
6
6
  import type { FamilyModelsSeat } from "./flowsFamilyCompose.js";
7
7
  /** A card id → its package dir. The cardPackages rows are package
@@ -54,7 +54,7 @@ export declare function skillLinesForCard(repo: string, cardId: string): Array<R
54
54
 
55
55
 
56
56
 
57
- export declare function skillLinesForFamilies(repo: string, fams: readonly string[]): Array<Record<string, unknown>>;
57
+ export declare function skillLinesForFamilies(repo: string, fams: readonly string[], stateRoot?: string): Array<Record<string, unknown>>;
58
58
  export declare function flowLeafDocs(repo: string, flowName: string): Array<{
59
59
  path: string;
60
60
  text: string;
@@ -80,7 +80,49 @@ export type CardModelsSeat = Pick<ModelsService, "allDecls" | "checkModelPresent
80
80
  * presence-marked, never a run-time surprise; LLM-powered enhance
81
81
  * stays the user's ✦ door, never served here). Throws LOUD
82
82
  * on unknown ids (the door maps to 404). */
83
- export declare function loadCard(repo: string, cards: CardRegistryService, modelsSeat: CardModelsSeat | null | undefined, cardId: string): Record<string, unknown>;
83
+ export declare function loadCard(repo: string, cards: CardRegistryService, modelsSeat: CardModelsSeat | null | undefined, cardId: string, stateRoot?: string): Record<string, unknown>;
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+ export declare function flowBenchStages(row: RegistryFlow, seat: FlowsSeat): {
120
+ flow: string;
121
+ stages: Array<Record<string, unknown>>;
122
+ } | {
123
+ flow: string;
124
+ refused: string;
125
+ };
84
126
  /** Melite load for a FLOW: the leaf agents md + the registry
85
127
  * signature (the tool overlay verbatim — ONE spelling, the same
86
128
  * object validate/start enforce; null when the row declares
@@ -89,6 +131,6 @@ export declare function loadCard(repo: string, cards: CardRegistryService, model
89
131
  /** @param modelsSeat the context's models service when mounted — the
90
132
  * flow's skill lines resolve through the seat the runs doors
91
133
  * thread (the lane-seat law); the booted singleton otherwise */
92
- export declare function loadFlow(repo: string, flowName: string, modelsSeat?: FamilyModelsSeat | null, flowsSeat?: FlowsSeat | null): Record<string, unknown>;
134
+ export declare function loadFlow(repo: string, flowName: string, modelsSeat?: FamilyModelsSeat | null, flowsSeat?: FlowsSeat | null, stateRoot?: string): Record<string, unknown>;
93
135
  /** First-non-blank query value (the catalogs qFirst shape). */
94
136
  //# sourceMappingURL=loadPlane.d.ts.map