@t2000/engine 0.35.0 → 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 +13 -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,
|
|
@@ -4712,6 +4724,7 @@ ${recipeCtx}`;
|
|
|
4712
4724
|
const needsConfirmation = (() => {
|
|
4713
4725
|
if (!tool || tool.isReadOnly) return false;
|
|
4714
4726
|
if (tool.permissionLevel === "explicit") return true;
|
|
4727
|
+
if (!context.agent && !tool.isReadOnly) return true;
|
|
4715
4728
|
if (context.permissionConfig && context.priceCache) {
|
|
4716
4729
|
const operation = toolNameToOperation(call.name);
|
|
4717
4730
|
if (operation) {
|