@polka-codes/cli-shared 0.7.21 → 0.7.23

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 +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -31113,6 +31113,9 @@ ${agents}`;
31113
31113
  get messages() {
31114
31114
  return this.#messages;
31115
31115
  }
31116
+ setMessages(messages) {
31117
+ this.#messages = messages;
31118
+ }
31116
31119
  async#callback(event) {
31117
31120
  await this.config.callback?.(event);
31118
31121
  }
@@ -31200,7 +31203,7 @@ ${agents}`;
31200
31203
  content: currentAssistantMessage
31201
31204
  });
31202
31205
  const ret = parseAssistantMessage(currentAssistantMessage, this.config.tools, this.config.toolNamePrefix);
31203
- await this.#callback({ kind: "EndRequest" /* EndRequest */, agent: this });
31206
+ await this.#callback({ kind: "EndRequest" /* EndRequest */, agent: this, message: currentAssistantMessage });
31204
31207
  return ret;
31205
31208
  }
31206
31209
  async#handleResponse(response) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polka-codes/cli-shared",
3
- "version": "0.7.21",
3
+ "version": "0.7.23",
4
4
  "license": "AGPL-3.0",
5
5
  "author": "github@polka.codes",
6
6
  "type": "module",