@openclawbrain/openclaw 0.3.5 → 0.4.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 +23 -175
- package/dist/extension/index.js +3 -2
- package/dist/extension/index.js.map +1 -1
- package/dist/extension/runtime-guard.js +1 -1
- package/dist/extension/runtime-guard.js.map +1 -1
- package/dist/src/attachment-truth.d.ts +32 -22
- package/dist/src/attachment-truth.js +338 -181
- package/dist/src/index.d.ts +75 -1712
- package/dist/src/index.js +7 -6875
- package/dist/src/runtime-core.js +574 -0
- package/extension/index.ts +3 -2
- package/extension/runtime-guard.ts +1 -1
- package/openclaw.plugin.json +11 -0
- package/package.json +24 -15
- package/dist/src/attachment-truth.js.map +0 -1
- package/dist/src/cli.d.ts +0 -170
- package/dist/src/cli.js +0 -5523
- package/dist/src/cli.js.map +0 -1
- package/dist/src/daemon.d.ts +0 -70
- package/dist/src/daemon.js +0 -955
- package/dist/src/daemon.js.map +0 -1
- package/dist/src/import-export.d.ts +0 -36
- package/dist/src/import-export.js +0 -171
- package/dist/src/import-export.js.map +0 -1
- package/dist/src/index.js.map +0 -1
- package/dist/src/learning-spine.d.ts +0 -50
- package/dist/src/learning-spine.js.map +0 -1
- package/dist/src/local-session-passive-learning.d.ts +0 -61
- package/dist/src/local-session-passive-learning.js +0 -454
- package/dist/src/local-session-passive-learning.js.map +0 -1
- package/dist/src/ollama-client.d.ts +0 -46
- package/dist/src/ollama-client.js +0 -231
- package/dist/src/ollama-client.js.map +0 -1
- package/dist/src/openclaw-home-layout.d.ts +0 -17
- package/dist/src/openclaw-home-layout.js +0 -182
- package/dist/src/openclaw-home-layout.js.map +0 -1
- package/dist/src/openclaw-hook-truth.d.ts +0 -25
- package/dist/src/openclaw-hook-truth.js +0 -154
- package/dist/src/openclaw-hook-truth.js.map +0 -1
- package/dist/src/provider-config.d.ts +0 -64
- package/dist/src/provider-config.js +0 -306
- package/dist/src/provider-config.js.map +0 -1
- package/dist/src/resolve-activation-root.d.ts +0 -27
- package/dist/src/resolve-activation-root.js +0 -185
- package/dist/src/resolve-activation-root.js.map +0 -1
- package/dist/src/semantic-metadata.d.ts +0 -5
- package/dist/src/semantic-metadata.js +0 -70
- package/dist/src/semantic-metadata.js.map +0 -1
- package/dist/src/session-store.d.ts +0 -168
- package/dist/src/session-store.js +0 -250
- package/dist/src/session-store.js.map +0 -1
- package/dist/src/session-tail.d.ts +0 -73
- package/dist/src/session-tail.js +0 -602
- package/dist/src/session-tail.js.map +0 -1
- package/dist/src/shadow-extension-proof.d.ts +0 -40
- package/dist/src/shadow-extension-proof.js +0 -218
- package/dist/src/shadow-extension-proof.js.map +0 -1
- package/dist/src/teacher-labeler.d.ts +0 -50
- package/dist/src/teacher-labeler.js +0 -424
- package/dist/src/teacher-labeler.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,192 +1,40 @@
|
|
|
1
1
|
# @openclawbrain/openclaw
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Staged package split note:
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
- `@openclawbrain/openclaw` is the plugin/runtime payload for OpenClaw.
|
|
6
|
+
- The operator CLI surface is moving to `@openclawbrain/cli`.
|
|
7
|
+
- Public docs are not flipped yet; treat this package split as repo-stage work until the release lane is ready.
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
- The stable front-door names are `@openclawbrain/openclaw` and `openclawbrain`.
|
|
9
|
-
- If you are validating this repo-tip checkout, prepare the checkout with `pnpm install --frozen-lockfile`, run `pnpm release:status`, then `pnpm release:pack`, then install the local `.release/*.tgz` tarballs.
|
|
10
|
-
- If you are intentionally consuming a later tagged and published wave, install it with `npm install @openclawbrain/openclaw`.
|
|
11
|
-
- Use the `openclawbrain` CLI for status, rollback, and narrow scanner scans; `openclawbrain-ops` stays available as a compatibility alias.
|
|
12
|
-
- `npm exec openclawbrain -- --help` works after either install path, but the exact quickstart commands remain the clearest first attach path.
|
|
9
|
+
## What stays here
|
|
13
10
|
|
|
14
|
-
|
|
11
|
+
- the OpenClaw plugin manifest
|
|
12
|
+
- the installed extension/runtime guard
|
|
13
|
+
- `compileRuntimeContext()`
|
|
14
|
+
- runtime load-proof helpers used by the extension
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
- inspect attach status and canonical current-profile operator truth
|
|
18
|
-
- emit deterministic normalized event-export bundles for learner handoff
|
|
19
|
-
- refresh learner state into candidate packs through the learner boundary
|
|
20
|
-
- stage/promote/rollback activation pointers explicitly
|
|
21
|
-
- prove local activation, freshness, learned-route, and kernel-vs-brain boundaries through observability surfaces
|
|
16
|
+
## What moves out
|
|
22
17
|
|
|
23
|
-
|
|
18
|
+
- `openclawbrain` / `openclawbrain-ops` bins
|
|
19
|
+
- daemon management
|
|
20
|
+
- import/export helpers
|
|
21
|
+
- install/status/rollback/operator management helpers
|
|
24
22
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
## Operator boundary
|
|
28
|
-
|
|
29
|
-
This package keeps the runtime boundary narrow:
|
|
30
|
-
|
|
31
|
-
- OpenClaw remains the runtime owner
|
|
32
|
-
- OpenClawBrain owns the attach / export / proof / activation helpers behind that boundary
|
|
33
|
-
- the supported status read is the canonical current-profile answer rather than a machine-global brain report
|
|
34
|
-
|
|
35
|
-
For first install, the boring path is intentionally simple: pass `interactionEvents: []` / `feedbackEvents: []` when you have no live turns yet, or hand `bootstrapRuntimeAttach()` a zero-event `normalizedEventExport` payload and let it canonicalize the derived range/provenance fields from the embedded event arrays. The resulting attach stays truthful with `awaiting_first_export` until the first live export lands; truly invalid non-empty exports fail with attach-specific remediation instead of a raw provenance validator surprise.
|
|
23
|
+
## Runtime usage
|
|
36
24
|
|
|
37
25
|
```ts
|
|
38
26
|
import {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
describeAttachStatus,
|
|
42
|
-
describeCurrentProfileBrainStatus,
|
|
43
|
-
formatBootstrapRuntimeAttachReport,
|
|
44
|
-
rollbackRuntimeAttach
|
|
27
|
+
compileRuntimeContext,
|
|
28
|
+
recordOpenClawProfileRuntimeLoadProof
|
|
45
29
|
} from "@openclawbrain/openclaw";
|
|
46
|
-
|
|
47
|
-
console.log(OPERATOR_API_CONTRACT_V1.families);
|
|
48
|
-
|
|
49
|
-
const attach = bootstrapRuntimeAttach({
|
|
50
|
-
profileSelector: "current_profile",
|
|
51
|
-
activationRoot: "/var/openclawbrain/activation",
|
|
52
|
-
packRoot: "/var/openclawbrain/packs/bootstrap",
|
|
53
|
-
packLabel: "customer-launch-attach",
|
|
54
|
-
workspace: {
|
|
55
|
-
workspaceId: "workspace-1",
|
|
56
|
-
snapshotId: "workspace-1@snapshot-1",
|
|
57
|
-
capturedAt: "2026-03-07T16:59:00.000Z",
|
|
58
|
-
rootDir: "/workspace/openclawbrain",
|
|
59
|
-
revision: "attach-rev-1"
|
|
60
|
-
},
|
|
61
|
-
interactionEvents: [],
|
|
62
|
-
feedbackEvents: []
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
console.log(formatBootstrapRuntimeAttachReport(attach));
|
|
66
|
-
console.log(attach.currentProfile.profile.selector);
|
|
67
|
-
console.log(attach.nextSteps[0]?.command);
|
|
68
|
-
|
|
69
|
-
const attachStatus = describeAttachStatus({
|
|
70
|
-
activationRoot: attach.activationRoot
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
console.log(attachStatus.inspection.active?.packId);
|
|
74
|
-
console.log(attachStatus.compile?.handoffState);
|
|
75
|
-
console.log(attachStatus.landingBoundaries.compileBoundary.activationSlot);
|
|
76
|
-
console.log(attachStatus.landingBoundaries.failOpenSemantics.eventExportWriteFailurePreservesCompile);
|
|
77
|
-
|
|
78
|
-
const currentProfile = describeCurrentProfileBrainStatus({
|
|
79
|
-
activationRoot: attach.activationRoot,
|
|
80
|
-
brainAttachmentPolicy: "dedicated"
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
console.log(currentProfile.profile.selector);
|
|
84
|
-
console.log(currentProfile.attachment.policyMode);
|
|
85
|
-
console.log(currentProfile.brainStatus.serveState);
|
|
86
|
-
|
|
87
|
-
const rollbackPreview = rollbackRuntimeAttach({
|
|
88
|
-
activationRoot: "/var/openclawbrain/activation",
|
|
89
|
-
dryRun: true
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
console.log(rollbackPreview.allowed);
|
|
93
|
-
console.log(rollbackPreview.before.activePackId);
|
|
94
|
-
console.log(rollbackPreview.after?.activePackId);
|
|
95
|
-
|
|
96
30
|
```
|
|
97
31
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
## CLI lifecycle quickstart
|
|
101
|
-
|
|
102
|
-
Keep `install` as the front-door lifecycle command:
|
|
103
|
-
|
|
104
|
-
- `openclawbrain install` is the default attach path. On many-profile hosts, pass `--openclaw-home <path>` or set `OPENCLAW_HOME` so the target profile is explicit instead of guessed.
|
|
105
|
-
- `openclawbrain install` now writes only the real profile hook and activation state. It no longer creates `BRAIN.md` or rewrites `AGENTS.md`.
|
|
106
|
-
- `openclawbrain detach --openclaw-home <path>` removes only the OpenClaw profile hook. It preserves OpenClawBrain activation data and now says so plainly in both human output and JSON.
|
|
107
|
-
- `openclawbrain uninstall --openclaw-home <path> --keep-data|--purge-data` removes the profile hook and forces the operator to pick the data outcome explicitly.
|
|
108
|
-
- `--restart <never|safe|external>` is guidance only for detach/uninstall. The default `safe` guidance stays conservative: restart the running OpenClaw profile before expecting hook-state changes to take effect; otherwise the next launch picks them up.
|
|
109
|
-
- plain `status` stays the human answer to “How’s the brain?” and now keeps compact lifecycle truth visible without dumping teacher/no-op or other proof chatter by default; use `--detailed` when you want the dense operator report.
|
|
110
|
-
|
|
111
|
-
## Narrow operator contract
|
|
112
|
-
|
|
113
|
-
Treat these as the supported operator families for Wave 1:
|
|
114
|
-
|
|
115
|
-
- bootstrap / attach — `bootstrapRuntimeAttach()`, `formatBootstrapRuntimeAttachReport()`, `describeAttachStatus()`
|
|
116
|
-
- status / rollback — `openclawbrain ...`, `describeCurrentProfileBrainStatus()`, `formatOperatorRollbackReport()`
|
|
117
|
-
- export — `buildNormalizedRuntimeEventExport()`, `writeRuntimeEventExportBundle()`, `loadRuntimeEventExportBundle()`
|
|
118
|
-
- proof / observability — `describeAttachStatus()`, `describeKernelBrainBoundary()`, `describeActivationObservability()`
|
|
119
|
-
|
|
120
|
-
The refresh and promote families stay explicit in their owning packages instead of being hidden behind a catch-all convenience wrapper:
|
|
121
|
-
|
|
122
|
-
- refresh — `@openclawbrain/learner.createAlwaysOnLearningRuntimeState()`, `advanceAlwaysOnLearningRuntime()`, `materializeAlwaysOnLearningCandidatePack()`
|
|
123
|
-
- promote — `@openclawbrain/pack-format.stageCandidatePack()`, `promoteCandidatePack()`
|
|
124
|
-
|
|
125
|
-
Wrong-shaped surfaces are intentionally quarantined from this contract even if they remain exported elsewhere for proof or integration work:
|
|
126
|
-
|
|
127
|
-
- `openclawbrain doctor`
|
|
128
|
-
- `openclawbrain-ops doctor`
|
|
129
|
-
- `buildOperatorSurfaceReport()`
|
|
130
|
-
- `formatOperatorStatusReport()`
|
|
131
|
-
- `formatOperatorDoctorReport()`
|
|
132
|
-
- `runContinuousProductLoopTurn()`
|
|
133
|
-
- `runRecordedSessionReplay()`
|
|
134
|
-
- `runRuntimeTurn()`
|
|
135
|
-
- `createAsyncTeacherLiveLoop()`
|
|
136
|
-
|
|
137
|
-
For one repo-local end-to-end proof of the full attach -> status -> run turn -> export -> refresh -> promote -> status story, run `pnpm current-profile-lifecycle:smoke` from the workspace root. That harness prints the before/after canonical current-profile answer, the matching compact `status` summary plus `status --json` proof built from those same snapshots, and the active graph/router/objective/weights/freshness checksum changes that became true only after promotion.
|
|
138
|
-
|
|
139
|
-
For the richer single-profile learning story on that same boundary, run `pnpm current-profile-learning-proof`. That checked-in proof shows one current profile serving an initial turn, changing later served context only after promotion, then improving again after a correction export -> refresh -> promote cycle without pretending that the active pack mutated in place.
|
|
140
|
-
|
|
141
|
-
## Boundary truth
|
|
142
|
-
|
|
143
|
-
`describeAttachStatus()` now returns `landingBoundaries`, a compact runtime-facing statement of the actual OpenClaw handoff:
|
|
144
|
-
|
|
145
|
-
- `compileBoundary`: OpenClaw compiles only from activation's `active` slot through `compileRuntimeContext()` / `runtime_compile.v1`
|
|
146
|
-
- `eventExportBoundary`: `runRuntimeTurn()` emits normalized interaction/feedback exports for later learning handoff, and bundle-write failure does not erase successful compile output
|
|
147
|
-
- `activePackBoundary`: `active` is the only serve-visible slot; `candidate` and `previous` stay inspectable until promotion or rollback changes pointers
|
|
148
|
-
- `promotionBoundary`: learner refresh lands in `candidate`, activation promotion flips pointers, and only later compiles can see the fresher pack
|
|
149
|
-
- `failOpenSemantics`: missing active packs fail open, but learned-required route-artifact drift hard-fails instead of silently serving static context
|
|
150
|
-
- `runtimeResponsibilities`: OpenClaw remains responsible for runtime orchestration, prompt assembly, response delivery, and guarded serve-path decisions
|
|
151
|
-
|
|
152
|
-
Operator-facing CLI:
|
|
153
|
-
|
|
154
|
-
```bash
|
|
155
|
-
pnpm exec openclawbrain status --activation-root /var/openclawbrain/activation --event-export /var/openclawbrain/exports/latest --teacher-snapshot /var/openclawbrain/runtime/teacher-snapshot.json
|
|
156
|
-
pnpm exec openclawbrain rollback --activation-root /var/openclawbrain/activation --dry-run
|
|
157
|
-
pnpm exec openclawbrain scan --session ./fixtures/recorded-session-replay/sanitized-support-escalation.trace.json --root /tmp/openclawbrain-scan-session
|
|
158
|
-
pnpm exec openclawbrain scan --live /var/openclawbrain/exports/latest --workspace /var/openclawbrain/runtime/workspace.json --snapshot-out /var/openclawbrain/runtime/scan-live-snapshot.json
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
- `openclawbrain-ops` remains available as the same CLI entrypoint if you already scripted against the older name
|
|
162
|
-
- `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`
|
|
163
|
-
- `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`
|
|
164
|
-
- `formatBootstrapRuntimeAttachReport()` prints the shipped attach handoff as a current-profile action instead of dropping callers straight into lower-level proof fields
|
|
165
|
-
- 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
|
|
166
|
-
- 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
|
|
167
|
-
- `describeCurrentProfileBrainStatus()` freezes the current-profile `Host / Profile / Brain / Attachment` answer shape instead of widening to a second report payload
|
|
168
|
-
- `rollback --dry-run` previews the exact `active <- previous` and `active -> candidate` move before you apply rollback for real
|
|
169
|
-
- `--event-export` accepts either a runtime event-export bundle root or a normalized-export JSON payload
|
|
170
|
-
- `--teacher-snapshot` accepts JSON from `teacherLoop.snapshot()` or `await teacherLoop.flush()` when you want the last duplicate/no-op reason plus learner bootstrapped/mode/next-lane/scheduler-priority truth kept visible
|
|
171
|
-
- `scan --session` is a checked-in proof-facing replay over a sanitized recorded-session trace; it reports the no-brain vs seed-pack vs learned-replay score spread and does not pretend to be the runtime hot path
|
|
172
|
-
- `scan --live` is a one-shot live-export scan over a real event-export payload plus explicit workspace metadata; it truthfully reports teacher/learner state for that export and does not pretend a background daemon is running
|
|
173
|
-
|
|
174
|
-
Programmatic rollback is available too:
|
|
175
|
-
|
|
176
|
-
- `rollbackRuntimeAttach({ activationRoot, dryRun: true })` previews the move without changing activation pointers
|
|
177
|
-
- `rollbackRuntimeAttach({ activationRoot })` applies the rollback and reports which pack was restored to `active`
|
|
178
|
-
|
|
179
|
-
Wave 1 also freezes shared-vs-dedicated brain policy semantics:
|
|
180
|
-
|
|
181
|
-
- `brainAttachmentPolicy: "dedicated"` means one current profile is intentionally attached to one Brain activation root until operators reattach it elsewhere
|
|
182
|
-
- `brainAttachmentPolicy: "shared"` means multiple profiles may intentionally attach to the same Brain activation root, so attribution must stay current-profile explicit and operators must not read served context as profile-exclusive
|
|
183
|
-
- `brainAttachmentPolicy: "undeclared"` is the truthful fallback when the host has not declared which policy it is using
|
|
32
|
+
## Operator usage
|
|
184
33
|
|
|
185
|
-
|
|
34
|
+
Use `@openclawbrain/cli` for:
|
|
186
35
|
|
|
187
|
-
|
|
36
|
+
- `openclawbrain install --openclaw-home <path>`
|
|
37
|
+
- `openclawbrain status --openclaw-home <path> --detailed`
|
|
38
|
+
- daemon, import/export, and other operator commands
|
|
188
39
|
|
|
189
|
-
|
|
190
|
-
- learned-required active packs return `hardRequirementViolated=true` and `fallbackToStaticContext=false` when route artifacts drift or disappear
|
|
191
|
-
- `runRuntimeTurn()` throws instead of silently serving through those learned-required failures
|
|
192
|
-
- event-export write failures still do not erase successful compile output
|
|
40
|
+
If you install this plugin package into OpenClaw before the CLI package is installed, the extension will fail open and tell you to install `@openclawbrain/cli` before pinning the activation root.
|
package/dist/extension/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* OpenClawBrain extension template — canonical, pre-built, versioned with the package.
|
|
3
3
|
*
|
|
4
|
-
* The placeholder __ACTIVATION_ROOT__ is replaced by
|
|
4
|
+
* The placeholder __ACTIVATION_ROOT__ is replaced by
|
|
5
|
+
* `@openclawbrain/cli`'s `openclawbrain install`
|
|
5
6
|
* with the real activation root path at install time.
|
|
6
7
|
*
|
|
7
8
|
* Design constraints:
|
|
@@ -48,7 +49,7 @@ async function reportDiagnostic(input) {
|
|
|
48
49
|
}
|
|
49
50
|
function announceStartupBreadcrumb() {
|
|
50
51
|
if (isActivationRootPlaceholder(ACTIVATION_ROOT)) {
|
|
51
|
-
warnOnce("startup-brain-not-yet-loaded", "[openclawbrain] BRAIN NOT YET LOADED: install has not pinned ACTIVATION_ROOT yet.
|
|
52
|
+
warnOnce("startup-brain-not-yet-loaded", "[openclawbrain] BRAIN NOT YET LOADED: install has not pinned ACTIVATION_ROOT yet. Install @openclawbrain/cli, then run: openclawbrain install --openclaw-home <path>");
|
|
52
53
|
return;
|
|
53
54
|
}
|
|
54
55
|
warnOnce("startup-brain-loaded", `[openclawbrain] BRAIN LOADED: runtime hook registered for before_prompt_build (activationRoot=${ACTIVATION_ROOT})`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../extension/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../extension/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EACL,qBAAqB,EACrB,qCAAqC,EACtC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,8BAA8B,EAC9B,2BAA2B,EAC3B,gCAAgC,EACjC,MAAM,oBAAoB,CAAC;AAE5B,MAAM,eAAe,GAAG,qBAAqB,CAAC;AAC9C,MAAM,oBAAoB,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC5D,MAAM,iBAAiB,GAAG,IAAI,GAAG,EAAU,CAAC;AAE5C,SAAS,QAAQ,CAAC,GAAW,EAAE,OAAe;IAC5C,IAAI,iBAAiB,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;QAC/B,OAAO;IACT,CAAC;IAED,iBAAiB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC3B,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AACxB,CAAC;AAED,KAAK,UAAU,wBAAwB,CA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BAAyB,EAAE,CAAC;IAC9B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,MAAM,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACrF,KAAK,gBAAgB,CAAC;YACpB,GAAG,EAAE,qBAAqB;YAC1B,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,kDAAkD,MAAM,EAAE;SACpE,CAAC,CAAC;IACL,CAAC;AACH,CAAC"}
|
|
@@ -65,7 +65,7 @@ export function createBeforePromptBuildHandler(input) {
|
|
|
65
65
|
await input.reportDiagnostic({
|
|
66
66
|
key: "activation-root-placeholder",
|
|
67
67
|
once: true,
|
|
68
|
-
message: "[openclawbrain] BRAIN NOT YET LOADED: ACTIVATION_ROOT is still a placeholder.
|
|
68
|
+
message: "[openclawbrain] BRAIN NOT YET LOADED: ACTIVATION_ROOT is still a placeholder. Install @openclawbrain/cli, then run: openclawbrain install --openclaw-home <path>"
|
|
69
69
|
});
|
|
70
70
|
return {};
|
|
71
71
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-guard.js","sourceRoot":"","sources":["../../extension/runtime-guard.ts"],"names":[],"mappings":"AA6CA,MAAM,UAAU,2BAA2B,CAAC,cAAsB;IAChE,OAAO,cAAc,KAAK,eAAe,GAAG,QAAQ,IAAI,cAAc,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,CAAC;AAC7F,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAC,GAAY;IAC3D,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,OAAO,GAAG,CAAC,EAAE,KAAK,UAAU,EAAE,CAAC;QACnD,OAAO;YACL,EAAE,EAAE,KAAK;YACT,UAAU,EAAE;gBACV,GAAG,EAAE,0BAA0B;gBAC/B,IAAI,EAAE,IAAI;gBACV,OAAO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AS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC;AACrD,CAAC"}
|
|
@@ -1,34 +1,44 @@
|
|
|
1
|
-
|
|
1
|
+
export type OpenClawHomeProfileSource =
|
|
2
|
+
| "openclaw_json_profile"
|
|
3
|
+
| "openclaw_json_single_profile_key"
|
|
4
|
+
| "directory_name"
|
|
5
|
+
| "none";
|
|
6
|
+
|
|
2
7
|
declare const ATTACHMENT_RUNTIME_LOAD_PROOFS_CONTRACT: "openclaw_profile_runtime_load_proofs.v1";
|
|
8
|
+
|
|
3
9
|
export interface OpenClawProfileRuntimeLoadProofRecordV1 {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
openclawHome: string;
|
|
11
|
+
profileId: string | null;
|
|
12
|
+
profileSource: OpenClawHomeProfileSource;
|
|
13
|
+
loadedAt: string;
|
|
14
|
+
extensionEntryPath: string;
|
|
9
15
|
}
|
|
16
|
+
|
|
10
17
|
export interface OpenClawProfileRuntimeLoadProofsV1 {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
18
|
+
contract: typeof ATTACHMENT_RUNTIME_LOAD_PROOFS_CONTRACT;
|
|
19
|
+
runtimeOwner: "openclaw";
|
|
20
|
+
activationRoot: string;
|
|
21
|
+
updatedAt: string;
|
|
22
|
+
profiles: OpenClawProfileRuntimeLoadProofRecordV1[];
|
|
16
23
|
}
|
|
24
|
+
|
|
17
25
|
export interface OpenClawProfileRuntimeLoadProofSetV1 {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
26
|
+
path: string;
|
|
27
|
+
proofs: OpenClawProfileRuntimeLoadProofsV1 | null;
|
|
28
|
+
error: string | null;
|
|
21
29
|
}
|
|
30
|
+
|
|
22
31
|
export declare function resolveAttachmentRuntimeLoadProofsPath(activationRoot: string): string;
|
|
23
|
-
export declare function listOpenClawProfileRuntimeLoadProofs(
|
|
32
|
+
export declare function listOpenClawProfileRuntimeLoadProofs(
|
|
33
|
+
activationRoot: string,
|
|
34
|
+
): OpenClawProfileRuntimeLoadProofSetV1;
|
|
24
35
|
export declare function recordOpenClawProfileRuntimeLoadProof(input: {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
36
|
+
activationRoot: string;
|
|
37
|
+
extensionEntryPath: string;
|
|
38
|
+
loadedAt?: string | null;
|
|
28
39
|
}): OpenClawProfileRuntimeLoadProofRecordV1;
|
|
29
40
|
export declare function clearOpenClawProfileRuntimeLoadProof(input: {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
41
|
+
activationRoot: string;
|
|
42
|
+
openclawHome: string;
|
|
43
|
+
clearedAt?: string | null;
|
|
33
44
|
}): boolean;
|
|
34
|
-
export {};
|