alink-cli 0.12.7 → 0.12.8
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/bin.mjs +11 -0
- package/dist/bin.mjs.map +1 -1
- package/package.json +1 -1
package/dist/bin.mjs
CHANGED
|
@@ -82131,6 +82131,17 @@ function mapToRuntimeEvents(event, canonicalThreadId) {
|
|
|
82131
82131
|
if (event.method === "item/completed") {
|
|
82132
82132
|
const item = readPayload(V2ItemCompletedNotification, event.payload)?.item;
|
|
82133
82133
|
if (!item) return [];
|
|
82134
|
+
if (item.type === "imageGeneration") {
|
|
82135
|
+
const savedPath = trimText(item.savedPath);
|
|
82136
|
+
if (item.status === "completed" && savedPath) return [{
|
|
82137
|
+
...runtimeEventBase(event, canonicalThreadId),
|
|
82138
|
+
type: "content.delta",
|
|
82139
|
+
payload: {
|
|
82140
|
+
streamKind: "assistant_text",
|
|
82141
|
+
delta: ``
|
|
82142
|
+
}
|
|
82143
|
+
}];
|
|
82144
|
+
}
|
|
82134
82145
|
const itemType = toCanonicalItemType(item.type);
|
|
82135
82146
|
if (itemType === "plan") {
|
|
82136
82147
|
const detail = itemDetail(itemType, item);
|