@openclawbrain/cli 0.4.18 → 0.4.20

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.
@@ -151,6 +151,26 @@ function parseOpenClawSessionRecord(value, lineNumber) {
151
151
  parentId: expectNullableString(record.parentId, `${lineNumber}.parentId`),
152
152
  timestamp: expectString(record.timestamp, `${lineNumber}.timestamp`)
153
153
  };
154
+ case "custom_message": {
155
+ const data = {};
156
+ if (record.content !== undefined) {
157
+ data.content = record.content;
158
+ }
159
+ if (record.display !== undefined) {
160
+ data.display = record.display;
161
+ }
162
+ if (record.details !== undefined) {
163
+ data.details = record.details;
164
+ }
165
+ return {
166
+ type: "custom",
167
+ customType: expectString(record.customType, `${lineNumber}.customType`),
168
+ data,
169
+ id: expectString(record.id, `${lineNumber}.id`),
170
+ parentId: expectNullableString(record.parentId, `${lineNumber}.parentId`),
171
+ timestamp: expectString(record.timestamp, `${lineNumber}.timestamp`)
172
+ };
173
+ }
154
174
  case "message":
155
175
  return {
156
176
  type,
@@ -284,7 +284,7 @@ function buildPersistedStatusSurfaceBridge(summary, context) {
284
284
  brainRoot: context.brainRoot,
285
285
  stateDbPath: context.dbPath,
286
286
  persistedKey: TRACED_LEARNING_STATUS_SURFACE_STATE_KEY,
287
- surfacedFrom: summary.source
287
+ surfacedFrom: summarizeBridgeSource(summary.source)
288
288
  }
289
289
  });
290
290
  }
@@ -590,7 +590,7 @@ function buildRuntimeMaterializationMetadata(loaded) {
590
590
  lastInterruptionSummary: loaded.bridge.lastInterruptionSummary,
591
591
  fallbackReason: loaded.bridge.fallbackReason,
592
592
  routerNoOpReason: loaded.bridge.routerNoOpReason,
593
- source: loaded.bridge.source
593
+ source: summarizeBridgeSource(loaded.bridge.source)
594
594
  };
595
595
  }
596
596
  function mergeCanonicalStatusBridge(canonicalBridge, runtimeLoaded) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclawbrain/cli",
3
- "version": "0.4.18",
3
+ "version": "0.4.20",
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",