@inkeep/agents-run-api 0.0.0-dev-20251112221933 → 0.0.0-dev-20251112223450

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
@@ -1913,6 +1913,7 @@ init_env();
1913
1913
  function setupOpenAPIRoutes(app6) {
1914
1914
  app6.get("/openapi.json", (c) => {
1915
1915
  try {
1916
+ const serverUrl = process.env.VERCEL_ENV === "production" && process.env.VERCEL_PROJECT_PRODUCTION_URL ? `https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}` : process.env.VERCEL_ENV === "preview" && process.env.VERCEL_URL ? `https://${process.env.VERCEL_URL}` : env.AGENTS_RUN_API_URL;
1916
1917
  const document = app6.getOpenAPIDocument({
1917
1918
  openapi: "3.0.0",
1918
1919
  info: {
@@ -1922,7 +1923,7 @@ function setupOpenAPIRoutes(app6) {
1922
1923
  },
1923
1924
  servers: [
1924
1925
  {
1925
- url: env.AGENTS_RUN_API_URL,
1926
+ url: serverUrl,
1926
1927
  description: "API Server"
1927
1928
  }
1928
1929
  ]
package/dist/index.js CHANGED
@@ -292,6 +292,7 @@ var extractContextFromTeamAgentToken = async (token, baseUrl, expectedSubAgentId
292
292
  function setupOpenAPIRoutes(app6) {
293
293
  app6.get("/openapi.json", (c) => {
294
294
  try {
295
+ const serverUrl = process.env.VERCEL_ENV === "production" && process.env.VERCEL_PROJECT_PRODUCTION_URL ? `https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}` : process.env.VERCEL_ENV === "preview" && process.env.VERCEL_URL ? `https://${process.env.VERCEL_URL}` : env.AGENTS_RUN_API_URL;
295
296
  const document = app6.getOpenAPIDocument({
296
297
  openapi: "3.0.0",
297
298
  info: {
@@ -301,7 +302,7 @@ function setupOpenAPIRoutes(app6) {
301
302
  },
302
303
  servers: [
303
304
  {
304
- url: env.AGENTS_RUN_API_URL,
305
+ url: serverUrl,
305
306
  description: "API Server"
306
307
  }
307
308
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-run-api",
3
- "version": "0.0.0-dev-20251112221933",
3
+ "version": "0.0.0-dev-20251112223450",
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",
@@ -53,7 +53,7 @@
53
53
  "traverse": "^0.6.11",
54
54
  "ts-pattern": "^5.7.1",
55
55
  "zod": "4.1.5",
56
- "@inkeep/agents-core": "^0.0.0-dev-20251112221933"
56
+ "@inkeep/agents-core": "^0.0.0-dev-20251112223450"
57
57
  },
58
58
  "optionalDependencies": {
59
59
  "keytar": "^7.9.0"