@melite/estate-queue 0.0.0-stage → 0.1.5-pre-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.
- package/LICENSE +557 -0
- package/README.md +54 -2
- package/lib/bakeParams.d.ts +17 -0
- package/lib/bakeParams.js +182 -0
- package/lib/bench.d.ts +32 -0
- package/lib/bench.js +111 -0
- package/lib/cardsArmError.d.ts +61 -0
- package/lib/cardsArmError.js +57 -0
- package/lib/cardsCompose.d.ts +53 -0
- package/lib/cardsCompose.js +295 -0
- package/lib/cardsDangling.d.ts +16 -0
- package/lib/cardsDangling.js +213 -0
- package/lib/cardsFacts.d.ts +87 -0
- package/lib/cardsFacts.js +78 -0
- package/lib/cardsLanes.d.ts +43 -0
- package/lib/cardsLanes.js +178 -0
- package/lib/cardsRegistry.d.ts +404 -0
- package/lib/cardsRegistry.js +1543 -0
- package/lib/cardsVariant.d.ts +37 -0
- package/lib/cardsVariant.js +243 -0
- package/lib/discloseRegistry.d.ts +95 -0
- package/lib/discloseRegistry.js +156 -0
- package/lib/filmLead.d.ts +4 -0
- package/lib/filmLead.js +17 -0
- package/lib/filmMemoryWarn.d.ts +27 -0
- package/lib/filmMemoryWarn.js +99 -0
- package/lib/flowsData.d.ts +234 -0
- package/lib/flowsData.js +673 -0
- package/lib/flowsFamilyCompose.d.ts +45 -0
- package/lib/flowsFamilyCompose.js +191 -0
- package/lib/flowsParamsOverlay.d.ts +55 -0
- package/lib/flowsParamsOverlay.js +197 -0
- package/lib/flowsRegistryRows.d.ts +12 -0
- package/lib/flowsRegistryRows.js +520 -0
- package/lib/index.d.ts +47 -0
- package/lib/index.js +75 -0
- package/lib/ledgerTail.d.ts +20 -0
- package/lib/ledgerTail.js +123 -0
- package/lib/lifecycleLatch.d.ts +16 -0
- package/lib/lifecycleLatch.js +42 -0
- package/lib/loadPlane.d.ts +94 -0
- package/lib/loadPlane.js +570 -0
- package/lib/loadRegistry.d.ts +22 -0
- package/lib/loadRegistry.js +55 -0
- package/lib/manageOps.d.ts +27 -0
- package/lib/manageOps.js +162 -0
- package/lib/managePlane.d.ts +151 -0
- package/lib/managePlane.js +1790 -0
- package/lib/manageProbe.d.ts +48 -0
- package/lib/manageProbe.js +165 -0
- package/lib/manageRegistry.d.ts +66 -0
- package/lib/manageRegistry.js +113 -0
- package/lib/managerRail.d.ts +33 -0
- package/lib/managerRail.js +91 -0
- package/lib/mediaKinds.d.ts +3 -0
- package/lib/mediaKinds.js +2 -0
- package/lib/queue.d.ts +9 -0
- package/lib/queue.js +80 -0
- package/lib/queueCore.d.ts +72 -0
- package/lib/queueCore.js +128 -0
- package/lib/queueLifecycle.d.ts +2 -0
- package/lib/queueLifecycle.js +11 -0
- package/lib/queueLock.d.ts +60 -0
- package/lib/queueLock.js +198 -0
- package/lib/queueResurrect.d.ts +59 -0
- package/lib/queueResurrect.js +249 -0
- package/lib/queueRetry.d.ts +36 -0
- package/lib/queueRetry.js +24 -0
- package/lib/queueSidecar.d.ts +149 -0
- package/lib/queueSidecar.js +183 -0
- package/lib/queueSubmit.d.ts +82 -0
- package/lib/queueSubmit.js +191 -0
- package/lib/queueSweep.d.ts +30 -0
- package/lib/queueSweep.js +132 -0
- package/lib/resurrect.d.ts +6 -0
- package/lib/resurrect.js +18 -0
- package/lib/rootsManifest.d.ts +11 -0
- package/lib/rootsManifest.js +11 -0
- package/lib/runsChange.d.ts +61 -0
- package/lib/runsChange.js +79 -0
- package/lib/runsErrorCodes.d.ts +2 -0
- package/lib/runsErrorCodes.js +48 -0
- package/lib/runsExecute.d.ts +52 -0
- package/lib/runsExecute.js +494 -0
- package/lib/runsGates.d.ts +161 -0
- package/lib/runsGates.js +307 -0
- package/lib/runsList.d.ts +78 -0
- package/lib/runsList.js +574 -0
- package/lib/runsRefusalVoices.d.ts +9 -0
- package/lib/runsRefusalVoices.js +96 -0
- package/lib/runsRegistry.d.ts +351 -0
- package/lib/runsRegistry.js +2394 -0
- package/lib/runsSourceEcho.d.ts +81 -0
- package/lib/runsSourceEcho.js +341 -0
- package/lib/runsStart.d.ts +163 -0
- package/lib/runsStart.js +667 -0
- package/lib/runsTypes.d.ts +218 -0
- package/lib/runsTypes.js +289 -0
- package/lib/runsValidate.d.ts +5 -0
- package/lib/runsValidate.js +31 -0
- package/lib/runsValidateArms.d.ts +7 -0
- package/lib/runsValidateArms.js +339 -0
- package/lib/runsValidateInline.d.ts +6 -0
- package/lib/runsValidateInline.js +82 -0
- package/lib/runsValidateRefusals.d.ts +7 -0
- package/lib/runsValidateRefusals.js +18 -0
- package/lib/runsValidateServe.d.ts +15 -0
- package/lib/runsValidateServe.js +276 -0
- package/lib/runsValidateShared.d.ts +84 -0
- package/lib/runsValidateShared.js +88 -0
- package/lib/runsValidateStages.d.ts +32 -0
- package/lib/runsValidateStages.js +511 -0
- package/lib/runsValidateSweeps.d.ts +6 -0
- package/lib/runsValidateSweeps.js +143 -0
- package/lib/service.d.ts +63 -0
- package/lib/service.js +89 -0
- package/lib/skillFrontmatter.d.ts +11 -0
- package/lib/skillFrontmatter.js +46 -0
- package/lib/skillFs.d.ts +24 -0
- package/lib/skillFs.js +78 -0
- package/lib/skillPlane.d.ts +99 -0
- package/lib/skillPlane.js +269 -0
- package/lib/skillRegistry.d.ts +23 -0
- package/lib/skillRegistry.js +55 -0
- package/lib/skillRows.d.ts +127 -0
- package/lib/skillRows.js +468 -0
- package/lib/toolProjection.d.ts +30 -0
- package/lib/toolProjection.js +142 -0
- package/lib/vocab.d.ts +6 -0
- package/lib/vocab.js +18 -0
- package/package.json +48 -4
|
@@ -0,0 +1,520 @@
|
|
|
1
|
+
// flowsRegistryRows.ts — the flow declarations (the SSOT rows).
|
|
2
|
+
|
|
3
|
+
// module of declarations, one line per flow; flowsData.ts keeps the
|
|
4
|
+
// types, the helpers, and the assembled REGISTRY.
|
|
5
|
+
import { CARD_PLANE_ENGINE } from '@melite/contracts/benchStage';
|
|
6
|
+
import { plainStage, initial, fromStage } from "./flowsData.js";
|
|
7
|
+
export const ANNY_HMR_ESTIMATOR = {
|
|
8
|
+
id: "anny-hmr-estimator",
|
|
9
|
+
description: "The estimator photo→Anny chain: " +
|
|
10
|
+
"SAM 3D Body → MHR → SOMA → anny — every link license-cleared for sale " +
|
|
11
|
+
"(SAM License operator-accepted; the rest Apache 2.0). Emits a grounded " +
|
|
12
|
+
"bind-pose body GLB + anny phenotype/local-change params.",
|
|
13
|
+
stages: [
|
|
14
|
+
plainStage({
|
|
15
|
+
id: "estimate",
|
|
16
|
+
engine: CARD_PLANE_ENGINE,
|
|
17
|
+
// the estimator engine of the same verb — family DECL owns
|
|
18
|
+
// the nodes (SAM 3D Body → grounded anny), person_index FIXED
|
|
19
|
+
// at the loudest detection (the verb's chip owns the picker)
|
|
20
|
+
family: "anny",
|
|
21
|
+
action: "estimate_photo",
|
|
22
|
+
description: "SAM 3D Body estimator → grounded anny GLB",
|
|
23
|
+
inputs: { photo: initial("photo") },
|
|
24
|
+
expected: { photo: "image" },
|
|
25
|
+
params: { photo: "$photo" },
|
|
26
|
+
}),
|
|
27
|
+
],
|
|
28
|
+
initialValidators: { photo: "photo" },
|
|
29
|
+
tool: null,
|
|
30
|
+
skillRefs: [],
|
|
31
|
+
};
|
|
32
|
+
export const ANNY_PARAMS = {
|
|
33
|
+
id: "anny-params",
|
|
34
|
+
description: "Preset params → grounded " +
|
|
35
|
+
"Anny body GLB (authored 11-dim rows + verbatim estimated runs " +
|
|
36
|
+
"re-instantiate bit-exact) — the preset-load verb's flow template; the " +
|
|
37
|
+
"anny card's preset picker runs this through the queue and hydrates " +
|
|
38
|
+
"body_glb from its artifacts.",
|
|
39
|
+
stages: [
|
|
40
|
+
plainStage({
|
|
41
|
+
id: "instantiate",
|
|
42
|
+
engine: CARD_PLANE_ENGINE,
|
|
43
|
+
// the preset-load verb's backend — the verbatim bake the
|
|
44
|
+
// family declares (params_json rides verbatim; the bake
|
|
45
|
+
// validator judged the json at the initial gate)
|
|
46
|
+
family: "anny",
|
|
47
|
+
action: "bake",
|
|
48
|
+
description: "Preset params → grounded anny GLB",
|
|
49
|
+
inputs: { params_json: initial("params_json") },
|
|
50
|
+
expected: { params_json: "text" },
|
|
51
|
+
params: { params_json: "$params_json" },
|
|
52
|
+
}),
|
|
53
|
+
],
|
|
54
|
+
initialValidators: { params_json: "bake_params" },
|
|
55
|
+
tool: null,
|
|
56
|
+
skillRefs: [],
|
|
57
|
+
};
|
|
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
|
+
export const FIT_SEAT = {
|
|
167
|
+
id: "fit-seat",
|
|
168
|
+
description: "Seat a static prop onto a SOMAX body under the meld fit laws (the " +
|
|
169
|
+
"dress/prop verb engine): the meld row assembles in-pack from the verb's " +
|
|
170
|
+
"own vocabulary, and the request MUST carry `bone` (the bone that " +
|
|
171
|
+
"carries the prop — the door refuses without it), " +
|
|
172
|
+
"FitProp grafts, the turnaround proves.",
|
|
173
|
+
stages: [
|
|
174
|
+
plainStage({
|
|
175
|
+
id: "seat",
|
|
176
|
+
engine: CARD_PLANE_ENGINE,
|
|
177
|
+
description: "FitRow (knobs -> meld row) -> FitProp (graft) -> proof views",
|
|
178
|
+
// THE TWO FILES AND THE BONE (the rest of the fit row is the
|
|
179
|
+
// verb's own vocabulary inside the action — stroke-89's law).
|
|
180
|
+
// The bone is a BARE NAME, so it rides the text initial kind,
|
|
181
|
+
// and it is REQUIRED: the vendor's row gate refuses an empty
|
|
182
|
+
// one, so a request without it must learn that at the door.
|
|
183
|
+
inputs: { body: initial("body"), prop: initial("prop"), bone: initial("bone") },
|
|
184
|
+
expected: { body: "mesh", prop: "mesh", bone: "text" },
|
|
185
|
+
// THE VERB'S BACKEND IS A DECLARED ACTION (the atom
|
|
186
|
+
// 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;
|
|
189
|
+
// the declaration owns the graph (SubActionMod law — the
|
|
190
|
+
|
|
191
|
+
// the sanctioned seam, not a revival).
|
|
192
|
+
family: "fit",
|
|
193
|
+
action: "seat",
|
|
194
|
+
// THE TWO FILES AND THE BONE ARE THE REQUEST (the door's own
|
|
195
|
+
// type now admits a text initial, so a bone rides like any
|
|
196
|
+
// other value); THE FIT ROW IS THE VERB'S (stroke-89's law —
|
|
197
|
+
// the merged worker refused an unlinkable `$fit_ratio`).
|
|
198
|
+
params: { body: "$body", prop: "$prop", bone: "$bone" },
|
|
199
|
+
}),
|
|
200
|
+
],
|
|
201
|
+
initialValidators: { body: "glb", prop: "glb", bone: "text" },
|
|
202
|
+
requiredInitials: ["bone"],
|
|
203
|
+
tool: null,
|
|
204
|
+
skillRefs: [],
|
|
205
|
+
};
|
|
206
|
+
export const IMAGE_UPSCALE = {
|
|
207
|
+
id: "image-upscale",
|
|
208
|
+
description: "Prompt → image → 1080p SeedVR2 upscale, one card per stroke (the first " +
|
|
209
|
+
"two-card flow: image-gen + upscale-tools card= stages; image_model picks " +
|
|
210
|
+
"the generator). RUNS on the {flow:} door (2026-10-04: the VALIDATE-ONLY " +
|
|
211
|
+
"stamp is GONE — both card stages compose through the card plane and " +
|
|
212
|
+
"submit as one merged run); the {model:} door drives a single card.",
|
|
213
|
+
stages: [
|
|
214
|
+
plainStage({
|
|
215
|
+
id: "make",
|
|
216
|
+
engine: CARD_PLANE_ENGINE,
|
|
217
|
+
card: "image-gen",
|
|
218
|
+
description: "T2I via the image-gen card (the named model's own generate_t2i.json)",
|
|
219
|
+
inputs: { prompt: initial("prompt") },
|
|
220
|
+
|
|
221
|
+
expected: { prompt: "text" },
|
|
222
|
+
cardIo: { image: "image" },
|
|
223
|
+
params: { model: "krea-2", prompt: "$prompt", seed: 42 },
|
|
224
|
+
}),
|
|
225
|
+
plainStage({
|
|
226
|
+
id: "polish",
|
|
227
|
+
engine: CARD_PLANE_ENGINE,
|
|
228
|
+
card: "upscale-tools",
|
|
229
|
+
description: "SeedVR2 1080p upscale via the upscale-tools card",
|
|
230
|
+
inputs: { image: fromStage("make", "image") },
|
|
231
|
+
expected: { image: "image" },
|
|
232
|
+
cardIo: { image: "image" },
|
|
233
|
+
params: {
|
|
234
|
+
model: "seedvr2_ema",
|
|
235
|
+
input_image: "$image",
|
|
236
|
+
filename_prefix: "image-upscale",
|
|
237
|
+
seed: 42,
|
|
238
|
+
},
|
|
239
|
+
}),
|
|
240
|
+
],
|
|
241
|
+
initialValidators: { prompt: "text" },
|
|
242
|
+
tool: {
|
|
243
|
+
name: "image_upscale",
|
|
244
|
+
version: 1,
|
|
245
|
+
description: "Generate an image from a prompt and upscale it to 1080p in one call " +
|
|
246
|
+
"(krea-2 or z-image generator, SeedVR2 upscale always on). One POST runs " +
|
|
247
|
+
"the whole flow.",
|
|
248
|
+
properties: {
|
|
249
|
+
image_model: {
|
|
250
|
+
ptype: "string",
|
|
251
|
+
description: "the generator family (no default: pick one)",
|
|
252
|
+
default: null,
|
|
253
|
+
hasDefault: false,
|
|
254
|
+
minimum: null,
|
|
255
|
+
maximum: null,
|
|
256
|
+
enum: ["krea-2", "z-image"],
|
|
257
|
+
},
|
|
258
|
+
prompt: {
|
|
259
|
+
ptype: "string",
|
|
260
|
+
description: "what to generate (up to 4000 chars)",
|
|
261
|
+
default: null,
|
|
262
|
+
hasDefault: false,
|
|
263
|
+
minimum: null,
|
|
264
|
+
maximum: null,
|
|
265
|
+
enum: null,
|
|
266
|
+
},
|
|
267
|
+
seed: {
|
|
268
|
+
ptype: "integer",
|
|
269
|
+
description: "sampler seed",
|
|
270
|
+
default: 42,
|
|
271
|
+
hasDefault: true,
|
|
272
|
+
minimum: 0,
|
|
273
|
+
maximum: 2147483647,
|
|
274
|
+
enum: null,
|
|
275
|
+
},
|
|
276
|
+
},
|
|
277
|
+
required: ["image_model", "prompt"],
|
|
278
|
+
overlays: [
|
|
279
|
+
{
|
|
280
|
+
param: "image_model",
|
|
281
|
+
stage: "make",
|
|
282
|
+
path: ["model"],
|
|
283
|
+
choices: { "krea-2": "krea-2", "z-image": "z-image" },
|
|
284
|
+
},
|
|
285
|
+
{ param: "seed", stage: "make", path: ["seed"], choices: null },
|
|
286
|
+
{ param: "seed", stage: "polish", path: ["seed"], choices: null },
|
|
287
|
+
],
|
|
288
|
+
},
|
|
289
|
+
skillRefs: [
|
|
290
|
+
"card:image-gen",
|
|
291
|
+
"card:upscale-tools",
|
|
292
|
+
"model:krea-2",
|
|
293
|
+
"model:krea-2:prompt-enhance",
|
|
294
|
+
"model:z-image:prompt-enhance",
|
|
295
|
+
],
|
|
296
|
+
};
|
|
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
|
+
export const CRAFT_LOOP = {
|
|
357
|
+
id: "craft-loop",
|
|
358
|
+
description: "The agentic craft loop: a named image-capable model route critiques " +
|
|
359
|
+
"each capture and decides the next act command until done (or the " +
|
|
360
|
+
"iteration cap). The act leg rides ANY registered engine (comfyui " +
|
|
361
|
+
"graphs, mcp:blender tool calls); captures land in the run dir and " +
|
|
362
|
+
"attach to the critique. Driven by the runs door with engine " +
|
|
363
|
+
"'craft' stages — see flows/craft-loop/agents/AGENT.md.",
|
|
364
|
+
stages: [
|
|
365
|
+
plainStage({
|
|
366
|
+
id: "loop",
|
|
367
|
+
engine: "craft",
|
|
368
|
+
description: "act → capture → critique → decide (the loop engine)",
|
|
369
|
+
inputs: {},
|
|
370
|
+
outputs: { default: "image" },
|
|
371
|
+
params: {},
|
|
372
|
+
}),
|
|
373
|
+
],
|
|
374
|
+
initialValidators: {},
|
|
375
|
+
tool: null,
|
|
376
|
+
skillRefs: [],
|
|
377
|
+
};
|
|
378
|
+
export const CHARACTER_FACTORY = {
|
|
379
|
+
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).",
|
|
390
|
+
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
|
+
plainStage({
|
|
404
|
+
id: "rig",
|
|
405
|
+
engine: CARD_PLANE_ENGINE,
|
|
406
|
+
card: "rig",
|
|
407
|
+
description: "SOMA-77 auto-rig via the rig card (BODY_TO_SOMAX's lane, chained)",
|
|
408
|
+
inputs: { mesh: fromStage("lift", "mesh") },
|
|
409
|
+
expected: { mesh: "mesh" },
|
|
410
|
+
outputs: { body: "mesh" },
|
|
411
|
+
cardIo: { body: "mesh" },
|
|
412
|
+
// no model pin (BODY_TO_SOMAX's law): mode auto selects the
|
|
413
|
+
// gem_soma family; the card's own contract owns the default
|
|
414
|
+
params: { mesh_glb: "$mesh", mode: "auto", preserve_texture: true },
|
|
415
|
+
}),
|
|
416
|
+
plainStage({
|
|
417
|
+
id: "motion",
|
|
418
|
+
engine: CARD_PLANE_ENGINE,
|
|
419
|
+
card: "motion",
|
|
420
|
+
description: "Kimodo text→motion skinned onto the rigged mesh (somax bake in-graph)",
|
|
421
|
+
inputs: { prompt: initial("prompt"), preview: fromStage("rig", "body") },
|
|
422
|
+
expected: { prompt: "text", preview: "mesh" },
|
|
423
|
+
// the card's two native channels ride verbatim (no rename: the
|
|
424
|
+
// flowOutputBindings bind motion_npz + animated_glb by name)
|
|
425
|
+
outputs: { motion_npz: "data", animated_glb: "mesh" },
|
|
426
|
+
cardIo: { motion_npz: "data", animated_glb: "mesh" },
|
|
427
|
+
params: { model: "kimodo", prompt: "$prompt", preview_glb: "$preview" },
|
|
428
|
+
}),
|
|
429
|
+
],
|
|
430
|
+
initialValidators: { photo: "photo", prompt: "text" },
|
|
431
|
+
requiredInitials: ["photo", "prompt"],
|
|
432
|
+
tool: null,
|
|
433
|
+
skillRefs: [],
|
|
434
|
+
};
|
|
435
|
+
|
|
436
|
+
// the quad-remesh card and its vendored pack left with the pack the
|
|
437
|
+
// owner removed from the system — object-forge is the lift's tri
|
|
438
|
+
// mesh today.
|
|
439
|
+
export const OBJECT_FORGE = {
|
|
440
|
+
id: "object-forge",
|
|
441
|
+
description: "Prompt → concept render → textured mesh, one card per stage " +
|
|
442
|
+
"(image-gen + img-to-mesh; both card=, so the {flow:} door submits " +
|
|
443
|
+
"one merged run — image-upscale's 2026-10-04 shape). Emits the " +
|
|
444
|
+
"lift's textured tri mesh.",
|
|
445
|
+
stages: [
|
|
446
|
+
plainStage({
|
|
447
|
+
id: "concept",
|
|
448
|
+
engine: CARD_PLANE_ENGINE,
|
|
449
|
+
card: "image-gen",
|
|
450
|
+
description: "Concept render via the image-gen card (z-image default)",
|
|
451
|
+
inputs: { prompt: initial("prompt") },
|
|
452
|
+
|
|
453
|
+
expected: { prompt: "text" },
|
|
454
|
+
cardIo: { image: "image" },
|
|
455
|
+
params: { model: "z-image", prompt: "$prompt" },
|
|
456
|
+
}),
|
|
457
|
+
plainStage({
|
|
458
|
+
id: "lift",
|
|
459
|
+
engine: CARD_PLANE_ENGINE,
|
|
460
|
+
card: "img-to-mesh",
|
|
461
|
+
description: "Image → textured mesh via the img-to-mesh card (trellis2-native, " +
|
|
462
|
+
"no pack; repair knobs ride the card's own defaults)",
|
|
463
|
+
inputs: { concept: fromStage("concept", "image") },
|
|
464
|
+
expected: { concept: "image" },
|
|
465
|
+
cardIo: { mesh: "mesh" },
|
|
466
|
+
params: { model: "trellis2-native", input_image: "$concept" },
|
|
467
|
+
}),
|
|
468
|
+
],
|
|
469
|
+
initialValidators: { prompt: "text" },
|
|
470
|
+
tool: {
|
|
471
|
+
name: "object_forge",
|
|
472
|
+
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.",
|
|
476
|
+
properties: {
|
|
477
|
+
prompt: {
|
|
478
|
+
ptype: "string",
|
|
479
|
+
description: "the object — one clear subject; a plain background reads best",
|
|
480
|
+
default: null,
|
|
481
|
+
hasDefault: false,
|
|
482
|
+
minimum: null,
|
|
483
|
+
maximum: null,
|
|
484
|
+
enum: null,
|
|
485
|
+
},
|
|
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
|
+
image_model: {
|
|
496
|
+
ptype: "string",
|
|
497
|
+
description: "the concept generator family",
|
|
498
|
+
default: "z-image",
|
|
499
|
+
hasDefault: true,
|
|
500
|
+
minimum: null,
|
|
501
|
+
maximum: null,
|
|
502
|
+
enum: ["z-image", "krea-2"],
|
|
503
|
+
},
|
|
504
|
+
},
|
|
505
|
+
required: ["prompt"],
|
|
506
|
+
overlays: [
|
|
507
|
+
{
|
|
508
|
+
param: "image_model",
|
|
509
|
+
stage: "concept",
|
|
510
|
+
path: ["model"],
|
|
511
|
+
choices: { "z-image": "z-image", "krea-2": "krea-2" },
|
|
512
|
+
},
|
|
513
|
+
{ param: "target_quads", stage: "remesh", path: ["target_quads"], choices: null },
|
|
514
|
+
],
|
|
515
|
+
},
|
|
516
|
+
// ref would resolve null (the loadPlane null arm, never fired
|
|
517
|
+
// before this row); its craft lives in the leaf skill instead.
|
|
518
|
+
skillRefs: ["card:image-gen", "card:img-to-mesh", "model:z-image:prompt-enhance"],
|
|
519
|
+
};
|
|
520
|
+
//# sourceMappingURL=flowsRegistryRows.js.map
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { Context, Plugin } from "@deepseek-ai/cordis";
|
|
2
|
+
import type { QueueConfig } from "./service.js";
|
|
3
|
+
export { QueueService } from "./service.js";
|
|
4
|
+
export { RunsRuntimeService } from "./runsRegistry.js";
|
|
5
|
+
export { ManageGatewayService } from "./manageRegistry.js";
|
|
6
|
+
export type { QueueConfig } from "./service.js";
|
|
7
|
+
export * from "./vocab.js";
|
|
8
|
+
export * from "./queue.js";
|
|
9
|
+
export { bootSweep } from "./resurrect.js";
|
|
10
|
+
export declare const name = "estate-queue";
|
|
11
|
+
export declare const inject: string[];
|
|
12
|
+
export declare function apply(ctx: Context, config?: QueueConfig): void;
|
|
13
|
+
declare const plugin: Plugin;
|
|
14
|
+
export default plugin;
|
|
15
|
+
export * from "./runsGates.js";
|
|
16
|
+
export { findSkill, disclosureRoot } from "./skillPlane.js";
|
|
17
|
+
export type { FamilyModelsSeat } from "./flowsFamilyCompose.js";
|
|
18
|
+
export * from "./runsList.js";
|
|
19
|
+
export * from "./mediaKinds.js";
|
|
20
|
+
export * from "./runsTypes.js";
|
|
21
|
+
export * from "./runsStart.js";
|
|
22
|
+
export * from "./rootsManifest.js";
|
|
23
|
+
export * from "./discloseRegistry.js";
|
|
24
|
+
export * from "./skillPlane.js";
|
|
25
|
+
export * from "./skillRegistry.js";
|
|
26
|
+
export * from "./loadPlane.js";
|
|
27
|
+
export * from "./loadRegistry.js";
|
|
28
|
+
export * from "./toolProjection.js";
|
|
29
|
+
export * from "./ledgerTail.js";
|
|
30
|
+
export * from "./managePlane.js";
|
|
31
|
+
export * from "./manageRegistry.js";
|
|
32
|
+
export * from "./flowsData.js";
|
|
33
|
+
export * from "./runsValidate.js";
|
|
34
|
+
export * from "./cardsRegistry.js";
|
|
35
|
+
export { factsPath } from "./cardsFacts.js";
|
|
36
|
+
/** The runs registry row: mounts the live-run service (REBUILD-6).
|
|
37
|
+
* Inject gates on the queue + drafts + card-registry seats (the
|
|
38
|
+
* fiber's read contract — loader-mounted fibers enforce the
|
|
39
|
+
* tutorial's inject law on property reads; the service class's own
|
|
40
|
+
* static inject lists the same three); the estate-runs adapters
|
|
41
|
+
* (Typert) ride after this row. */
|
|
42
|
+
export declare const runsRegistryPlugin: {
|
|
43
|
+
name: string;
|
|
44
|
+
inject: readonly ["queue", "draftsRemote", "cardRegistry"];
|
|
45
|
+
apply(ctx: Context): void;
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { QueueService } from "./service.js";
|
|
2
|
+
import { RunsRuntimeService } from "./runsRegistry.js";
|
|
3
|
+
export { QueueService } from "./service.js";
|
|
4
|
+
|
|
5
|
+
// remotes each re-declared `runs`/`manage` on Context with a
|
|
6
|
+
// hand-rolled structural interface while this package declared the
|
|
7
|
+
// same keys with the real classes — TS2717, a conflict no program
|
|
8
|
+
// had ever composed before the walls plane typechecked. ONE owner
|
|
9
|
+
// per key, typed with what actually mounts.)
|
|
10
|
+
export { RunsRuntimeService } from "./runsRegistry.js";
|
|
11
|
+
export { ManageGatewayService } from "./manageRegistry.js";
|
|
12
|
+
export * from "./vocab.js";
|
|
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
|
+
import { FlowsSeatService } from "./flowsData.js";
|
|
19
|
+
export const name = "estate-queue";
|
|
20
|
+
export const inject = ["timer"];
|
|
21
|
+
export function apply(ctx, config = {}) {
|
|
22
|
+
|
|
23
|
+
// registry's live table is service instance state, its seed rows
|
|
24
|
+
// fiber-owned (ctx.effect in the constructor — the models
|
|
25
|
+
// registerFamily precedent). Every later row reads it through
|
|
26
|
+
// ctx.get("meliteFlows"); the queue itself needs no inject for a
|
|
27
|
+
// same-row service it never property-reads.
|
|
28
|
+
new FlowsSeatService(ctx);
|
|
29
|
+
new QueueService(ctx, config);
|
|
30
|
+
}
|
|
31
|
+
const plugin = { name, inject, apply };
|
|
32
|
+
export default plugin;
|
|
33
|
+
export * from "./runsGates.js";
|
|
34
|
+
// The skill-serving path (stroke 62): findSkill + disclosureRoot —
|
|
35
|
+
// the agent engine's spawn-injection reader rides these over the
|
|
36
|
+
// SAME storage melite_load serves (never a second skill tree).
|
|
37
|
+
export { findSkill, disclosureRoot } from "./skillPlane.js";
|
|
38
|
+
// THE LIVE BENCH (the selection's only source — the catalog law)
|
|
39
|
+
// stays PACKAGE-INTERNAL since the dry-sweep's J18: the only live
|
|
40
|
+
// reader is skillPlane's buildSkillIndex (benchPicksSync, direct
|
|
41
|
+
// src import); the index face's re-exports had zero external
|
|
42
|
+
// importers, and the async twin + fingerprint rode no consumer at
|
|
43
|
+
// all. The spec pins the law through direct src imports.
|
|
44
|
+
export * from "./runsList.js";
|
|
45
|
+
export * from "./mediaKinds.js";
|
|
46
|
+
export * from "./runsTypes.js";
|
|
47
|
+
export * from "./runsStart.js";
|
|
48
|
+
export * from "./rootsManifest.js";
|
|
49
|
+
export * from "./discloseRegistry.js";
|
|
50
|
+
export * from "./skillPlane.js";
|
|
51
|
+
export * from "./skillRegistry.js";
|
|
52
|
+
export * from "./loadPlane.js";
|
|
53
|
+
export * from "./loadRegistry.js";
|
|
54
|
+
export * from "./toolProjection.js";
|
|
55
|
+
export * from "./ledgerTail.js";
|
|
56
|
+
export * from "./managePlane.js";
|
|
57
|
+
export * from "./manageRegistry.js";
|
|
58
|
+
export * from "./flowsData.js";
|
|
59
|
+
export * from "./runsValidate.js";
|
|
60
|
+
export * from "./cardsRegistry.js";
|
|
61
|
+
export { factsPath } from "./cardsFacts.js";
|
|
62
|
+
/** The runs registry row: mounts the live-run service (REBUILD-6).
|
|
63
|
+
* Inject gates on the queue + drafts + card-registry seats (the
|
|
64
|
+
* fiber's read contract — loader-mounted fibers enforce the
|
|
65
|
+
* tutorial's inject law on property reads; the service class's own
|
|
66
|
+
* static inject lists the same three); the estate-runs adapters
|
|
67
|
+
* (Typert) ride after this row. */
|
|
68
|
+
export const runsRegistryPlugin = {
|
|
69
|
+
name: "estate-runs-registry",
|
|
70
|
+
inject: ["queue", "draftsRemote", "cardRegistry"],
|
|
71
|
+
apply(ctx) {
|
|
72
|
+
new RunsRuntimeService(ctx);
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** The parsed tail answer (the seat serves the object; the door
|
|
2
|
+
* serialized it — the HTTP rim is dead). */
|
|
3
|
+
export interface LedgerTailAnswer {
|
|
4
|
+
entries: unknown[];
|
|
5
|
+
shown: number;
|
|
6
|
+
matched: number;
|
|
7
|
+
/** §23: the roots whose journals merged into this tail (exact
|
|
8
|
+
* manifest order; absent only in the single-root legacy call). */
|
|
9
|
+
searched?: string[];
|
|
10
|
+
}
|
|
11
|
+
export declare function tailLedger(ledgerPath: string, rawLimit: string, rawEvent: string): LedgerTailAnswer;
|
|
12
|
+
/** §23 CROSS-ROOTS: every root's journal, one merged timeline. The
|
|
13
|
+
* per-file law rides VERBATIM first (match + last-N window per
|
|
14
|
+
* root — an unparseable line still occupies its slot); the
|
|
15
|
+
* per-file TAILS then merge by ts (stable — a tie keeps manifest
|
|
16
|
+
* order, own root first) and the last N merged serve. matched
|
|
17
|
+
* counts every root's matches. The answer names the searched
|
|
18
|
+
* roots. A single root degenerates to tailLedger exactly. */
|
|
19
|
+
export declare function tailLedgerAcross(roots: string[], rawLimit: string, rawEvent: string): LedgerTailAnswer;
|
|
20
|
+
//# sourceMappingURL=ledgerTail.d.ts.map
|