@posthog/agent 2.1.69 → 2.1.70

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.70",
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: {
@@ -3639,15 +3639,14 @@ var ClaudeAcpAgent = class extends BaseAcpAgent {
3639
3639
  }
3640
3640
  }
3641
3641
  async setModelWithFallback(q, modelId) {
3642
+ const sdkModelId = toSdkModelId(modelId);
3642
3643
  try {
3643
- await q.setModel(modelId);
3644
- return;
3644
+ await q.setModel(sdkModelId);
3645
3645
  } catch (err) {
3646
- const fallback = toSdkModelId(modelId);
3647
- if (fallback === modelId) {
3646
+ if (sdkModelId === modelId) {
3648
3647
  throw err;
3649
3648
  }
3650
- await q.setModel(fallback);
3649
+ await q.setModel(modelId);
3651
3650
  }
3652
3651
  }
3653
3652
  /**