@openclawbrain/openclaw 0.1.12 → 0.2.0

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
@@ -149,6 +149,7 @@ pnpm exec openclawbrain scan --live /var/openclawbrain/exports/latest --workspac
149
149
 
150
150
  - `openclawbrain-ops` remains available as the same CLI entrypoint if you already scripted against the older name
151
151
  - `bootstrapRuntimeAttach()` resolves the activation root, stamps the attach as a `current_profile` action, returns the canonical current-profile answer immediately, and includes copy-paste-ready next steps for the attached root that prefer the primary `openclawbrain` CLI while matching the current `npm`/`pnpm` invocation style when it is detectable; those hints now cover `status`, canonical `status --json`, and `rollback --dry-run`
152
+ - `resolveActivationRoot()` keeps the existing explicit-path and global fallback chain, and same-gateway hosts with multiple `~/.openclaw-*` homes can now pin resolution to one installed OpenClaw profile home via `openclawHome` or `OPENCLAW_HOME`
152
153
  - `formatBootstrapRuntimeAttachReport()` prints the shipped attach handoff as a current-profile action instead of dropping callers straight into lower-level proof fields
153
154
  - plain `status` is the human answer to “How's the brain?” for the current profile on that activation root; it now keeps the principal backlog frontier (`learnedThrough -> newestPending`), live-vs-backfill passive-learning progress, explicit backlog warning states, structural-decision origin, and active structural-graph evolution visible in the compact text summary, while `status --json` still emits the canonical `current_profile_brain_status.v1` answer from that same boundary
154
155
  - with `--teacher-snapshot`, that same human summary also keeps the learner `mode`, next lane, and exact scheduler `priority` bucket visible so operators can see live-first intake, principal-priority work, and passive backfill without pretending the canonical JSON object widened
package/dist/src/cli.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ import { type DaemonCliArgs } from "./daemon.js";
2
3
  import { type CurrentProfileBrainStatusInput } from "./index.js";
3
4
  interface ParsedStatusRollbackCliArgs {
4
5
  command: "status" | "rollback";
@@ -6,6 +7,26 @@ interface ParsedStatusRollbackCliArgs {
6
7
  json: boolean;
7
8
  help: boolean;
8
9
  dryRun: boolean;
10
+ detailed: boolean;
11
+ }
12
+ interface ParsedAttachCliArgs {
13
+ command: "attach";
14
+ activationRoot: string;
15
+ packRoot: string;
16
+ packLabel: string;
17
+ workspaceId: string;
18
+ brainAttachmentPolicy: CurrentProfileBrainStatusInput["brainAttachmentPolicy"];
19
+ json: boolean;
20
+ help: boolean;
21
+ }
22
+ interface ParsedSetupCliArgs {
23
+ command: "setup";
24
+ openclawHome: string;
25
+ activationRoot: string;
26
+ shared: boolean;
27
+ workspaceId: string;
28
+ json: boolean;
29
+ help: boolean;
9
30
  }
10
31
  interface ParsedScanCliArgs {
11
32
  command: "scan";
@@ -19,7 +40,57 @@ interface ParsedScanCliArgs {
19
40
  observedAt: string | null;
20
41
  snapshotOutPath: string | null;
21
42
  }
22
- type ParsedOperatorCliArgs = ParsedStatusRollbackCliArgs | ParsedScanCliArgs;
43
+ interface ParsedContextCliArgs {
44
+ command: "context";
45
+ message: string;
46
+ activationRoot: string;
47
+ json: boolean;
48
+ help: boolean;
49
+ }
50
+ interface ParsedHistoryCliArgs {
51
+ command: "history";
52
+ activationRoot: string;
53
+ limit: number;
54
+ json: boolean;
55
+ help: boolean;
56
+ }
57
+ interface ParsedLearnCliArgs {
58
+ command: "learn";
59
+ activationRoot: string;
60
+ json: boolean;
61
+ help: boolean;
62
+ }
63
+ interface ParsedWatchCliArgs {
64
+ command: "watch";
65
+ activationRoot: string;
66
+ scanRoot: string | null;
67
+ interval: number;
68
+ json: boolean;
69
+ help: boolean;
70
+ }
71
+ interface ParsedExportCliArgs {
72
+ command: "export";
73
+ activationRoot: string;
74
+ outputPath: string;
75
+ json: boolean;
76
+ help: boolean;
77
+ }
78
+ interface ParsedImportCliArgs {
79
+ command: "import";
80
+ archivePath: string;
81
+ activationRoot: string;
82
+ force: boolean;
83
+ json: boolean;
84
+ help: boolean;
85
+ }
86
+ interface ParsedResetCliArgs {
87
+ command: "reset";
88
+ activationRoot: string;
89
+ yes: boolean;
90
+ json: boolean;
91
+ help: boolean;
92
+ }
93
+ type ParsedOperatorCliArgs = ParsedStatusRollbackCliArgs | ParsedAttachCliArgs | ParsedScanCliArgs | ParsedSetupCliArgs | ParsedContextCliArgs | ParsedHistoryCliArgs | ParsedLearnCliArgs | ParsedWatchCliArgs | DaemonCliArgs | ParsedExportCliArgs | ParsedImportCliArgs | ParsedResetCliArgs;
23
94
  export declare function parseOperatorCliArgs(argv: readonly string[]): ParsedOperatorCliArgs;
24
95
  export declare function runOperatorCli(argv?: readonly string[]): number;
25
96
  export {};