@lark-apaas/openclaw-scripts-diagnose-cli 0.1.13-alpha.5 → 0.1.13-alpha.7
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/index.cjs +17 -28
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -52,7 +52,7 @@ node_assert = __toESM(node_assert);
|
|
|
52
52
|
* it terse and parseable.
|
|
53
53
|
*/
|
|
54
54
|
function getVersion() {
|
|
55
|
-
return "0.1.13-alpha.
|
|
55
|
+
return "0.1.13-alpha.7";
|
|
56
56
|
}
|
|
57
57
|
//#endregion
|
|
58
58
|
//#region src/rule-engine/base.ts
|
|
@@ -10246,7 +10246,7 @@ async function reportCliRun(opts) {
|
|
|
10246
10246
|
//#region src/help.ts
|
|
10247
10247
|
const BIN = "mclaw-diagnose";
|
|
10248
10248
|
function versionBanner() {
|
|
10249
|
-
return `v0.1.13-alpha.
|
|
10249
|
+
return `v0.1.13-alpha.7`;
|
|
10250
10250
|
}
|
|
10251
10251
|
const COMMANDS = [
|
|
10252
10252
|
{
|
|
@@ -10350,16 +10350,12 @@ EXIT CODES
|
|
|
10350
10350
|
hidden: true,
|
|
10351
10351
|
summary: "Run rule-engine check only",
|
|
10352
10352
|
help: `USAGE
|
|
10353
|
-
${BIN} check
|
|
10353
|
+
${BIN} check
|
|
10354
10354
|
|
|
10355
10355
|
DESCRIPTION
|
|
10356
10356
|
Runs the rule engine against the sandbox's current openclaw config and
|
|
10357
|
-
returns { failedRules }.
|
|
10358
|
-
|
|
10359
|
-
|
|
10360
|
-
OPTIONS
|
|
10361
|
-
--ctx=<base64> Opaque ctx JSON (base64). When absent, fetched from
|
|
10362
|
-
innerapi (same path as doctor).
|
|
10357
|
+
returns { failedRules }. Ctx is fetched from innerapi automatically.
|
|
10358
|
+
End-users should prefer \`doctor\`.
|
|
10363
10359
|
`
|
|
10364
10360
|
},
|
|
10365
10361
|
{
|
|
@@ -10367,16 +10363,11 @@ OPTIONS
|
|
|
10367
10363
|
hidden: true,
|
|
10368
10364
|
summary: "Apply standard-mode repairs",
|
|
10369
10365
|
help: `USAGE
|
|
10370
|
-
${BIN} repair
|
|
10366
|
+
${BIN} repair
|
|
10371
10367
|
|
|
10372
10368
|
DESCRIPTION
|
|
10373
|
-
Runs repair for the failing rules
|
|
10374
|
-
|
|
10375
|
-
\`doctor --fix\` instead.
|
|
10376
|
-
|
|
10377
|
-
OPTIONS
|
|
10378
|
-
--ctx=<base64> Opaque ctx JSON (base64). When absent, fetched from
|
|
10379
|
-
innerapi.
|
|
10369
|
+
Runs repair for the failing rules. Ctx is fetched from innerapi
|
|
10370
|
+
automatically. End-users should use \`doctor --fix\` instead.
|
|
10380
10371
|
`
|
|
10381
10372
|
},
|
|
10382
10373
|
{
|
|
@@ -10384,14 +10375,15 @@ OPTIONS
|
|
|
10384
10375
|
hidden: true,
|
|
10385
10376
|
summary: "Re-initialize sandbox via the 9-step reset pipeline",
|
|
10386
10377
|
help: `USAGE
|
|
10387
|
-
${BIN} reset --async
|
|
10388
|
-
${BIN} reset --worker --task-id=<id>
|
|
10378
|
+
${BIN} reset --async
|
|
10379
|
+
${BIN} reset --worker --task-id=<id>
|
|
10389
10380
|
|
|
10390
10381
|
DESCRIPTION
|
|
10391
10382
|
Two-phase pipeline driven asynchronously: the --async invocation spawns
|
|
10392
10383
|
a detached worker and returns { taskId } immediately; the --worker
|
|
10393
10384
|
invocation (spawned by --async) runs the actual 9 steps and writes
|
|
10394
10385
|
progress to /tmp/openclaw-diagnose/reset-<taskId>.json.
|
|
10386
|
+
Ctx is fetched from innerapi automatically.
|
|
10395
10387
|
|
|
10396
10388
|
Poll progress with \`${BIN} get_reset_task --task-id=<id>\`.
|
|
10397
10389
|
|
|
@@ -10399,7 +10391,6 @@ OPTIONS
|
|
|
10399
10391
|
--async Start a detached worker and return taskId on stdout.
|
|
10400
10392
|
--worker Internal — run the 9-step pipeline (launched by --async).
|
|
10401
10393
|
--task-id=<id> Required with --worker; identifies the progress file.
|
|
10402
|
-
--ctx=<base64> Opaque ctx JSON; fetched from innerapi when absent.
|
|
10403
10394
|
`
|
|
10404
10395
|
},
|
|
10405
10396
|
{
|
|
@@ -10422,7 +10413,7 @@ OPTIONS
|
|
|
10422
10413
|
hidden: true,
|
|
10423
10414
|
summary: "Download + install the openclaw tarball",
|
|
10424
10415
|
help: `USAGE
|
|
10425
|
-
${BIN} install-openclaw <tag> [--
|
|
10416
|
+
${BIN} install-openclaw <tag> [--oss_file_map=<base64>]
|
|
10426
10417
|
|
|
10427
10418
|
DESCRIPTION
|
|
10428
10419
|
Downloads the openclaw@<tag> tgz via the signed OSS URL found in the
|
|
@@ -10434,9 +10425,9 @@ ARGUMENTS
|
|
|
10434
10425
|
<tag> Openclaw version tag, e.g. 2026.4.11.
|
|
10435
10426
|
|
|
10436
10427
|
OPTIONS
|
|
10437
|
-
--ctx=<base64> Opaque ctx; ossFileMap is extracted from it.
|
|
10438
10428
|
--oss_file_map=... Pre-built OSS URL map (base64 JSON); skips innerapi
|
|
10439
|
-
entirely.
|
|
10429
|
+
entirely. When absent, ossFileMap is fetched from
|
|
10430
|
+
innerapi automatically.
|
|
10440
10431
|
`
|
|
10441
10432
|
},
|
|
10442
10433
|
{
|
|
@@ -10462,8 +10453,7 @@ OPTIONS
|
|
|
10462
10453
|
--home_base=<dir> Override the /home/gem base (tests).
|
|
10463
10454
|
--config_path=<p> Override the openclaw.json path (tests).
|
|
10464
10455
|
--skip-config-update Leave plugins.installs in openclaw.json untouched.
|
|
10465
|
-
--
|
|
10466
|
-
--oss_file_map=... Pre-built OSS URL map (base64 JSON).
|
|
10456
|
+
--oss_file_map=... Pre-built OSS URL map (base64 JSON); skips innerapi.
|
|
10467
10457
|
`
|
|
10468
10458
|
},
|
|
10469
10459
|
{
|
|
@@ -10490,7 +10480,6 @@ OPTIONS
|
|
|
10490
10480
|
--cli=<name> CLI package to install by short name or scoped
|
|
10491
10481
|
packageName (repeatable, at least one required).
|
|
10492
10482
|
--home_base=<dir> Override the /home/gem base (tests).
|
|
10493
|
-
--ctx=<base64> Opaque ctx; ossFileMap is extracted from it.
|
|
10494
10483
|
--oss_file_map=... Pre-built OSS URL map (base64 JSON); skips innerapi.
|
|
10495
10484
|
|
|
10496
10485
|
EXAMPLES
|
|
@@ -10597,8 +10586,7 @@ OPTIONS
|
|
|
10597
10586
|
--role=<role> Package role (e.g. template, config).
|
|
10598
10587
|
--name=<name> Package name within the role.
|
|
10599
10588
|
--dir=<dir> Target dir (defaults to dirname(pkg.installPath)).
|
|
10600
|
-
--
|
|
10601
|
-
--oss_file_map=... Pre-built OSS URL map (base64 JSON).
|
|
10589
|
+
--oss_file_map=... Pre-built OSS URL map (base64 JSON); skips innerapi.
|
|
10602
10590
|
`
|
|
10603
10591
|
}
|
|
10604
10592
|
];
|
|
@@ -10717,6 +10705,7 @@ function planCtxPopulate(opts) {
|
|
|
10717
10705
|
populate.secrets = true;
|
|
10718
10706
|
populate.install = true;
|
|
10719
10707
|
populate.reset = true;
|
|
10708
|
+
populate.larkApps = true;
|
|
10720
10709
|
}
|
|
10721
10710
|
return populate;
|
|
10722
10711
|
}
|
package/package.json
CHANGED