@inkeep/agents-manage-api 0.7.2 → 0.8.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.
package/dist/index.cjs CHANGED
@@ -23,6 +23,8 @@ var envSchema = zod.z.object({
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
25
  DB_FILE_NAME: zod.z.string(),
26
+ TURSO_DATABASE_URL: zod.z.string().optional(),
27
+ TURSO_AUTH_TOKEN: zod.z.string().optional(),
26
28
  LOG_LEVEL: zod.z.enum(["trace", "debug", "info", "warn", "error"]).optional().default("debug"),
27
29
  NANGO_SECRET_KEY: zod.z.string().optional(),
28
30
  INKEEP_AGENTS_MANAGE_API_BYPASS_SECRET: zod.z.string().optional()
@@ -100,13 +102,21 @@ function setupOpenAPIRoutes(app20) {
100
102
  })
101
103
  );
102
104
  }
103
- var getDbUrl = () => {
105
+ var getDbConfig = () => {
104
106
  if (env.ENVIRONMENT === "test") {
105
- return ":memory:";
107
+ return { url: ":memory:" };
106
108
  }
107
- return env.DB_FILE_NAME;
109
+ if (env.TURSO_DATABASE_URL && env.TURSO_AUTH_TOKEN) {
110
+ return {
111
+ url: env.TURSO_DATABASE_URL,
112
+ authToken: env.TURSO_AUTH_TOKEN
113
+ };
114
+ }
115
+ return {
116
+ url: env.DB_FILE_NAME
117
+ };
108
118
  };
109
- var dbClient = agentsCore.createDatabaseClient({ url: getDbUrl() });
119
+ var dbClient = agentsCore.createDatabaseClient(getDbConfig());
110
120
  var dbClient_default = dbClient;
111
121
 
112
122
  // src/routes/agentArtifactComponents.ts
package/dist/index.js CHANGED
@@ -19,6 +19,8 @@ var envSchema = z.object({
19
19
  ENVIRONMENT: z.enum(["development", "production", "pentest", "test"]).optional(),
20
20
  AGENTS_MANAGE_API_URL: z.string().optional().default("http://localhost:3002"),
21
21
  DB_FILE_NAME: z.string(),
22
+ TURSO_DATABASE_URL: z.string().optional(),
23
+ TURSO_AUTH_TOKEN: z.string().optional(),
22
24
  LOG_LEVEL: z.enum(["trace", "debug", "info", "warn", "error"]).optional().default("debug"),
23
25
  NANGO_SECRET_KEY: z.string().optional(),
24
26
  INKEEP_AGENTS_MANAGE_API_BYPASS_SECRET: z.string().optional()
@@ -96,13 +98,21 @@ function setupOpenAPIRoutes(app20) {
96
98
  })
97
99
  );
98
100
  }
99
- var getDbUrl = () => {
101
+ var getDbConfig = () => {
100
102
  if (env.ENVIRONMENT === "test") {
101
- return ":memory:";
103
+ return { url: ":memory:" };
102
104
  }
103
- return env.DB_FILE_NAME;
105
+ if (env.TURSO_DATABASE_URL && env.TURSO_AUTH_TOKEN) {
106
+ return {
107
+ url: env.TURSO_DATABASE_URL,
108
+ authToken: env.TURSO_AUTH_TOKEN
109
+ };
110
+ }
111
+ return {
112
+ url: env.DB_FILE_NAME
113
+ };
104
114
  };
105
- var dbClient = createDatabaseClient({ url: getDbUrl() });
115
+ var dbClient = createDatabaseClient(getDbConfig());
106
116
  var dbClient_default = dbClient;
107
117
 
108
118
  // src/routes/agentArtifactComponents.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-manage-api",
3
- "version": "0.7.2",
3
+ "version": "0.8.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",
@@ -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.7.2"
27
+ "@inkeep/agents-core": "^0.8.1"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@hono/vite-dev-server": "^0.20.1",