@polka-codes/cli 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.
Files changed (2) hide show
  1. package/dist/index.js +3 -8
  2. 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.30";
58611
+ var version = "0.9.31";
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(prompt) {
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polka-codes/cli",
3
- "version": "0.9.30",
3
+ "version": "0.9.31",
4
4
  "license": "AGPL-3.0",
5
5
  "author": "github@polka.codes",
6
6
  "type": "module",