@melite/estate-queue 0.2.0-alpha → 0.2.3-rc.4
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/README.md +0 -5
- package/lib/bench.js +30 -3
- package/lib/cardsCompose.d.ts +31 -0
- package/lib/cardsCompose.js +65 -1
- package/lib/cardsDangling.js +17 -7
- package/lib/cardsDroppable.d.ts +11 -0
- package/lib/cardsDroppable.js +50 -0
- package/lib/cardsFacts.d.ts +37 -0
- package/lib/cardsFacts.js +47 -1
- package/lib/cardsLanes.d.ts +18 -0
- package/lib/cardsLanes.js +2 -1
- package/lib/cardsRegistry.d.ts +12 -20
- package/lib/cardsRegistry.js +288 -96
- package/lib/discloseRegistry.d.ts +5 -0
- package/lib/discloseRegistry.js +3 -3
- package/lib/filmLead.js +9 -1
- package/lib/filmMemoryWarn.js +1 -0
- package/lib/flowsData.d.ts +110 -21
- package/lib/flowsData.js +201 -23
- package/lib/flowsFamilyCompose.js +1 -0
- package/lib/flowsParamsOverlay.d.ts +8 -1
- package/lib/flowsParamsOverlay.js +47 -2
- package/lib/flowsRegistryRows.d.ts +0 -4
- package/lib/flowsRegistryRows.js +177 -371
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -4
- package/lib/ledgerTail.js +1 -0
- package/lib/loadPlane.d.ts +46 -4
- package/lib/loadPlane.js +109 -7
- package/lib/loadRegistry.js +9 -2
- package/lib/managePlane.d.ts +5 -0
- package/lib/managePlane.js +412 -51
- package/lib/managePreflight.js +38 -6
- package/lib/manageProbe.d.ts +35 -0
- package/lib/manageProbe.js +141 -2
- package/lib/manageRegistry.d.ts +10 -0
- package/lib/manageRegistry.js +7 -1
- package/lib/managerRail.js +1 -0
- package/lib/queueCore.js +3 -1
- package/lib/queueLock.js +22 -10
- package/lib/queueResurrect.d.ts +0 -3
- package/lib/queueResurrect.js +5 -3
- package/lib/queueRetry.d.ts +12 -10
- package/lib/queueRetry.js +2 -4
- package/lib/queueSidecar.d.ts +36 -1
- package/lib/queueSidecar.js +30 -2
- package/lib/queueSubmit.d.ts +4 -1
- package/lib/queueSubmit.js +28 -5
- package/lib/queueSweep.d.ts +38 -11
- package/lib/queueSweep.js +73 -16
- package/lib/runsChange.d.ts +5 -4
- package/lib/runsExecute.d.ts +16 -1
- package/lib/runsExecute.js +102 -50
- package/lib/runsGates.d.ts +11 -3
- package/lib/runsGates.js +12 -3
- package/lib/runsList.d.ts +59 -3
- package/lib/runsList.js +228 -36
- package/lib/runsRegistry.d.ts +87 -6
- package/lib/runsRegistry.js +664 -98
- package/lib/runsSourceEcho.js +9 -3
- package/lib/runsStart.d.ts +6 -4
- package/lib/runsStart.js +32 -25
- package/lib/runsTypes.d.ts +54 -1
- package/lib/runsTypes.js +82 -3
- package/lib/runsValidate.d.ts +1 -0
- package/lib/runsValidate.js +5 -0
- package/lib/runsValidateArms.js +48 -2
- package/lib/runsValidateServe.js +15 -12
- package/lib/runsValidateShared.d.ts +8 -10
- package/lib/runsValidateShared.js +41 -15
- package/lib/runsValidateStages.d.ts +1 -1
- package/lib/runsValidateStages.js +90 -50
- package/lib/runtimeProvision.js +10 -2
- package/lib/skillAuthored.d.ts +50 -0
- package/lib/skillAuthored.js +178 -0
- package/lib/skillFs.js +3 -0
- package/lib/skillPlane.d.ts +40 -2
- package/lib/skillPlane.js +63 -13
- package/lib/skillRegistry.d.ts +24 -1
- package/lib/skillRegistry.js +69 -5
- package/lib/skillRows.d.ts +13 -3
- package/lib/skillRows.js +52 -9
- package/lib/vocab.d.ts +29 -0
- package/lib/vocab.js +78 -0
- package/package.json +24 -14
- package/lib/resurrect.d.ts +0 -6
- package/lib/resurrect.js +0 -18
package/lib/runsRegistry.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { Service } from "@deepseek-ai/cordis";
|
|
|
2
2
|
import type { Context } from "@deepseek-ai/cordis";
|
|
3
3
|
import type { RunId } from "./queueCore.js";
|
|
4
4
|
export { toRemoteError } from "./runsRefusalVoices.js";
|
|
5
|
+
import { type Phase1Card } from "./cardsRegistry.js";
|
|
5
6
|
import type { FlowsValidateAnswer } from "./runsValidate.js";
|
|
6
7
|
import type { RunRecord } from "./runsTypes.js";
|
|
7
8
|
/** THE START SUMMARY (the door's answer face): what start() and the
|
|
@@ -109,8 +110,6 @@ declare module "@deepseek-ai/dsh-typert-protocol" {
|
|
|
109
110
|
};
|
|
110
111
|
}
|
|
111
112
|
}
|
|
112
|
-
/** The refusal codes this remote serves, folded to the
|
|
113
|
-
* protocol's vocabulary — a literal table, no dynamic key. */
|
|
114
113
|
export declare function enrichDiskRow(row: Record<string, unknown>): Record<string, unknown>;
|
|
115
114
|
|
|
116
115
|
|
|
@@ -180,7 +179,7 @@ export declare class RunsRuntimeService extends Service {
|
|
|
180
179
|
* parks on); returns the unsubscribe. Delegates to the module
|
|
181
180
|
* seam — a listener's fault never breaks the write (the wrapper
|
|
182
181
|
* guards; the law lives at runsChange.ts onRunChange). */
|
|
183
|
-
onRunChange(fn: (runId:
|
|
182
|
+
onRunChange(fn: (runId: RunId) => void): () => void;
|
|
184
183
|
/** THE BOOT RECONCILE (stroke 83; boot_resurrect reborn as a
|
|
185
184
|
* REPLAY, not a hollow requeue): every usable QUEUED record's
|
|
186
185
|
* _request.json goes back through the START door under its own
|
|
@@ -244,6 +243,7 @@ export declare class RunsRuntimeService extends Service {
|
|
|
244
243
|
|
|
245
244
|
|
|
246
245
|
|
|
246
|
+
|
|
247
247
|
private composeRegistryFlowStages;
|
|
248
248
|
private composeBenchStages;
|
|
249
249
|
start(doc: unknown, signal: AbortSignal,
|
|
@@ -253,6 +253,27 @@ export declare class RunsRuntimeService extends Service {
|
|
|
253
253
|
reuse?: {
|
|
254
254
|
runId: RunId;
|
|
255
255
|
}): Promise<PressStartSummary>;
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
private ledgerPressRefused;
|
|
276
|
+
private startInner;
|
|
256
277
|
/** THE SWEEP START (friction #9's fan-out): one press, N seeds —
|
|
257
278
|
* each seed its own run, all under one shared run-id prefix.
|
|
258
279
|
* Every per-run law rides startReserved unchanged (phase gates,
|
|
@@ -301,8 +322,12 @@ export declare class RunsRuntimeService extends Service {
|
|
|
301
322
|
/** The list arm (REBUILD-7): the restore-port envelope over the
|
|
302
323
|
* output roots. The raw limit STRING rides from the lane (strict
|
|
303
324
|
* int() semantics: underscores parse, junk refuses). The drafts
|
|
304
|
-
* probe rides the drafts remote.
|
|
305
|
-
|
|
325
|
+
* probe rides the drafts remote. The optional draft/stage
|
|
326
|
+
* filters (the stale-two-run chat audit's cure 3 — runsList.ts
|
|
327
|
+
* RunsListFilter) narrow the served rows to one draft's takes;
|
|
328
|
+
* an empty string reads ABSENT (the parse_qs blank law), never
|
|
329
|
+
* as a match against the empty id. */
|
|
330
|
+
list(rawLimit: string, signal: AbortSignal, draftId?: string, benchStageId?: string): Promise<{
|
|
306
331
|
count: number;
|
|
307
332
|
runs: Record<string, unknown>[];
|
|
308
333
|
}>;
|
|
@@ -320,8 +345,61 @@ export declare class RunsRuntimeService extends Service {
|
|
|
320
345
|
* unreachable, stats unparseable) returns none — admission never
|
|
321
346
|
* blocks on a stats read. */
|
|
322
347
|
filmAdmissionWarnings(cardId: string, body: Record<string, unknown>): Promise<string[]>;
|
|
348
|
+
/** THE CHAIN-STORE RUN-ID DOOR (the F35 write side, session 2): an
|
|
349
|
+
* h3-timeline doc's upscale entry may bind its source by ESTATE
|
|
350
|
+
* RUN ID — resolved HERE, before compose, through the run row the
|
|
351
|
+
* harvest registrar stamped (result_outputs.chain_store.run_name),
|
|
352
|
+
* so the composed manager carries a BARE STORE NAME and the
|
|
353
|
+
* execute door's existing law (gates-h3-chain-selection-door)
|
|
354
|
+
* keeps judging name→store — one judge per edge. A store-spelling
|
|
355
|
+
* binding (swap_…/picture_… — anything off the run-id grammar)
|
|
356
|
+
* passes byte-untouched with ZERO registry reads: the store stays
|
|
357
|
+
* the only existence truth, judged where it is already walled. An
|
|
358
|
+
* id-grammar spelling with no row — or a row whose stages carry no
|
|
359
|
+
* chain_store — refuses LOUD at this door naming the plain-film
|
|
360
|
+
* law, never the execute door's typo-reading 404 (the run row,
|
|
361
|
+
* not the store, answers "was this a chain run"). The determinism
|
|
362
|
+
* corner: the grammar resolves through the registry ONLY and never
|
|
363
|
+
* falls through to the store, so a store literally named like a
|
|
364
|
+
* run id binds by its exact spelling only when it does NOT match
|
|
365
|
+
* the grammar. Runs between phase 1 (the doc validated) and phase
|
|
366
|
+
* 2 (the graph composed) — a refusal names the field, never a
|
|
367
|
+
* zombie slot. */
|
|
368
|
+
resolveUpscaleChainRunIds(p1: Phase1Card): Phase1Card;
|
|
369
|
+
/** The store name a run row carries (the registrar's stamp), or
|
|
370
|
+
* null: the live map first, the durable _flow.json on its miss —
|
|
371
|
+
* the same two faces the status door reads. */
|
|
372
|
+
private chainStoreNameOf;
|
|
323
373
|
status(runId: string, signal: AbortSignal, includeLog?: boolean): Promise<Record<string, unknown>>;
|
|
324
374
|
stop(runId: string, signal: AbortSignal): Promise<Record<string, unknown>>;
|
|
375
|
+
/** THE ATTRIBUTION DOOR (F3 D3-07, the 15 s bound's third burn —
|
|
376
|
+
* RIG s_94: a green run whose cards-tab stamp died at the bench
|
|
377
|
+
* plane's bound). The stamp-back's bounded retry lives client-side
|
|
378
|
+
* (melite-flow); when every take dies, THIS door carries the miss
|
|
379
|
+
* on the run row — a different plane than the wedged drafts
|
|
380
|
+
* PATCH, so the fact lands even when the stamp could not. The
|
|
381
|
+
* status door and the press receipt then answer "completed — NOT
|
|
382
|
+
* shown on the tab (stamp missed; re-stamp)" instead of a bare
|
|
383
|
+
* done. Idempotent: a re-stamp that landed clears it
|
|
384
|
+
* (value "" unstamps), the persist is best-effort by the
|
|
385
|
+
* claim/settle law, and the change rides notifyRunChanged so the
|
|
386
|
+
* tab's poller re-fires on the truth. */
|
|
387
|
+
attribute(runId: string, value: string, signal: AbortSignal): Promise<Record<string, unknown>>;
|
|
388
|
+
/** THE OUTPUT-RENAME DOOR (queue 12 Phase B): a settled run's
|
|
389
|
+
* gallery row gets a new display `label`, post-run — the output_name
|
|
390
|
+
* mint at settle named the rows once; this door owns every rename
|
|
391
|
+
* after. The `name` (the machine file key the media route and every
|
|
392
|
+
* dedup law ride) NEVER moves — the patch rewrites the addressed
|
|
393
|
+
* row's label alone: no sibling renumbering, no `stem · 2…n`
|
|
394
|
+
* auto-repair; a caller with several rows to rename patches each
|
|
395
|
+
* row it wants. Guards speak before any write: unknown run
|
|
396
|
+
* (runs/run-unknown, the searched-trees voice), a live row (rename
|
|
397
|
+
* waits for settle), an empty/whitespace label, an out-of-range
|
|
398
|
+
* stage or gallery index. The patch lands in the live row, the
|
|
399
|
+
* change rides notifyRunChanged (the tab's poller re-fires), and
|
|
400
|
+
* the sidecar rewrite persists it (the disk fallback and every
|
|
401
|
+
* boot re-read spread the new label). */
|
|
402
|
+
renameOutput(runId: string, stageIndex: number, galleryIndex: number, label: string, signal: AbortSignal): Promise<Record<string, unknown>>;
|
|
325
403
|
/** The live map (the queue seat's core registry — rich rows). */
|
|
326
404
|
private liveRun;
|
|
327
405
|
|
|
@@ -421,7 +499,10 @@ export declare class RunsRuntimeService extends Service {
|
|
|
421
499
|
* The result face: run_id always; the run-relative media url of the
|
|
422
500
|
* stage's own output when one exists (the husk clobber's other
|
|
423
501
|
* half — a bookkeeping mirror never blanks a hero it can name); the
|
|
424
|
-
* error voice
|
|
502
|
+
* error voice is the stage's OWN error, never the run's — the
|
|
503
|
+
* pass-level cause rides the run doc (run_status answers for the
|
|
504
|
+
* pass), and a row that borrowed it would name another stage's
|
|
505
|
+
* cause (qa8 F43, the per-row status law). */
|
|
425
506
|
export declare function settleMirrorPatches(run: RunRecord): Array<{
|
|
426
507
|
stageId: string;
|
|
427
508
|
patch: Record<string, unknown>;
|