@bgicli/bgicli 2.3.6 → 2.3.7
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/bgi.js +10 -9
- package/package.json +1 -1
package/dist/bgi.js
CHANGED
|
@@ -13855,7 +13855,7 @@ var TOOL_DEFINITIONS = [
|
|
|
13855
13855
|
},
|
|
13856
13856
|
timeout_ms: {
|
|
13857
13857
|
type: "number",
|
|
13858
|
-
description: "Timeout in milliseconds (default 300000 / 5 min
|
|
13858
|
+
description: "Timeout in milliseconds (default 300000 / 5 min). For downloads (wget/curl/aria2c) or long computations (STAR, HISAT2, etc.) ALWAYS use at least 3600000 (60 min). Never set a short timeout for downloads \u2014 slow networks are normal, be patient."
|
|
13859
13859
|
}
|
|
13860
13860
|
},
|
|
13861
13861
|
required: ["command"]
|
|
@@ -13959,13 +13959,14 @@ var TOOL_DEFINITIONS = [
|
|
|
13959
13959
|
async function executeTool(name, args, onStream) {
|
|
13960
13960
|
try {
|
|
13961
13961
|
switch (name) {
|
|
13962
|
-
case "bash":
|
|
13963
|
-
|
|
13964
|
-
|
|
13965
|
-
|
|
13966
|
-
|
|
13967
|
-
|
|
13968
|
-
);
|
|
13962
|
+
case "bash": {
|
|
13963
|
+
const cmd = args["command"];
|
|
13964
|
+
let timeoutMs = args["timeout_ms"] ?? 3e5;
|
|
13965
|
+
if (/\b(wget|curl|aria2c|axel|rsync)\b/.test(cmd) && timeoutMs < 36e5) {
|
|
13966
|
+
timeoutMs = 36e5;
|
|
13967
|
+
}
|
|
13968
|
+
return await toolBash(cmd, args["workdir"], timeoutMs, onStream);
|
|
13969
|
+
}
|
|
13969
13970
|
case "read_file":
|
|
13970
13971
|
return toolReadFile(
|
|
13971
13972
|
args["path"],
|
|
@@ -15961,7 +15962,7 @@ function clearCheckpoints(sessionId) {
|
|
|
15961
15962
|
|
|
15962
15963
|
// src/index.ts
|
|
15963
15964
|
var import_fs7 = require("fs");
|
|
15964
|
-
var VERSION2 = "2.3.
|
|
15965
|
+
var VERSION2 = "2.3.7";
|
|
15965
15966
|
var SKILLHUB_HUBS = {
|
|
15966
15967
|
bgi: { label: "BGI\u5185\u7F51", apiBase: "https://clawhub.ai", backend: "clawhub" },
|
|
15967
15968
|
clawhub: { label: "clawhub.ai", apiBase: "https://clawhub.ai", backend: "clawhub" },
|