@openclawbrain/openclaw 0.2.2 → 0.3.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/LICENSE +201 -0
- package/README.md +10 -0
- package/dist/extension/index.d.ts +1 -0
- package/dist/extension/index.js +73 -0
- package/dist/extension/index.js.map +1 -0
- package/dist/extension/runtime-guard.d.ts +61 -0
- package/dist/extension/runtime-guard.js +230 -0
- package/dist/extension/runtime-guard.js.map +1 -0
- package/dist/src/cli.d.ts +66 -4
- package/dist/src/cli.js +1845 -241
- package/dist/src/cli.js.map +1 -1
- package/dist/src/daemon.d.ts +7 -4
- package/dist/src/daemon.js +311 -28
- package/dist/src/daemon.js.map +1 -1
- package/dist/src/index.d.ts +213 -4
- package/dist/src/index.js +1151 -157
- package/dist/src/index.js.map +1 -1
- package/dist/src/learning-spine.d.ts +2 -1
- package/dist/src/learning-spine.js +8 -0
- package/dist/src/learning-spine.js.map +1 -1
- package/dist/src/local-session-passive-learning.d.ts +1 -0
- package/dist/src/local-session-passive-learning.js +97 -7
- package/dist/src/local-session-passive-learning.js.map +1 -1
- package/dist/src/ollama-client.d.ts +46 -0
- package/dist/src/ollama-client.js +231 -0
- package/dist/src/ollama-client.js.map +1 -0
- package/dist/src/provider-config.d.ts +28 -0
- package/dist/src/provider-config.js +150 -0
- package/dist/src/provider-config.js.map +1 -0
- package/dist/src/resolve-activation-root.d.ts +3 -3
- package/dist/src/resolve-activation-root.js +105 -35
- package/dist/src/resolve-activation-root.js.map +1 -1
- package/dist/src/session-store.d.ts +18 -0
- package/dist/src/session-store.js +40 -0
- package/dist/src/session-store.js.map +1 -1
- package/dist/src/session-tail.d.ts +6 -3
- package/dist/src/session-tail.js +35 -4
- package/dist/src/session-tail.js.map +1 -1
- package/dist/src/shadow-extension-proof.d.ts +40 -0
- package/dist/src/shadow-extension-proof.js +214 -0
- package/dist/src/shadow-extension-proof.js.map +1 -0
- package/dist/src/teacher-labeler.d.ts +50 -0
- package/dist/src/teacher-labeler.js +424 -0
- package/dist/src/teacher-labeler.js.map +1 -0
- package/extension/index.ts +74 -35
- package/extension/runtime-guard.ts +353 -0
- package/package.json +13 -13
package/dist/src/cli.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { type DaemonCliArgs } from "./daemon.js";
|
|
3
|
-
import { type CurrentProfileBrainStatusInput } from "./index.js";
|
|
3
|
+
import { createAsyncTeacherLiveLoop, createOpenClawLocalSessionTail, createRuntimeEventExportScanner, type AsyncTeacherLabelerConfigV1, type CurrentProfileBrainStatusInput } from "./index.js";
|
|
4
4
|
interface ParsedStatusRollbackCliArgs {
|
|
5
5
|
command: "status" | "rollback";
|
|
6
6
|
input: CurrentProfileBrainStatusInput;
|
|
7
|
+
openclawHome: string | null;
|
|
7
8
|
json: boolean;
|
|
8
9
|
help: boolean;
|
|
9
10
|
dryRun: boolean;
|
|
@@ -19,12 +20,33 @@ interface ParsedAttachCliArgs {
|
|
|
19
20
|
json: boolean;
|
|
20
21
|
help: boolean;
|
|
21
22
|
}
|
|
22
|
-
interface
|
|
23
|
-
command: "
|
|
23
|
+
interface ParsedInstallCliArgs {
|
|
24
|
+
command: "install";
|
|
24
25
|
openclawHome: string;
|
|
26
|
+
openclawHomeSource: "explicit" | "env" | "discovered_single_profile";
|
|
25
27
|
activationRoot: string;
|
|
28
|
+
activationRootSource: "explicit" | "default_from_openclaw_home";
|
|
26
29
|
shared: boolean;
|
|
27
30
|
workspaceId: string;
|
|
31
|
+
workspaceIdSource: "explicit" | "openclaw_json_profile" | "openclaw_home_dir" | "fallback";
|
|
32
|
+
json: boolean;
|
|
33
|
+
help: boolean;
|
|
34
|
+
}
|
|
35
|
+
type RestartMode = "never" | "safe" | "external";
|
|
36
|
+
interface ParsedDetachCliArgs {
|
|
37
|
+
command: "detach";
|
|
38
|
+
openclawHome: string;
|
|
39
|
+
activationRoot: string | null;
|
|
40
|
+
restart: RestartMode;
|
|
41
|
+
json: boolean;
|
|
42
|
+
help: boolean;
|
|
43
|
+
}
|
|
44
|
+
interface ParsedUninstallCliArgs {
|
|
45
|
+
command: "uninstall";
|
|
46
|
+
openclawHome: string;
|
|
47
|
+
activationRoot: string | null;
|
|
48
|
+
dataMode: "keep" | "purge";
|
|
49
|
+
restart: RestartMode;
|
|
28
50
|
json: boolean;
|
|
29
51
|
help: boolean;
|
|
30
52
|
}
|
|
@@ -90,7 +112,47 @@ interface ParsedResetCliArgs {
|
|
|
90
112
|
json: boolean;
|
|
91
113
|
help: boolean;
|
|
92
114
|
}
|
|
93
|
-
type ParsedOperatorCliArgs = ParsedStatusRollbackCliArgs | ParsedAttachCliArgs | ParsedScanCliArgs |
|
|
115
|
+
type ParsedOperatorCliArgs = ParsedStatusRollbackCliArgs | ParsedAttachCliArgs | ParsedScanCliArgs | ParsedInstallCliArgs | ParsedDetachCliArgs | ParsedUninstallCliArgs | ParsedContextCliArgs | ParsedHistoryCliArgs | ParsedLearnCliArgs | ParsedWatchCliArgs | DaemonCliArgs | ParsedExportCliArgs | ParsedImportCliArgs | ParsedResetCliArgs;
|
|
94
116
|
export declare function parseOperatorCliArgs(argv: readonly string[]): ParsedOperatorCliArgs;
|
|
117
|
+
export interface WatchCommandRuntimeV1 {
|
|
118
|
+
activationRoot: string;
|
|
119
|
+
scanRoot: string;
|
|
120
|
+
sessionTailCursorPath: string;
|
|
121
|
+
teacherSnapshotPath: string;
|
|
122
|
+
startupWarnings: string[];
|
|
123
|
+
lastTeacherError: string | null;
|
|
124
|
+
replayState: {
|
|
125
|
+
replayedBundleCount: number;
|
|
126
|
+
replayedEventCount: number;
|
|
127
|
+
};
|
|
128
|
+
lastHandledMaterializationPackId: string | null;
|
|
129
|
+
scanner: ReturnType<typeof createRuntimeEventExportScanner>;
|
|
130
|
+
teacherLoop: ReturnType<typeof createAsyncTeacherLiveLoop>;
|
|
131
|
+
localSessionTail: ReturnType<typeof createOpenClawLocalSessionTail>;
|
|
132
|
+
}
|
|
133
|
+
export interface CreateWatchCommandRuntimeInputV1 {
|
|
134
|
+
activationRoot: string;
|
|
135
|
+
scanRoot?: string | null;
|
|
136
|
+
profileRoots?: readonly string[];
|
|
137
|
+
log?: (message: string) => void;
|
|
138
|
+
teacherLabeler?: AsyncTeacherLabelerConfigV1 | null;
|
|
139
|
+
}
|
|
140
|
+
export interface WatchCommandPassResultV1 {
|
|
141
|
+
localPoll: ReturnType<WatchCommandRuntimeV1["localSessionTail"]["pollOnce"]>;
|
|
142
|
+
exported: {
|
|
143
|
+
exportedBundleCount: number;
|
|
144
|
+
exportedEventCount: number;
|
|
145
|
+
warnings: string[];
|
|
146
|
+
};
|
|
147
|
+
scanResult: ReturnType<WatchCommandRuntimeV1["scanner"]["scanOnce"]>;
|
|
148
|
+
snapshot: ReturnType<WatchCommandRuntimeV1["teacherLoop"]["snapshot"]>;
|
|
149
|
+
materializedPackId: string | null;
|
|
150
|
+
}
|
|
151
|
+
export declare function createWatchCommandRuntime(input: CreateWatchCommandRuntimeInputV1): Promise<WatchCommandRuntimeV1>;
|
|
152
|
+
export declare function runWatchCommandPass(runtime: WatchCommandRuntimeV1, options?: {
|
|
153
|
+
observedAt?: string;
|
|
154
|
+
json?: boolean;
|
|
155
|
+
log?: (message: string) => void;
|
|
156
|
+
}): Promise<WatchCommandPassResultV1>;
|
|
95
157
|
export declare function runOperatorCli(argv?: readonly string[]): number;
|
|
96
158
|
export {};
|