@polka-codes/runner 0.9.6 → 0.9.8
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/index.js +15 -6
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -21008,7 +21008,7 @@ var {
|
|
|
21008
21008
|
Help
|
|
21009
21009
|
} = import__.default;
|
|
21010
21010
|
// package.json
|
|
21011
|
-
var version = "0.9.
|
|
21011
|
+
var version = "0.9.8";
|
|
21012
21012
|
|
|
21013
21013
|
// src/runner.ts
|
|
21014
21014
|
import { execSync } from "node:child_process";
|
|
@@ -56408,8 +56408,14 @@ ${instance.prompt}`;
|
|
|
56408
56408
|
clearTimeout(timeout);
|
|
56409
56409
|
}
|
|
56410
56410
|
}
|
|
56411
|
-
if (
|
|
56412
|
-
|
|
56411
|
+
if (this.config.toolFormat === "native") {
|
|
56412
|
+
if (respMessages.some((m) => m.role === "tool")) {
|
|
56413
|
+
break;
|
|
56414
|
+
}
|
|
56415
|
+
} else {
|
|
56416
|
+
if (respMessages.length > 0) {
|
|
56417
|
+
break;
|
|
56418
|
+
}
|
|
56413
56419
|
}
|
|
56414
56420
|
if (this.#aborted) {
|
|
56415
56421
|
break;
|
|
@@ -56687,7 +56693,8 @@ class AnalyzerAgent extends AgentBase {
|
|
|
56687
56693
|
policies: options.policies,
|
|
56688
56694
|
toolFormat: options.toolFormat,
|
|
56689
56695
|
parameters: options.parameters ?? {},
|
|
56690
|
-
usageMeter: options.usageMeter ?? new UsageMeter
|
|
56696
|
+
usageMeter: options.usageMeter ?? new UsageMeter,
|
|
56697
|
+
requestTimeoutSeconds: options.requestTimeoutSeconds
|
|
56691
56698
|
});
|
|
56692
56699
|
}
|
|
56693
56700
|
onBeforeInvokeTool() {
|
|
@@ -56810,7 +56817,8 @@ class CodeFixerAgent extends AgentBase {
|
|
|
56810
56817
|
policies: options.policies,
|
|
56811
56818
|
toolFormat: options.toolFormat,
|
|
56812
56819
|
parameters: options.parameters ?? {},
|
|
56813
|
-
usageMeter: options.usageMeter ?? new UsageMeter
|
|
56820
|
+
usageMeter: options.usageMeter ?? new UsageMeter,
|
|
56821
|
+
requestTimeoutSeconds: options.requestTimeoutSeconds
|
|
56814
56822
|
});
|
|
56815
56823
|
this.#maxRetries = options.maxRetries ?? 5;
|
|
56816
56824
|
}
|
|
@@ -57008,7 +57016,8 @@ class CoderAgent extends AgentBase {
|
|
|
57008
57016
|
policies: options.policies,
|
|
57009
57017
|
toolFormat: options.toolFormat,
|
|
57010
57018
|
parameters: options.parameters ?? {},
|
|
57011
|
-
usageMeter: options.usageMeter ?? new UsageMeter
|
|
57019
|
+
usageMeter: options.usageMeter ?? new UsageMeter,
|
|
57020
|
+
requestTimeoutSeconds: options.requestTimeoutSeconds
|
|
57012
57021
|
});
|
|
57013
57022
|
}
|
|
57014
57023
|
async#runScript(scriptName, shouldReplyWithError) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polka-codes/runner",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.8",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"author": "github@polka.codes",
|
|
6
6
|
"type": "module",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"build": "bun build src/index.ts --outdir dist --target node"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@polka-codes/cli-shared": "0.9.
|
|
21
|
-
"@polka-codes/core": "0.9.
|
|
20
|
+
"@polka-codes/cli-shared": "0.9.6",
|
|
21
|
+
"@polka-codes/core": "0.9.6",
|
|
22
22
|
"commander": "^13.0.0",
|
|
23
23
|
"dotenv": "^16.4.7",
|
|
24
24
|
"ignore": "^7.0.3",
|