@senpi-ai/runtime 3.0.189 → 3.0.202
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/dist/cli/guide-commands.d.ts.map +1 -1
- package/dist/cli/guide-commands.js +37 -17
- package/dist/cli/guide-commands.js.map +1 -1
- package/dist/cli/senpi-commands.d.ts.map +1 -1
- package/dist/cli/senpi-commands.js +62 -30
- package/dist/cli/senpi-commands.js.map +1 -1
- package/dist/cli/update-command.d.ts +20 -8
- package/dist/cli/update-command.d.ts.map +1 -1
- package/dist/cli/update-command.js +52 -37
- package/dist/cli/update-command.js.map +1 -1
- package/dist/deploy/orchestrator.js +3 -3
- package/dist/deploy/orchestrator.js.map +1 -1
- package/dist/deploy/package.d.ts +17 -0
- package/dist/deploy/package.d.ts.map +1 -1
- package/dist/deploy/package.js +19 -0
- package/dist/deploy/package.js.map +1 -1
- package/dist/deploy/proof-gate.d.ts.map +1 -1
- package/dist/deploy/proof-gate.js +12 -3
- package/dist/deploy/proof-gate.js.map +1 -1
- package/dist/deploy/recheck-commands.d.ts +2 -0
- package/dist/deploy/recheck-commands.d.ts.map +1 -1
- package/dist/deploy/recheck-commands.js +4 -0
- package/dist/deploy/recheck-commands.js.map +1 -1
- package/dist/deploy/register.js +2 -2
- package/dist/deploy/register.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -3
- package/dist/index.js.map +1 -1
- package/dist/runtime/effective-config.d.ts.map +1 -1
- package/dist/runtime/effective-config.js +12 -2
- package/dist/runtime/effective-config.js.map +1 -1
- package/dist/runtime/load-runtime-config.d.ts +20 -0
- package/dist/runtime/load-runtime-config.d.ts.map +1 -1
- package/dist/runtime/load-runtime-config.js +36 -8
- package/dist/runtime/load-runtime-config.js.map +1 -1
- package/dist/runtime/map-strategies.d.ts.map +1 -1
- package/dist/runtime/map-strategies.js +7 -4
- package/dist/runtime/map-strategies.js.map +1 -1
- package/dist/runtime/recipe-file.d.ts +73 -0
- package/dist/runtime/recipe-file.d.ts.map +1 -0
- package/dist/runtime/recipe-file.js +194 -0
- package/dist/runtime/recipe-file.js.map +1 -0
- package/dist/runtime/runtime-descriptor.d.ts +23 -0
- package/dist/runtime/runtime-descriptor.d.ts.map +1 -1
- package/dist/runtime/runtime-descriptor.js +40 -0
- package/dist/runtime/runtime-descriptor.js.map +1 -1
- package/dist/runtime/update-apply-deps.d.ts +30 -11
- package/dist/runtime/update-apply-deps.d.ts.map +1 -1
- package/dist/runtime/update-apply-deps.js +93 -27
- package/dist/runtime/update-apply-deps.js.map +1 -1
- package/dist/runtime/update-handler.d.ts +28 -9
- package/dist/runtime/update-handler.d.ts.map +1 -1
- package/dist/runtime/update-handler.js +186 -19
- package/dist/runtime/update-handler.js.map +1 -1
- package/dist/runtime/update-register.d.ts +101 -2
- package/dist/runtime/update-register.d.ts.map +1 -1
- package/dist/runtime/update-register.js +269 -44
- package/dist/runtime/update-register.js.map +1 -1
- package/dist/scanners/external/scaffold/preflight.py +492 -12
- package/dist/validate/codes.d.ts +2 -0
- package/dist/validate/codes.d.ts.map +1 -1
- package/dist/validate/codes.js +6 -0
- package/dist/validate/codes.js.map +1 -1
- package/dist/validate/live-stage.d.ts +12 -0
- package/dist/validate/live-stage.d.ts.map +1 -1
- package/dist/validate/live-stage.js +16 -0
- package/dist/validate/live-stage.js.map +1 -1
- package/dist/validate/package-gates-stage.d.ts +13 -1
- package/dist/validate/package-gates-stage.d.ts.map +1 -1
- package/dist/validate/package-gates-stage.js +3 -8
- package/dist/validate/package-gates-stage.js.map +1 -1
- package/dist/validate/proof.d.ts.map +1 -1
- package/dist/validate/proof.js +20 -5
- package/dist/validate/proof.js.map +1 -1
- package/dist/validate/target.d.ts +75 -1
- package/dist/validate/target.d.ts.map +1 -1
- package/dist/validate/target.js +94 -28
- package/dist/validate/target.js.map +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
|
@@ -23,9 +23,15 @@
|
|
|
23
23
|
* turns a plan into a network round trip per gate. The report says so rather than staying silent,
|
|
24
24
|
* because silence there reads as "all clear".
|
|
25
25
|
*/
|
|
26
|
+
import { dirname } from "node:path";
|
|
26
27
|
import { isScalar, parseDocument } from "yaml";
|
|
28
|
+
import { RecipeReadError, RECIPE_READ_FIX } from "./load-runtime-config.js";
|
|
27
29
|
import { planUpdate } from "./update-plan.js";
|
|
28
30
|
import { isRollbackFailure } from "./rebuild-errors.js";
|
|
31
|
+
import { recipeHash } from "./runtime-descriptor.js";
|
|
32
|
+
import { instanceRuntimeId } from "../deploy/package.js";
|
|
33
|
+
import { deployPyUpdateCommand } from "../deploy/recheck-commands.js";
|
|
34
|
+
import { manifestDirectory, sharedDirNote, sharesDir } from "../validate/target.js";
|
|
29
35
|
export const UPDATE_HANDLER_CODE = {
|
|
30
36
|
noSuchRuntime: "E_UPDATE_NO_SUCH_RUNTIME",
|
|
31
37
|
ambiguousTarget: "E_UPDATE_AMBIGUOUS_TARGET",
|
|
@@ -45,6 +51,12 @@ export const UPDATE_HANDLER_CODE = {
|
|
|
45
51
|
recipeChangedUnderCodeOnly: "E_UPDATE_RECIPE_CHANGED",
|
|
46
52
|
/** The proposed recipe still carries a `${VAR}` that nothing in the environment resolves. */
|
|
47
53
|
unresolvedPlaceholder: "E_UPDATE_UNRESOLVED_PLACEHOLDER",
|
|
54
|
+
/**
|
|
55
|
+
* The wallet placeholder sits on a line other than a plain `wallet:` line (a flow map, a quoted
|
|
56
|
+
* key, a block scalar, a value on the next line), so binding it changes a line that `recipeHash`
|
|
57
|
+
* keeps and the stored recipe would read as drifted from its package forever.
|
|
58
|
+
*/
|
|
59
|
+
walletPlaceholderForm: "E_UPDATE_WALLET_FORM",
|
|
48
60
|
/** The swap failed and the runtime was restored to the recipe it was already running. */
|
|
49
61
|
rebuildFailed: "E_UPDATE_REBUILD_FAILED",
|
|
50
62
|
/** The swap failed AND the restore failed. Nothing is managing the book. */
|
|
@@ -55,13 +67,26 @@ export const UPDATE_HANDLER_CODE = {
|
|
|
55
67
|
/** Apply {@link bindWalletPlaceholder} to a recipe source, leaving a path-based source untouched. */
|
|
56
68
|
function bindSourceWallet(source, wallet) {
|
|
57
69
|
return source.content !== undefined
|
|
58
|
-
? { ...source, content: bindWalletPlaceholder(source.content, wallet) }
|
|
70
|
+
? { ...source, content: bindWalletPlaceholder(source.content, wallet).content }
|
|
59
71
|
: source;
|
|
60
72
|
}
|
|
73
|
+
/** The whole source lines a `[start, end)` range sits on. */
|
|
74
|
+
function sourceLines(content, start, end) {
|
|
75
|
+
const from = content.lastIndexOf("\n", start - 1) + 1;
|
|
76
|
+
const stop = content.indexOf("\n", Math.max(start, end - 1));
|
|
77
|
+
return {
|
|
78
|
+
line: content.slice(0, from).split("\n").length,
|
|
79
|
+
lines: content.slice(from, stop === -1 ? undefined : stop).split("\n").map((l) => l.trim()),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
61
82
|
/**
|
|
62
83
|
* Substitute an unresolved `${VAR}` standing in for `strategy.wallet` with the wallet the target
|
|
63
84
|
* runtime actually runs. Leaves a resolvable variable, and every other placeholder, alone.
|
|
64
85
|
*
|
|
86
|
+
* Hash-preserving: it edits only the wallet token, and `recipeHash` drops the `wallet:` line, so the
|
|
87
|
+
* bound text hashes equal to the package file it came from. That is what lets `status.py` compare
|
|
88
|
+
* the stored recipe with the package on disk; re-serializing anything else here breaks it.
|
|
89
|
+
*
|
|
65
90
|
* YAML-aware, addressing `strategy.wallet` by node rather than by text. A line regex over
|
|
66
91
|
* `wallet:` cannot be scoped by indentation — deploy-rendered packages legitimately carry the
|
|
67
92
|
* placeholder indented under `strategy:` — so it also matched a `wallet` key ANYWHERE in the
|
|
@@ -71,19 +96,69 @@ function bindSourceWallet(source, wallet) {
|
|
|
71
96
|
* the corrupted bound form was persisted to the registry for every restart to replay.
|
|
72
97
|
*/
|
|
73
98
|
function bindWalletPlaceholder(content, wallet) {
|
|
99
|
+
const unbound = { content, bound: false };
|
|
74
100
|
if (wallet.length === 0)
|
|
75
|
-
return
|
|
101
|
+
return unbound;
|
|
76
102
|
const doc = parseDocument(content);
|
|
77
103
|
const node = doc.getIn(["strategy", "wallet"], true);
|
|
78
104
|
if (!isScalar(node) || typeof node.value !== "string")
|
|
79
|
-
return
|
|
105
|
+
return unbound;
|
|
80
106
|
const name = /^\$\{([A-Za-z_][A-Za-z0-9_]*)\}$/.exec(node.value.trim())?.[1];
|
|
81
107
|
// A resolvable variable is the env-resolution layer's job; an absent or literal wallet is not a
|
|
82
108
|
// placeholder. Only the unresolved-placeholder case is bound here.
|
|
83
109
|
if (name === undefined || process.env[name] !== undefined)
|
|
84
|
-
return
|
|
110
|
+
return unbound;
|
|
111
|
+
// Edit only the wallet value's own source range so every other byte of the recipe is kept;
|
|
112
|
+
// re-serializing the document would re-wrap and re-space it, and `recipeHash` would then read
|
|
113
|
+
// the stored recipe as drifted from its package with no edit. A parsed node always carries its
|
|
114
|
+
// range; without one the placeholder is left for the unresolved-placeholder refusal.
|
|
115
|
+
if (!node.range)
|
|
116
|
+
return unbound;
|
|
117
|
+
const [start, valueEnd] = node.range;
|
|
118
|
+
const value = content.slice(start, valueEnd);
|
|
119
|
+
// The refusal quotes the line(s) of the placeholder TOKEN, not of the whole value: a block
|
|
120
|
+
// scalar's value range starts on its `wallet: |` key line, and quoting that line as "the
|
|
121
|
+
// placeholder's line" contradicts a refusal that says the placeholder is not on a `wallet:` line.
|
|
122
|
+
// A token spelled with a YAML escape is not found literally; the whole value is quoted then.
|
|
123
|
+
const token = `\${${name}}`;
|
|
124
|
+
const tokenAt = value.indexOf(token);
|
|
125
|
+
const at = tokenAt === -1
|
|
126
|
+
? sourceLines(content, start, valueEnd)
|
|
127
|
+
: sourceLines(content, start + tokenAt, start + tokenAt + token.length);
|
|
128
|
+
const bound = (text) => ({ content: text, bound: true, variable: name, at });
|
|
129
|
+
const splice = (replacement) => content.slice(0, start) + replacement + content.slice(valueEnd);
|
|
130
|
+
// First the token alone, keeping the author's quoting. A plain scalar is quoted so an `0x…`
|
|
131
|
+
// address stays a string rather than parsing as a hex number.
|
|
132
|
+
const inToken = splice(value.split(`\${${name}}`).join(node.type === "PLAIN" ? JSON.stringify(wallet) : wallet));
|
|
133
|
+
// A document with errors: leave those for the recipe parser to report.
|
|
134
|
+
if (doc.errors.length > 0)
|
|
135
|
+
return bound(inToken);
|
|
85
136
|
node.value = wallet;
|
|
86
|
-
|
|
137
|
+
// Kept only when the text parses to exactly the document with the wallet bound. `toJS()` can
|
|
138
|
+
// throw (an alias past its expansion limit); such a text is not kept.
|
|
139
|
+
const js = (d) => {
|
|
140
|
+
try {
|
|
141
|
+
return d.errors.length === 0 ? JSON.stringify(d.toJS()) : undefined;
|
|
142
|
+
}
|
|
143
|
+
catch {
|
|
144
|
+
return undefined;
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
const intended = js(doc);
|
|
148
|
+
const bindsExactly = (text) => intended !== undefined && js(parseDocument(text)) === intended;
|
|
149
|
+
if (bindsExactly(inToken))
|
|
150
|
+
return bound(inToken);
|
|
151
|
+
// A value padded with whitespace, or a token spelled with an escape: replace the whole value with
|
|
152
|
+
// the quoted wallet. A value that spans lines also lands here (a block scalar's range ends with
|
|
153
|
+
// its line break, which stays), but `prepare` refuses it, because the bound text cannot hash
|
|
154
|
+
// equal to the file.
|
|
155
|
+
const whole = splice(JSON.stringify(wallet) + (value.endsWith("\n") ? "\n" : ""));
|
|
156
|
+
if (bindsExactly(whole))
|
|
157
|
+
return bound(whole);
|
|
158
|
+
// Neither splice reads back as the bound document: `intended` is undefined when `toJS()` throws
|
|
159
|
+
// on something `doc.errors` does not flag, such as an unresolved alias (`x: *nope`). Leave that
|
|
160
|
+
// for the recipe parser, which reports it as an unreadable recipe, and the checks after it.
|
|
161
|
+
return bound(inToken);
|
|
87
162
|
}
|
|
88
163
|
/**
|
|
89
164
|
* `${VAR}` occurrences that the environment does not define.
|
|
@@ -132,7 +207,7 @@ function resolveTarget(runtimes, req) {
|
|
|
132
207
|
if (runtimes.length > 1) {
|
|
133
208
|
return {
|
|
134
209
|
ok: false,
|
|
135
|
-
refusal: refusal(UPDATE_HANDLER_CODE.ambiguousTarget, `This box runs ${runtimes.length} runtimes and none was named`, "An update rebuilds a live strategy's components. Choosing one by guessing is choosing someone's open position book by guessing.", `Name one with --id: ${runtimes.map((r) => r.id).join(", ")}`),
|
|
210
|
+
refusal: refusal(UPDATE_HANDLER_CODE.ambiguousTarget, `This box runs ${runtimes.length} runtimes and none was named`, "An update rebuilds a live strategy's components. Choosing one by guessing is choosing someone's open position book by guessing.", `Name one with \`id\` (CLI: --id): ${runtimes.map((r) => r.id).join(", ")}`),
|
|
136
211
|
};
|
|
137
212
|
}
|
|
138
213
|
return { ok: true, runtime: runtimes[0] };
|
|
@@ -179,6 +254,20 @@ async function prepare(deps, req, applied) {
|
|
|
179
254
|
catch (err) {
|
|
180
255
|
// The recipe the runtime is RUNNING failed to parse. That is not the user's edit being wrong —
|
|
181
256
|
// it is the stored copy being unreadable, which they cannot fix by editing their package.
|
|
257
|
+
// A path-installed runtime whose file is gone may have fine YAML, so a read error names the
|
|
258
|
+
// path and the error instead of "could not be parsed". It states only that: not "running"
|
|
259
|
+
// (after a restart the boot cannot read the path either), and no reinstall or recovery steps.
|
|
260
|
+
// Writing an edited recipe to that path would not fix it: `current` is re-read from that path,
|
|
261
|
+
// so the edit would diff against itself, as an in-place edit of a path-installed recipe
|
|
262
|
+
// already does (out of scope here).
|
|
263
|
+
if (err instanceof RecipeReadError) {
|
|
264
|
+
return {
|
|
265
|
+
ok: false,
|
|
266
|
+
refusals: [
|
|
267
|
+
refusal(UPDATE_HANDLER_CODE.unreadableRecipe, `The recipe file this runtime was installed from, ${err.path}, could not be read: ${err.detail}`, "Without it there is nothing to compare the change against, so the update cannot say what it would alter.", "Nothing was changed. Tell the user this path and error; don't write your edited recipe to that path."),
|
|
268
|
+
],
|
|
269
|
+
};
|
|
270
|
+
}
|
|
182
271
|
return {
|
|
183
272
|
ok: false,
|
|
184
273
|
refusals: [
|
|
@@ -196,12 +285,8 @@ async function prepare(deps, req, applied) {
|
|
|
196
285
|
// the deployment's identity, changing it is refused outright a few lines below, and substituting
|
|
197
286
|
// any OTHER value could only produce that refusal. Anything else left unresolved is still an
|
|
198
287
|
// error, because nothing here knows what it was meant to be.
|
|
199
|
-
const
|
|
200
|
-
|
|
201
|
-
...(req.recipe.content !== undefined
|
|
202
|
-
? { content: bindWalletPlaceholder(req.recipe.content, runtime.wallet) }
|
|
203
|
-
: {}),
|
|
204
|
-
};
|
|
288
|
+
const walletBind = bindWalletPlaceholder(req.recipe.content, runtime.wallet);
|
|
289
|
+
const recipeSource = { ...req.recipe, content: walletBind.content };
|
|
205
290
|
// A package deployed by `deploy.py` keeps `${VAR}` placeholders in its on-disk recipe — the
|
|
206
291
|
// renderer substitutes them at install time and stores only the RESULT in the registry, so the
|
|
207
292
|
// file on disk cannot be loaded by anything afterwards unless that variable is still exported.
|
|
@@ -222,6 +307,16 @@ async function prepare(deps, req, applied) {
|
|
|
222
307
|
next = await deps.parseConfig(recipeSource);
|
|
223
308
|
}
|
|
224
309
|
catch (err) {
|
|
310
|
+
// A path that cannot be read is not bad YAML; "Fix the YAML" would send the caller to edit a
|
|
311
|
+
// recipe that is fine. The read error says which; the fix is the same for all of them.
|
|
312
|
+
if (err instanceof RecipeReadError) {
|
|
313
|
+
return {
|
|
314
|
+
ok: false,
|
|
315
|
+
refusals: [
|
|
316
|
+
refusal(UPDATE_HANDLER_CODE.unreadableRecipe, `The recipe at ${err.path} could not be read: ${err.detail}`, "Nothing is changed; the runtime keeps running its current recipe.", RECIPE_READ_FIX),
|
|
317
|
+
],
|
|
318
|
+
};
|
|
319
|
+
}
|
|
225
320
|
return {
|
|
226
321
|
ok: false,
|
|
227
322
|
refusals: [
|
|
@@ -229,6 +324,32 @@ async function prepare(deps, req, applied) {
|
|
|
229
324
|
],
|
|
230
325
|
};
|
|
231
326
|
}
|
|
327
|
+
// The bound recipe is what gets stored, and `recipeHash` over it must equal the digest over the
|
|
328
|
+
// file it came from, or `status.py` reports an edit that was never applied on every check. The
|
|
329
|
+
// digest drops only lines that START with `wallet:`, so a placeholder on such a line binds
|
|
330
|
+
// hash-equal. On any other line (a flow map, a quoted key, a block scalar, a value on the next
|
|
331
|
+
// line) binding changes a line both sides keep, and no bound text can avoid that. Hashed only
|
|
332
|
+
// when the bind changed the text: an unbound recipe is its own file.
|
|
333
|
+
if (walletBind.bound && recipeHash(walletBind.content) !== recipeHash(req.recipe.content)) {
|
|
334
|
+
const placeholder = `\${${walletBind.variable}}`;
|
|
335
|
+
const { line, lines } = walletBind.at;
|
|
336
|
+
const where = lines.length === 1
|
|
337
|
+
? `line ${line}: \`${lines[0]}\``
|
|
338
|
+
: `lines ${line}-${line + lines.length - 1}: ${lines.map((l) => `\`${l}\``).join(" / ")}`;
|
|
339
|
+
return {
|
|
340
|
+
ok: false,
|
|
341
|
+
refusals: [
|
|
342
|
+
refusal(UPDATE_HANDLER_CODE.walletPlaceholderForm, `strategy.wallet's placeholder ${placeholder} is not on a plain \`wallet:\` line`, "The update binds the placeholder to this runtime's wallet before storing the recipe. The " +
|
|
343
|
+
`drift check skips only lines that start with \`wallet:\`, and the placeholder is on ${where}. ` +
|
|
344
|
+
"Binding it would change a line the drift check compares, so the stored recipe would read " +
|
|
345
|
+
"as changed from its package with no edit. Nothing is changed; the runtime keeps running " +
|
|
346
|
+
"its current recipe.", `Write the wallet in the package recipe as its own line under \`strategy:\`, key unquoted and ` +
|
|
347
|
+
`value on the same line: \`wallet: "${placeholder}"\`. The edit makes the package's ` +
|
|
348
|
+
`validation proof stale, so run \`openclaw senpi validate ${req.recipe.dir ?? "<package dir>"}\` ` +
|
|
349
|
+
"to record a new one, then re-run the same command."),
|
|
350
|
+
],
|
|
351
|
+
};
|
|
352
|
+
}
|
|
232
353
|
// The same gate `senpi.installRuntime` applies, run BEFORE anything is torn down — which is the
|
|
233
354
|
// whole reason an update can refuse safely where a boot loop cannot.
|
|
234
355
|
const gate = await deps.installGate(await deps.recipeFindings(recipeSource));
|
|
@@ -243,8 +364,8 @@ async function prepare(deps, req, applied) {
|
|
|
243
364
|
ok: false,
|
|
244
365
|
refusals: [
|
|
245
366
|
refusal(UPDATE_HANDLER_CODE.recipeChangedUnderCodeOnly, "--code-only was passed, but the recipe changed as well", "The flag asserts that only scanner code differs. Applying anyway would ship a recipe " +
|
|
246
|
-
"change the caller did not mean to make, alongside the code they did.", "Re-run without --code-only to see what the recipe change would do, or
|
|
247
|
-
"and re-run with it."),
|
|
367
|
+
"change the caller did not mean to make, alongside the code they did.", "Re-run without `codeOnly` (CLI: --code-only) to see what the recipe change would do, or " +
|
|
368
|
+
"revert the recipe and re-run with it."),
|
|
248
369
|
],
|
|
249
370
|
};
|
|
250
371
|
}
|
|
@@ -259,12 +380,14 @@ async function prepare(deps, req, applied) {
|
|
|
259
380
|
});
|
|
260
381
|
if (!plan.ok)
|
|
261
382
|
return { ok: false, refusals: plan.refusals };
|
|
262
|
-
const packageDir = recipeSource.dir
|
|
383
|
+
const packageDir = recipeSource.dir;
|
|
263
384
|
const applyBlockers = [];
|
|
264
385
|
if (packageDir !== undefined) {
|
|
265
|
-
// `req.recipe
|
|
266
|
-
//
|
|
267
|
-
|
|
386
|
+
// `req.recipe`, not `recipeSource`: the latter has had the wallet placeholder bound into its
|
|
387
|
+
// content and would not match the file the proof was taken over. A request is content-only (the
|
|
388
|
+
// gateway reads a `runtimeYamlPath` into content), so the gate compares these bytes with the
|
|
389
|
+
// proven recipe file.
|
|
390
|
+
const proof = await deps.verifyProof(packageDir, { content: req.recipe.content });
|
|
268
391
|
if (!proof.ok && proof.finding)
|
|
269
392
|
applyBlockers.push(proof.finding);
|
|
270
393
|
}
|
|
@@ -278,7 +401,10 @@ async function prepare(deps, req, applied) {
|
|
|
278
401
|
// plan still renders, with the gate named as the thing standing between it and an apply.
|
|
279
402
|
applyBlockers.push(refusal(UPDATE_HANDLER_CODE.proofRequired, "This update cannot be checked against a validation proof", "A proof is a claim about the exact contents of a package on disk. This recipe arrived as " +
|
|
280
403
|
"content with no directory, so there is nothing to verify it against and nothing is " +
|
|
281
|
-
"known about how it behaves.",
|
|
404
|
+
"known about how it behaves.", proofRequiredFix(runtime) +
|
|
405
|
+
"\nA raw senpi.update call: send the recipe content with `runtimeYamlDir`, the directory that " +
|
|
406
|
+
"holds runtime.yaml (the package root when runtime.yaml is there; otherwise the instance " +
|
|
407
|
+
"subdirectory that holds it)."));
|
|
282
408
|
}
|
|
283
409
|
return {
|
|
284
410
|
ok: true,
|
|
@@ -290,6 +416,47 @@ async function prepare(deps, req, applied) {
|
|
|
290
416
|
recipeSource,
|
|
291
417
|
};
|
|
292
418
|
}
|
|
419
|
+
/**
|
|
420
|
+
* The fix for `E_UPDATE_PROOF_REQUIRED`: where to point `validate` and `update` for this runtime.
|
|
421
|
+
*
|
|
422
|
+
* Built from where the registry says the runtime was installed from, never composed from its id.
|
|
423
|
+
* `<pkg>/<instance>` is wrong for a flat package (`foo-main` is installed from `foo`, and `foo/main`
|
|
424
|
+
* does not exist) and for an instance declared deeper than one level, and an agent that maps an id
|
|
425
|
+
* back to a path follows it into a not-found. A directory several instances share gets the
|
|
426
|
+
* restructure fix instead: no proof can be recorded there, so no command into it can pass. The
|
|
427
|
+
* registry has no directory for a runtime installed from text, and the fix says so rather than
|
|
428
|
+
* inventing one.
|
|
429
|
+
*
|
|
430
|
+
* A senpi-skills package is named separately: `deploy.py update` runs the structural preflight the
|
|
431
|
+
* bare verb does not, as the guide and the runtime skill teach. deploy.py finds an instance only by
|
|
432
|
+
* its `<pkg-id>-<instance>` id, so that route is printed only when the registry directory resolves
|
|
433
|
+
* through a manifest to an instance whose composed id is this runtime's, with that manifest's
|
|
434
|
+
* package directory. Every other runtime (installed from text, a directory with no readable
|
|
435
|
+
* manifest, a custom id) gets the `openclaw senpi update` route alone.
|
|
436
|
+
*/
|
|
437
|
+
function proofRequiredFix(runtime) {
|
|
438
|
+
const where = runtime.source.path ?? runtime.source.dir;
|
|
439
|
+
const dir = runtime.source.dir ?? (runtime.source.path !== undefined ? dirname(runtime.source.path) : undefined);
|
|
440
|
+
const manifest = dir !== undefined ? manifestDirectory(dir) : undefined;
|
|
441
|
+
if (manifest?.kind === "instance" && sharesDir(manifest.pkg, manifest.instance)) {
|
|
442
|
+
return sharedDirNote(manifest.pkg, manifest.instance);
|
|
443
|
+
}
|
|
444
|
+
const viaSkills = manifest?.kind === "instance" && instanceRuntimeId(manifest.pkg, manifest.instance) === runtime.id
|
|
445
|
+
? "In a senpi-skills package, go through senpi-strategy-ops instead, then the same with --apply:\n" +
|
|
446
|
+
` ${deployPyUpdateCommand(manifest.pkg.dir, runtime.id)}`
|
|
447
|
+
: "";
|
|
448
|
+
if (where === undefined) {
|
|
449
|
+
return (`${runtime.id} was installed from text, so no directory is on record for it. Prove the ` +
|
|
450
|
+
"instance directory or recipe file you edited, then point update at that same path:\n" +
|
|
451
|
+
" openclaw senpi validate <recipe dir or file>\n" +
|
|
452
|
+
` openclaw senpi update <recipe dir or file> --id ${runtime.id} --apply` +
|
|
453
|
+
(viaSkills && `\n${viaSkills}`));
|
|
454
|
+
}
|
|
455
|
+
return (`Re-run against the recipe ${runtime.id} was installed from, after proving it:\n` +
|
|
456
|
+
` openclaw senpi validate ${where}\n` +
|
|
457
|
+
` openclaw senpi update ${where} --id ${runtime.id} --apply` +
|
|
458
|
+
(viaSkills && `\n${viaSkills}`));
|
|
459
|
+
}
|
|
293
460
|
export async function runUpdateDryRun(deps, req) {
|
|
294
461
|
const prepared = await prepare(deps, req, false);
|
|
295
462
|
if (!prepared.ok)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-handler.js","sourceRoot":"","sources":["../../src/runtime/update-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAI/C,OAAO,EAAE,UAAU,EAAmB,MAAM,kBAAkB,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ChF;aACF;SACF,CAAC;IACJ,CAAC;IAED,OAAO;QACL,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,eAAe;YACnB,CAAC,CAAC,EAAE,GAAG,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,eAAe,EAAE,EAAE;YAC5E,CAAC,CAAC,QAAQ,CAAC,IAAI;QACjB,MAAM,EAAE,QAAQ,CAAC,YAAY;KAC9B,CAAC;AACJ,CAAC"}
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
* The module owns no logic beyond adapting a gateway context into the handler's dependencies, so
|
|
14
14
|
* everything worth testing lives in `update-handler.ts` and tests never drive a gateway.
|
|
15
15
|
*/
|
|
16
|
+
import { z } from "zod";
|
|
16
17
|
import type { RuntimeConfig } from "./runtime-schema.js";
|
|
17
|
-
import { type RecipeSource, type UpdateHandlerDeps } from "./update-handler.js";
|
|
18
|
+
import { type RecipeSource, type UpdateHandlerDeps, type UpdateRecipe } from "./update-handler.js";
|
|
18
19
|
/**
|
|
19
20
|
* The plugin surface this needs. Explicit, so the module never reaches into the boot closure.
|
|
20
21
|
*
|
|
@@ -35,7 +36,7 @@ export interface UpdateGatewayContext extends UpdateHandlerDeps {
|
|
|
35
36
|
applyToRuntime?(runtimeId: string, next: RuntimeConfig, recipe: RecipeSource): Promise<void | {
|
|
36
37
|
scannersUnwired?: string;
|
|
37
38
|
}>;
|
|
38
|
-
writeRegistry?(runtimeId: string, recipe:
|
|
39
|
+
writeRegistry?(runtimeId: string, recipe: UpdateRecipe): Promise<void>;
|
|
39
40
|
/**
|
|
40
41
|
* Called once an apply has FULLY succeeded — swapped and recorded.
|
|
41
42
|
*
|
|
@@ -62,6 +63,104 @@ interface GatewayApi {
|
|
|
62
63
|
scope?: string;
|
|
63
64
|
}): void;
|
|
64
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Every key `senpi.update` reads, and the one message that names them.
|
|
68
|
+
*
|
|
69
|
+
* A raw gateway caller sends JSON, so a refusal phrased in CLI flags (`--path`) sent it guessing
|
|
70
|
+
* synonyms (`recipeDir`, `runtimeId`, `recipe`) one call at a time. Unknown keys follow one rule
|
|
71
|
+
* per mode, with no value exceptions:
|
|
72
|
+
*
|
|
73
|
+
* - An **apply** (`dryRun: false`) with any unknown key is refused as `INVALID_REQUEST` and nothing
|
|
74
|
+
* is applied. Dropping a key from a call that changes a live runtime would run a different
|
|
75
|
+
* change than the caller sent (`code_only` dropped is a full update; `runtime_id` dropped
|
|
76
|
+
* auto-resolves to whatever runtime is installed). The CLI sends only accepted keys.
|
|
77
|
+
* - A **plan** with unknown keys goes ahead, since a plan changes nothing, and names them after the
|
|
78
|
+
* report with the params list. A {@link nearMissOf near-miss} refuses a plan too: the plan would
|
|
79
|
+
* describe another call than the one meant (the wrong runtime, a full update, no apply).
|
|
80
|
+
*
|
|
81
|
+
* A `null` for an accepted key counts as absent, and so does `""` for a selector or path (see
|
|
82
|
+
* {@link isAbsent}). A near-miss sent as `null` is absent too, since the key it means would be. An
|
|
83
|
+
* unknown key that is not a near-miss still counts when `null`: nothing says what null means to
|
|
84
|
+
* it. A known key of the wrong type (`dryRun: "false"`, `id: 5`) is refused.
|
|
85
|
+
*
|
|
86
|
+
* Every INVALID_REQUEST leads with {@link PARAMS_CODE}, or {@link PARAM_UNSUPPORTED_CODE} for an
|
|
87
|
+
* apply refused only for keys no accepted key resembles, so the CLI reads it as a refusal.
|
|
88
|
+
*/
|
|
89
|
+
declare const PARAMS: z.ZodObject<{
|
|
90
|
+
runtimeYamlPath: z.ZodOptional<z.ZodString>;
|
|
91
|
+
runtimeYamlContent: z.ZodOptional<z.ZodString>;
|
|
92
|
+
runtimeYamlDir: z.ZodOptional<z.ZodString>;
|
|
93
|
+
id: z.ZodOptional<z.ZodString>;
|
|
94
|
+
address: z.ZodOptional<z.ZodString>;
|
|
95
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
96
|
+
codeOnly: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
+
}, "strip", z.ZodTypeAny, {
|
|
98
|
+
id?: string | undefined;
|
|
99
|
+
address?: string | undefined;
|
|
100
|
+
runtimeYamlPath?: string | undefined;
|
|
101
|
+
runtimeYamlContent?: string | undefined;
|
|
102
|
+
runtimeYamlDir?: string | undefined;
|
|
103
|
+
dryRun?: boolean | undefined;
|
|
104
|
+
codeOnly?: boolean | undefined;
|
|
105
|
+
}, {
|
|
106
|
+
id?: string | undefined;
|
|
107
|
+
address?: string | undefined;
|
|
108
|
+
runtimeYamlPath?: string | undefined;
|
|
109
|
+
runtimeYamlContent?: string | undefined;
|
|
110
|
+
runtimeYamlDir?: string | undefined;
|
|
111
|
+
dryRun?: boolean | undefined;
|
|
112
|
+
codeOnly?: boolean | undefined;
|
|
113
|
+
}>;
|
|
114
|
+
/**
|
|
115
|
+
* The parsed params. Two invariants hold on it:
|
|
116
|
+
*
|
|
117
|
+
* - Absent values are stripped from the raw params BEFORE the parse ({@link isAbsent}), so `id: null`
|
|
118
|
+
* and `id: ""` reach the handler as no `id` at all, and the schema never sees them.
|
|
119
|
+
* - No two accepted names may {@link normalizeKey normalize} to the same key, nor to a key in
|
|
120
|
+
* {@link PARAM_SYNONYMS}, or a near-miss would name the wrong key. A test fails if one is added.
|
|
121
|
+
*/
|
|
122
|
+
type Params = z.infer<typeof PARAMS>;
|
|
123
|
+
export declare const ACCEPTED_PARAMS: (keyof Params)[];
|
|
124
|
+
/**
|
|
125
|
+
* Case and separators stripped, so `code_only`, `Dry-Run` and `ID` meet their accepted spelling.
|
|
126
|
+
*
|
|
127
|
+
* Invariant: no two {@link ACCEPTED_PARAMS} may normalize to the same key (see {@link Params}).
|
|
128
|
+
*/
|
|
129
|
+
export declare function normalizeKey(k: string): string;
|
|
130
|
+
/**
|
|
131
|
+
* The synonyms raw callers have guessed, by {@link normalizeKey normalized} spelling, and the
|
|
132
|
+
* accepted key or keys each one may mean. `apply` means `dryRun`, inverted.
|
|
133
|
+
*
|
|
134
|
+
* A synonym that could mean two keys lists both, and the hint names both: `runtime` may carry a
|
|
135
|
+
* recipe or an id, `recipe` a path or the YAML text, `strategyId` a runtime or its wallet. Naming
|
|
136
|
+
* one would steer half of those callers to the wrong key.
|
|
137
|
+
*/
|
|
138
|
+
export declare const PARAM_SYNONYMS: ReadonlyMap<string, readonly (keyof Params)[]>;
|
|
139
|
+
/**
|
|
140
|
+
* The code every INVALID_REQUEST leads with, unless {@link PARAM_UNSUPPORTED_CODE} does. Without a
|
|
141
|
+
* code the CLI reads the refusal as a transport failure. `senpi update` exits 3 on it: the call is
|
|
142
|
+
* malformed.
|
|
143
|
+
*/
|
|
144
|
+
export declare const PARAMS_CODE = "E_UPDATE_PARAMS";
|
|
145
|
+
/**
|
|
146
|
+
* The code for an apply refused only for keys this gateway does not know and that are no near-miss
|
|
147
|
+
* of one it does. The CLI sends only keys its own runtime accepts, so when the CLI gets this the
|
|
148
|
+
* gateway is older than the CLI (a self-update installs first and restarts later): the command is
|
|
149
|
+
* right and the fix is a gateway restart. `senpi update` exits 2 on it, not 3 ("fix the command").
|
|
150
|
+
*/
|
|
151
|
+
export declare const PARAM_UNSUPPORTED_CODE = "E_UPDATE_PARAM_UNSUPPORTED";
|
|
152
|
+
/**
|
|
153
|
+
* The code for an apply on a gateway wired to plan only (`NOT_IMPLEMENTED`). Nothing was attempted,
|
|
154
|
+
* so it is a refusal: without the bracket `callGatewayJson` read it as an uncoded answer and
|
|
155
|
+
* `senpi update --apply` exited 1, which its contract reserves for an apply that failed part-way.
|
|
156
|
+
*/
|
|
157
|
+
export declare const PLAN_ONLY_CODE = "E_UPDATE_PLAN_ONLY";
|
|
158
|
+
/**
|
|
159
|
+
* The code for a fault while PLANNING (`UNAVAILABLE` on a plan). A plan touches nothing, so this
|
|
160
|
+
* exits 2 like any refusal. The same fault during an apply stays uncoded: the runtime's state is
|
|
161
|
+
* then unknown, which is exit 1's meaning.
|
|
162
|
+
*/
|
|
163
|
+
export declare const PLAN_FAULT_CODE = "E_UPDATE_PLAN_FAULT";
|
|
65
164
|
export declare function registerUpdateGatewayMethod(api: GatewayApi, ctxDeps: UpdateGatewayContext): void;
|
|
66
165
|
export {};
|
|
67
166
|
//# sourceMappingURL=update-register.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-register.d.ts","sourceRoot":"","sources":["../../src/runtime/update-register.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"update-register.d.ts","sourceRoot":"","sources":["../../src/runtime/update-register.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAGL,KAAK,YAAY,EAEjB,KAAK,iBAAiB,EACtB,KAAK,YAAY,EAClB,MAAM,qBAAqB,CAAC;AAI7B;;;;;;;GAOG;AACH,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC7D;;;;;;;OAOG;IACH,cAAc,CAAC,CACb,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,aAAa,EACnB,MAAM,EAAE,YAAY,GACnB,OAAO,CAAC,IAAI,GAAG;QAAE,eAAe,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAChD,aAAa,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvE;;;;;;;OAOG;IACH,SAAS,CAAC,CAAC,IAAI,EAAE;QACf,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,YAAY,CAAC;QACrB,cAAc,EAAE,YAAY,CAAC;QAC7B,iBAAiB,EAAE,OAAO,CAAC;QAC3B,aAAa,EAAE,MAAM,CAAC;QACtB,KAAK,CAAC,EA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