@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.
- package/LICENSE +561 -457
- package/README.md +0 -5
- package/lib/cardsArmError.d.ts +52 -3
- package/lib/cardsArmError.js +7 -1
- package/lib/cardsCompose.d.ts +31 -0
- package/lib/cardsCompose.js +98 -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 +105 -5
- package/lib/cardsRegistry.js +826 -46
- package/lib/cardsVariant.d.ts +12 -7
- package/lib/cardsVariant.js +196 -58
- package/lib/discloseRegistry.d.ts +41 -6
- package/lib/discloseRegistry.js +155 -17
- package/lib/filmLead.js +5 -3
- package/lib/flowsData.d.ts +77 -21
- package/lib/flowsData.js +159 -21
- package/lib/flowsFamilyCompose.js +12 -1
- package/lib/flowsRegistryRows.d.ts +0 -3
- package/lib/flowsRegistryRows.js +166 -222
- package/lib/index.d.ts +1 -1
- package/lib/index.js +6 -4
- package/lib/loadPlane.d.ts +46 -4
- package/lib/loadPlane.js +116 -7
- package/lib/loadRegistry.js +9 -2
- package/lib/manageOps.js +2 -1
- package/lib/managePlane.d.ts +16 -1
- package/lib/managePlane.js +955 -65
- package/lib/managePreflight.d.ts +26 -0
- package/lib/managePreflight.js +211 -0
- package/lib/manageProbe.d.ts +52 -0
- package/lib/manageProbe.js +171 -1
- package/lib/queueCore.d.ts +14 -1
- package/lib/queueCore.js +13 -0
- package/lib/queueLock.js +19 -10
- package/lib/queueResurrect.d.ts +7 -5
- package/lib/queueResurrect.js +25 -9
- package/lib/queueRetry.d.ts +12 -10
- package/lib/queueRetry.js +2 -4
- package/lib/queueSidecar.d.ts +122 -1
- package/lib/queueSidecar.js +192 -7
- package/lib/queueSubmit.d.ts +70 -4
- package/lib/queueSubmit.js +159 -7
- package/lib/runsErrorCodes.js +5 -3
- package/lib/runsExecute.d.ts +16 -1
- package/lib/runsExecute.js +97 -39
- package/lib/runsGates.d.ts +16 -4
- package/lib/runsGates.js +17 -5
- package/lib/runsList.d.ts +100 -4
- package/lib/runsList.js +364 -63
- package/lib/runsRefusalVoices.js +50 -1
- package/lib/runsRegistry.d.ts +142 -9
- package/lib/runsRegistry.js +960 -163
- package/lib/runsStart.d.ts +30 -7
- package/lib/runsStart.js +136 -14
- package/lib/runsTypes.d.ts +46 -3
- package/lib/runsTypes.js +63 -9
- package/lib/runsValidate.d.ts +1 -0
- package/lib/runsValidate.js +5 -0
- package/lib/runsValidateArms.js +25 -0
- package/lib/runsValidateServe.js +25 -12
- package/lib/runsValidateShared.d.ts +8 -1
- package/lib/runsValidateShared.js +44 -4
- package/lib/runsValidateStages.d.ts +1 -1
- package/lib/runsValidateStages.js +107 -55
- package/lib/runtimeProvision.d.ts +119 -0
- package/lib/runtimeProvision.js +243 -0
- package/lib/skillAuthored.d.ts +50 -0
- package/lib/skillAuthored.js +178 -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 +49 -5
- package/package.json +33 -23
- package/lib/resurrect.d.ts +0 -6
- package/lib/resurrect.js +0 -18
package/lib/runsRegistry.d.ts
CHANGED
|
@@ -2,8 +2,19 @@ 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";
|
|
8
|
+
/** THE START SUMMARY (the door's answer face): what start() and the
|
|
9
|
+
* concurrent-press reservation both answer with. `sweep_runs` rides
|
|
10
|
+
* ONLY a seed-sweep press (friction #9): every run id the one
|
|
11
|
+
* press minted, first seed first — absent on every single run. */
|
|
12
|
+
interface PressStartSummary {
|
|
13
|
+
run_id: string;
|
|
14
|
+
status: string;
|
|
15
|
+
queue_position: number;
|
|
16
|
+
readonly sweep_runs?: readonly string[];
|
|
17
|
+
}
|
|
7
18
|
/** The runs Remote failure codes, merged into the protocol's ONE
|
|
8
19
|
* vocabulary (cookbook §2: declaration merging, next to the
|
|
9
20
|
* throws). The codes ride kebab-cased; the byte-pinned prose
|
|
@@ -25,7 +36,21 @@ export interface LaneInputMissingDetails extends RunsRefusalDetails {
|
|
|
25
36
|
readonly missing: string;
|
|
26
37
|
readonly folders: readonly string[];
|
|
27
38
|
readonly fetch_url?: string;
|
|
28
|
-
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
readonly missing_all?: ReadonlyArray<{
|
|
44
|
+
readonly slot: string;
|
|
45
|
+
readonly name: string;
|
|
46
|
+
readonly folders: readonly string[];
|
|
47
|
+
readonly size_bytes?: number;
|
|
48
|
+
readonly fetch_url?: string;
|
|
49
|
+
}>;
|
|
50
|
+
/** "runtime" rides the tool-runtime leg (E2-2 Piece A) — the
|
|
51
|
+
* popup's runtime banner keys on the parsed prose, never on
|
|
52
|
+
* this row (there is no fetch_url for a provision command). */
|
|
53
|
+
readonly kind: "model" | "extension" | "runtime";
|
|
29
54
|
}
|
|
30
55
|
declare module "@deepseek-ai/dsh-typert-protocol" {
|
|
31
56
|
interface RemoteErrorDetailsMap {
|
|
@@ -74,6 +99,15 @@ declare module "@deepseek-ai/dsh-typert-protocol" {
|
|
|
74
99
|
"runs/run-unknown": {
|
|
75
100
|
readonly runId: string;
|
|
76
101
|
};
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
"runs/already-settled": {
|
|
108
|
+
readonly runId: string;
|
|
109
|
+
readonly status: string;
|
|
110
|
+
};
|
|
77
111
|
}
|
|
78
112
|
}
|
|
79
113
|
/** The refusal codes this remote serves, folded to the
|
|
@@ -211,6 +245,7 @@ export declare class RunsRuntimeService extends Service {
|
|
|
211
245
|
|
|
212
246
|
|
|
213
247
|
|
|
248
|
+
|
|
214
249
|
private composeRegistryFlowStages;
|
|
215
250
|
private composeBenchStages;
|
|
216
251
|
start(doc: unknown, signal: AbortSignal,
|
|
@@ -219,11 +254,62 @@ export declare class RunsRuntimeService extends Service {
|
|
|
219
254
|
* never passes this (two-arg wire calls only). */
|
|
220
255
|
reuse?: {
|
|
221
256
|
runId: RunId;
|
|
222
|
-
}): Promise<
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
257
|
+
}): Promise<PressStartSummary>;
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
private ledgerPressRefused;
|
|
278
|
+
private startInner;
|
|
279
|
+
/** THE SWEEP START (friction #9's fan-out): one press, N seeds —
|
|
280
|
+
* each seed its own run, all under one shared run-id prefix.
|
|
281
|
+
* Every per-run law rides startReserved unchanged (phase gates,
|
|
282
|
+
* spell gate, self-wire gate, the registration door); the press
|
|
283
|
+
* laws wrap the WHOLE family: one press_key answers the sweep
|
|
284
|
+
* (a replay re-mints NOTHING — the sweep mirror holds every id),
|
|
285
|
+
* the twin reservation settles once after the last run registers,
|
|
286
|
+
* and a refusal anywhere propagates with the runs already minted
|
|
287
|
+
* standing (registered runs never un-register — the registry's
|
|
288
|
+
* own law; the retry law is the stale-key law's).
|
|
289
|
+
* @param seeds the judged sweep (capped, integer, model-door).
|
|
290
|
+
* @param checked the envelope's ok face for the sweep press.
|
|
291
|
+
* @param signal the caller's abort. */
|
|
292
|
+
private startSweep;
|
|
293
|
+
/** The sweep's mint loop: N startReserved calls, one per seed —
|
|
294
|
+
* the seed stamped into its own body, the sweep's runId handed
|
|
295
|
+
* through the INTERNAL reuse seat (the deterministic-id seam, the
|
|
296
|
+
* same seat the boot-resurrect replay rides). The answer carries
|
|
297
|
+
* the first run's summary face plus sweep_runs (every id, seed
|
|
298
|
+
* order). @param pressKey undefined on the inner calls — the
|
|
299
|
+
* per-run press memory would clobber the family's one entry; this
|
|
300
|
+
* loop owns the memory after every run stands. */
|
|
301
|
+
private mintSweep;
|
|
302
|
+
/** THE SWEEP MIRROR (audit N-E1's sweep half): press_key -> every
|
|
303
|
+
* run id the sweep minted. A replay answers the family only while
|
|
304
|
+
* EVERY row still stands — one swept row is the stale-key law's
|
|
305
|
+
* (the whole sweep re-runs on retry, the same class as the single
|
|
306
|
+
* door). Capped beside the single mirror. */
|
|
307
|
+
private readonly sweepPresses;
|
|
308
|
+
private rememberSweepPress;
|
|
309
|
+
/** The sweep replay: the family's answer while every row stands,
|
|
310
|
+
* null when the key is unknown or stale (the mirror entry dies
|
|
311
|
+
* with the verdict). */
|
|
312
|
+
private sweepReplay;
|
|
227
313
|
|
|
228
314
|
|
|
229
315
|
|
|
@@ -238,8 +324,12 @@ export declare class RunsRuntimeService extends Service {
|
|
|
238
324
|
/** The list arm (REBUILD-7): the restore-port envelope over the
|
|
239
325
|
* output roots. The raw limit STRING rides from the lane (strict
|
|
240
326
|
* int() semantics: underscores parse, junk refuses). The drafts
|
|
241
|
-
* probe rides the drafts remote.
|
|
242
|
-
|
|
327
|
+
* probe rides the drafts remote. The optional draft/stage
|
|
328
|
+
* filters (the stale-two-run chat audit's cure 3 — runsList.ts
|
|
329
|
+
* RunsListFilter) narrow the served rows to one draft's takes;
|
|
330
|
+
* an empty string reads ABSENT (the parse_qs blank law), never
|
|
331
|
+
* as a match against the empty id. */
|
|
332
|
+
list(rawLimit: string, signal: AbortSignal, draftId?: string, benchStageId?: string): Promise<{
|
|
243
333
|
count: number;
|
|
244
334
|
runs: Record<string, unknown>[];
|
|
245
335
|
}>;
|
|
@@ -257,10 +347,50 @@ export declare class RunsRuntimeService extends Service {
|
|
|
257
347
|
* unreachable, stats unparseable) returns none — admission never
|
|
258
348
|
* blocks on a stats read. */
|
|
259
349
|
filmAdmissionWarnings(cardId: string, body: Record<string, unknown>): Promise<string[]>;
|
|
350
|
+
/** THE CHAIN-STORE RUN-ID DOOR (the F35 write side, session 2): an
|
|
351
|
+
* h3-timeline doc's upscale entry may bind its source by ESTATE
|
|
352
|
+
* RUN ID — resolved HERE, before compose, through the run row the
|
|
353
|
+
* harvest registrar stamped (result_outputs.chain_store.run_name),
|
|
354
|
+
* so the composed manager carries a BARE STORE NAME and the
|
|
355
|
+
* execute door's existing law (gates-h3-chain-selection-door)
|
|
356
|
+
* keeps judging name→store — one judge per edge. A store-spelling
|
|
357
|
+
* binding (swap_…/picture_… — anything off the run-id grammar)
|
|
358
|
+
* passes byte-untouched with ZERO registry reads: the store stays
|
|
359
|
+
* the only existence truth, judged where it is already walled. An
|
|
360
|
+
* id-grammar spelling with no row — or a row whose stages carry no
|
|
361
|
+
* chain_store — refuses LOUD at this door naming the plain-film
|
|
362
|
+
* law, never the execute door's typo-reading 404 (the run row,
|
|
363
|
+
* not the store, answers "was this a chain run"). The determinism
|
|
364
|
+
* corner: the grammar resolves through the registry ONLY and never
|
|
365
|
+
* falls through to the store, so a store literally named like a
|
|
366
|
+
* run id binds by its exact spelling only when it does NOT match
|
|
367
|
+
* the grammar. Runs between phase 1 (the doc validated) and phase
|
|
368
|
+
* 2 (the graph composed) — a refusal names the field, never a
|
|
369
|
+
* zombie slot. */
|
|
370
|
+
resolveUpscaleChainRunIds(p1: Phase1Card): Phase1Card;
|
|
371
|
+
/** The store name a run row carries (the registrar's stamp), or
|
|
372
|
+
* null: the live map first, the durable _flow.json on its miss —
|
|
373
|
+
* the same two faces the status door reads. */
|
|
374
|
+
private chainStoreNameOf;
|
|
260
375
|
status(runId: string, signal: AbortSignal, includeLog?: boolean): Promise<Record<string, unknown>>;
|
|
261
376
|
stop(runId: string, signal: AbortSignal): Promise<Record<string, unknown>>;
|
|
262
377
|
/** The live map (the queue seat's core registry — rich rows). */
|
|
263
378
|
private liveRun;
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
private resyncSettledTruth;
|
|
264
394
|
/** The durable record under the run tree (F-5's fallback read):
|
|
265
395
|
* the on-disk _flow.json for a run — the SAME file the maker
|
|
266
396
|
* verified byte-by-byte while status answered husks. The
|
|
@@ -343,7 +473,10 @@ export declare class RunsRuntimeService extends Service {
|
|
|
343
473
|
* The result face: run_id always; the run-relative media url of the
|
|
344
474
|
* stage's own output when one exists (the husk clobber's other
|
|
345
475
|
* half — a bookkeeping mirror never blanks a hero it can name); the
|
|
346
|
-
* error voice
|
|
476
|
+
* error voice is the stage's OWN error, never the run's — the
|
|
477
|
+
* pass-level cause rides the run doc (run_status answers for the
|
|
478
|
+
* pass), and a row that borrowed it would name another stage's
|
|
479
|
+
* cause (qa8 F43, the per-row status law). */
|
|
347
480
|
export declare function settleMirrorPatches(run: RunRecord): Array<{
|
|
348
481
|
stageId: string;
|
|
349
482
|
patch: Record<string, unknown>;
|