@inkeep/agents-manage-api 0.0.0-dev-20251202012021 → 0.0.0-dev-20251202183811

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.
@@ -29742,27 +29742,27 @@ var logger10 = getLogger("agents-manage-api");
29742
29742
  logger10.info({ logger: logger10.getTransports() }, "Logger initialized");
29743
29743
  function getBaseDomain(hostname) {
29744
29744
  const parts2 = hostname.split(".");
29745
- if (parts2.length < 2) return null;
29746
- return parts2.slice(-2).join(".");
29745
+ if (parts2.length >= 3) {
29746
+ return parts2.slice(-3).join(".");
29747
+ }
29748
+ return hostname;
29747
29749
  }
29748
29750
  function isOriginAllowed(origin) {
29749
29751
  if (!origin) return false;
29750
29752
  try {
29751
29753
  const requestUrl = new URL(origin);
29752
- const authUrl = new URL(env.INKEEP_AGENTS_MANAGE_API_URL || "http://localhost:3002");
29754
+ const apiUrl = new URL(env.INKEEP_AGENTS_MANAGE_API_URL || "http://localhost:3002");
29753
29755
  const uiUrl = env.INKEEP_AGENTS_MANAGE_UI_URL ? new URL(env.INKEEP_AGENTS_MANAGE_UI_URL) : null;
29754
- if (authUrl.hostname === "localhost" || authUrl.hostname === "127.0.0.1") {
29756
+ if (apiUrl.hostname === "localhost" || apiUrl.hostname === "127.0.0.1") {
29755
29757
  return requestUrl.hostname === "localhost" || requestUrl.hostname === "127.0.0.1";
29756
29758
  }
29757
29759
  if (uiUrl && requestUrl.hostname === uiUrl.hostname) {
29758
29760
  return true;
29759
29761
  }
29760
- const vercelUrl = process.env.VERCEL_ENV === "production" ? process.env.VERCEL_PROJECT_PRODUCTION_URL : process.env.VERCEL_URL;
29761
- if (vercelUrl) {
29762
- const baseDomain = getBaseDomain(vercelUrl);
29763
- if (baseDomain && requestUrl.hostname.endsWith(`.${baseDomain}`)) {
29764
- return true;
29765
- }
29762
+ const requestBaseDomain = getBaseDomain(requestUrl.hostname);
29763
+ const apiBaseDomain = getBaseDomain(apiUrl.hostname);
29764
+ if (requestBaseDomain === apiBaseDomain) {
29765
+ return true;
29766
29766
  }
29767
29767
  return false;
29768
29768
  } catch {
@@ -29867,7 +29867,7 @@ function createManagementHono(serverConfig, credentialStores, auth) {
29867
29867
  origin: (origin) => {
29868
29868
  return isOriginAllowed(origin) ? origin : null;
29869
29869
  },
29870
- allowHeaders: ["Content-Type", "Authorization", "User-Agent"],
29870
+ allowHeaders: ["content-type", "Content-Type", "authorization", "Authorization", "User-Agent"],
29871
29871
  allowMethods: ["POST", "GET", "OPTIONS"],
29872
29872
  exposeHeaders: ["Content-Length"],
29873
29873
  maxAge: 600,
package/dist/factory.js CHANGED
@@ -1 +1 @@
1
- export { createAuth0Provider, createManagementApp, createManagementHono, createOIDCProvider, initializeDefaultUser } from './chunk-FYLLDKZC.js';
1
+ export { createAuth0Provider, createManagementApp, createManagementHono, createOIDCProvider, initializeDefaultUser } from './chunk-LM2Z7DXS.js';
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { createAuth0Provider, createManagementHono, env, initializeDefaultUser, dbClient_default } from './chunk-FYLLDKZC.js';
2
- export { createAuth0Provider, createManagementApp, createManagementHono, createOIDCProvider, initializeDefaultUser } from './chunk-FYLLDKZC.js';
1
+ import { createAuth0Provider, createManagementHono, env, initializeDefaultUser, dbClient_default } from './chunk-LM2Z7DXS.js';
2
+ export { createAuth0Provider, createManagementApp, createManagementHono, createOIDCProvider, initializeDefaultUser } from './chunk-LM2Z7DXS.js';
3
3
  import { createDefaultCredentialStores, CredentialStoreRegistry } from '@inkeep/agents-core';
4
4
  import { createAuth } from '@inkeep/agents-core/auth';
5
5
  export { Hono } from 'hono';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-manage-api",
3
- "version": "0.0.0-dev-20251202012021",
3
+ "version": "0.0.0-dev-20251202183811",
4
4
  "description": "Agents Manage API for Inkeep Agent Framework - handles CRUD operations and OAuth",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -32,8 +32,8 @@
32
32
  "nanoid": "^5.1.5",
33
33
  "openid-client": "^6.6.4",
34
34
  "pino": "^9.7.0",
35
- "@inkeep/agents-core": "^0.0.0-dev-20251202012021",
36
- "@inkeep/agents-manage-mcp": "^0.0.0-dev-20251202012021"
35
+ "@inkeep/agents-core": "^0.0.0-dev-20251202183811",
36
+ "@inkeep/agents-manage-mcp": "^0.0.0-dev-20251202183811"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@hono/zod-openapi": "^1.1.5",