@melite/estate-queue 0.1.5-pre-alpha → 0.2.0-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 +561 -457
- package/lib/cardsArmError.d.ts +52 -3
- package/lib/cardsArmError.js +7 -1
- package/lib/cardsCompose.js +43 -7
- package/lib/cardsFacts.d.ts +16 -0
- package/lib/cardsFacts.js +25 -1
- package/lib/cardsLanes.d.ts +51 -3
- package/lib/cardsLanes.js +337 -13
- package/lib/cardsLanesCopy.d.ts +21 -0
- package/lib/cardsLanesCopy.js +22 -0
- package/lib/cardsRegistry.d.ts +102 -5
- package/lib/cardsRegistry.js +668 -45
- package/lib/cardsVariant.d.ts +12 -7
- package/lib/cardsVariant.js +196 -58
- package/lib/discloseRegistry.d.ts +36 -6
- package/lib/discloseRegistry.js +153 -15
- package/lib/filmLead.js +5 -3
- package/lib/flowsData.d.ts +1 -1
- package/lib/flowsData.js +7 -4
- package/lib/flowsFamilyCompose.js +12 -1
- package/lib/flowsRegistryRows.d.ts +1 -0
- package/lib/flowsRegistryRows.js +193 -35
- package/lib/index.d.ts +1 -0
- package/lib/index.js +6 -0
- package/lib/loadPlane.js +9 -0
- package/lib/manageOps.js +2 -1
- package/lib/managePlane.d.ts +11 -1
- package/lib/managePlane.js +559 -24
- package/lib/managePreflight.d.ts +26 -0
- package/lib/managePreflight.js +179 -0
- package/lib/manageProbe.d.ts +17 -0
- package/lib/manageProbe.js +61 -1
- package/lib/queueCore.d.ts +14 -1
- package/lib/queueCore.js +13 -0
- package/lib/queueResurrect.d.ts +7 -2
- package/lib/queueResurrect.js +25 -6
- package/lib/queueSidecar.d.ts +110 -1
- package/lib/queueSidecar.js +177 -7
- package/lib/queueSubmit.d.ts +67 -4
- package/lib/queueSubmit.js +133 -4
- package/lib/runsErrorCodes.js +5 -3
- package/lib/runsExecute.js +44 -4
- package/lib/runsGates.d.ts +5 -1
- package/lib/runsGates.js +6 -2
- package/lib/runsList.d.ts +43 -3
- package/lib/runsList.js +159 -39
- package/lib/runsRefusalVoices.js +50 -1
- package/lib/runsRegistry.d.ts +84 -6
- package/lib/runsRegistry.js +515 -105
- package/lib/runsStart.d.ts +24 -3
- package/lib/runsStart.js +128 -13
- package/lib/runsTypes.d.ts +27 -2
- package/lib/runsTypes.js +23 -6
- package/lib/runsValidateServe.js +20 -10
- package/lib/runsValidateShared.d.ts +9 -0
- package/lib/runsValidateShared.js +14 -0
- package/lib/runsValidateStages.js +21 -9
- package/lib/runtimeProvision.d.ts +119 -0
- package/lib/runtimeProvision.js +243 -0
- package/lib/skillRows.js +7 -2
- package/package.json +18 -18
package/lib/flowsData.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export interface RegistryStage {
|
|
|
44
44
|
readonly fromFlow: RegistryFromFlow | null;
|
|
45
45
|
}
|
|
46
46
|
/** The compile-time initial kinds (flow.initial_validators). */
|
|
47
|
-
export type RegistryInitialKind = "photo" | "glb" | "bake_params" | "text";
|
|
47
|
+
export type RegistryInitialKind = "photo" | "video" | "glb" | "bake_params" | "text";
|
|
48
48
|
/** One headless-tool overlay (FlowToolOverlay: tool param -> the
|
|
49
49
|
* stage doc path it stamps, with the value choices map). */
|
|
50
50
|
export interface RegistryToolOverlay {
|
package/lib/flowsData.js
CHANGED
|
@@ -81,7 +81,7 @@ export function linkedStage(flow, stage, id, inputs) {
|
|
|
81
81
|
* (default unlimited), inputs (the plus-box list). The stage
|
|
82
82
|
* params carry those fields at DRIVE time; the registry row is
|
|
83
83
|
* the template + the agent leaf. */
|
|
84
|
-
import { BODY_TO_SOMAX, ANNY_HMR_ESTIMATOR, ANNY_PARAMS, AUDIO_NATIVE_TTS, CHARACTER_FACTORY, FIT_SEAT, IMAGE_UPSCALE, MUSIC_NATIVE, CRAFT_LOOP, OBJECT_FORGE, } from "./flowsRegistryRows.js";
|
|
84
|
+
import { BODY_TO_SOMAX, ANNY_HMR_ESTIMATOR, ANNY_PARAMS, AUDIO_NATIVE_TTS, CHARACTER_FACTORY, FIT_SEAT, IMAGE_UPSCALE, MUSIC_NATIVE, CRAFT_LOOP, OBJECT_FORGE, VIDEO_EXTEND, } from "./flowsRegistryRows.js";
|
|
85
85
|
import { Service } from "@deepseek-ai/cordis";
|
|
86
86
|
const REGISTRY = {
|
|
87
87
|
"craft-loop": CRAFT_LOOP,
|
|
@@ -90,6 +90,7 @@ const REGISTRY = {
|
|
|
90
90
|
"character-factory": CHARACTER_FACTORY,
|
|
91
91
|
"anny-params": ANNY_PARAMS,
|
|
92
92
|
"audio-native-tts": AUDIO_NATIVE_TTS,
|
|
93
|
+
"extend-video": VIDEO_EXTEND,
|
|
93
94
|
"fit-seat": FIT_SEAT,
|
|
94
95
|
"image-upscale": IMAGE_UPSCALE,
|
|
95
96
|
"music-native": MUSIC_NATIVE,
|
|
@@ -386,12 +387,14 @@ function checkFileInitial(key, kind, value, roots) {
|
|
|
386
387
|
? raw.split(/[?#]/)[0].slice(dot + 1).toLowerCase()
|
|
387
388
|
: "";
|
|
388
389
|
// The vocab is TYPED DATA now (mediaKinds.ts, REBUILD-7) — no
|
|
389
|
-
// repo-anchored kindsPath read survives the re-home.
|
|
390
|
+
// repo-anchored kindsPath read survives the re-home. The video
|
|
391
|
+
// kind rides the same vocab's video list (the extend-video flow's
|
|
392
|
+
// prior-clip initial — mp4/webm/mkv/mov/m4v/avi).
|
|
390
393
|
const kinds = mediaVocab();
|
|
391
|
-
const allowed = kind === "photo" ? kinds.image : kinds.model;
|
|
394
|
+
const allowed = kind === "photo" ? kinds.image : kind === "video" ? kinds.video : kinds.model;
|
|
392
395
|
if (!allowed.includes(ext)) {
|
|
393
396
|
return ("initial " + JSON.stringify(key) + " is not a stageable " +
|
|
394
|
-
(kind === "photo" ? "image" : "mesh") + " (got extension " +
|
|
397
|
+
(kind === "photo" ? "image" : kind === "video" ? "video" : "mesh") + " (got extension " +
|
|
395
398
|
JSON.stringify(ext) + ")");
|
|
396
399
|
}
|
|
397
400
|
if (raw.includes("..")) {
|
|
@@ -158,12 +158,23 @@ function composeOne(flowId, st, decls, seatState) {
|
|
|
158
158
|
if (firstOutput !== undefined) {
|
|
159
159
|
producer[firstOutput.name] = handle.nodeId;
|
|
160
160
|
}
|
|
161
|
+
// THE VRAM BUDGET RIDES THE DECLARATION ("ComfyUI should prevent
|
|
162
|
+
|
|
163
|
+
// VRAM auto): an action that declares vramBudgetMb stamps its
|
|
164
|
+
// composed stage's params with the raw knob — the same channel
|
|
165
|
+
// timeout_s reads — and the execute door gates on it (prove
|
|
166
|
+
// headroom or refuse loud; never a mid-run OOM, never a /free).
|
|
167
|
+
// Stamped ONLY when declared: actions without a budget keep the
|
|
168
|
+
// envelope byte-identical (no key, no gate, no traffic).
|
|
169
|
+
const vramBudget = action.vramBudgetMb;
|
|
161
170
|
return {
|
|
162
171
|
...st,
|
|
163
172
|
family: "",
|
|
164
173
|
action: "",
|
|
165
174
|
outputs: derived,
|
|
166
|
-
params:
|
|
175
|
+
params: vramBudget === undefined
|
|
176
|
+
? { workflow: g.toJSON(), output_nodes: producer }
|
|
177
|
+
: { workflow: g.toJSON(), output_nodes: producer, vram_budget_mb: vramBudget },
|
|
167
178
|
};
|
|
168
179
|
}
|
|
169
180
|
/** Compose every family-action stage of an expanded flow into its
|
|
@@ -5,6 +5,7 @@ export declare const AUDIO_NATIVE_TTS: RegistryFlow;
|
|
|
5
5
|
export declare const BODY_TO_SOMAX: RegistryFlow;
|
|
6
6
|
export declare const FIT_SEAT: RegistryFlow;
|
|
7
7
|
export declare const IMAGE_UPSCALE: RegistryFlow;
|
|
8
|
+
export declare const VIDEO_EXTEND: RegistryFlow;
|
|
8
9
|
export declare const MUSIC_NATIVE: RegistryFlow;
|
|
9
10
|
export declare const CRAFT_LOOP: RegistryFlow;
|
|
10
11
|
export declare const CHARACTER_FACTORY: RegistryFlow;
|
package/lib/flowsRegistryRows.js
CHANGED
|
@@ -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",
|
|
@@ -85,7 +88,13 @@ export const AUDIO_NATIVE_TTS = {
|
|
|
85
88
|
expected: { text: "text" },
|
|
86
89
|
outputs: { wav: "audio" },
|
|
87
90
|
cardIo: { wav: "audio" },
|
|
88
|
-
|
|
91
|
+
// ONE HOME FOR FLOW DEFAULTS (audit 015 C2): no seed stamp —
|
|
92
|
+
// the tts card's own default (-1, random) rules at compose and
|
|
93
|
+
// the seed-sentinel gate mints a fresh take per run, the same
|
|
94
|
+
// take-freshness a GUI card stage gets. A stated seed rides the
|
|
95
|
+
// declared overlay; the stamp that stood here (seed 42) was a
|
|
96
|
+
// second default-write that locked every flow take to 42.
|
|
97
|
+
params: { model: "qwen3-tts", text: "$text" },
|
|
89
98
|
}),
|
|
90
99
|
],
|
|
91
100
|
initialValidators: { text: "text" },
|
|
@@ -107,11 +116,16 @@ export const AUDIO_NATIVE_TTS = {
|
|
|
107
116
|
maximum: null,
|
|
108
117
|
enum: null,
|
|
109
118
|
},
|
|
119
|
+
// ONE HOME FOR FLOW DEFAULTS (audit 015 C2): the tool publishes
|
|
120
|
+
// no seed default — the tts card's own default (-1, fresh mint)
|
|
121
|
+
// rules when the caller omits the seed, so a published number
|
|
122
|
+
// here would advertise a take-lock the run never composes. The
|
|
123
|
+
// overlay stays: a stated seed pins the take.
|
|
110
124
|
seed: {
|
|
111
125
|
ptype: "integer",
|
|
112
|
-
description: "voice sampler seed",
|
|
113
|
-
default:
|
|
114
|
-
hasDefault:
|
|
126
|
+
description: "voice sampler seed (omit for a fresh take — the card mints one)",
|
|
127
|
+
default: null,
|
|
128
|
+
hasDefault: false,
|
|
115
129
|
minimum: 0,
|
|
116
130
|
maximum: 2147483647,
|
|
117
131
|
enum: null,
|
|
@@ -138,7 +152,7 @@ export const BODY_TO_SOMAX = {
|
|
|
138
152
|
engine: CARD_PLANE_ENGINE,
|
|
139
153
|
card: "rig",
|
|
140
154
|
description: "SOMA-77 template weight transfer (barycentric, the autorig pack's " +
|
|
141
|
-
"baked function) via the rig card's auto mode — the
|
|
155
|
+
"baked function) via the rig card's auto mode — the gem-soma " +
|
|
142
156
|
"family's declared rig action composes the KimodoExportFBX segment",
|
|
143
157
|
inputs: { glb: initial("glb") },
|
|
144
158
|
expected: { glb: "mesh" },
|
|
@@ -146,7 +160,7 @@ export const BODY_TO_SOMAX = {
|
|
|
146
160
|
cardIo: { body: "mesh" },
|
|
147
161
|
// THE LANE IS THE FAMILY'S (the atom vocabulary, stroke 3): this
|
|
148
162
|
// stage hand-wired the KimodoExportFBX node in the flow plane —
|
|
149
|
-
// a second copy of the
|
|
163
|
+
// a second copy of the gem-soma rig lane. It names the card +
|
|
150
164
|
// mode; the family's declared action composes the graph.
|
|
151
165
|
// (out_dir/timeout_s are RAW-stage knobs — a card stage's
|
|
152
166
|
// params are card-admitted knobs only; the compose door owns
|
|
@@ -220,7 +234,12 @@ export const IMAGE_UPSCALE = {
|
|
|
220
234
|
|
|
221
235
|
expected: { prompt: "text" },
|
|
222
236
|
cardIo: { image: "image" },
|
|
223
|
-
|
|
237
|
+
// ONE HOME FOR FLOW DEFAULTS (audit 015 C2): no seed stamp on
|
|
238
|
+
// either stage — the image-gen and upscale-tools cards both
|
|
239
|
+
// default seed -1 (fresh mint per stage), so a stamp here (42)
|
|
240
|
+
// was a second default-write that made every flow-driven gen
|
|
241
|
+
// seed-identical unless the caller stated a seed.
|
|
242
|
+
params: { model: "krea-2", prompt: "$prompt" },
|
|
224
243
|
}),
|
|
225
244
|
plainStage({
|
|
226
245
|
id: "polish",
|
|
@@ -231,10 +250,14 @@ export const IMAGE_UPSCALE = {
|
|
|
231
250
|
expected: { image: "image" },
|
|
232
251
|
cardIo: { image: "image" },
|
|
233
252
|
params: {
|
|
234
|
-
model: "
|
|
253
|
+
model: "seedvr2-ema",
|
|
235
254
|
input_image: "$image",
|
|
236
|
-
|
|
237
|
-
|
|
255
|
+
|
|
256
|
+
// upscale-tools card composes its own SaveImage prefix from
|
|
257
|
+
// the run id (seedvr2-ema's action), so the stated key
|
|
258
|
+
// reached NO consumer — dead stage surface the carry wall
|
|
259
|
+
// now refuses. seed left with it (audit 015 C2, the derived
|
|
260
|
+
// sweep's fourth seat): the card's own -1 default mints.
|
|
238
261
|
},
|
|
239
262
|
}),
|
|
240
263
|
],
|
|
@@ -264,11 +287,16 @@ export const IMAGE_UPSCALE = {
|
|
|
264
287
|
maximum: null,
|
|
265
288
|
enum: null,
|
|
266
289
|
},
|
|
290
|
+
// ONE HOME FOR FLOW DEFAULTS (audit 015 C2): the tool publishes
|
|
291
|
+
// no seed default — the make and polish cards both default -1
|
|
292
|
+
// (fresh mint per stage); a published 42 advertised a take-lock
|
|
293
|
+
// the compose never carried. The overlay stays: a stated seed
|
|
294
|
+
// pins both stages.
|
|
267
295
|
seed: {
|
|
268
296
|
ptype: "integer",
|
|
269
|
-
description: "sampler seed",
|
|
270
|
-
default:
|
|
271
|
-
hasDefault:
|
|
297
|
+
description: "sampler seed (omit for fresh takes — each stage's card mints one)",
|
|
298
|
+
default: null,
|
|
299
|
+
hasDefault: false,
|
|
272
300
|
minimum: 0,
|
|
273
301
|
maximum: 2147483647,
|
|
274
302
|
enum: null,
|
|
@@ -294,6 +322,115 @@ export const IMAGE_UPSCALE = {
|
|
|
294
322
|
"model:z-image:prompt-enhance",
|
|
295
323
|
],
|
|
296
324
|
};
|
|
325
|
+
export const VIDEO_EXTEND = {
|
|
326
|
+
id: "extend-video",
|
|
327
|
+
description: "More seconds of coherent motion appended to a prior clip — the " +
|
|
328
|
+
"extend-video flow (report dev_docs/audits/features/" +
|
|
329
|
+
"extend-video-flow-2026-11-12.md): ONE card= stage on h3-timeline " +
|
|
330
|
+
"whose extend arm renders a fresh continuation anchored on the prior " +
|
|
331
|
+
"clip's LAST FRAME (negative batch index, in-graph), at full denoise " +
|
|
332
|
+
"under an all-white mask, then joins prior + new through the film " +
|
|
333
|
+
"tail's own file law (both parts save at SaveVideo prefixes; " +
|
|
334
|
+
"MeliteConcatVideos decodes them back strictly after every save). " +
|
|
335
|
+
"RUNS on the {flow:} door (the 2026-10-04 card-stage cure — the row " +
|
|
336
|
+
"composes through the card plane as one merged run); the {model:} " +
|
|
337
|
+
"door drives the same card with the extend mod armed on the bench.",
|
|
338
|
+
stages: [
|
|
339
|
+
plainStage({
|
|
340
|
+
id: "extend",
|
|
341
|
+
engine: CARD_PLANE_ENGINE,
|
|
342
|
+
card: "h3-timeline",
|
|
343
|
+
description: "The continuation window via the h3-timeline card's extend arm — " +
|
|
344
|
+
"prior clip in (VHS force_rate 24), last-frame anchor, fresh " +
|
|
345
|
+
"denoise-1 window, joined film out",
|
|
346
|
+
inputs: {
|
|
347
|
+
source_clip: initial("source_clip"),
|
|
348
|
+
extend_prompt: initial("extend_prompt"),
|
|
349
|
+
},
|
|
350
|
+
// hand-written ONLY because the card's flowKinds declares
|
|
351
|
+
// none of these slots (the derivation law's exception clause:
|
|
352
|
+
// the row names what the card cannot know about its own
|
|
353
|
+
// initials). The numeric seats (extend_seconds, seed) ride NO
|
|
354
|
+
// initial — the initial kinds are the closed five
|
|
355
|
+
// (photo/video/glb/bake_params/text, flowsData.ts:74) and a
|
|
356
|
+
// number refuses every one; worse, a $spell ALWAYS resolves
|
|
357
|
+
// to its normalized STRING at the merge, so a numeric spell
|
|
358
|
+
// would land "2.33" in the bag and the renderer's typed read
|
|
359
|
+
// would silently snap to the default — the exact silent snap
|
|
360
|
+
// the grid door exists to kill. Numbers state through the
|
|
361
|
+
// WHOLE-BAG params override (applyFlowParamsOverlay: the
|
|
362
|
+
// array value replaces the bag raw, JSON numbers intact).
|
|
363
|
+
expected: { source_clip: "video", extend_prompt: "text" },
|
|
364
|
+
cardIo: { default: "video" },
|
|
365
|
+
params: {
|
|
366
|
+
model: "h3-timeline",
|
|
367
|
+
// THE MOD BAG (params-emit's law: entries ride as an array
|
|
368
|
+
// under params.<param_key>, never flattened): the two string
|
|
369
|
+
// seats are $spells resolved at the merge against this
|
|
370
|
+
// stage's wired initials — both REQUIRED, so every spell
|
|
371
|
+
// always resolves (an optional spell would refuse mid-run;
|
|
372
|
+
// the requiredInitials door guarantees the body carries
|
|
373
|
+
// both). The numeric seats (extend_seconds, seed) ride the
|
|
374
|
+
// renderer's own defaults (2.33s / seed 0); a caller pinning
|
|
375
|
+
// one passes params: {extend: [{…full bag…}]} and the
|
|
376
|
+
// override replaces this stamp wholesale with raw values.
|
|
377
|
+
extend: [
|
|
378
|
+
{
|
|
379
|
+
source_clip: "$source_clip",
|
|
380
|
+
extend_prompt: "$extend_prompt",
|
|
381
|
+
},
|
|
382
|
+
],
|
|
383
|
+
},
|
|
384
|
+
}),
|
|
385
|
+
],
|
|
386
|
+
initialValidators: { source_clip: "video", extend_prompt: "text" },
|
|
387
|
+
requiredInitials: ["source_clip", "extend_prompt"],
|
|
388
|
+
tool: {
|
|
389
|
+
name: "extend_video",
|
|
390
|
+
version: 1,
|
|
391
|
+
description: "Append fresh seconds to a prior clip (one call: the prior clip + " +
|
|
392
|
+
"a continuation prompt in, the joined extended film out — the prior " +
|
|
393
|
+
"plays first, new motion and sound follow). The prior clip is a " +
|
|
394
|
+
"stageable video (mp4/webm/mkv/mov/m4v/avi — a /melite-media/runs/ " +
|
|
395
|
+
"artifact URL from an earlier run lands) and rides the flow body's " +
|
|
396
|
+
"source_clip key. The prompt states MOTION and SOUND picking up " +
|
|
397
|
+
"where the clip ends. extend_seconds (default 2.33) must land on " +
|
|
398
|
+
"the engine grid (frames become seconds at the schema fps " +
|
|
399
|
+
"default: 2.33s = 56f, 3.75s = 90f, 5.17s = 124f, 15.08s = 362f " +
|
|
400
|
+
"the largest single window — beyond it the door composes N " +
|
|
401
|
+
"uniform windows under the 39f overlap, exact delivery or a " +
|
|
402
|
+
"loud refusal; off-grid values refuse at the compose door) and " +
|
|
403
|
+
"states " +
|
|
404
|
+
"through params: {extend: [{extend_seconds: …, seed: …}]} — " +
|
|
405
|
+
"numbers ride the bag, never the flow body.",
|
|
406
|
+
properties: {
|
|
407
|
+
source_clip: {
|
|
408
|
+
ptype: "string",
|
|
409
|
+
description: "the prior clip — a stageable video path (a /melite-media/" +
|
|
410
|
+
"runs/<run_id>/<file>.mp4 artifact URL from an earlier run " +
|
|
411
|
+
"lands; a browser-local blob/data URL refuses — upload first)",
|
|
412
|
+
default: null,
|
|
413
|
+
hasDefault: false,
|
|
414
|
+
minimum: null,
|
|
415
|
+
maximum: null,
|
|
416
|
+
enum: null,
|
|
417
|
+
},
|
|
418
|
+
extend_prompt: {
|
|
419
|
+
ptype: "string",
|
|
420
|
+
description: "the continuation text — MOTION and SOUND for the appended " +
|
|
421
|
+
"seconds, picking up exactly where the clip ends",
|
|
422
|
+
default: null,
|
|
423
|
+
hasDefault: false,
|
|
424
|
+
minimum: null,
|
|
425
|
+
maximum: null,
|
|
426
|
+
enum: null,
|
|
427
|
+
},
|
|
428
|
+
},
|
|
429
|
+
required: ["source_clip", "extend_prompt"],
|
|
430
|
+
overlays: [],
|
|
431
|
+
},
|
|
432
|
+
skillRefs: ["card:h3-timeline"],
|
|
433
|
+
};
|
|
297
434
|
export const MUSIC_NATIVE = {
|
|
298
435
|
id: "music-native",
|
|
299
436
|
description: "Music generation as a CARD stage — prompt in, audio out via the music " +
|
|
@@ -316,8 +453,20 @@ export const MUSIC_NATIVE = {
|
|
|
316
453
|
cardIo: { default: "audio" },
|
|
317
454
|
params: {
|
|
318
455
|
prompt: "$prompt",
|
|
456
|
+
|
|
457
|
+
// instrumental default — the card bakes an absent/empty lyric
|
|
458
|
+
// as "" (MiniMax's instrumental convention), never an absent
|
|
459
|
+
// ref, so the seat stays a plain literal (a "$lyrics" spell
|
|
460
|
+
// would refuse unresolved on instrumental calls) and the
|
|
461
|
+
// stated lyric rides the declared overlay.
|
|
462
|
+
lyrics: "",
|
|
319
463
|
model: "music3",
|
|
320
|
-
|
|
464
|
+
// ONE HOME FOR FLOW DEFAULTS (audit 015 C2): no duration
|
|
465
|
+
// stamp — the music card's own default (30) rules, the same
|
|
466
|
+
// length a GUI card stage gets; the stamp that stood here
|
|
467
|
+
// (120) was a second default-write that made agent music
|
|
468
|
+
// 120 s while human card music stayed 30 s. A stated duration
|
|
469
|
+
// rides the declared overlay.
|
|
321
470
|
seed: -1,
|
|
322
471
|
},
|
|
323
472
|
}),
|
|
@@ -327,7 +476,7 @@ export const MUSIC_NATIVE = {
|
|
|
327
476
|
name: "compose_music",
|
|
328
477
|
version: 1,
|
|
329
478
|
description: "Music generation in one call (MiniMax Music 3 via the music card) — " +
|
|
330
|
-
"prompt in, audio out.",
|
|
479
|
+
"prompt in, audio out; state lyrics for sung verses (omit for instrumental).",
|
|
331
480
|
properties: {
|
|
332
481
|
prompt: {
|
|
333
482
|
ptype: "string",
|
|
@@ -338,18 +487,35 @@ export const MUSIC_NATIVE = {
|
|
|
338
487
|
maximum: null,
|
|
339
488
|
enum: null,
|
|
340
489
|
},
|
|
490
|
+
// ONE HOME FOR FLOW DEFAULTS (audit 015 C2): the tool publishes
|
|
491
|
+
// no duration default — the music card's own default (30)
|
|
492
|
+
// rules when the caller omits it, so a published 120 advertised
|
|
493
|
+
// a length the run never composes. The bounds stay (the card's
|
|
494
|
+
// own declared cap, pointed at, not restated as a default).
|
|
341
495
|
duration: {
|
|
342
496
|
ptype: "integer",
|
|
343
|
-
description: "seconds of music (the card caps 5..360)",
|
|
344
|
-
default:
|
|
345
|
-
hasDefault:
|
|
497
|
+
description: "seconds of music (the card caps 5..360; omit for the card's own default)",
|
|
498
|
+
default: null,
|
|
499
|
+
hasDefault: false,
|
|
346
500
|
minimum: 5,
|
|
347
501
|
maximum: 360,
|
|
348
502
|
enum: null,
|
|
349
503
|
},
|
|
504
|
+
lyrics: {
|
|
505
|
+
ptype: "string",
|
|
506
|
+
description: "song lyrics (verse-form text sung by the music); omit for instrumental",
|
|
507
|
+
default: null,
|
|
508
|
+
hasDefault: false,
|
|
509
|
+
minimum: null,
|
|
510
|
+
maximum: null,
|
|
511
|
+
enum: null,
|
|
512
|
+
},
|
|
350
513
|
},
|
|
351
514
|
required: ["prompt"],
|
|
352
|
-
overlays: [
|
|
515
|
+
overlays: [
|
|
516
|
+
{ param: "duration", stage: "music", path: ["duration"], choices: null },
|
|
517
|
+
{ param: "lyrics", stage: "music", path: ["lyrics"], choices: null },
|
|
518
|
+
],
|
|
353
519
|
},
|
|
354
520
|
skillRefs: [],
|
|
355
521
|
};
|
|
@@ -381,8 +547,9 @@ export const CHARACTER_FACTORY = {
|
|
|
381
547
|
"chain, estate-native): img-to-mesh lift with the repair knobs ON, rig " +
|
|
382
548
|
"auto (SOMA-77, BODY_TO_SOMAX's lane chained), kimodo text→motion " +
|
|
383
549
|
"skinned onto the rigged mesh (somax bake in-graph). Multi-stage: " +
|
|
384
|
-
"
|
|
385
|
-
"
|
|
550
|
+
"named registry flows DRIVE at start (the curated-lane lift, " +
|
|
551
|
+
"runsRegistry's own law — the refusal is hand-authored inline " +
|
|
552
|
+
"only); stages also drive one card at a time — see " +
|
|
386
553
|
"flows/character-factory/agents/AGENT.md. Creature motion rides the " +
|
|
387
554
|
"MOTION phase instead (unimate dataset clip → rig copy bridge, " +
|
|
388
555
|
"game-profile MCPs) — documented in the leaf, never a registry " +
|
|
@@ -410,7 +577,7 @@ export const CHARACTER_FACTORY = {
|
|
|
410
577
|
outputs: { body: "mesh" },
|
|
411
578
|
cardIo: { body: "mesh" },
|
|
412
579
|
// no model pin (BODY_TO_SOMAX's law): mode auto selects the
|
|
413
|
-
//
|
|
580
|
+
// gem-soma family; the card's own contract owns the default
|
|
414
581
|
params: { mesh_glb: "$mesh", mode: "auto", preserve_texture: true },
|
|
415
582
|
}),
|
|
416
583
|
plainStage({
|
|
@@ -470,9 +637,10 @@ export const OBJECT_FORGE = {
|
|
|
470
637
|
tool: {
|
|
471
638
|
name: "object_forge",
|
|
472
639
|
version: 1,
|
|
473
|
-
description: "Generate a
|
|
474
|
-
"(z-image), image-to-mesh lift (trellis2-native)
|
|
475
|
-
"
|
|
640
|
+
description: "Generate a 3D object from one prompt line: concept render " +
|
|
641
|
+
"(z-image), image-to-mesh lift (trellis2-native). One POST runs " +
|
|
642
|
+
"the whole flow and returns the textured mesh. (The remesh stage " +
|
|
643
|
+
"left 2026-10-13; quad topology is downstream work.)",
|
|
476
644
|
properties: {
|
|
477
645
|
prompt: {
|
|
478
646
|
ptype: "string",
|
|
@@ -483,15 +651,6 @@ export const OBJECT_FORGE = {
|
|
|
483
651
|
maximum: null,
|
|
484
652
|
enum: null,
|
|
485
653
|
},
|
|
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
654
|
image_model: {
|
|
496
655
|
ptype: "string",
|
|
497
656
|
description: "the concept generator family",
|
|
@@ -510,7 +669,6 @@ export const OBJECT_FORGE = {
|
|
|
510
669
|
path: ["model"],
|
|
511
670
|
choices: { "z-image": "z-image", "krea-2": "krea-2" },
|
|
512
671
|
},
|
|
513
|
-
{ param: "target_quads", stage: "remesh", path: ["target_quads"], choices: null },
|
|
514
672
|
],
|
|
515
673
|
},
|
|
516
674
|
// ref would resolve null (the loadPlane null arm, never fired
|
package/lib/index.d.ts
CHANGED
|
@@ -44,4 +44,5 @@ export declare const runsRegistryPlugin: {
|
|
|
44
44
|
inject: readonly ["queue", "draftsRemote", "cardRegistry"];
|
|
45
45
|
apply(ctx: Context): void;
|
|
46
46
|
};
|
|
47
|
+
export { engineRootOf, engineOutputDir, resolveRuntimeHome, runtimeEnvView, resolveRuntimeProvision, nodeRuntimeFs, sentinelHit } from "./runtimeProvision.js";
|
|
47
48
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.js
CHANGED
|
@@ -72,4 +72,10 @@ export const runsRegistryPlugin = {
|
|
|
72
72
|
new RunsRuntimeService(ctx);
|
|
73
73
|
},
|
|
74
74
|
};
|
|
75
|
+
// THE RUNTIME PRESENCE PROBE (the anny burn's serving cure,
|
|
76
|
+
|
|
77
|
+
// doc's runtimes block rides — one probe, every consumer (the
|
|
78
|
+
// press gate in cardsLanes and the doc's presence rows in
|
|
79
|
+
// melite-tools' discovery), never a second spelling.
|
|
80
|
+
export { engineRootOf, engineOutputDir, resolveRuntimeHome, runtimeEnvView, resolveRuntimeProvision, nodeRuntimeFs, sentinelHit } from "./runtimeProvision.js";
|
|
75
81
|
//# sourceMappingURL=index.js.map
|
package/lib/loadPlane.js
CHANGED
|
@@ -459,6 +459,15 @@ export function loadCard(repo, cards, modelsSeat, cardId) {
|
|
|
459
459
|
],
|
|
460
460
|
model_hints: hints,
|
|
461
461
|
pack_hints,
|
|
462
|
+
// THE CARD-OWNED CRAFT HINT (the rework's slice 6, H5's split):
|
|
463
|
+
// the CONTENT-style line the card declares — served in the load
|
|
464
|
+
// digest so the agent writes the card's style without reading a
|
|
465
|
+
// craft manual per request. The FORMATTING half never rides here:
|
|
466
|
+
// the write door (melite_construct) applies the card's normalize
|
|
467
|
+
// law and echoes what it fixed.
|
|
468
|
+
...(typeof def.craft?.promptHint === "string"
|
|
469
|
+
? { craft: { prompt_hint: def.craft.promptHint } }
|
|
470
|
+
: {}),
|
|
462
471
|
};
|
|
463
472
|
bundle["digest"] = bundleDigest(bundle);
|
|
464
473
|
return bundle;
|
package/lib/manageOps.js
CHANGED
|
@@ -145,7 +145,8 @@ export function guardLifecycle(req, ctx) {
|
|
|
145
145
|
const active = activeRuns(ctx.stateRoots);
|
|
146
146
|
if (active.length > 0) {
|
|
147
147
|
throw new Refused(409, "refused: " + active.length + " active run(s) (" + active.slice(0, 4).join(", ") +
|
|
148
|
-
") — stop them first (the stop door) or pass force=true"
|
|
148
|
+
") — stop them first (the stop door) or pass force=true" +
|
|
149
|
+
" (pre-rebuild historical claims that never settled: status names them — the settle_stale action retires them)");
|
|
149
150
|
}
|
|
150
151
|
|
|
151
152
|
// locks — a teardown during an in-flight fetch unloaded VRAM under
|
package/lib/managePlane.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ModelsService } from "@melite/comfyui-cordis";
|
|
2
2
|
import type { ProvisioningServiceDefinition } from "@melite/estate-provisioning";
|
|
3
|
-
export declare const ACTIONS: readonly ["status", "endpoint_set", "logs", "search_models", "list_extensions", "snapshot_list", "install_extension", "install_extension_url", "download_model", "provision_model", "acquire_weight", "restart", "stop", "launch", "update", "switch_version", "free", "snapshot_save", "snapshot_restore", "lora_list", "lora_install"];
|
|
3
|
+
export declare const ACTIONS: readonly ["status", "endpoint_set", "logs", "search_models", "list_extensions", "snapshot_list", "install_extension", "install_extension_url", "download_model", "provision_model", "acquire_weight", "provision_runtime", "acquire_retry", "acquire_discard", "restart", "stop", "launch", "update", "switch_version", "free", "settle_stale", "snapshot_save", "snapshot_restore", "lora_list", "lora_install", "lora_fetch", "refmods_list", "preflight"];
|
|
4
4
|
export type ManageAction = (typeof ACTIONS)[number];
|
|
5
5
|
export declare const LIFECYCLE_GUARDED: ReadonlySet<ManageAction>;
|
|
6
6
|
export interface ManageEnvelope {
|
|
@@ -120,6 +120,11 @@ export interface Req {
|
|
|
120
120
|
model: string;
|
|
121
121
|
variant: string;
|
|
122
122
|
quant: string;
|
|
123
|
+
/** THE RUNTIME PROVISION VERB'S NAME (E2-2 Piece B): the runtime
|
|
124
|
+
* NAME as the DECL declares it ("anny-estimator") — resolved
|
|
125
|
+
* server-side by scanning ctx.models.allDecls() for
|
|
126
|
+
* decl.runtime.name; the client never knows families. */
|
|
127
|
+
runtime: string;
|
|
123
128
|
tail: number;
|
|
124
129
|
query: string;
|
|
125
130
|
version: string;
|
|
@@ -134,6 +139,11 @@ export interface Req {
|
|
|
134
139
|
path: string;
|
|
135
140
|
data: string;
|
|
136
141
|
families: string[];
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
sha256: string;
|
|
137
147
|
/** THE ACQUIRE-WEIGHT POLL KEY (F9 run-press acquisition): the
|
|
138
148
|
* tracker's poll carries ONLY this — the start carries the model
|
|
139
149
|
* (plus the missing file for display, via filename) and returns
|