@molecule/api-ai-tools 1.4.3 → 1.4.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAoB9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AA+BnE;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,CAAC,EAAE,eAAe,GAAG,MAAM,EAAE,CAqzCxF"}
1
+ {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAoB9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AA+BnE;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,CAAC,EAAE,eAAe,GAAG,MAAM,EAAE,CA2zCxF"}
package/dist/tools.js CHANGED
@@ -102,8 +102,12 @@ export function buildTools(backend, config) {
102
102
  return null;
103
103
  }
104
104
  catch (_error) {
105
- // readlink unavailable or timed out — deny access conservatively
106
- return 'Unable to verify path safety — access denied';
105
+ // readlink unavailable or timed out — deny access conservatively, and say
106
+ // why: "access denied" read as a forbidden path, and builders spent call
107
+ // after call on paths that were fine while the sandbox was not answering.
108
+ return ('Unable to verify path safety: the sandbox did not answer the check within 5 s (it may be ' +
109
+ 'restarting or out of memory), so the path was refused to stay safe. Retry in a moment; if ' +
110
+ 'every file tool fails this way, the sandbox needs a restart.');
107
111
  }
108
112
  }
109
113
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/api-ai-tools",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "Shared AI agent tools with backend abstraction for sandbox and local execution",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",