@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.
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +6 -2
- package/package.json +1 -1
package/dist/tools.d.ts.map
CHANGED
|
@@ -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,
|
|
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
|
-
|
|
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
|
/**
|