@polka-codes/runner 0.9.30 → 0.9.31
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 +3 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30494,7 +30494,7 @@ var {
|
|
|
30494
30494
|
Help
|
|
30495
30495
|
} = import__.default;
|
|
30496
30496
|
// package.json
|
|
30497
|
-
var version = "0.9.
|
|
30497
|
+
var version = "0.9.31";
|
|
30498
30498
|
|
|
30499
30499
|
// src/runner.ts
|
|
30500
30500
|
import { execSync } from "node:child_process";
|
|
@@ -55978,16 +55978,11 @@ ${instance.prompt}`;
|
|
|
55978
55978
|
this.#callback({ kind: "StartTask" /* StartTask */, agent: this, systemPrompt: this.config.systemPrompt });
|
|
55979
55979
|
return await this.#processLoop(prompt);
|
|
55980
55980
|
}
|
|
55981
|
-
async step(
|
|
55981
|
+
async step(message) {
|
|
55982
55982
|
if (this.#messages.length === 0) {
|
|
55983
55983
|
this.#callback({ kind: "StartTask" /* StartTask */, agent: this, systemPrompt: this.config.systemPrompt });
|
|
55984
55984
|
}
|
|
55985
|
-
return await this.#request(
|
|
55986
|
-
{
|
|
55987
|
-
role: "user",
|
|
55988
|
-
content: prompt
|
|
55989
|
-
}
|
|
55990
|
-
]);
|
|
55985
|
+
return await this.#request(message);
|
|
55991
55986
|
}
|
|
55992
55987
|
async handleStepResponse(response) {
|
|
55993
55988
|
return this.#handleResponse(response);
|