@ghenya/clinn 0.7.5 → 0.7.6

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.
Files changed (2) hide show
  1. package/Src/agent.js +0 -11
  2. package/package.json +2 -2
package/Src/agent.js CHANGED
@@ -256,17 +256,6 @@ class Agent {
256
256
 
257
257
  if (onToolCall) onToolCall(fnName, fnArgs, i + 1);
258
258
 
259
- const tool = Tools.getTool(fnName);
260
- if (tool?.dangerous) {
261
- const allowed = await Tools.checkPermission(fnName, fnArgs);
262
- if (!allowed) {
263
- if (onToolResult) onToolResult(fnName, "[被拒绝]");
264
- toolMsgs.push({ role: "tool", tool_call_id: tc.id, name: fnName, content: "[被用户拒绝]" });
265
- allMsgs.push({ role: "tool", name: fnName, content: "[被用户拒绝]" });
266
- continue;
267
- }
268
- }
269
-
270
259
  let toolResult;
271
260
  try { toolResult = await Tools.executeTool(fnName, fnArgs); }
272
261
  catch (e) { toolResult = `error: ${e.message}`; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghenya/clinn",
3
- "version": "0.7.5",
3
+ "version": "0.7.6",
4
4
  "description": "终端原生 AI 编程助手 — DeepSeek 驱动,50+ 工具,对话记忆,虚拟浏览器",
5
5
  "main": "Src/index.js",
6
6
  "bin": {
@@ -46,4 +46,4 @@
46
46
  "dependencies": {
47
47
  "puppeteer-core": "^25.1.0"
48
48
  }
49
- }
49
+ }