@posthog/agent 2.1.147 → 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.
- package/dist/agent.js +2 -2
- package/dist/agent.js.map +1 -1
- package/dist/posthog-api.d.ts +1 -1
- package/dist/posthog-api.js +2 -2
- package/dist/posthog-api.js.map +1 -1
- package/dist/server/agent-server.js +3 -3
- package/dist/server/agent-server.js.map +1 -1
- package/dist/server/bin.cjs +3 -3
- package/dist/server/bin.cjs.map +1 -1
- package/package.json +3 -3
- package/src/server/agent-server.ts +1 -1
- package/src/utils/gateway.ts +2 -2
package/dist/server/bin.cjs
CHANGED
|
@@ -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.
|
|
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 = "
|
|
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") {
|
|
@@ -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" : "
|
|
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, {
|