@posthog/agent 2.3.298 → 2.3.302

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.
@@ -5805,7 +5805,7 @@ var import_hono = require("hono");
5805
5805
  // package.json
5806
5806
  var package_default = {
5807
5807
  name: "@posthog/agent",
5808
- version: "2.3.298",
5808
+ version: "2.3.302",
5809
5809
  repository: "https://github.com/PostHog/code",
5810
5810
  description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
5811
5811
  exports: {
@@ -10540,6 +10540,7 @@ var CodexAcpAgent = class extends BaseAcpAgent {
10540
10540
  this.session.cancelled = false;
10541
10541
  this.session.interruptReason = void 0;
10542
10542
  resetUsage(this.sessionState);
10543
+ await this.broadcastUserMessage(params);
10543
10544
  const response = await this.codexConnection.prompt(params);
10544
10545
  if (this.sessionState.taskRunId) {
10545
10546
  const { accumulatedUsage } = this.sessionState;
@@ -10574,6 +10575,19 @@ var CodexAcpAgent = class extends BaseAcpAgent {
10574
10575
  sessionId: this.sessionId
10575
10576
  });
10576
10577
  }
10578
+ async broadcastUserMessage(params) {
10579
+ for (const chunk of params.prompt) {
10580
+ const notification = {
10581
+ sessionId: params.sessionId,
10582
+ update: {
10583
+ sessionUpdate: "user_message_chunk",
10584
+ content: chunk
10585
+ }
10586
+ };
10587
+ await this.client.sessionUpdate(notification);
10588
+ this.appendNotification(params.sessionId, notification);
10589
+ }
10590
+ }
10577
10591
  async setSessionMode(params) {
10578
10592
  const requestedMode = toCodexPermissionMode(params.modeId);
10579
10593
  const nativeMode = toCodexNativeMode(params.modeId);