@openclawbrain/cli 0.4.19 → 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.
- package/dist/src/session-store.js +20 -0
- package/package.json +1 -1
|
@@ -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,
|
package/package.json
CHANGED