@openclawbrain/cli 0.4.7 → 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.7` 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.7 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.7 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.7 install --openclaw-home ~/.openclaw
24
- npx @openclawbrain/cli@0.4.7 status --openclaw-home ~/.openclaw --detailed
25
- npx @openclawbrain/cli@0.4.7 rollback --activation-root /var/openclawbrain/activation --dry-run
26
- npx @openclawbrain/cli@0.4.7 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`.
@@ -3995,7 +3995,7 @@ function createRouterArtifact(packId, builtAt, graph, vectors, eventExport, spar
3995
3995
  trainedAt: builtAt,
3996
3996
  requiresLearnedRouting: true,
3997
3997
  training: {
3998
- method: "policy_gradient_v2",
3998
+ method: "policy_gradient_v1",
3999
3999
  status,
4000
4000
  eventExportDigest: eventExport?.provenance.exportDigest ?? null,
4001
4001
  routeTraceCount: traces.length,
@@ -4004,13 +4004,13 @@ function createRouterArtifact(packId, builtAt, graph, vectors, eventExport, spar
4004
4004
  collectedLabels,
4005
4005
  objective: {
4006
4006
  updateMechanism: "policy_gradient",
4007
- updateVersion: "route_pg_update_v2",
4008
- objective: "supervised_route_pg_v2",
4007
+ updateVersion: "route_pg_update_v1",
4008
+ objective: "supervised_route_pg_v1",
4009
4009
  profile: ROUTER_PG_PROFILE_V1,
4010
4010
  objectiveChecksum: computeRouterObjectiveChecksum({
4011
4011
  updateMechanism: "policy_gradient",
4012
- updateVersion: "route_pg_update_v2",
4013
- objective: "supervised_route_pg_v2",
4012
+ updateVersion: "route_pg_update_v1",
4013
+ objective: "supervised_route_pg_v1",
4014
4014
  profile: ROUTER_PG_PROFILE_V1,
4015
4015
  eventExportDigest: eventExport?.provenance.exportDigest ?? null,
4016
4016
  routeTraceCount: traces.length,
@@ -4022,7 +4022,7 @@ function createRouterArtifact(packId, builtAt, graph, vectors, eventExport, spar
4022
4022
  queryChecksum,
4023
4023
  weightsChecksum: computeRouterWeightsChecksum(policyUpdates),
4024
4024
  freshnessChecksum: computeRouterFreshnessChecksum({
4025
- method: "policy_gradient_v2",
4025
+ method: "policy_gradient_v1",
4026
4026
  trainedAt: builtAt,
4027
4027
  status,
4028
4028
  eventExportDigest: eventExport?.provenance.exportDigest ?? null,
@@ -4502,7 +4502,12 @@ function createRouterArtifactV2(packId, builtAt, graph, vectors, eventExport, se
4502
4502
  const routeTraceCount = trajectories.length;
4503
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclawbrain/cli",
3
- "version": "0.4.7",
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",