@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.
Files changed (34) hide show
  1. package/dist/bare-metal-partition.test.mjs +1 -1
  2. package/dist/composer.snapshot.test.mjs +1 -1
  3. package/dist/composer.test.mjs +1 -1
  4. package/dist/generate.test.mjs +1 -1
  5. package/dist/generators/bare-metal-install.test.mjs +1 -1
  6. package/dist/generators/caddy.test.mjs +1 -1
  7. package/dist/generators/env.test.mjs +1 -1
  8. package/dist/generators/health-check.mjs.map +1 -1
  9. package/dist/generators/health-check.test.mjs +1 -1
  10. package/dist/generators/scripts.test.mjs +1 -1
  11. package/dist/generators/traefik.test.mjs +1 -1
  12. package/dist/{magic-string.es-1uTtupLe.mjs → magic-string.es-CfFonO_S.mjs} +1 -1
  13. package/dist/{magic-string.es-1uTtupLe.mjs.map → magic-string.es-CfFonO_S.mjs.map} +1 -1
  14. package/dist/manifest-DSGl8ITO.mjs +1110 -0
  15. package/dist/manifest-DSGl8ITO.mjs.map +1 -0
  16. package/dist/migrations.d.mts.map +1 -1
  17. package/dist/migrations.mjs.map +1 -1
  18. package/dist/migrations.test.mjs +1 -1
  19. package/dist/presets/registry.test.mjs +1 -1
  20. package/dist/resolver.test.mjs +1 -1
  21. package/dist/schema.test.mjs +1 -1
  22. package/dist/services/registry.test.mjs +1 -1
  23. package/dist/skills/skill-manifest.d.mts.map +1 -1
  24. package/dist/skills/skill-manifest.mjs +5 -13
  25. package/dist/skills/skill-manifest.mjs.map +1 -1
  26. package/dist/validator.test.mjs +1 -1
  27. package/dist/version-manager.test.mjs +1 -1
  28. package/dist/{vi.2VT5v0um-YSByewHe.mjs → vi.2VT5v0um-BgmKutxR.mjs} +2 -2
  29. package/dist/{vi.2VT5v0um-YSByewHe.mjs.map → vi.2VT5v0um-BgmKutxR.mjs.map} +1 -1
  30. package/package.json +1 -1
  31. package/src/generators/health-check.ts +46 -8
  32. package/src/migrations.ts +0 -1
  33. package/src/skills/manifest.json +1333 -0
  34. package/src/skills/skill-manifest.ts +27 -22
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-openclaw/core",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "private": false,
5
5
  "description": "Core logic for better-openclaw: schemas, service registry, resolver, composer, validators and more",
6
6
  "packageManager": "pnpm@9.15.4",
@@ -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(L(' check_port "', svc.id, '" ', String(p.host), ' "', p.description, '"'));
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
- " state=$(echo \"$status\" | grep -o '\"State\":\"[^\"]*\"' | cut -d'\"' -f4 || echo \"unknown\")",
257
- " health_status=$(echo \"$status\" | grep -o '\"Health\":\"[^\"]*\"' | cut -d'\"' -f4 || echo \"none\")",
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(' Test-Container -ServiceId "', svc.id, '" -ServiceName "', svc.name, '" -Icon "', svc.icon, '"'),
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(' Test-Port -ServiceId "', svc.id, '" -Port ', String(p.host), ' -Description "', p.description, '"'),
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(' Test-ProcessRunning -ServiceId "', svc.id, '" -ServiceName "', svc.name, '" -Icon "', svc.icon, '"'),
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(' Test-Port -ServiceId "', svc.id, '" -Port ', String(p.host), ' -Description "', p.description, '"'),
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(" Checks ", String(total), " services: container status, port reachability, and log errors."),
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
@@ -1,4 +1,3 @@
1
-
2
1
  export const CURRENT_CONFIG_VERSION = 2;
3
2
 
4
3
  type MigrationFn = (input: Record<string, unknown>) => Record<string, unknown>;