@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.
@@ -1175,7 +1175,7 @@ var import_uuid = require("uuid");
1175
1175
  // package.json
1176
1176
  var package_default = {
1177
1177
  name: "@posthog/agent",
1178
- version: "2.1.69",
1178
+ version: "2.1.71",
1179
1179
  repository: "https://github.com/PostHog/twig",
1180
1180
  description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
1181
1181
  exports: {
@@ -3146,7 +3146,8 @@ function buildEnvironment() {
3146
3146
  return {
3147
3147
  ...process.env,
3148
3148
  ELECTRON_RUN_AS_NODE: "1",
3149
- CLAUDE_CODE_ENABLE_ASK_USER_QUESTION_TOOL: "true"
3149
+ CLAUDE_CODE_ENABLE_ASK_USER_QUESTION_TOOL: "true",
3150
+ ENABLE_EXPERIMENTAL_MCP_CLI: "true"
3150
3151
  };
3151
3152
  }
3152
3153
  function buildHooks(userHooks, onModeChange) {
@@ -3596,15 +3597,14 @@ var ClaudeAcpAgent = class extends BaseAcpAgent {
3596
3597
  }
3597
3598
  }
3598
3599
  async setModelWithFallback(q, modelId) {
3600
+ const sdkModelId = toSdkModelId(modelId);
3599
3601
  try {
3600
- await q.setModel(modelId);
3601
- return;
3602
+ await q.setModel(sdkModelId);
3602
3603
  } catch (err) {
3603
- const fallback = toSdkModelId(modelId);
3604
- if (fallback === modelId) {
3604
+ if (sdkModelId === modelId) {
3605
3605
  throw err;
3606
3606
  }
3607
- await q.setModel(fallback);
3607
+ await q.setModel(modelId);
3608
3608
  }
3609
3609
  }
3610
3610
  /**