@openclawbrain/cli 0.4.6 → 0.4.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/README.md +7 -7
- package/dist/src/local-learner.js +16 -16
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# @openclawbrain/cli
|
|
2
2
|
|
|
3
|
-
`@openclawbrain/cli@0.4.
|
|
3
|
+
`@openclawbrain/cli@0.4.7` 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.
|
|
9
|
+
npx @openclawbrain/cli@0.4.7 install --openclaw-home ~/.openclaw
|
|
10
10
|
openclaw gateway restart
|
|
11
|
-
npx @openclawbrain/cli@0.4.
|
|
11
|
+
npx @openclawbrain/cli@0.4.7 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.
|
|
24
|
-
npx @openclawbrain/cli@0.4.
|
|
25
|
-
npx @openclawbrain/cli@0.4.
|
|
26
|
-
npx @openclawbrain/cli@0.4.
|
|
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
|
|
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: "
|
|
3998
|
+
method: "policy_gradient_v2",
|
|
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: "
|
|
4008
|
-
objective: "
|
|
4007
|
+
updateVersion: "route_pg_update_v2",
|
|
4008
|
+
objective: "supervised_route_pg_v2",
|
|
4009
4009
|
profile: ROUTER_PG_PROFILE_V1,
|
|
4010
4010
|
objectiveChecksum: computeRouterObjectiveChecksum({
|
|
4011
4011
|
updateMechanism: "policy_gradient",
|
|
4012
|
-
updateVersion: "
|
|
4013
|
-
objective: "
|
|
4012
|
+
updateVersion: "route_pg_update_v2",
|
|
4013
|
+
objective: "supervised_route_pg_v2",
|
|
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: "
|
|
4025
|
+
method: "policy_gradient_v2",
|
|
4026
4026
|
trainedAt: builtAt,
|
|
4027
4027
|
status,
|
|
4028
4028
|
eventExportDigest: eventExport?.provenance.exportDigest ?? null,
|
|
@@ -4496,11 +4496,11 @@ function createRouterArtifactV2(packId, builtAt, graph, vectors, eventExport, se
|
|
|
4496
4496
|
};
|
|
4497
4497
|
}
|
|
4498
4498
|
}
|
|
4499
|
-
// V2 learns from reconstructed trajectories rather than RouterTraceV1 records
|
|
4500
|
-
//
|
|
4499
|
+
// V2 learns from reconstructed serve-time trajectories rather than RouterTraceV1 records.
|
|
4500
|
+
// Keep trace payloads empty, but surface truthful trajectory-derived counts.
|
|
4501
4501
|
const traces = [];
|
|
4502
|
-
const routeTraceCount =
|
|
4503
|
-
const supervisionCount =
|
|
4502
|
+
const routeTraceCount = trajectories.length;
|
|
4503
|
+
const supervisionCount = supervisedTrajectoryCount;
|
|
4504
4504
|
const queryChecksum = computeRouterQueryChecksum(traces);
|
|
4505
4505
|
const collectedLabels = computeRouterCollectedLabelCounts(traces);
|
|
4506
4506
|
const status = policyUpdates.length > 0 ? "updated" : "no_supervision";
|
|
@@ -4517,7 +4517,7 @@ function createRouterArtifactV2(packId, builtAt, graph, vectors, eventExport, se
|
|
|
4517
4517
|
trainedAt: builtAt,
|
|
4518
4518
|
requiresLearnedRouting: true,
|
|
4519
4519
|
training: {
|
|
4520
|
-
method: "
|
|
4520
|
+
method: "policy_gradient_v2",
|
|
4521
4521
|
status,
|
|
4522
4522
|
eventExportDigest: eventExport?.provenance.exportDigest ?? null,
|
|
4523
4523
|
routeTraceCount,
|
|
@@ -4526,13 +4526,13 @@ function createRouterArtifactV2(packId, builtAt, graph, vectors, eventExport, se
|
|
|
4526
4526
|
collectedLabels,
|
|
4527
4527
|
objective: {
|
|
4528
4528
|
updateMechanism: "policy_gradient",
|
|
4529
|
-
updateVersion: "
|
|
4530
|
-
objective: "
|
|
4529
|
+
updateVersion: "route_pg_update_v2",
|
|
4530
|
+
objective: "supervised_route_pg_v2",
|
|
4531
4531
|
profile: ROUTER_PG_PROFILE_V2,
|
|
4532
4532
|
objectiveChecksum: computeRouterObjectiveChecksum({
|
|
4533
4533
|
updateMechanism: "policy_gradient",
|
|
4534
|
-
updateVersion: "
|
|
4535
|
-
objective: "
|
|
4534
|
+
updateVersion: "route_pg_update_v2",
|
|
4535
|
+
objective: "supervised_route_pg_v2",
|
|
4536
4536
|
profile: ROUTER_PG_PROFILE_V2,
|
|
4537
4537
|
eventExportDigest: eventExport?.provenance.exportDigest ?? null,
|
|
4538
4538
|
routeTraceCount,
|
|
@@ -4544,7 +4544,7 @@ function createRouterArtifactV2(packId, builtAt, graph, vectors, eventExport, se
|
|
|
4544
4544
|
queryChecksum,
|
|
4545
4545
|
weightsChecksum: computeRouterWeightsChecksum(policyUpdates),
|
|
4546
4546
|
freshnessChecksum: computeRouterFreshnessChecksum({
|
|
4547
|
-
method: "
|
|
4547
|
+
method: "policy_gradient_v2",
|
|
4548
4548
|
trainedAt: builtAt,
|
|
4549
4549
|
status,
|
|
4550
4550
|
eventExportDigest: eventExport?.provenance.exportDigest ?? null,
|
package/package.json
CHANGED