seclaw 0.1.8 → 0.1.9
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/runtime/agent.js +2 -2
- package/package.json +1 -1
package/dist/runtime/agent.js
CHANGED
|
@@ -241,7 +241,7 @@ ${memory}` : ""}
|
|
|
241
241
|
- When the user asks to save/note/draft/track something, use the appropriate workspace tool. Always confirm what was saved.`;
|
|
242
242
|
return prompt;
|
|
243
243
|
}
|
|
244
|
-
var MAX_TOOL_RESULT =
|
|
244
|
+
var MAX_TOOL_RESULT = 1e4;
|
|
245
245
|
function truncateToolResult(text) {
|
|
246
246
|
let cleaned = text.replace(/<[^>]+>/g, " ");
|
|
247
247
|
cleaned = cleaned.replace(/[A-Za-z0-9+/=]{100,}/g, "[base64-data]");
|
|
@@ -410,7 +410,7 @@ async function connectComposio(config2) {
|
|
|
410
410
|
}
|
|
411
411
|
const toolResults = await Promise.allSettled(
|
|
412
412
|
activeApps.map(
|
|
413
|
-
(app) => apiFetch(`/tools?toolkit_slug=${app}&
|
|
413
|
+
(app) => apiFetch(`/tools?toolkit_slug=${app}&limit=20`)
|
|
414
414
|
)
|
|
415
415
|
);
|
|
416
416
|
const tools = [];
|