@posthog/agent 2.1.114 → 2.1.115

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.114",
279
+ version: "2.1.115",
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: {
@@ -3358,17 +3358,17 @@ function createCodexConnection(config) {
3358
3358
  }
3359
3359
 
3360
3360
  // src/utils/gateway.ts
3361
- function getLlmGatewayUrl(posthogHost) {
3361
+ function getLlmGatewayUrl(posthogHost, product = "twig") {
3362
3362
  const url = new URL(posthogHost);
3363
3363
  const hostname = url.hostname;
3364
3364
  if (hostname === "localhost" || hostname === "127.0.0.1") {
3365
- return `${url.protocol}//localhost:3308/twig`;
3365
+ return `${url.protocol}//localhost:3308/${product}`;
3366
3366
  }
3367
3367
  if (hostname === "host.docker.internal") {
3368
- return `${url.protocol}//host.docker.internal:3308/twig`;
3368
+ return `${url.protocol}//host.docker.internal:3308/${product}`;
3369
3369
  }
3370
3370
  const region = hostname.match(/^(us|eu)\.posthog\.com$/)?.[1] ?? "us";
3371
- return `https://gateway.${region}.posthog.com/twig`;
3371
+ return `https://gateway.${region}.posthog.com/${product}`;
3372
3372
  }
3373
3373
 
3374
3374
  // src/posthog-api.ts