@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.
package/dist/agent.js CHANGED
@@ -245,7 +245,7 @@ import { v7 as uuidv7 } from "uuid";
245
245
  // package.json
246
246
  var package_default = {
247
247
  name: "@posthog/agent",
248
- version: "2.3.298",
248
+ version: "2.3.302",
249
249
  repository: "https://github.com/PostHog/code",
250
250
  description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
251
251
  exports: {
@@ -4876,6 +4876,7 @@ var CodexAcpAgent = class extends BaseAcpAgent {
4876
4876
  this.session.cancelled = false;
4877
4877
  this.session.interruptReason = void 0;
4878
4878
  resetUsage(this.sessionState);
4879
+ await this.broadcastUserMessage(params);
4879
4880
  const response = await this.codexConnection.prompt(params);
4880
4881
  if (this.sessionState.taskRunId) {
4881
4882
  const { accumulatedUsage } = this.sessionState;
@@ -4910,6 +4911,19 @@ var CodexAcpAgent = class extends BaseAcpAgent {
4910
4911
  sessionId: this.sessionId
4911
4912
  });
4912
4913
  }
4914
+ async broadcastUserMessage(params) {
4915
+ for (const chunk of params.prompt) {
4916
+ const notification = {
4917
+ sessionId: params.sessionId,
4918
+ update: {
4919
+ sessionUpdate: "user_message_chunk",
4920
+ content: chunk
4921
+ }
4922
+ };
4923
+ await this.client.sessionUpdate(notification);
4924
+ this.appendNotification(params.sessionId, notification);
4925
+ }
4926
+ }
4913
4927
  async setSessionMode(params) {
4914
4928
  const requestedMode = toCodexPermissionMode(params.modeId);
4915
4929
  const nativeMode = toCodexNativeMode(params.modeId);