@t2000/engine 0.35.1 → 0.35.2
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 +12 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4679,6 +4679,18 @@ ${recipeCtx}`;
|
|
|
4679
4679
|
}
|
|
4680
4680
|
}
|
|
4681
4681
|
yield earlyEvent;
|
|
4682
|
+
if (!earlyEvent.isError) {
|
|
4683
|
+
const r = earlyEvent.result;
|
|
4684
|
+
if (r && r.__canvas === true) {
|
|
4685
|
+
yield {
|
|
4686
|
+
type: "canvas",
|
|
4687
|
+
template: String(r.template ?? ""),
|
|
4688
|
+
title: String(r.title ?? ""),
|
|
4689
|
+
data: r.templateData ?? null,
|
|
4690
|
+
toolUseId: earlyEvent.toolUseId
|
|
4691
|
+
};
|
|
4692
|
+
}
|
|
4693
|
+
}
|
|
4682
4694
|
earlyResultBlocks.push({
|
|
4683
4695
|
type: "tool_result",
|
|
4684
4696
|
toolUseId: earlyEvent.toolUseId,
|