@posthog/agent 2.3.474 → 2.3.502

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.502",
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: {
@@ -17339,7 +17339,7 @@ var ClaudeAcpAgent = class extends BaseAcpAgent {
17339
17339
  const configOptions = this.buildConfigOptions(
17340
17340
  permissionMode,
17341
17341
  modelOptions,
17342
- effort ?? "high"
17342
+ effort ?? "medium"
17343
17343
  );
17344
17344
  session.configOptions = configOptions;
17345
17345
  if (!creationOpts.skipBackgroundFetches) {
@@ -17405,7 +17405,7 @@ var ClaudeAcpAgent = class extends BaseAcpAgent {
17405
17405
  configOptions: this.session.configOptions
17406
17406
  };
17407
17407
  }
17408
- buildConfigOptions(currentModeId, modelOptions, currentEffort = "high") {
17408
+ buildConfigOptions(currentModeId, modelOptions, currentEffort = "medium") {
17409
17409
  const modeOptions = getAvailableModes().map((mode) => ({
17410
17410
  value: mode.id,
17411
17411
  name: mode.name,
@@ -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(