@inkeep/agents-manage-api 0.8.4 → 0.8.6

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
@@ -22,7 +22,7 @@ var envSchema = zod.z.object({
22
22
  NODE_ENV: zod.z.enum(["development", "production", "test"]).optional(),
23
23
  ENVIRONMENT: zod.z.enum(["development", "production", "pentest", "test"]).optional(),
24
24
  AGENTS_MANAGE_API_URL: zod.z.string().optional().default("http://localhost:3002"),
25
- DB_FILE_NAME: zod.z.string(),
25
+ DB_FILE_NAME: zod.z.string().optional(),
26
26
  TURSO_DATABASE_URL: zod.z.string().optional(),
27
27
  TURSO_AUTH_TOKEN: zod.z.string().optional(),
28
28
  LOG_LEVEL: zod.z.enum(["trace", "debug", "info", "warn", "error"]).optional().default("debug"),
@@ -112,6 +112,11 @@ var getDbConfig = () => {
112
112
  authToken: env.TURSO_AUTH_TOKEN
113
113
  };
114
114
  }
115
+ if (!env.DB_FILE_NAME) {
116
+ throw new Error(
117
+ "Database configuration error: DB_FILE_NAME must be set if Turso is not configured."
118
+ );
119
+ }
115
120
  return {
116
121
  url: env.DB_FILE_NAME
117
122
  };
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@ var envSchema = z.object({
18
18
  NODE_ENV: z.enum(["development", "production", "test"]).optional(),
19
19
  ENVIRONMENT: z.enum(["development", "production", "pentest", "test"]).optional(),
20
20
  AGENTS_MANAGE_API_URL: z.string().optional().default("http://localhost:3002"),
21
- DB_FILE_NAME: z.string(),
21
+ DB_FILE_NAME: z.string().optional(),
22
22
  TURSO_DATABASE_URL: z.string().optional(),
23
23
  TURSO_AUTH_TOKEN: z.string().optional(),
24
24
  LOG_LEVEL: z.enum(["trace", "debug", "info", "warn", "error"]).optional().default("debug"),
@@ -108,6 +108,11 @@ var getDbConfig = () => {
108
108
  authToken: env.TURSO_AUTH_TOKEN
109
109
  };
110
110
  }
111
+ if (!env.DB_FILE_NAME) {
112
+ throw new Error(
113
+ "Database configuration error: DB_FILE_NAME must be set if Turso is not configured."
114
+ );
115
+ }
111
116
  return {
112
117
  url: env.DB_FILE_NAME
113
118
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-manage-api",
3
- "version": "0.8.4",
3
+ "version": "0.8.6",
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",
@@ -24,7 +24,7 @@
24
24
  "openid-client": "^6.6.4",
25
25
  "pino": "^9.7.0",
26
26
  "zod": "^4.1.5",
27
- "@inkeep/agents-core": "^0.8.4"
27
+ "@inkeep/agents-core": "^0.8.6"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@hono/vite-dev-server": "^0.20.1",