@t2000/engine 0.46.14 → 0.46.15
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 +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5261,6 +5261,9 @@ ${recipeCtx}`;
|
|
|
5261
5261
|
const needsConfirmation = (() => {
|
|
5262
5262
|
if (!tool || tool.isReadOnly) return false;
|
|
5263
5263
|
if (tool.permissionLevel === "explicit") return true;
|
|
5264
|
+
if (tool.permissionLevel === "auto" && !toolNameToOperation(call.name)) {
|
|
5265
|
+
return false;
|
|
5266
|
+
}
|
|
5264
5267
|
if (!context.agent && !tool.isReadOnly) return true;
|
|
5265
5268
|
if (context.permissionConfig && context.priceCache) {
|
|
5266
5269
|
const operation = toolNameToOperation(call.name);
|