@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/agent.js CHANGED
@@ -276,7 +276,7 @@ import { v7 as uuidv7 } from "uuid";
276
276
  // package.json
277
277
  var package_default = {
278
278
  name: "@posthog/agent",
279
- version: "2.1.69",
279
+ version: "2.1.70",
280
280
  repository: "https://github.com/PostHog/twig",
281
281
  description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
282
282
  exports: {
@@ -2733,15 +2733,14 @@ var ClaudeAcpAgent = class extends BaseAcpAgent {
2733
2733
  }
2734
2734
  }
2735
2735
  async setModelWithFallback(q, modelId) {
2736
+ const sdkModelId = toSdkModelId(modelId);
2736
2737
  try {
2737
- await q.setModel(modelId);
2738
- return;
2738
+ await q.setModel(sdkModelId);
2739
2739
  } catch (err) {
2740
- const fallback = toSdkModelId(modelId);
2741
- if (fallback === modelId) {
2740
+ if (sdkModelId === modelId) {
2742
2741
  throw err;
2743
2742
  }
2744
- await q.setModel(fallback);
2743
+ await q.setModel(modelId);
2745
2744
  }
2746
2745
  }
2747
2746
  /**