@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
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import type { DeclaredRuntime } from "@melite/comfyui-card-kit/model-contract";
|
|
2
|
+
export type RuntimeSentinels = Pick<DeclaredRuntime, "name" | "env" | "rel" | "sentinel" | "command">;
|
|
3
|
+
/** One sentinel's safe join: a sentinel escaping its home (.. or
|
|
4
|
+
* empty) is a declaration bug — false, never a filesystem escape. */
|
|
5
|
+
export declare function sentinelHit(home: string, sentinel: string): boolean;
|
|
6
|
+
/** Every sentinel stands under `home` (through a symlink when the
|
|
7
|
+
* home is one — existsSync follows links). */
|
|
8
|
+
export declare function runtimeHealthy(home: string, sentinels: readonly string[]): boolean;
|
|
9
|
+
/** The engine's own walk-up, mirrored (nodes_anny.py:885-935): the
|
|
10
|
+
* first ancestor of the output dir holding the rel dir decides — a
|
|
11
|
+
* chipped first hit is the miss, never a cue to walk on. Walk-up
|
|
12
|
+
* only: the caller owns the env leg, so this never re-checks it. */
|
|
13
|
+
export declare function resolveRuntimeHome(outputDir: string, rt: Pick<DeclaredRuntime, "rel" | "sentinel">): string | null;
|
|
14
|
+
/** THE DECLARED ENGINE ROOT (E2-2 Piece A): where the live engine
|
|
15
|
+
* lives on this box, stated in the endpoint machine statement
|
|
16
|
+
* (`engine_root`). Additive key, unknown to every other reader. */
|
|
17
|
+
export declare function engineRootOf(): string | null;
|
|
18
|
+
/** The engine's output dir: the endpoint's output_dir when stated
|
|
19
|
+
* (absolute as-is, relative resolved under the declared engine
|
|
20
|
+
* root — the managed "data/temp" spelling), else the ComfyUI
|
|
21
|
+
* default (<root>/output). The walk-up only moves UP, so
|
|
22
|
+
* starting deep is safe. */
|
|
23
|
+
export declare function engineOutputDir(root: string): string;
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
export declare function lanesEnvFileOf(): string | null;
|
|
36
|
+
export interface LanesEnvValue {
|
|
37
|
+
readonly value: string;
|
|
38
|
+
readonly present: boolean;
|
|
39
|
+
}
|
|
40
|
+
/** Parse ONE key out of a systemd EnvironmentFile spelling: KEY=VALUE
|
|
41
|
+
* lines; blank lines and `#`/`;` comments (indented or not) are
|
|
42
|
+
* skipped; inline `#` text stays part of the value (systemd does not
|
|
43
|
+
* strip trailing comments in this mode, so neither do we — a quoted
|
|
44
|
+
* or commented value surfaces verbatim in the named-source answer
|
|
45
|
+
* and fails its sentinels loudly, never silently). ORDER: LAST-WINS —
|
|
46
|
+
* a later assignment overrides an earlier one, matching systemd's
|
|
47
|
+
* EnvironmentFile read order (later settings override earlier
|
|
48
|
+
* settings) and shell source semantics. The walls pin this with a
|
|
49
|
+
* first-dead/last-healthy fixture. */
|
|
50
|
+
export declare function lanesEnvValue(file: string, key: string, read: (path: string) => string): LanesEnvValue;
|
|
51
|
+
/** The ONE env view both consumers read: the lanes.env value
|
|
52
|
+
* overlays the process env for exactly rt.env (the file is what the
|
|
53
|
+
* next lane start arms, so a fresh edit wins over a stale process
|
|
54
|
+
* copy). `source` says which side spoke, so the verb's answer can
|
|
55
|
+
* name it. */
|
|
56
|
+
export type RuntimeEnvSource = "process" | "lanes.env" | "absent";
|
|
57
|
+
export declare function runtimeEnvView(envKey: string, env?: Record<string, string | undefined>): {
|
|
58
|
+
value: string;
|
|
59
|
+
source: RuntimeEnvSource;
|
|
60
|
+
};
|
|
61
|
+
/** The fs-ish seam the decision runs over — the real node half rides
|
|
62
|
+
* {@link nodeRuntimeFs}; the walls inject tmp-fixture halves. */
|
|
63
|
+
export interface RuntimeFs {
|
|
64
|
+
exists(path: string): boolean;
|
|
65
|
+
isSymlink(path: string): boolean;
|
|
66
|
+
readlink(path: string): string | null;
|
|
67
|
+
mkdir(path: string): void;
|
|
68
|
+
symlink(target: string, path: string): void;
|
|
69
|
+
}
|
|
70
|
+
export declare const nodeRuntimeFs: RuntimeFs;
|
|
71
|
+
/** How the runtime was answered present — the verb's receipt names
|
|
72
|
+
* it, and the managed-engine arm (walk-up) proves the verb never
|
|
73
|
+
* double-seats. */
|
|
74
|
+
export type RuntimePresentSource = "env" | "lanes.env" | "walk-up" | "target";
|
|
75
|
+
export type RuntimeProvisionDecision = {
|
|
76
|
+
kind: "already-present";
|
|
77
|
+
home: string;
|
|
78
|
+
source: RuntimePresentSource;
|
|
79
|
+
} | {
|
|
80
|
+
kind: "linkable";
|
|
81
|
+
seed: string;
|
|
82
|
+
target: string;
|
|
83
|
+
} | {
|
|
84
|
+
kind: "refused";
|
|
85
|
+
reason: "no-engine-root" | "broken-seed" | "target-blocked" | "env-invalid";
|
|
86
|
+
detail: string;
|
|
87
|
+
};
|
|
88
|
+
export interface RuntimeProvisionDeps {
|
|
89
|
+
/** The endpoint's declared engine root (null = the estate cannot
|
|
90
|
+
* see that tree). */
|
|
91
|
+
engineRoot: string | null;
|
|
92
|
+
/** The walk-up start (the engine's own output dir) — only read
|
|
93
|
+
* when engineRoot is non-null. */
|
|
94
|
+
walkStart: string;
|
|
95
|
+
/** The ONE env view (runtimeEnvView) — the value AND the side it
|
|
96
|
+
* came from, so an invalid override is named with its origin. */
|
|
97
|
+
env: {
|
|
98
|
+
value: string;
|
|
99
|
+
source: RuntimeEnvSource;
|
|
100
|
+
};
|
|
101
|
+
/** The repo's healthy seed home: join(repoRoot, "data", "runtime",
|
|
102
|
+
* rt.name). */
|
|
103
|
+
repoSeedHome: string;
|
|
104
|
+
fs: RuntimeFs;
|
|
105
|
+
}
|
|
106
|
+
/** THE DECISION CORE (pure). Order is the law:
|
|
107
|
+
* 1. a stated env override (process or lanes.env) — valid counts as
|
|
108
|
+
* present (source env / lanes.env), invalid refuses naming it
|
|
109
|
+
* (the press gate refuses the same run: gate+verb agreement);
|
|
110
|
+
* 2. no engine root refuses (the estate cannot see that tree);
|
|
111
|
+
* 3. the walk-up from the engine's output — a hit is present
|
|
112
|
+
* (the managed-engine arm: the verb never double-seats);
|
|
113
|
+
* 4. an existing healthy target (real dir or live symlink) is
|
|
114
|
+
* present; a real CHIPPED or foreign one refuses target-blocked
|
|
115
|
+
* — never clobbered;
|
|
116
|
+
* 5. a healthy seed with an absent target is linkable; a chipped
|
|
117
|
+
* seed refuses broken-seed voicing the DECL's provision command. */
|
|
118
|
+
export declare function resolveRuntimeProvision(rt: RuntimeSentinels, deps: RuntimeProvisionDeps): RuntimeProvisionDecision;
|
|
119
|
+
//# sourceMappingURL=runtimeProvision.d.ts.map
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
// runtimeProvision.ts — THE RUNTIME PROVISION DECISION CORE (E2-2
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
// lanes.env leg — ONE module so gate and verb can never disagree.
|
|
5
|
+
//
|
|
6
|
+
|
|
7
|
+
// the estimator is broken — the chain files are placed by hand — so
|
|
8
|
+
// this core never re-provisions and never copies bytes. The ONLY
|
|
9
|
+
// materialize arm is a SYMLINK from the engine tree's
|
|
10
|
+
// data/runtime/<name> to the repo's healthy seed (instant, nothing
|
|
11
|
+
// to wedge; the seed stays the source of truth). Everything else is
|
|
12
|
+
// already-present or a named refusal.
|
|
13
|
+
//
|
|
14
|
+
// The module is pure over injected fs deps: the walls run it on tmp
|
|
15
|
+
// fixtures (fixture seed + fixture sentinel files, never the real
|
|
16
|
+
// 7.4G tree; symlink creation against tmp dirs is fine).
|
|
17
|
+
import { existsSync, lstatSync, mkdirSync, readFileSync, readlinkSync, symlinkSync } from "node:fs";
|
|
18
|
+
import { dirname, join, resolve } from "node:path";
|
|
19
|
+
import { loadEndpointConfig } from "@melite/comfyui-cordis";
|
|
20
|
+
/** One sentinel's safe join: a sentinel escaping its home (.. or
|
|
21
|
+
* empty) is a declaration bug — false, never a filesystem escape. */
|
|
22
|
+
export function sentinelHit(home, sentinel) {
|
|
23
|
+
const clean = sentinel.trim().replace(/^\/+|\/+$/gu, "");
|
|
24
|
+
if (clean === "" || clean.split("/").some((part) => part === ".."))
|
|
25
|
+
return false;
|
|
26
|
+
return existsSync(join(home, clean));
|
|
27
|
+
}
|
|
28
|
+
/** Every sentinel stands under `home` (through a symlink when the
|
|
29
|
+
* home is one — existsSync follows links). */
|
|
30
|
+
export function runtimeHealthy(home, sentinels) {
|
|
31
|
+
return sentinels.every((s) => sentinelHit(home, s));
|
|
32
|
+
}
|
|
33
|
+
/** The engine's own walk-up, mirrored (nodes_anny.py:885-935): the
|
|
34
|
+
* first ancestor of the output dir holding the rel dir decides — a
|
|
35
|
+
* chipped first hit is the miss, never a cue to walk on. Walk-up
|
|
36
|
+
* only: the caller owns the env leg, so this never re-checks it. */
|
|
37
|
+
export function resolveRuntimeHome(outputDir, rt) {
|
|
38
|
+
let dir = resolve(outputDir);
|
|
39
|
+
for (;;) {
|
|
40
|
+
const home = join(dir, ...rt.rel);
|
|
41
|
+
if (existsSync(home)) {
|
|
42
|
+
return runtimeHealthy(home, rt.sentinel) ? home : null;
|
|
43
|
+
}
|
|
44
|
+
const parent = dirname(dir);
|
|
45
|
+
if (parent === dir)
|
|
46
|
+
return null;
|
|
47
|
+
dir = parent;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
/** THE DECLARED ENGINE ROOT (E2-2 Piece A): where the live engine
|
|
51
|
+
* lives on this box, stated in the endpoint machine statement
|
|
52
|
+
* (`engine_root`). Additive key, unknown to every other reader. */
|
|
53
|
+
export function engineRootOf() {
|
|
54
|
+
let cfg;
|
|
55
|
+
try {
|
|
56
|
+
cfg = loadEndpointConfig();
|
|
57
|
+
}
|
|
58
|
+
catch {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
const raw = cfg["engine_root"];
|
|
62
|
+
if (typeof raw !== "string" || raw.trim() === "")
|
|
63
|
+
return null;
|
|
64
|
+
return raw.trim();
|
|
65
|
+
}
|
|
66
|
+
/** The engine's output dir: the endpoint's output_dir when stated
|
|
67
|
+
* (absolute as-is, relative resolved under the declared engine
|
|
68
|
+
* root — the managed "data/temp" spelling), else the ComfyUI
|
|
69
|
+
* default (<root>/output). The walk-up only moves UP, so
|
|
70
|
+
* starting deep is safe. */
|
|
71
|
+
export function engineOutputDir(root) {
|
|
72
|
+
let cfg;
|
|
73
|
+
try {
|
|
74
|
+
cfg = loadEndpointConfig();
|
|
75
|
+
}
|
|
76
|
+
catch {
|
|
77
|
+
return join(root, "output");
|
|
78
|
+
}
|
|
79
|
+
const raw = cfg["output_dir"];
|
|
80
|
+
if (typeof raw !== "string" || raw.trim() === "")
|
|
81
|
+
return join(root, "output");
|
|
82
|
+
const v = raw.trim();
|
|
83
|
+
return v.startsWith("/") ? v : join(root, v);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
export function lanesEnvFileOf() {
|
|
97
|
+
let cfg;
|
|
98
|
+
try {
|
|
99
|
+
cfg = loadEndpointConfig();
|
|
100
|
+
}
|
|
101
|
+
catch {
|
|
102
|
+
return null;
|
|
103
|
+
}
|
|
104
|
+
const raw = cfg["lanes_env_file"];
|
|
105
|
+
if (typeof raw !== "string" || raw.trim() === "")
|
|
106
|
+
return null;
|
|
107
|
+
return raw.trim();
|
|
108
|
+
}
|
|
109
|
+
/** Parse ONE key out of a systemd EnvironmentFile spelling: KEY=VALUE
|
|
110
|
+
* lines; blank lines and `#`/`;` comments (indented or not) are
|
|
111
|
+
* skipped; inline `#` text stays part of the value (systemd does not
|
|
112
|
+
* strip trailing comments in this mode, so neither do we — a quoted
|
|
113
|
+
* or commented value surfaces verbatim in the named-source answer
|
|
114
|
+
* and fails its sentinels loudly, never silently). ORDER: LAST-WINS —
|
|
115
|
+
* a later assignment overrides an earlier one, matching systemd's
|
|
116
|
+
* EnvironmentFile read order (later settings override earlier
|
|
117
|
+
* settings) and shell source semantics. The walls pin this with a
|
|
118
|
+
* first-dead/last-healthy fixture. */
|
|
119
|
+
export function lanesEnvValue(file, key, read) {
|
|
120
|
+
let text;
|
|
121
|
+
try {
|
|
122
|
+
text = read(file);
|
|
123
|
+
}
|
|
124
|
+
catch {
|
|
125
|
+
return { value: "", present: false };
|
|
126
|
+
}
|
|
127
|
+
let found = null;
|
|
128
|
+
for (const line of text.split("\n")) {
|
|
129
|
+
const trimmed = line.trim();
|
|
130
|
+
if (trimmed === "" || trimmed.startsWith("#") || trimmed.startsWith(";"))
|
|
131
|
+
continue;
|
|
132
|
+
const eq = trimmed.indexOf("=");
|
|
133
|
+
if (eq <= 0)
|
|
134
|
+
continue;
|
|
135
|
+
if (trimmed.slice(0, eq).trim() !== key)
|
|
136
|
+
continue;
|
|
137
|
+
found = trimmed.slice(eq + 1).trim();
|
|
138
|
+
}
|
|
139
|
+
return found === null ? { value: "", present: false } : { value: found, present: true };
|
|
140
|
+
}
|
|
141
|
+
export function runtimeEnvView(envKey, env = process.env) {
|
|
142
|
+
const file = lanesEnvFileOf();
|
|
143
|
+
if (file !== null) {
|
|
144
|
+
const lane = lanesEnvValue(file, envKey, (p) => readFileSync(p, "utf8"));
|
|
145
|
+
if (lane.present && lane.value !== "")
|
|
146
|
+
return { value: lane.value, source: "lanes.env" };
|
|
147
|
+
}
|
|
148
|
+
const value = (env[envKey] ?? "").trim();
|
|
149
|
+
return { value, source: value === "" ? "absent" : "process" };
|
|
150
|
+
}
|
|
151
|
+
export const nodeRuntimeFs = {
|
|
152
|
+
exists: (p) => existsSync(p),
|
|
153
|
+
isSymlink: (p) => {
|
|
154
|
+
try {
|
|
155
|
+
return lstatSync(p).isSymbolicLink();
|
|
156
|
+
}
|
|
157
|
+
catch {
|
|
158
|
+
return false;
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
readlink: (p) => {
|
|
162
|
+
try {
|
|
163
|
+
return readlinkSync(p);
|
|
164
|
+
}
|
|
165
|
+
catch {
|
|
166
|
+
return null;
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
mkdir: (p) => {
|
|
170
|
+
mkdirSync(p, { recursive: true });
|
|
171
|
+
},
|
|
172
|
+
symlink: (target, path) => {
|
|
173
|
+
symlinkSync(target, path, "dir");
|
|
174
|
+
},
|
|
175
|
+
};
|
|
176
|
+
/** THE DECISION CORE (pure). Order is the law:
|
|
177
|
+
* 1. a stated env override (process or lanes.env) — valid counts as
|
|
178
|
+
* present (source env / lanes.env), invalid refuses naming it
|
|
179
|
+
* (the press gate refuses the same run: gate+verb agreement);
|
|
180
|
+
* 2. no engine root refuses (the estate cannot see that tree);
|
|
181
|
+
* 3. the walk-up from the engine's output — a hit is present
|
|
182
|
+
* (the managed-engine arm: the verb never double-seats);
|
|
183
|
+
* 4. an existing healthy target (real dir or live symlink) is
|
|
184
|
+
* present; a real CHIPPED or foreign one refuses target-blocked
|
|
185
|
+
* — never clobbered;
|
|
186
|
+
* 5. a healthy seed with an absent target is linkable; a chipped
|
|
187
|
+
* seed refuses broken-seed voicing the DECL's provision command. */
|
|
188
|
+
export function resolveRuntimeProvision(rt, deps) {
|
|
189
|
+
if (deps.env.value !== "") {
|
|
190
|
+
if (runtimeHealthy(deps.env.value, rt.sentinel)) {
|
|
191
|
+
return {
|
|
192
|
+
kind: "already-present",
|
|
193
|
+
home: deps.env.value,
|
|
194
|
+
source: deps.env.source === "lanes.env" ? "lanes.env" : "env",
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
return {
|
|
198
|
+
kind: "refused",
|
|
199
|
+
reason: "env-invalid",
|
|
200
|
+
detail: "provision_runtime: the " + rt.env + " override ('" + deps.env.value + "' from " +
|
|
201
|
+
deps.env.source + ") does not hold every sentinel (" + rt.sentinel.join(", ") +
|
|
202
|
+
") — fix the path or clear the override; the press gate refuses this run until then",
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
if (deps.engineRoot === null) {
|
|
206
|
+
return {
|
|
207
|
+
kind: "refused",
|
|
208
|
+
reason: "no-engine-root",
|
|
209
|
+
detail: "provision_runtime: the endpoint states no engine_root — the estate cannot see the engine tree, " +
|
|
210
|
+
"so it refuses to guess where " + rt.name + " should link. Declare engine_root in the endpoint config first.",
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
const walked = resolveRuntimeHome(deps.walkStart, rt);
|
|
214
|
+
if (walked !== null)
|
|
215
|
+
return { kind: "already-present", home: walked, source: "walk-up" };
|
|
216
|
+
const target = join(deps.engineRoot, "data", "runtime", rt.name);
|
|
217
|
+
if (deps.fs.exists(target)) {
|
|
218
|
+
if (runtimeHealthy(target, rt.sentinel)) {
|
|
219
|
+
return { kind: "already-present", home: target, source: "target" };
|
|
220
|
+
}
|
|
221
|
+
const linked = deps.fs.isSymlink(target) ? deps.fs.readlink(target) : null;
|
|
222
|
+
return {
|
|
223
|
+
kind: "refused",
|
|
224
|
+
reason: "target-blocked",
|
|
225
|
+
detail: "provision_runtime: " + target + " already exists" +
|
|
226
|
+
(linked !== null ? " (a symlink to " + linked + ")" : " as a real dir") +
|
|
227
|
+
" but does not hold every sentinel (" + rt.sentinel.join(", ") +
|
|
228
|
+
") — the verb never clobbers it; remove the chipped copy by hand and press again",
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
const seed = deps.repoSeedHome;
|
|
232
|
+
if (!runtimeHealthy(seed, rt.sentinel)) {
|
|
233
|
+
return {
|
|
234
|
+
kind: "refused",
|
|
235
|
+
reason: "broken-seed",
|
|
236
|
+
detail: "provision_runtime: the repo seed " + seed + " does not hold every sentinel (" +
|
|
237
|
+
rt.sentinel.join(", ") + ") — the fresh provision script is not a cure here (the chain files are " +
|
|
238
|
+
"placed by hand); repair the seed with " + rt.command + " and its documented hand steps first",
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
return { kind: "linkable", seed, target };
|
|
242
|
+
}
|
|
243
|
+
//# sourceMappingURL=runtimeProvision.js.map
|
package/lib/skillRows.js
CHANGED
|
@@ -117,7 +117,12 @@ export function readDoc(path, sid, scope, genre, card, model) {
|
|
|
117
117
|
const fm = frontmatter(text);
|
|
118
118
|
// (split never yields [] — pop is always a string here)
|
|
119
119
|
const leaf = path.split("/").pop();
|
|
120
|
-
const gated = gateSkill(sid, fm.name !== "" ? fm.name : stem(leaf),
|
|
120
|
+
const gated = gateSkill(sid, fm.name !== "" ? fm.name : stem(leaf),
|
|
121
|
+
|
|
122
|
+
// long prompts and skills — that is intentional"): the authored
|
|
123
|
+
// tier-1 line rides every load verbatim; the old .slice(0, 200)
|
|
124
|
+
// cut intentional lines mid-word with no wall ever seeing it.
|
|
125
|
+
fm.description, scope, genre, card, model, null, null);
|
|
121
126
|
return { row: gated, path };
|
|
122
127
|
}
|
|
123
128
|
/** THE SPAWN PLANE (operator pin, stroke 87): leaves under
|
|
@@ -230,7 +235,7 @@ function familyLane(mdir, mid, genre, skillRows) {
|
|
|
230
235
|
lines.push("- `" + r.row.id + "` — " + r.row.name + (r.row.description === "" ? "" : ": " + r.row.description));
|
|
231
236
|
}
|
|
232
237
|
return {
|
|
233
|
-
row: gateSkill("model:" + mid, mid, mid + " family lane: " + String(skillRows.length) + " skill row(s)
|
|
238
|
+
row: gateSkill("model:" + mid, mid, mid + " family lane: " + String(skillRows.length) + " skill row(s) deepening the craft line when the ask is unusual (never required pre-reads)", "model-lane", genre, null, mid, null, null),
|
|
234
239
|
path: join(mdir, "agents", "skills"),
|
|
235
240
|
bodyText: lines.join("\n") + "\n",
|
|
236
241
|
};
|
package/package.json
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@melite/estate-queue",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"license": "
|
|
3
|
+
"version": "0.2.0-alpha",
|
|
4
|
+
"license": "AGPL-3.0-or-later",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "The serial run queue as a host Cordis service (REBUILD-5 of the gateway kill): lock-first single-writer, sidecar/ledger I/O, reproduce/resume refusal arms, run-status probe slot. No doors, no routes, no port — the runs remote exposes the lanes over this seat.",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@deepseek-ai/
|
|
9
|
-
"@deepseek-ai/dsh-
|
|
10
|
-
"@deepseek-ai/dsh-
|
|
11
|
-
"@deepseek-ai/dsh-
|
|
12
|
-
"@deepseek-ai/dsh-
|
|
13
|
-
"@deepseek-ai/dsh-
|
|
14
|
-
"@deepseek-ai/
|
|
15
|
-
"@deepseek-ai/
|
|
16
|
-
"@melite/comfyui-
|
|
17
|
-
"@melite/comfyui-
|
|
18
|
-
"@melite/contracts": "0.
|
|
19
|
-
"@melite/engine-contract": "0.
|
|
20
|
-
"@melite/estate-drafts": "0.
|
|
21
|
-
"@melite/estate-provisioning": "0.
|
|
8
|
+
"@deepseek-ai/dsh-atomic-write": "0.2.1-rc.2",
|
|
9
|
+
"@deepseek-ai/dsh-brand": "0.2.1-rc.2",
|
|
10
|
+
"@deepseek-ai/dsh-home-paths": "0.2.1-rc.2",
|
|
11
|
+
"@deepseek-ai/dsh-timeout": "0.2.1-rc.2",
|
|
12
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.1-rc.2",
|
|
13
|
+
"@deepseek-ai/dsh-util-values": "0.2.1-rc.2",
|
|
14
|
+
"@deepseek-ai/schemastery": "^3.18.5",
|
|
15
|
+
"@deepseek-ai/cordis-plugin-timer": "~1.1.3",
|
|
16
|
+
"@melite/comfyui-cordis": "0.2.0-alpha",
|
|
17
|
+
"@melite/comfyui-card-kit": "0.2.0-alpha",
|
|
18
|
+
"@melite/contracts": "0.2.0-alpha",
|
|
19
|
+
"@melite/engine-contract": "0.2.0-alpha",
|
|
20
|
+
"@melite/estate-drafts": "0.2.0-alpha",
|
|
21
|
+
"@melite/estate-provisioning": "0.2.0-alpha"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/node": "^22.20.0",
|
|
25
25
|
"typescript": "^5.9.3",
|
|
26
|
-
"@deepseek-ai/cordis": "^4.0.
|
|
26
|
+
"@deepseek-ai/cordis": "^4.0.5"
|
|
27
27
|
},
|
|
28
28
|
"exports": {
|
|
29
29
|
".": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"./package.json": "./package.json"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@deepseek-ai/cordis": "^4.0.
|
|
36
|
+
"@deepseek-ai/cordis": "^4.0.5"
|
|
37
37
|
},
|
|
38
38
|
"files": [
|
|
39
39
|
"lib/index.js",
|