@inkeep/agents-run-api 0.0.0-dev-20251009020740 → 0.0.0-dev-20251009070204

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/index.cjs CHANGED
@@ -823,7 +823,9 @@ var apiKeyAuth = () => factory.createMiddleware(async (c, next) => {
823
823
  const projectId = c.req.header("x-inkeep-project-id");
824
824
  const graphId = c.req.header("x-inkeep-graph-id");
825
825
  const agentId = c.req.header("x-inkeep-agent-id");
826
- const baseUrl = new URL(c.req.url).origin;
826
+ const proto = c.req.header("x-forwarded-proto") ?? "http";
827
+ const host = c.req.header("x-forwarded-host") ?? c.req.header("host");
828
+ const baseUrl = `${proto}://${host}`;
827
829
  if (process.env.ENVIRONMENT === "development" || process.env.ENVIRONMENT === "test") {
828
830
  let executionContext;
829
831
  if (authHeader?.startsWith("Bearer ")) {
package/dist/index.js CHANGED
@@ -57,7 +57,9 @@ var apiKeyAuth = () => createMiddleware(async (c, next) => {
57
57
  const projectId = c.req.header("x-inkeep-project-id");
58
58
  const graphId = c.req.header("x-inkeep-graph-id");
59
59
  const agentId = c.req.header("x-inkeep-agent-id");
60
- const baseUrl = new URL(c.req.url).origin;
60
+ const proto = c.req.header("x-forwarded-proto") ?? "http";
61
+ const host = c.req.header("x-forwarded-host") ?? c.req.header("host");
62
+ const baseUrl = `${proto}://${host}`;
61
63
  if (process.env.ENVIRONMENT === "development" || process.env.ENVIRONMENT === "test") {
62
64
  let executionContext;
63
65
  if (authHeader?.startsWith("Bearer ")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-run-api",
3
- "version": "0.0.0-dev-20251009020740",
3
+ "version": "0.0.0-dev-20251009070204",
4
4
  "description": "Agents Run API for Inkeep Agent Framework - handles chat, agent execution, and streaming",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -51,7 +51,7 @@
51
51
  "traverse": "^0.6.11",
52
52
  "ts-pattern": "^5.7.1",
53
53
  "zod": "^4.1.11",
54
- "@inkeep/agents-core": "^0.0.0-dev-20251009020740"
54
+ "@inkeep/agents-core": "^0.0.0-dev-20251009070204"
55
55
  },
56
56
  "optionalDependencies": {
57
57
  "keytar": "^7.9.0"