@posthog/agent 2.3.474 → 2.3.478

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.
@@ -8755,7 +8755,7 @@ var import_zod3 = require("zod");
8755
8755
  // package.json
8756
8756
  var package_default = {
8757
8757
  name: "@posthog/agent",
8758
- version: "2.3.474",
8758
+ version: "2.3.478",
8759
8759
  repository: "https://github.com/PostHog/code",
8760
8760
  description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
8761
8761
  exports: {
@@ -21273,6 +21273,24 @@ var AgentServer = class {
21273
21273
  );
21274
21274
  await logAgentshRuntimeInfo(this.logger);
21275
21275
  this.logger.debug(`Initial permission mode: ${initialPermissionMode}`);
21276
+ const runStartedNotification = {
21277
+ jsonrpc: "2.0",
21278
+ method: POSTHOG_NOTIFICATIONS.RUN_STARTED,
21279
+ params: {
21280
+ sessionId: acpSessionId,
21281
+ runId: payload.run_id,
21282
+ taskId: payload.task_id
21283
+ }
21284
+ };
21285
+ this.broadcastEvent({
21286
+ type: "notification",
21287
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
21288
+ notification: runStartedNotification
21289
+ });
21290
+ this.session.logWriter.appendRawLine(
21291
+ payload.run_id,
21292
+ JSON.stringify(runStartedNotification)
21293
+ );
21276
21294
  this.posthogAPI.updateTaskRun(payload.task_id, payload.run_id, {
21277
21295
  status: "in_progress"
21278
21296
  }).catch(