@polka-codes/cli-shared 0.9.7 → 0.9.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/index.js +14 -5
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -51105,8 +51105,14 @@ ${instance.prompt}`;
|
|
|
51105
51105
|
clearTimeout(timeout);
|
|
51106
51106
|
}
|
|
51107
51107
|
}
|
|
51108
|
-
if (
|
|
51109
|
-
|
|
51108
|
+
if (this.config.toolFormat === "native") {
|
|
51109
|
+
if (respMessages.some((m) => m.role === "tool")) {
|
|
51110
|
+
break;
|
|
51111
|
+
}
|
|
51112
|
+
} else {
|
|
51113
|
+
if (respMessages.length > 0) {
|
|
51114
|
+
break;
|
|
51115
|
+
}
|
|
51110
51116
|
}
|
|
51111
51117
|
if (this.#aborted) {
|
|
51112
51118
|
break;
|
|
@@ -51384,7 +51390,8 @@ class AnalyzerAgent extends AgentBase {
|
|
|
51384
51390
|
policies: options.policies,
|
|
51385
51391
|
toolFormat: options.toolFormat,
|
|
51386
51392
|
parameters: options.parameters ?? {},
|
|
51387
|
-
usageMeter: options.usageMeter ?? new UsageMeter
|
|
51393
|
+
usageMeter: options.usageMeter ?? new UsageMeter,
|
|
51394
|
+
requestTimeoutSeconds: options.requestTimeoutSeconds
|
|
51388
51395
|
});
|
|
51389
51396
|
}
|
|
51390
51397
|
onBeforeInvokeTool() {
|
|
@@ -51507,7 +51514,8 @@ class CodeFixerAgent extends AgentBase {
|
|
|
51507
51514
|
policies: options.policies,
|
|
51508
51515
|
toolFormat: options.toolFormat,
|
|
51509
51516
|
parameters: options.parameters ?? {},
|
|
51510
|
-
usageMeter: options.usageMeter ?? new UsageMeter
|
|
51517
|
+
usageMeter: options.usageMeter ?? new UsageMeter,
|
|
51518
|
+
requestTimeoutSeconds: options.requestTimeoutSeconds
|
|
51511
51519
|
});
|
|
51512
51520
|
this.#maxRetries = options.maxRetries ?? 5;
|
|
51513
51521
|
}
|
|
@@ -51705,7 +51713,8 @@ class CoderAgent extends AgentBase {
|
|
|
51705
51713
|
policies: options.policies,
|
|
51706
51714
|
toolFormat: options.toolFormat,
|
|
51707
51715
|
parameters: options.parameters ?? {},
|
|
51708
|
-
usageMeter: options.usageMeter ?? new UsageMeter
|
|
51716
|
+
usageMeter: options.usageMeter ?? new UsageMeter,
|
|
51717
|
+
requestTimeoutSeconds: options.requestTimeoutSeconds
|
|
51709
51718
|
});
|
|
51710
51719
|
}
|
|
51711
51720
|
async#runScript(scriptName, shouldReplyWithError) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polka-codes/cli-shared",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.9",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"author": "github@polka.codes",
|
|
6
6
|
"type": "module",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"build": "bun build src/index.ts --outdir dist --target node"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@polka-codes/core": "0.9.
|
|
20
|
+
"@polka-codes/core": "0.9.8",
|
|
21
21
|
"ignore": "^7.0.3",
|
|
22
22
|
"lodash": "^4.17.21",
|
|
23
23
|
"yaml": "^2.7.0",
|