@posthog/agent 2.1.107 → 2.1.111

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.107",
279
+ version: "2.1.111",
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: {
@@ -361,7 +361,7 @@ var package_default = {
361
361
  },
362
362
  dependencies: {
363
363
  "@agentclientprotocol/sdk": "^0.14.0",
364
- "@anthropic-ai/claude-agent-sdk": "0.2.58",
364
+ "@anthropic-ai/claude-agent-sdk": "0.2.59",
365
365
  "@anthropic-ai/sdk": "^0.71.0",
366
366
  "@hono/node-server": "^1.19.9",
367
367
  "@modelcontextprotocol/sdk": "^1.25.3",
@@ -2308,7 +2308,8 @@ function buildEnvironment() {
2308
2308
  ...process.env,
2309
2309
  ELECTRON_RUN_AS_NODE: "1",
2310
2310
  CLAUDE_CODE_ENABLE_ASK_USER_QUESTION_TOOL: "true",
2311
- ENABLE_EXPERIMENTAL_MCP_CLI: "true"
2311
+ // Offload all MCP tools by default
2312
+ ENABLE_TOOL_SEARCH: "auto:0"
2312
2313
  };
2313
2314
  }
2314
2315
  function buildHooks(userHooks, onModeChange) {
@@ -2881,9 +2882,7 @@ var ClaudeAcpAgent = class extends BaseAcpAgent {
2881
2882
  case "tool_use_summary":
2882
2883
  return null;
2883
2884
  default:
2884
- this.logger.warn("Unhandled message type", {
2885
- type: message.type
2886
- });
2885
+ unreachable(message, this.logger);
2887
2886
  return null;
2888
2887
  }
2889
2888
  }
@@ -3793,6 +3792,7 @@ var Agent = class {
3793
3792
  }
3794
3793
  async run(taskId, taskRunId, options = {}) {
3795
3794
  const gatewayConfig = this._configureLlmGateway(options.adapter);
3795
+ this.logger.info("Configured LLM gateway", options);
3796
3796
  this.taskRunId = taskRunId;
3797
3797
  let allowedModelIds;
3798
3798
  let sanitizedModel = options.model && !BLOCKED_MODELS.has(options.model) ? options.model : void 0;