@posthog/agent 2.1.138 → 2.1.148

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.1.138",
907
+ version: "2.1.148",
908
908
  repository: "https://github.com/PostHog/twig",
909
909
  description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
910
910
  exports: {
@@ -4903,7 +4903,7 @@ function createCodexConnection(config) {
4903
4903
  }
4904
4904
 
4905
4905
  // src/utils/gateway.ts
4906
- function getLlmGatewayUrl(posthogHost, product = "twig") {
4906
+ function getLlmGatewayUrl(posthogHost, product = "posthog_code") {
4907
4907
  const url = new URL(posthogHost);
4908
4908
  const hostname = url.hostname;
4909
4909
  if (hostname === "localhost" || hostname === "127.0.0.1") {
@@ -11422,10 +11422,10 @@ After completing the requested changes:
11422
11422
  1. Create a new branch with a descriptive name based on the work done
11423
11423
  2. Stage and commit all changes with a clear commit message
11424
11424
  3. Push the branch to origin
11425
- 4. Create a pull request using \`gh pr create\` with a descriptive title and body
11425
+ 4. Create a draft pull request using \`gh pr create --draft\` with a descriptive title and body
11426
11426
 
11427
11427
  Important:
11428
- - Always create the PR. Do not ask for confirmation.
11428
+ - Always create the PR as a draft. Do not ask for confirmation.
11429
11429
  - Do NOT add "Co-Authored-By" trailers to commit messages.
11430
11430
  - Do NOT add "Generated with [Claude Code]" or similar attribution lines to PR descriptions.
11431
11431
  `;
@@ -11461,7 +11461,7 @@ Important:
11461
11461
  }
11462
11462
  configureEnvironment() {
11463
11463
  const { apiKey, apiUrl, projectId } = this.config;
11464
- const product = this.config.mode === "background" ? "background_agents" : "twig";
11464
+ const product = this.config.mode === "background" ? "background_agents" : "posthog_code";
11465
11465
  const gatewayUrl = process.env.LLM_GATEWAY_URL || getLlmGatewayUrl(apiUrl, product);
11466
11466
  const openaiBaseUrl = gatewayUrl.endsWith("/v1") ? gatewayUrl : `${gatewayUrl}/v1`;
11467
11467
  Object.assign(process.env, {