@posthog/agent 2.3.145 → 2.3.152

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.
@@ -904,7 +904,7 @@ var import_hono = require("hono");
904
904
  // package.json
905
905
  var package_default = {
906
906
  name: "@posthog/agent",
907
- version: "2.3.145",
907
+ version: "2.3.152",
908
908
  repository: "https://github.com/PostHog/code",
909
909
  description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
910
910
  exports: {
@@ -3524,6 +3524,10 @@ function supportsEffort(modelId) {
3524
3524
  function supportsMaxEffort(modelId) {
3525
3525
  return MODELS_WITH_MAX_EFFORT.has(modelId);
3526
3526
  }
3527
+ var MODELS_TO_EXCLUDE_MCP_TOOLS = /* @__PURE__ */ new Set(["claude-haiku-4-5"]);
3528
+ function supportsMcpInjection(modelId) {
3529
+ return !MODELS_TO_EXCLUDE_MCP_TOOLS.has(modelId);
3530
+ }
3527
3531
  function getEffortOptions(modelId) {
3528
3532
  if (!supportsEffort(modelId)) return null;
3529
3533
  const options = [
@@ -4576,7 +4580,8 @@ var ClaudeAcpAgent = class extends BaseAcpAgent {
4576
4580
  const input = new Pushable();
4577
4581
  const settingsManager = new SettingsManager(cwd);
4578
4582
  await settingsManager.initialize();
4579
- const mcpServers = parseMcpServers(params);
4583
+ const earlyModelId = settingsManager.getSettings().model || meta?.model || "";
4584
+ const mcpServers = supportsMcpInjection(earlyModelId) ? parseMcpServers(params) : {};
4580
4585
  const systemPrompt = buildSystemPrompt(meta?.systemPrompt);
4581
4586
  this.logger.info(isResume ? "Resuming session" : "Creating new session", {
4582
4587
  sessionId,