@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.
package/dist/index.js CHANGED
@@ -1174,7 +1174,7 @@ import { v7 as uuidv7 } from "uuid";
1174
1174
  // package.json
1175
1175
  var package_default = {
1176
1176
  name: "@posthog/agent",
1177
- version: "2.1.69",
1177
+ version: "2.1.71",
1178
1178
  repository: "https://github.com/PostHog/twig",
1179
1179
  description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
1180
1180
  exports: {
@@ -3189,7 +3189,8 @@ function buildEnvironment() {
3189
3189
  return {
3190
3190
  ...process.env,
3191
3191
  ELECTRON_RUN_AS_NODE: "1",
3192
- CLAUDE_CODE_ENABLE_ASK_USER_QUESTION_TOOL: "true"
3192
+ CLAUDE_CODE_ENABLE_ASK_USER_QUESTION_TOOL: "true",
3193
+ ENABLE_EXPERIMENTAL_MCP_CLI: "true"
3193
3194
  };
3194
3195
  }
3195
3196
  function buildHooks(userHooks, onModeChange) {
@@ -3639,15 +3640,14 @@ var ClaudeAcpAgent = class extends BaseAcpAgent {
3639
3640
  }
3640
3641
  }
3641
3642
  async setModelWithFallback(q, modelId) {
3643
+ const sdkModelId = toSdkModelId(modelId);
3642
3644
  try {
3643
- await q.setModel(modelId);
3644
- return;
3645
+ await q.setModel(sdkModelId);
3645
3646
  } catch (err) {
3646
- const fallback = toSdkModelId(modelId);
3647
- if (fallback === modelId) {
3647
+ if (sdkModelId === modelId) {
3648
3648
  throw err;
3649
3649
  }
3650
- await q.setModel(fallback);
3650
+ await q.setModel(modelId);
3651
3651
  }
3652
3652
  }
3653
3653
  /**