@posthog/agent 2.1.69 → 2.1.71

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.
@@ -1183,7 +1183,7 @@ import { v7 as uuidv7 } from "uuid";
1183
1183
  // package.json
1184
1184
  var package_default = {
1185
1185
  name: "@posthog/agent",
1186
- version: "2.1.69",
1186
+ version: "2.1.71",
1187
1187
  repository: "https://github.com/PostHog/twig",
1188
1188
  description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
1189
1189
  exports: {
@@ -3154,7 +3154,8 @@ function buildEnvironment() {
3154
3154
  return {
3155
3155
  ...process.env,
3156
3156
  ELECTRON_RUN_AS_NODE: "1",
3157
- CLAUDE_CODE_ENABLE_ASK_USER_QUESTION_TOOL: "true"
3157
+ CLAUDE_CODE_ENABLE_ASK_USER_QUESTION_TOOL: "true",
3158
+ ENABLE_EXPERIMENTAL_MCP_CLI: "true"
3158
3159
  };
3159
3160
  }
3160
3161
  function buildHooks(userHooks, onModeChange) {
@@ -3604,15 +3605,14 @@ var ClaudeAcpAgent = class extends BaseAcpAgent {
3604
3605
  }
3605
3606
  }
3606
3607
  async setModelWithFallback(q, modelId) {
3608
+ const sdkModelId = toSdkModelId(modelId);
3607
3609
  try {
3608
- await q.setModel(modelId);
3609
- return;
3610
+ await q.setModel(sdkModelId);
3610
3611
  } catch (err) {
3611
- const fallback = toSdkModelId(modelId);
3612
- if (fallback === modelId) {
3612
+ if (sdkModelId === modelId) {
3613
3613
  throw err;
3614
3614
  }
3615
- await q.setModel(fallback);
3615
+ await q.setModel(modelId);
3616
3616
  }
3617
3617
  }
3618
3618
  /**