@openclawbrain/cli 0.4.8 → 0.4.9

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/README.md CHANGED
@@ -1,14 +1,14 @@
1
1
  # @openclawbrain/cli
2
2
 
3
- `@openclawbrain/cli@0.4.8` is the published operator CLI package for OpenClawBrain.
3
+ `@openclawbrain/cli@0.4.9` is the published operator CLI package for OpenClawBrain.
4
4
 
5
5
  Primary public flow:
6
6
 
7
7
  ```bash
8
8
  openclaw plugins install @openclawbrain/openclaw@0.4.0
9
- npx @openclawbrain/cli@0.4.8 install --openclaw-home ~/.openclaw
9
+ npx @openclawbrain/cli@0.4.9 install --openclaw-home ~/.openclaw
10
10
  openclaw gateway restart
11
- npx @openclawbrain/cli@0.4.8 status --openclaw-home ~/.openclaw --detailed
11
+ npx @openclawbrain/cli@0.4.9 status --openclaw-home ~/.openclaw --detailed
12
12
  ```
13
13
 
14
14
  Patch note for `0.4.4`: the CLI now normalizes `plugins.allow` / `plugins.entries.openclawbrain` correctly on reinstall and reports the canonical `openclawbrain` install identity in status output.
@@ -20,10 +20,10 @@ This package carries the `openclawbrain` CLI, daemon controls, import/export hel
20
20
  ## Commands
21
21
 
22
22
  ```bash
23
- npx @openclawbrain/cli@0.4.8 install --openclaw-home ~/.openclaw
24
- npx @openclawbrain/cli@0.4.8 status --openclaw-home ~/.openclaw --detailed
25
- npx @openclawbrain/cli@0.4.8 rollback --activation-root /var/openclawbrain/activation --dry-run
26
- npx @openclawbrain/cli@0.4.8 daemon status --activation-root /var/openclawbrain/activation
23
+ npx @openclawbrain/cli@0.4.9 install --openclaw-home ~/.openclaw
24
+ npx @openclawbrain/cli@0.4.9 status --openclaw-home ~/.openclaw --detailed
25
+ npx @openclawbrain/cli@0.4.9 rollback --activation-root /var/openclawbrain/activation --dry-run
26
+ npx @openclawbrain/cli@0.4.9 daemon status --activation-root /var/openclawbrain/activation
27
27
  ```
28
28
 
29
29
  If the CLI is already on your `PATH`, `openclawbrain ...` is the same command surface. The docs lead with `npx` because that is the clean-host public-registry lane that already passed on `redogfood`.
@@ -4499,10 +4499,15 @@ function createRouterArtifactV2(packId, builtAt, graph, vectors, eventExport, se
4499
4499
  // V2 learns from reconstructed serve-time trajectories rather than RouterTraceV1 records.
4500
4500
  // Keep trace payloads empty, but surface truthful trajectory-derived counts.
4501
4501
  const traces = [];
4502
- const routeTraceCount = traces.length;
4503
- const supervisionCount = traces.filter((trace) => trace.reward !== 0).length;
4502
+ const routeTraceCount = trajectories.length;
4503
+ const supervisionCount = supervisedTrajectoryCount;
4504
4504
  const queryChecksum = computeRouterQueryChecksum(traces);
4505
- const collectedLabels = computeRouterCollectedLabelCounts(traces);
4505
+ const collectedLabels = {
4506
+ total: supervisedTrajectoryCount,
4507
+ humanFeedback: supervisedTrajectoryCount,
4508
+ operatorOverride: 0,
4509
+ selfMemory: 0
4510
+ };
4506
4511
  const status = policyUpdates.length > 0 ? "updated" : "no_supervision";
4507
4512
  const noOpReason = policyUpdates.length > 0
4508
4513
  ? null
@@ -4517,7 +4522,7 @@ function createRouterArtifactV2(packId, builtAt, graph, vectors, eventExport, se
4517
4522
  trainedAt: builtAt,
4518
4523
  requiresLearnedRouting: true,
4519
4524
  training: {
4520
- method: "policy_gradient_v1",
4525
+ method: "policy_gradient_v2",
4521
4526
  status,
4522
4527
  eventExportDigest: eventExport?.provenance.exportDigest ?? null,
4523
4528
  routeTraceCount,
@@ -4526,13 +4531,13 @@ function createRouterArtifactV2(packId, builtAt, graph, vectors, eventExport, se
4526
4531
  collectedLabels,
4527
4532
  objective: {
4528
4533
  updateMechanism: "policy_gradient",
4529
- updateVersion: "route_pg_update_v1",
4530
- objective: "supervised_route_pg_v1",
4534
+ updateVersion: "route_pg_update_v2",
4535
+ objective: "supervised_route_pg_v2",
4531
4536
  profile: ROUTER_PG_PROFILE_V2,
4532
4537
  objectiveChecksum: computeRouterObjectiveChecksum({
4533
4538
  updateMechanism: "policy_gradient",
4534
- updateVersion: "route_pg_update_v1",
4535
- objective: "supervised_route_pg_v1",
4539
+ updateVersion: "route_pg_update_v2",
4540
+ objective: "supervised_route_pg_v2",
4536
4541
  profile: ROUTER_PG_PROFILE_V2,
4537
4542
  eventExportDigest: eventExport?.provenance.exportDigest ?? null,
4538
4543
  routeTraceCount,
@@ -4544,7 +4549,7 @@ function createRouterArtifactV2(packId, builtAt, graph, vectors, eventExport, se
4544
4549
  queryChecksum,
4545
4550
  weightsChecksum: computeRouterWeightsChecksum(policyUpdates),
4546
4551
  freshnessChecksum: computeRouterFreshnessChecksum({
4547
- method: "policy_gradient_v1",
4552
+ method: "policy_gradient_v2",
4548
4553
  trainedAt: builtAt,
4549
4554
  status,
4550
4555
  eventExportDigest: eventExport?.provenance.exportDigest ?? null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclawbrain/cli",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "description": "OpenClawBrain operator CLI package with install/status helpers, daemon controls, and import/export tooling.",
5
5
  "type": "module",
6
6
  "main": "./dist/src/index.js",