@better-openclaw/core 1.0.11 → 1.0.12
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/bare-metal-partition.test.mjs +1 -1
- package/dist/composer.snapshot.test.mjs +1 -1
- package/dist/composer.test.mjs +1 -1
- package/dist/generate.test.mjs +1 -1
- package/dist/generators/bare-metal-install.test.mjs +1 -1
- package/dist/generators/caddy.test.mjs +1 -1
- package/dist/generators/env.test.mjs +1 -1
- package/dist/generators/health-check.mjs.map +1 -1
- package/dist/generators/health-check.test.mjs +1 -1
- package/dist/generators/scripts.test.mjs +1 -1
- package/dist/generators/traefik.test.mjs +1 -1
- package/dist/{magic-string.es-1uTtupLe.mjs → magic-string.es-CfFonO_S.mjs} +1 -1
- package/dist/{magic-string.es-1uTtupLe.mjs.map → magic-string.es-CfFonO_S.mjs.map} +1 -1
- package/dist/manifest-DSGl8ITO.mjs +1110 -0
- package/dist/manifest-DSGl8ITO.mjs.map +1 -0
- package/dist/migrations.d.mts.map +1 -1
- package/dist/migrations.mjs.map +1 -1
- package/dist/migrations.test.mjs +1 -1
- package/dist/presets/registry.test.mjs +1 -1
- package/dist/resolver.test.mjs +1 -1
- package/dist/schema.test.mjs +1 -1
- package/dist/services/registry.test.mjs +1 -1
- package/dist/skills/skill-manifest.d.mts.map +1 -1
- package/dist/skills/skill-manifest.mjs +5 -13
- package/dist/skills/skill-manifest.mjs.map +1 -1
- package/dist/validator.test.mjs +1 -1
- package/dist/version-manager.test.mjs +1 -1
- package/dist/{vi.2VT5v0um-YSByewHe.mjs → vi.2VT5v0um-BgmKutxR.mjs} +2 -2
- package/dist/{vi.2VT5v0um-YSByewHe.mjs.map → vi.2VT5v0um-BgmKutxR.mjs.map} +1 -1
- package/package.json +1 -1
- package/src/generators/health-check.ts +46 -8
- package/src/migrations.ts +0 -1
- package/src/skills/manifest.json +1333 -0
- package/src/skills/skill-manifest.ts +27 -22
package/package.json
CHANGED
|
@@ -75,7 +75,9 @@ function generateBashScript(resolved: ResolverOutput, options: HealthCheckOption
|
|
|
75
75
|
dockerChecks.push(L(" # ── ", svc.icon, " ", svc.name, " ──"));
|
|
76
76
|
dockerChecks.push(L(' check_container "', svc.id, '" "', svc.name, '" "', svc.icon, '"'));
|
|
77
77
|
for (const p of svc.ports.filter((pp) => pp.exposed)) {
|
|
78
|
-
dockerChecks.push(
|
|
78
|
+
dockerChecks.push(
|
|
79
|
+
L(' check_port "', svc.id, '" ', String(p.host), ' "', p.description, '"'),
|
|
80
|
+
);
|
|
79
81
|
}
|
|
80
82
|
if (svc.healthCheckCmd) {
|
|
81
83
|
dockerChecks.push(
|
|
@@ -253,8 +255,8 @@ function generateBashScript(resolved: ResolverOutput, options: HealthCheckOption
|
|
|
253
255
|
" fi",
|
|
254
256
|
"",
|
|
255
257
|
" local state health_status",
|
|
256
|
-
|
|
257
|
-
|
|
258
|
+
' state=$(echo "$status" | grep -o \'"State":"[^"]*"\' | cut -d\'"\' -f4 || echo "unknown")',
|
|
259
|
+
' health_status=$(echo "$status" | grep -o \'"Health":"[^"]*"\' | cut -d\'"\' -f4 || echo "none")',
|
|
258
260
|
"",
|
|
259
261
|
' restarts=$(docker inspect --format="{{.RestartCount}}" "$(docker compose ps -q "$id" 2>/dev/null | head -1)" 2>/dev/null || echo "0")',
|
|
260
262
|
"",
|
|
@@ -463,11 +465,27 @@ function generatePowerShellScript(resolved: ResolverOutput, options: HealthCheck
|
|
|
463
465
|
for (const svc of checks) {
|
|
464
466
|
dockerChecks.push(L(" # ", svc.icon, " ", svc.name));
|
|
465
467
|
dockerChecks.push(
|
|
466
|
-
L(
|
|
468
|
+
L(
|
|
469
|
+
' Test-Container -ServiceId "',
|
|
470
|
+
svc.id,
|
|
471
|
+
'" -ServiceName "',
|
|
472
|
+
svc.name,
|
|
473
|
+
'" -Icon "',
|
|
474
|
+
svc.icon,
|
|
475
|
+
'"',
|
|
476
|
+
),
|
|
467
477
|
);
|
|
468
478
|
for (const p of svc.ports.filter((pp) => pp.exposed)) {
|
|
469
479
|
dockerChecks.push(
|
|
470
|
-
L(
|
|
480
|
+
L(
|
|
481
|
+
' Test-Port -ServiceId "',
|
|
482
|
+
svc.id,
|
|
483
|
+
'" -Port ',
|
|
484
|
+
String(p.host),
|
|
485
|
+
' -Description "',
|
|
486
|
+
p.description,
|
|
487
|
+
'"',
|
|
488
|
+
),
|
|
471
489
|
);
|
|
472
490
|
}
|
|
473
491
|
dockerChecks.push("");
|
|
@@ -478,11 +496,27 @@ function generatePowerShellScript(resolved: ResolverOutput, options: HealthCheck
|
|
|
478
496
|
for (const svc of checks) {
|
|
479
497
|
bmChecks.push(L(" # ", svc.icon, " ", svc.name));
|
|
480
498
|
bmChecks.push(
|
|
481
|
-
L(
|
|
499
|
+
L(
|
|
500
|
+
' Test-ProcessRunning -ServiceId "',
|
|
501
|
+
svc.id,
|
|
502
|
+
'" -ServiceName "',
|
|
503
|
+
svc.name,
|
|
504
|
+
'" -Icon "',
|
|
505
|
+
svc.icon,
|
|
506
|
+
'"',
|
|
507
|
+
),
|
|
482
508
|
);
|
|
483
509
|
for (const p of svc.ports.filter((pp) => pp.exposed)) {
|
|
484
510
|
bmChecks.push(
|
|
485
|
-
L(
|
|
511
|
+
L(
|
|
512
|
+
' Test-Port -ServiceId "',
|
|
513
|
+
svc.id,
|
|
514
|
+
'" -Port ',
|
|
515
|
+
String(p.host),
|
|
516
|
+
' -Description "',
|
|
517
|
+
p.description,
|
|
518
|
+
'"',
|
|
519
|
+
),
|
|
486
520
|
);
|
|
487
521
|
}
|
|
488
522
|
bmChecks.push("");
|
|
@@ -498,7 +532,11 @@ function generatePowerShellScript(resolved: ResolverOutput, options: HealthCheck
|
|
|
498
532
|
"",
|
|
499
533
|
".DESCRIPTION",
|
|
500
534
|
" Auto-generated verification script for your stack.",
|
|
501
|
-
L(
|
|
535
|
+
L(
|
|
536
|
+
" Checks ",
|
|
537
|
+
String(total),
|
|
538
|
+
" services: container status, port reachability, and log errors.",
|
|
539
|
+
),
|
|
502
540
|
"",
|
|
503
541
|
".PARAMETER Quick",
|
|
504
542
|
" Skip log scanning for faster results.",
|
package/src/migrations.ts
CHANGED