@tryarcanist/cli 0.1.40 → 0.1.42
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/index.js +13 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -730,6 +730,16 @@ function flattenSessionEvents(raw) {
|
|
|
730
730
|
});
|
|
731
731
|
continue;
|
|
732
732
|
}
|
|
733
|
+
if (type === "session_resumed_cold") {
|
|
734
|
+
merged.push({
|
|
735
|
+
type: "session_resumed_cold",
|
|
736
|
+
id: resolveEventId(data, "rescold", merged.length),
|
|
737
|
+
...typeof data?.reason === "string" ? { reason: data.reason } : {},
|
|
738
|
+
...typeof data?.lostSnapshotImageId === "string" ? { lostSnapshotImageId: data.lostSnapshotImageId } : data?.lostSnapshotImageId === null ? { lostSnapshotImageId: null } : {},
|
|
739
|
+
...resolvePromptId(data) ? { promptId: resolvePromptId(data) } : {}
|
|
740
|
+
});
|
|
741
|
+
continue;
|
|
742
|
+
}
|
|
733
743
|
if (type === "raw_opencode") {
|
|
734
744
|
const partType = typeof data?.partType === "string" ? data.partType : void 0;
|
|
735
745
|
const eventType = typeof data?.eventType === "string" ? data.eventType : void 0;
|
|
@@ -1150,6 +1160,9 @@ ${event.answer ? `**Answer:** ${event.answer}
|
|
|
1150
1160
|
`;
|
|
1151
1161
|
case "session_error":
|
|
1152
1162
|
return `**Error:** ${formatSessionErrorMessage(event.error, event.code)}
|
|
1163
|
+
`;
|
|
1164
|
+
case "session_resumed_cold":
|
|
1165
|
+
return `*[sandbox cold-restarted; in-sandbox state was lost${event.lostSnapshotImageId ? ` (snapshot ${event.lostSnapshotImageId} no longer usable)` : ""}]*
|
|
1153
1166
|
`;
|
|
1154
1167
|
case "raw_opencode":
|
|
1155
1168
|
return "";
|