@polka-codes/cli 0.9.30 → 0.9.32
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 +4 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -58608,7 +58608,7 @@ var {
|
|
|
58608
58608
|
Help
|
|
58609
58609
|
} = import__.default;
|
|
58610
58610
|
// package.json
|
|
58611
|
-
var version = "0.9.
|
|
58611
|
+
var version = "0.9.32";
|
|
58612
58612
|
|
|
58613
58613
|
// src/commands/chat.ts
|
|
58614
58614
|
import { readFile as readFile3 } from "node:fs/promises";
|
|
@@ -85521,16 +85521,11 @@ ${instance.prompt}`;
|
|
|
85521
85521
|
this.#callback({ kind: "StartTask" /* StartTask */, agent: this, systemPrompt: this.config.systemPrompt });
|
|
85522
85522
|
return await this.#processLoop(prompt);
|
|
85523
85523
|
}
|
|
85524
|
-
async step(
|
|
85524
|
+
async step(message) {
|
|
85525
85525
|
if (this.#messages.length === 0) {
|
|
85526
85526
|
this.#callback({ kind: "StartTask" /* StartTask */, agent: this, systemPrompt: this.config.systemPrompt });
|
|
85527
85527
|
}
|
|
85528
|
-
return await this.#request(
|
|
85529
|
-
{
|
|
85530
|
-
role: "user",
|
|
85531
|
-
content: prompt
|
|
85532
|
-
}
|
|
85533
|
-
]);
|
|
85528
|
+
return await this.#request(message);
|
|
85534
85529
|
}
|
|
85535
85530
|
async handleStepResponse(response) {
|
|
85536
85531
|
return this.#handleResponse(response);
|
|
@@ -109358,6 +109353,7 @@ ${result.output.formattedReview}`;
|
|
|
109358
109353
|
});
|
|
109359
109354
|
|
|
109360
109355
|
// src/index.ts
|
|
109356
|
+
globalThis.AI_SDK_LOG_WARNINGS = false;
|
|
109361
109357
|
var program2 = new Command;
|
|
109362
109358
|
program2.name("polka").description("Polka Codes CLI").version(version);
|
|
109363
109359
|
program2.argument("[task]", "The task to execute").action(runTask);
|