@inkeep/agents-manage-api 0.35.12 → 0.36.1

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.
@@ -22,6 +22,7 @@ var envSchema = z.object({
22
22
  NODE_ENV: z.enum(["development", "production", "test"]).optional(),
23
23
  ENVIRONMENT: z.enum(["development", "production", "pentest", "test"]).optional(),
24
24
  INKEEP_AGENTS_MANAGE_API_URL: z.string().optional().default("http://localhost:3002"),
25
+ INKEEP_AGENTS_MANAGE_UI_URL: z.string().optional().default("http://localhost:3000"),
25
26
  DATABASE_URL: z.string().optional(),
26
27
  LOG_LEVEL: z.enum(["trace", "debug", "info", "warn", "error"]).optional().default("debug"),
27
28
  NANGO_SERVER_URL: z.string().optional().default("https://api.nango.dev"),
@@ -11638,11 +11639,14 @@ function isOriginAllowed(origin) {
11638
11639
  try {
11639
11640
  const requestUrl = new URL(origin);
11640
11641
  const authUrl = new URL(env.INKEEP_AGENTS_MANAGE_API_URL || "http://localhost:3002");
11642
+ const uiUrl = env.INKEEP_AGENTS_MANAGE_UI_URL ? new URL(env.INKEEP_AGENTS_MANAGE_UI_URL) : null;
11641
11643
  if (authUrl.hostname === "localhost" || authUrl.hostname === "127.0.0.1") {
11642
11644
  return requestUrl.hostname === "localhost" || requestUrl.hostname === "127.0.0.1";
11643
11645
  }
11644
- const baseDomain = authUrl.hostname.replace(/^api\./, "");
11645
- return requestUrl.hostname === baseDomain || requestUrl.hostname.endsWith(`.${baseDomain}`);
11646
+ if (uiUrl && requestUrl.hostname === uiUrl.hostname) {
11647
+ return true;
11648
+ }
11649
+ return false;
11646
11650
  } catch {
11647
11651
  return false;
11648
11652
  }
package/dist/factory.js CHANGED
@@ -1 +1 @@
1
- export { createAuth0Provider, createManagementApp, createManagementHono, createOIDCProvider, initializeDefaultUser } from './chunk-3C624FLK.js';
1
+ export { createAuth0Provider, createManagementApp, createManagementHono, createOIDCProvider, initializeDefaultUser } from './chunk-NMRIX6IG.js';
package/dist/index.d.ts CHANGED
@@ -30,9 +30,31 @@ declare const auth: better_auth.Auth<{
30
30
  updateAge: number;
31
31
  };
32
32
  advanced: {
33
+ ipAddress?: {
34
+ ipAddressHeaders?: string[];
35
+ disableIpTracking?: boolean;
36
+ } | undefined;
37
+ useSecureCookies?: boolean | undefined;
38
+ disableCSRFCheck?: boolean | undefined;
39
+ disableOriginCheck?: boolean | undefined;
33
40
  crossSubDomainCookies: {
34
- enabled: true;
41
+ enabled: boolean;
42
+ additionalCookies?: string[];
43
+ domain?: string;
35
44
  };
45
+ cookies?: {
46
+ [key: string]: {
47
+ name?: string;
48
+ attributes?: better_auth.CookieOptions;
49
+ };
50
+ } | undefined;
51
+ defaultCookieAttributes?: better_auth.CookieOptions | undefined;
52
+ cookiePrefix?: string | undefined;
53
+ database?: {
54
+ defaultFindManyLimit?: number;
55
+ useNumberId?: boolean;
56
+ generateId?: better_auth.GenerateIdFn | false | "serial" | "uuid";
57
+ } | undefined;
36
58
  };
37
59
  trustedOrigins: string[];
38
60
  plugins: [{
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { createAuth0Provider, createManagementHono, env, initializeDefaultUser, dbClient_default } from './chunk-3C624FLK.js';
2
- export { createAuth0Provider, createManagementApp, createManagementHono, createOIDCProvider, initializeDefaultUser } from './chunk-3C624FLK.js';
1
+ import { createAuth0Provider, createManagementHono, env, initializeDefaultUser, dbClient_default } from './chunk-NMRIX6IG.js';
2
+ export { createAuth0Provider, createManagementApp, createManagementHono, createOIDCProvider, initializeDefaultUser } from './chunk-NMRIX6IG.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.35.12",
3
+ "version": "0.36.1",
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",
@@ -31,7 +31,7 @@
31
31
  "openid-client": "^6.6.4",
32
32
  "pino": "^9.7.0",
33
33
  "zod": "^4.1.11",
34
- "@inkeep/agents-core": "^0.35.12"
34
+ "@inkeep/agents-core": "^0.36.1"
35
35
  },
36
36
  "optionalDependencies": {
37
37
  "keytar": "^7.9.0"