@inkeep/agents-core 0.37.1 → 0.38.0
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/auth/auth-schema.d.ts +47 -1
- package/dist/auth/auth-schema.js +1 -1
- package/dist/auth/auth-validation-schemas.d.ts +35 -1
- package/dist/auth/auth-validation-schemas.js +2 -2
- package/dist/auth/auth.d.ts +24 -23
- package/dist/auth/auth.js +11 -4
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/auth/permissions.js +1 -1
- package/dist/chunk-3OPS2LN5.js +4 -0
- package/dist/{chunk-7CLFCY6J.js → chunk-7IQFIW44.js} +2 -0
- package/dist/{chunk-ZEZCCHV7.js → chunk-AJCP2QYU.js} +2 -2
- package/dist/{chunk-7GZHUB4J.js → chunk-AUGHKZEB.js} +42 -2
- package/dist/{chunk-W3QDM7WH.js → chunk-CWAFZVRI.js} +2 -2
- package/dist/{chunk-I6IF7ZTL.js → chunk-DW4DNYUS.js} +2 -2
- package/dist/chunk-GENLXHZ4.js +159 -0
- package/dist/{chunk-VMSYBWFH.js → chunk-JNBVHWXX.js} +7 -4
- package/dist/{chunk-PVRIMF6N.js → chunk-LH6OJIIM.js} +27 -12
- package/dist/{chunk-ROXPFQAM.js → chunk-MGHGIB7U.js} +25 -31
- package/dist/{chunk-FOK3JSQN.js → chunk-S4XQEAAF.js} +7 -4
- package/dist/{chunk-K6GMXJPW.js → chunk-UK63CULA.js} +7 -14
- package/dist/{chunk-LL6F3EAR.js → chunk-ZIXAWYZI.js} +1 -1
- package/dist/{client-B_3j-V4-.d.ts → client-DG_xZdlN.d.ts} +1 -1
- package/dist/client-exports.d.ts +14 -8
- package/dist/client-exports.js +10 -4
- package/dist/constants/models.d.ts +2 -0
- package/dist/constants/models.js +1 -1
- package/dist/constants/schema-validation/index.js +1 -1
- package/dist/credential-stores/index.d.ts +6 -6
- package/dist/credential-stores/index.js +1 -1
- package/dist/db/schema.d.ts +3 -4
- package/dist/db/schema.js +2 -2
- package/dist/db/test-client.d.ts +4 -5
- package/dist/db/test-client.js +1 -1
- package/dist/index.d.ts +379 -362
- package/dist/index.js +186 -125
- package/dist/{schema-DKbG39on.d.ts → schema-DA6PfmoP.d.ts} +83 -7
- package/dist/{server-BXoUiBMg.d.ts → server-BviIeoo5.d.ts} +1 -1
- package/dist/types/index.d.ts +3 -4
- package/dist/{utility-Lo5NoRHK.d.ts → utility-dsfXkYTu.d.ts} +1018 -366
- package/dist/utils/schema-conversion.d.ts +12 -2
- package/dist/utils/schema-conversion.js +1 -1
- package/dist/validation/index.d.ts +131 -132
- package/dist/validation/index.js +2 -2
- package/drizzle/0002_puzzling_goblin_queen.sql +8 -0
- package/drizzle/0003_sweet_human_robot.sql +8 -0
- package/drizzle/0004_cuddly_shooting_star.sql +6 -0
- package/drizzle/0005_reflective_starfox.sql +9 -0
- package/drizzle/meta/0003_snapshot.json +3643 -0
- package/drizzle/meta/0005_snapshot.json +3693 -0
- package/drizzle/meta/_journal.json +28 -0
- package/package.json +9 -11
- package/dist/chunk-NFTJ5JBY.js +0 -82
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createAccessControl } from 'better-auth/plugins/access';
|
|
2
|
-
import { defaultStatements } from 'better-auth/plugins/organization/access';
|
|
2
|
+
import { defaultStatements, memberAc, adminAc, ownerAc } from 'better-auth/plugins/organization/access';
|
|
3
3
|
|
|
4
4
|
// src/auth/permissions.ts
|
|
5
5
|
var statement = {
|
|
@@ -28,7 +28,8 @@ var memberRole = ac.newRole({
|
|
|
28
28
|
artifact_component: ["read"],
|
|
29
29
|
external_agent: ["read"],
|
|
30
30
|
function: ["read"],
|
|
31
|
-
context_config: ["read"]
|
|
31
|
+
context_config: ["read"],
|
|
32
|
+
...memberAc.statements
|
|
32
33
|
});
|
|
33
34
|
var adminRole = ac.newRole({
|
|
34
35
|
project: ["create", "read", "update"],
|
|
@@ -41,7 +42,8 @@ var adminRole = ac.newRole({
|
|
|
41
42
|
artifact_component: ["create", "read", "update"],
|
|
42
43
|
external_agent: ["create", "read", "update"],
|
|
43
44
|
function: ["create", "read", "update"],
|
|
44
|
-
context_config: ["create", "read", "update"]
|
|
45
|
+
context_config: ["create", "read", "update"],
|
|
46
|
+
...adminAc.statements
|
|
45
47
|
});
|
|
46
48
|
var ownerRole = ac.newRole({
|
|
47
49
|
project: ["create", "read", "update", "delete"],
|
|
@@ -54,7 +56,8 @@ var ownerRole = ac.newRole({
|
|
|
54
56
|
artifact_component: ["create", "read", "update", "delete"],
|
|
55
57
|
external_agent: ["create", "read", "update", "delete"],
|
|
56
58
|
function: ["create", "read", "update", "delete"],
|
|
57
|
-
context_config: ["create", "read", "update", "delete"]
|
|
59
|
+
context_config: ["create", "read", "update", "delete"],
|
|
60
|
+
...ownerAc.statements
|
|
58
61
|
});
|
|
59
62
|
|
|
60
63
|
export { ac, adminRole, memberRole, ownerRole };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { verification, user, ssoProvider, session, organization, member, invitation, account } from './chunk-
|
|
1
|
+
import { verification, user, ssoProvider, session, organization, member, invitation, account } from './chunk-GENLXHZ4.js';
|
|
2
2
|
import { __export } from './chunk-SIAA4J6H.js';
|
|
3
3
|
import { relations } from 'drizzle-orm';
|
|
4
4
|
import { pgTable, varchar, text, timestamp, jsonb, primaryKey, foreignKey, integer, index, unique } from 'drizzle-orm/pg-core';
|
|
@@ -83,7 +83,7 @@ var subAgentScoped = {
|
|
|
83
83
|
};
|
|
84
84
|
var uiProperties = {
|
|
85
85
|
name: varchar("name", { length: 256 }).notNull(),
|
|
86
|
-
description: text("description")
|
|
86
|
+
description: text("description")
|
|
87
87
|
};
|
|
88
88
|
var timestamps = {
|
|
89
89
|
createdAt: timestamp("created_at", { mode: "string" }).notNull().defaultNow(),
|
|
@@ -180,7 +180,7 @@ var subAgents = pgTable(
|
|
|
180
180
|
{
|
|
181
181
|
...agentScoped,
|
|
182
182
|
...uiProperties,
|
|
183
|
-
prompt: text("prompt")
|
|
183
|
+
prompt: text("prompt"),
|
|
184
184
|
conversationHistoryConfig: jsonb("conversation_history_config").$type().default({
|
|
185
185
|
mode: "full",
|
|
186
186
|
limit: 50,
|
|
@@ -236,14 +236,10 @@ var externalAgents = pgTable(
|
|
|
236
236
|
name: "external_agents_project_fk"
|
|
237
237
|
}).onDelete("cascade"),
|
|
238
238
|
foreignKey({
|
|
239
|
-
columns: [table.
|
|
240
|
-
foreignColumns: [
|
|
241
|
-
credentialReferences.tenantId,
|
|
242
|
-
credentialReferences.projectId,
|
|
243
|
-
credentialReferences.id
|
|
244
|
-
],
|
|
239
|
+
columns: [table.credentialReferenceId],
|
|
240
|
+
foreignColumns: [credentialReferences.id],
|
|
245
241
|
name: "external_agents_credential_reference_fk"
|
|
246
|
-
}).onDelete("
|
|
242
|
+
}).onDelete("set null")
|
|
247
243
|
]
|
|
248
244
|
);
|
|
249
245
|
var tasks = pgTable(
|
|
@@ -373,6 +369,8 @@ var tools = pgTable(
|
|
|
373
369
|
description: text("description"),
|
|
374
370
|
config: jsonb("config").$type().notNull(),
|
|
375
371
|
credentialReferenceId: varchar("credential_reference_id", { length: 256 }),
|
|
372
|
+
credentialScope: varchar("credential_scope", { length: 50 }).notNull().default("project"),
|
|
373
|
+
// 'project' | 'user'
|
|
376
374
|
headers: jsonb("headers").$type(),
|
|
377
375
|
imageUrl: text("image_url"),
|
|
378
376
|
capabilities: jsonb("capabilities").$type(),
|
|
@@ -385,7 +383,12 @@ var tools = pgTable(
|
|
|
385
383
|
columns: [table.tenantId, table.projectId],
|
|
386
384
|
foreignColumns: [projects.tenantId, projects.id],
|
|
387
385
|
name: "tools_project_fk"
|
|
388
|
-
}).onDelete("cascade")
|
|
386
|
+
}).onDelete("cascade"),
|
|
387
|
+
foreignKey({
|
|
388
|
+
columns: [table.credentialReferenceId],
|
|
389
|
+
foreignColumns: [credentialReferences.id],
|
|
390
|
+
name: "tools_credential_reference_fk"
|
|
391
|
+
}).onDelete("set null")
|
|
389
392
|
]
|
|
390
393
|
);
|
|
391
394
|
var functionTools = pgTable(
|
|
@@ -651,6 +654,13 @@ var credentialReferences = pgTable(
|
|
|
651
654
|
type: varchar("type", { length: 256 }).notNull(),
|
|
652
655
|
credentialStoreId: varchar("credential_store_id", { length: 256 }).notNull(),
|
|
653
656
|
retrievalParams: jsonb("retrieval_params").$type(),
|
|
657
|
+
// For user-scoped credentials
|
|
658
|
+
toolId: varchar("tool_id", { length: 256 }),
|
|
659
|
+
// Links to the tool this credential is for
|
|
660
|
+
userId: varchar("user_id", { length: 256 }),
|
|
661
|
+
// User who owns this credential (null = project-scoped)
|
|
662
|
+
createdBy: varchar("created_by", { length: 256 }),
|
|
663
|
+
// User who created this credential
|
|
654
664
|
...timestamps
|
|
655
665
|
},
|
|
656
666
|
(t) => [
|
|
@@ -659,7 +669,12 @@ var credentialReferences = pgTable(
|
|
|
659
669
|
columns: [t.tenantId, t.projectId],
|
|
660
670
|
foreignColumns: [projects.tenantId, projects.id],
|
|
661
671
|
name: "credential_references_project_fk"
|
|
662
|
-
}).onDelete("cascade")
|
|
672
|
+
}).onDelete("cascade"),
|
|
673
|
+
// Unique constraint on id alone to support simple FK references
|
|
674
|
+
// (id is globally unique via nanoid generation)
|
|
675
|
+
unique("credential_references_id_unique").on(t.id),
|
|
676
|
+
// One credential per user per tool (for user-scoped credentials)
|
|
677
|
+
unique("credential_references_tool_user_unique").on(t.toolId, t.userId)
|
|
663
678
|
]
|
|
664
679
|
);
|
|
665
680
|
var tasksRelations = relations(tasks, ({ one, many }) => ({
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { loadEnvironmentFiles, env } from './chunk-
|
|
1
|
+
import { loadEnvironmentFiles, env } from './chunk-ZIXAWYZI.js';
|
|
2
2
|
import { getLogger } from './chunk-DN4B564Y.js';
|
|
3
3
|
import { CredentialStoreType, MCPTransportType } from './chunk-YFHT5M2R.js';
|
|
4
|
-
import { z } from 'zod';
|
|
4
|
+
import { z } from '@hono/zod-openapi';
|
|
5
5
|
import { customAlphabet } from 'nanoid';
|
|
6
6
|
import { scrypt, randomBytes, timingSafeEqual } from 'crypto';
|
|
7
7
|
import { promisify } from 'util';
|
|
8
|
-
import { z as z$1 } from '@hono/zod-openapi';
|
|
9
8
|
import { HTTPException } from 'hono/http-exception';
|
|
10
9
|
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
|
|
11
10
|
import { SSEClientTransport } from '@modelcontextprotocol/sdk/client/sse.js';
|
|
@@ -195,7 +194,7 @@ function toISODateString(dateValue) {
|
|
|
195
194
|
}
|
|
196
195
|
return dateValue.toISOString();
|
|
197
196
|
}
|
|
198
|
-
var ErrorCode = z
|
|
197
|
+
var ErrorCode = z.enum([
|
|
199
198
|
"bad_request",
|
|
200
199
|
"unauthorized",
|
|
201
200
|
"forbidden",
|
|
@@ -214,28 +213,28 @@ var errorCodeToHttpStatus = {
|
|
|
214
213
|
internal_server_error: 500
|
|
215
214
|
};
|
|
216
215
|
var ERROR_DOCS_BASE_URL = "https://docs.inkeep.com/agents-api/errors";
|
|
217
|
-
var problemDetailsSchema = z
|
|
216
|
+
var problemDetailsSchema = z.object({
|
|
218
217
|
// type: z.string().url().openapi({
|
|
219
218
|
// description: "A URI reference that identifies the problem type.",
|
|
220
219
|
// example: `${ERROR_DOCS_BASE_URL}#not-found`,
|
|
221
220
|
// }),
|
|
222
|
-
title: z
|
|
221
|
+
title: z.string().openapi({
|
|
223
222
|
description: "A short, human-readable summary of the problem type.",
|
|
224
223
|
example: "Resource Not Found"
|
|
225
224
|
}),
|
|
226
|
-
status: z
|
|
225
|
+
status: z.number().int().openapi({
|
|
227
226
|
description: "The HTTP status code.",
|
|
228
227
|
example: 404
|
|
229
228
|
}),
|
|
230
|
-
detail: z
|
|
229
|
+
detail: z.string().openapi({
|
|
231
230
|
description: "A human-readable explanation specific to this occurrence of the problem.",
|
|
232
231
|
example: "The requested resource was not found."
|
|
233
232
|
}),
|
|
234
|
-
instance: z
|
|
233
|
+
instance: z.string().optional().openapi({
|
|
235
234
|
description: "A URI reference that identifies the specific occurrence of the problem.",
|
|
236
235
|
example: "/conversations/123"
|
|
237
236
|
}),
|
|
238
|
-
requestId: z
|
|
237
|
+
requestId: z.string().optional().openapi({
|
|
239
238
|
description: "A unique identifier for the request, useful for troubleshooting.",
|
|
240
239
|
example: "req_1234567890"
|
|
241
240
|
}),
|
|
@@ -244,13 +243,13 @@ var problemDetailsSchema = z$1.object({
|
|
|
244
243
|
example: "not_found"
|
|
245
244
|
})
|
|
246
245
|
}).openapi("ProblemDetails");
|
|
247
|
-
var errorResponseSchema = z
|
|
248
|
-
error: z
|
|
246
|
+
var errorResponseSchema = z.object({
|
|
247
|
+
error: z.object({
|
|
249
248
|
code: ErrorCode.openapi({
|
|
250
249
|
description: "A short code indicating the error code returned.",
|
|
251
250
|
example: "not_found"
|
|
252
251
|
}),
|
|
253
|
-
message: z
|
|
252
|
+
message: z.string().openapi({
|
|
254
253
|
description: "A human readable error message.",
|
|
255
254
|
example: "The requested resource was not found."
|
|
256
255
|
})
|
|
@@ -260,7 +259,8 @@ function createApiError({
|
|
|
260
259
|
code,
|
|
261
260
|
message,
|
|
262
261
|
instance,
|
|
263
|
-
requestId
|
|
262
|
+
requestId,
|
|
263
|
+
extensions
|
|
264
264
|
}) {
|
|
265
265
|
const status = errorCodeToHttpStatus[code];
|
|
266
266
|
const title = getTitleFromCode(code);
|
|
@@ -275,7 +275,8 @@ function createApiError({
|
|
|
275
275
|
const errorMessage = message.length > 100 ? `${message.substring(0, 97)}...` : message;
|
|
276
276
|
const responseBody = {
|
|
277
277
|
...problemDetails,
|
|
278
|
-
error: { code, message: errorMessage }
|
|
278
|
+
error: { code, message: errorMessage },
|
|
279
|
+
...extensions && extensions
|
|
279
280
|
};
|
|
280
281
|
const res = new Response(JSON.stringify(responseBody), {
|
|
281
282
|
status,
|
|
@@ -388,15 +389,15 @@ var errorSchemaFactory = (code, description) => ({
|
|
|
388
389
|
content: {
|
|
389
390
|
"application/problem+json": {
|
|
390
391
|
schema: problemDetailsSchema.extend({
|
|
391
|
-
code: z
|
|
392
|
+
code: z.literal(code).openapi({
|
|
392
393
|
description: "A short code indicating the error code returned.",
|
|
393
394
|
example: code
|
|
394
395
|
}),
|
|
395
|
-
detail: z
|
|
396
|
+
detail: z.string().openapi({
|
|
396
397
|
description: "A detailed explanation specific to this occurrence of the problem, providing context and specifics about what went wrong.",
|
|
397
398
|
example: description
|
|
398
399
|
}),
|
|
399
|
-
title: z
|
|
400
|
+
title: z.string().openapi({
|
|
400
401
|
description: "A short, human-readable summary of the problem type.",
|
|
401
402
|
example: getTitleFromCode(code)
|
|
402
403
|
}),
|
|
@@ -404,16 +405,16 @@ var errorSchemaFactory = (code, description) => ({
|
|
|
404
405
|
// description: "A URI reference that identifies the problem type.",
|
|
405
406
|
// example: `${ERROR_DOCS_BASE_URL}#${code}`,
|
|
406
407
|
// }),
|
|
407
|
-
status: z
|
|
408
|
+
status: z.number().int().openapi({
|
|
408
409
|
description: "The HTTP status code.",
|
|
409
410
|
example: errorCodeToHttpStatus[code]
|
|
410
411
|
}),
|
|
411
|
-
error: z
|
|
412
|
-
code: z
|
|
412
|
+
error: z.object({
|
|
413
|
+
code: z.literal(code).openapi({
|
|
413
414
|
description: "A short code indicating the error code returned.",
|
|
414
415
|
example: code
|
|
415
416
|
}),
|
|
416
|
-
message: z
|
|
417
|
+
message: z.string().openapi({
|
|
417
418
|
description: "A concise error message suitable for display to end users. May be truncated if the full detail is long.",
|
|
418
419
|
example: description.length > 100 ? `${description.substring(0, 97)}...` : description
|
|
419
420
|
})
|
|
@@ -684,6 +685,7 @@ var nimDefault = createOpenAICompatible({
|
|
|
684
685
|
var ModelFactory = class _ModelFactory {
|
|
685
686
|
/**
|
|
686
687
|
* Create a provider instance with custom configuration
|
|
688
|
+
* Returns a provider with at least languageModel method
|
|
687
689
|
*/
|
|
688
690
|
static createProvider(provider, config) {
|
|
689
691
|
switch (provider) {
|
|
@@ -694,15 +696,7 @@ var ModelFactory = class _ModelFactory {
|
|
|
694
696
|
case "google":
|
|
695
697
|
return createGoogleGenerativeAI(config);
|
|
696
698
|
case "openrouter":
|
|
697
|
-
return
|
|
698
|
-
...createOpenRouter(config),
|
|
699
|
-
textEmbeddingModel: () => {
|
|
700
|
-
throw new Error("OpenRouter does not support text embeddings");
|
|
701
|
-
},
|
|
702
|
-
imageModel: () => {
|
|
703
|
-
throw new Error("OpenRouter does not support image generation");
|
|
704
|
-
}
|
|
705
|
-
};
|
|
699
|
+
return createOpenRouter(config);
|
|
706
700
|
case "gateway":
|
|
707
701
|
return createGateway(config);
|
|
708
702
|
case "nim": {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { DEFAULT_NANGO_STORE_ID } from './chunk-3OPS2LN5.js';
|
|
1
2
|
import { getLogger } from './chunk-DN4B564Y.js';
|
|
2
3
|
import { CredentialStoreType } from './chunk-YFHT5M2R.js';
|
|
4
|
+
import { z } from '@hono/zod-openapi';
|
|
3
5
|
import { Nango } from '@nangohq/node';
|
|
4
|
-
import { z } from 'zod';
|
|
5
6
|
|
|
6
7
|
// src/credential-stores/CredentialStoreRegistry.ts
|
|
7
8
|
var CredentialStoreRegistry = class {
|
|
@@ -93,7 +94,10 @@ var KeyChainStore = class {
|
|
|
93
94
|
return;
|
|
94
95
|
}
|
|
95
96
|
try {
|
|
96
|
-
this.keytar = (await import(
|
|
97
|
+
this.keytar = (await import(
|
|
98
|
+
/* webpackIgnore: true */
|
|
99
|
+
'keytar'
|
|
100
|
+
)).default;
|
|
97
101
|
this.keytarAvailable = true;
|
|
98
102
|
this.logger.info(
|
|
99
103
|
{
|
|
@@ -146,7 +150,6 @@ var KeyChainStore = class {
|
|
|
146
150
|
}
|
|
147
151
|
/**
|
|
148
152
|
* Set a credential in the keychain
|
|
149
|
-
* @param metadata - Optional metadata (ignored by keychain store)
|
|
150
153
|
*/
|
|
151
154
|
async set(key, value, _metadata) {
|
|
152
155
|
await this.initializationPromise;
|
|
@@ -743,7 +746,7 @@ function createDefaultCredentialStores() {
|
|
|
743
746
|
stores.push(new InMemoryCredentialStore("memory-default"));
|
|
744
747
|
if (process.env.NANGO_SECRET_KEY) {
|
|
745
748
|
stores.push(
|
|
746
|
-
createNangoCredentialStore(
|
|
749
|
+
createNangoCredentialStore(DEFAULT_NANGO_STORE_ID, {
|
|
747
750
|
apiUrl: process.env.NANGO_SERVER_URL || "https://api.nango.dev",
|
|
748
751
|
secretKey: process.env.NANGO_SECRET_KEY
|
|
749
752
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { subAgents, subAgentRelations, agents, tasks, taskRelations, conversations, messages, contextCache, dataComponents, subAgentDataComponents, artifactComponents, subAgentArtifactComponents, externalAgents, apiKeys, credentialReferences, tools, functionTools, functions, contextConfigs, subAgentToolRelations, subAgentExternalAgentRelations, subAgentTeamAgentRelations, ledgerArtifacts, projects } from './chunk-
|
|
1
|
+
import { subAgents, subAgentRelations, agents, tasks, taskRelations, conversations, messages, contextCache, dataComponents, subAgentDataComponents, artifactComponents, subAgentArtifactComponents, externalAgents, apiKeys, credentialReferences, tools, functionTools, functions, contextConfigs, subAgentToolRelations, subAgentExternalAgentRelations, subAgentTeamAgentRelations, ledgerArtifacts, projects } from './chunk-LH6OJIIM.js';
|
|
2
2
|
import { schemaValidationDefaults } from './chunk-Z64UK4CA.js';
|
|
3
3
|
import { VALID_RELATION_TYPES, MCPTransportType, TOOL_STATUS_VALUES, CredentialStoreType, MCPServerType } from './chunk-YFHT5M2R.js';
|
|
4
4
|
import { z } from '@hono/zod-openapi';
|
|
@@ -508,17 +508,7 @@ var ApiKeyApiInsertSchema = ApiKeyInsertSchema.omit({
|
|
|
508
508
|
// Not set on creation
|
|
509
509
|
}).openapi("ApiKeyCreate");
|
|
510
510
|
var ApiKeyApiUpdateSchema = ApiKeyUpdateSchema.openapi("ApiKeyUpdate");
|
|
511
|
-
var CredentialReferenceSelectSchema =
|
|
512
|
-
id: z.string(),
|
|
513
|
-
tenantId: z.string(),
|
|
514
|
-
projectId: z.string(),
|
|
515
|
-
name: z.string(),
|
|
516
|
-
type: z.string(),
|
|
517
|
-
credentialStoreId: z.string(),
|
|
518
|
-
retrievalParams: z.record(z.string(), z.unknown()).nullish(),
|
|
519
|
-
createdAt: z.string(),
|
|
520
|
-
updatedAt: z.string()
|
|
521
|
-
});
|
|
511
|
+
var CredentialReferenceSelectSchema = createSelectSchema(credentialReferences);
|
|
522
512
|
var CredentialReferenceInsertSchema = createInsertSchema(credentialReferences).extend({
|
|
523
513
|
id: resourceIdSchema,
|
|
524
514
|
type: z.string(),
|
|
@@ -565,7 +555,7 @@ var CreateCredentialInStoreResponseSchema = z.object({
|
|
|
565
555
|
var RelatedAgentInfoSchema = z.object({
|
|
566
556
|
id: z.string(),
|
|
567
557
|
name: z.string(),
|
|
568
|
-
description: z.string()
|
|
558
|
+
description: z.string().nullable()
|
|
569
559
|
}).openapi("RelatedAgentInfo");
|
|
570
560
|
var ComponentAssociationSchema = z.object({
|
|
571
561
|
subAgentId: z.string(),
|
|
@@ -588,6 +578,7 @@ var McpToolSchema = ToolInsertSchema.extend({
|
|
|
588
578
|
status: ToolStatusSchema.default("unknown"),
|
|
589
579
|
version: z.string().optional(),
|
|
590
580
|
expiresAt: z.string().optional(),
|
|
581
|
+
createdBy: z.string().optional(),
|
|
591
582
|
relationshipId: z.string().optional()
|
|
592
583
|
}).openapi("McpTool");
|
|
593
584
|
var MCPToolConfigSchema = McpToolSchema.omit({
|
|
@@ -636,6 +627,8 @@ var FetchConfigSchema = z.object({
|
|
|
636
627
|
body: z.record(z.string(), z.unknown()).optional(),
|
|
637
628
|
transform: z.string().optional(),
|
|
638
629
|
// JSONPath or JS transform function
|
|
630
|
+
requiredToFetch: z.array(z.string()).optional(),
|
|
631
|
+
// Context variables that are required to run the fetch request. If the given variables cannot be resolved, the fetch request will be skipped.
|
|
639
632
|
timeout: z.number().min(0).optional().default(CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT).optional()
|
|
640
633
|
}).openapi("FetchConfig");
|
|
641
634
|
var FetchDefinitionSchema = z.object({
|
|
@@ -793,7 +786,7 @@ var FullAgentAgentInsertSchema = SubAgentApiInsertSchema.extend({
|
|
|
793
786
|
dataComponents: z.array(z.string()).optional(),
|
|
794
787
|
artifactComponents: z.array(z.string()).optional(),
|
|
795
788
|
canTransferTo: z.array(z.string()).optional(),
|
|
796
|
-
prompt: z.string().trim().
|
|
789
|
+
prompt: z.string().trim().optional(),
|
|
797
790
|
canDelegateTo: z.array(
|
|
798
791
|
z.union([
|
|
799
792
|
z.string(),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
2
|
import os from 'os';
|
|
3
3
|
import path from 'path';
|
|
4
|
+
import { z } from '@hono/zod-openapi';
|
|
4
5
|
import dotenv from 'dotenv';
|
|
5
6
|
import { expand } from 'dotenv-expand';
|
|
6
7
|
import { findUpSync } from 'find-up';
|
|
7
|
-
import { z } from 'zod';
|
|
8
8
|
|
|
9
9
|
// src/env.ts
|
|
10
10
|
var loadEnvironmentFiles = () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NodePgDatabase } from 'drizzle-orm/node-postgres';
|
|
2
2
|
import { PgliteDatabase } from 'drizzle-orm/pglite';
|
|
3
|
-
import { s as schema } from './schema-
|
|
3
|
+
import { s as schema } from './schema-DA6PfmoP.js';
|
|
4
4
|
|
|
5
5
|
type DatabaseClient = NodePgDatabase<typeof schema> | PgliteDatabase<typeof schema>;
|
|
6
6
|
interface DatabaseConfig {
|
package/dist/client-exports.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired } from './auth-detection-7G0Dxt55.js';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
2
|
+
import { z } from '@hono/zod-openapi';
|
|
3
|
+
import { a as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, g as FullAgentAgentInsertSchema } from './utility-dsfXkYTu.js';
|
|
4
|
+
export { k as AgentStopWhen, h as AgentStopWhenSchema, f as CredentialStoreType, p as FunctionApiSelectSchema, q as FunctionApiUpdateSchema, o as MCPTransportType, n as ModelSettings, m as ModelSettingsSchema, j as StopWhen, S as StopWhenSchema, l as SubAgentStopWhen, i as SubAgentStopWhenSchema } from './utility-dsfXkYTu.js';
|
|
5
5
|
export { v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.js';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import 'drizzle-zod';
|
|
8
8
|
import 'drizzle-orm/pg-core';
|
|
9
|
-
|
|
9
|
+
|
|
10
|
+
declare const DEFAULT_NANGO_STORE_ID = "nango-default";
|
|
10
11
|
|
|
11
12
|
declare const TenantParamsSchema: z.ZodObject<{
|
|
12
13
|
tenantId: z.ZodString;
|
|
@@ -122,6 +123,11 @@ declare const CredentialReferenceApiInsertSchema: z.ZodObject<{
|
|
|
122
123
|
}>;
|
|
123
124
|
credentialStoreId: z.ZodString;
|
|
124
125
|
retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
126
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
127
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
128
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
129
|
+
toolId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
130
|
+
createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
125
131
|
}, z.core.$strip>;
|
|
126
132
|
declare const DataComponentApiInsertSchema: z.ZodObject<{
|
|
127
133
|
id: z.ZodString;
|
|
@@ -136,7 +142,7 @@ declare const DataComponentApiInsertSchema: z.ZodObject<{
|
|
|
136
142
|
declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
|
|
137
143
|
id: z.ZodString;
|
|
138
144
|
name: z.ZodString;
|
|
139
|
-
description: z.ZodString
|
|
145
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
140
146
|
props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
141
147
|
}, {
|
|
142
148
|
out: {};
|
|
@@ -172,7 +178,7 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
172
178
|
subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
173
179
|
id: z.ZodString;
|
|
174
180
|
name: z.ZodString;
|
|
175
|
-
description: z.ZodString
|
|
181
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
176
182
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
177
183
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
178
184
|
models: z.ZodOptional<z.ZodObject<{
|
|
@@ -212,7 +218,7 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
212
218
|
dataComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
213
219
|
artifactComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
214
220
|
canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
215
|
-
prompt: z.ZodString
|
|
221
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
216
222
|
canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
217
223
|
externalAgentId: z.ZodString;
|
|
218
224
|
subAgentExternalAgentRelationId: z.ZodOptional<z.ZodString>;
|
|
@@ -289,4 +295,4 @@ declare function generateIdFromName(name: string): string;
|
|
|
289
295
|
type ToolInsert = ToolApiInsert;
|
|
290
296
|
type AgentAgentInsert = AgentAgentApiInsert;
|
|
291
297
|
|
|
292
|
-
export { type AgentAgentApiInsert, AgentAgentApiInsertSchema, type AgentAgentInsert, type AgentApiInsert, AgentApiInsertSchema, type ApiKeyApiCreationResponse, ApiKeyApiCreationResponseSchema, type ApiKeyApiSelect, ApiKeyApiSelectSchema, type ApiKeyApiUpdateResponse, type ArtifactComponentApiInsert, ArtifactComponentApiInsertSchema, type ContextConfigApiInsert, ContextConfigApiInsertSchema, type CredentialReferenceApiInsert, CredentialReferenceApiInsertSchema, type DataComponentApiInsert, DataComponentApiInsertSchema, type ErrorResponse, ErrorResponseSchema, type ExternalAgentApiInsert, ExternalAgentApiInsertSchema, type ExternalAgentDefinition, type FullAgentDefinition, FullAgentDefinitionSchema, type FunctionApiInsert, FunctionApiInsertSchema, IdParamsSchema, type InternalAgentDefinition, ListResponseSchema, MAX_ID_LENGTH, MIN_ID_LENGTH, PaginationSchema, SingleResponseSchema, type TenantParams, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, type ToolApiInsert, ToolApiInsertSchema, type ToolInsert, URL_SAFE_ID_PATTERN, generateIdFromName, resourceIdSchema };
|
|
298
|
+
export { type AgentAgentApiInsert, AgentAgentApiInsertSchema, type AgentAgentInsert, type AgentApiInsert, AgentApiInsertSchema, type ApiKeyApiCreationResponse, ApiKeyApiCreationResponseSchema, type ApiKeyApiSelect, ApiKeyApiSelectSchema, type ApiKeyApiUpdateResponse, type ArtifactComponentApiInsert, ArtifactComponentApiInsertSchema, type ContextConfigApiInsert, ContextConfigApiInsertSchema, type CredentialReferenceApiInsert, CredentialReferenceApiInsertSchema, DEFAULT_NANGO_STORE_ID, type DataComponentApiInsert, DataComponentApiInsertSchema, type ErrorResponse, ErrorResponseSchema, type ExternalAgentApiInsert, ExternalAgentApiInsertSchema, type ExternalAgentDefinition, type FullAgentDefinition, FullAgentDefinitionSchema, type FunctionApiInsert, FunctionApiInsertSchema, IdParamsSchema, type InternalAgentDefinition, ListResponseSchema, MAX_ID_LENGTH, MIN_ID_LENGTH, PaginationSchema, SingleResponseSchema, type TenantParams, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, type ToolApiInsert, ToolApiInsertSchema, type ToolInsert, URL_SAFE_ID_PATTERN, generateIdFromName, resourceIdSchema };
|
package/dist/client-exports.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, DATA_SOURCES, DATA_TYPES, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, FIELD_TYPES, OPERATORS, ORDER_DIRECTIONS, PANEL_TYPES, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, SPAN_KEYS, SPAN_NAMES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE } from './chunk-MQMMFK2K.js';
|
|
2
|
-
import { ModelSettingsSchema, FullAgentAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-
|
|
3
|
-
export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-
|
|
2
|
+
import { ModelSettingsSchema, FullAgentAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-UK63CULA.js';
|
|
3
|
+
export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-UK63CULA.js';
|
|
4
4
|
import { schemaValidationDefaults } from './chunk-Z64UK4CA.js';
|
|
5
5
|
export { detectAuthenticationRequired } from './chunk-4JZT4QEE.js';
|
|
6
|
+
export { DEFAULT_NANGO_STORE_ID } from './chunk-3OPS2LN5.js';
|
|
6
7
|
import { CredentialStoreType } from './chunk-YFHT5M2R.js';
|
|
7
8
|
export { CredentialStoreType, MCPTransportType } from './chunk-YFHT5M2R.js';
|
|
8
|
-
import { z } from 'zod';
|
|
9
|
+
import { z } from '@hono/zod-openapi';
|
|
9
10
|
|
|
10
11
|
var {
|
|
11
12
|
AGENT_EXECUTION_TRANSFER_COUNT_MAX,
|
|
@@ -93,7 +94,12 @@ var CredentialReferenceApiInsertSchema = z.object({
|
|
|
93
94
|
name: z.string(),
|
|
94
95
|
type: z.enum(CredentialStoreType),
|
|
95
96
|
credentialStoreId: z.string(),
|
|
96
|
-
retrievalParams: z.record(z.string(), z.unknown()).nullish()
|
|
97
|
+
retrievalParams: z.record(z.string(), z.unknown()).nullish(),
|
|
98
|
+
createdAt: z.string().optional(),
|
|
99
|
+
updatedAt: z.string().optional(),
|
|
100
|
+
userId: z.string().nullish(),
|
|
101
|
+
toolId: z.string().nullish(),
|
|
102
|
+
createdBy: z.string().nullish()
|
|
97
103
|
});
|
|
98
104
|
var DataComponentApiInsertSchema = z.object({
|
|
99
105
|
id: z.string(),
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* Model name constants used throughout the Inkeep Agents SDK
|
|
3
3
|
*/
|
|
4
4
|
declare const ANTHROPIC_MODELS: {
|
|
5
|
+
readonly CLAUDE_OPUS_4_5: "anthropic/claude-opus-4-5";
|
|
6
|
+
readonly CLAUDE_OPUS_4_5_20251101: "anthropic/claude-opus-4-5-20251101";
|
|
5
7
|
readonly CLAUDE_OPUS_4_1: "anthropic/claude-opus-4-1";
|
|
6
8
|
readonly CLAUDE_OPUS_4_1_20250805: "anthropic/claude-opus-4-1-20250805";
|
|
7
9
|
readonly CLAUDE_SONNET_4_5: "anthropic/claude-sonnet-4-5";
|
package/dist/constants/models.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS } from '../chunk-
|
|
1
|
+
export { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS } from '../chunk-7IQFIW44.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS } from '../../chunk-
|
|
1
|
+
export { AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS } from '../../chunk-AJCP2QYU.js';
|
|
2
2
|
export { schemaValidationDefaults } from '../../chunk-Z64UK4CA.js';
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { C as CredentialStore } from '../server-
|
|
1
|
+
import { C as CredentialStore } from '../server-BviIeoo5.js';
|
|
2
2
|
import 'hono';
|
|
3
|
-
import '../utility-
|
|
4
|
-
import 'zod';
|
|
3
|
+
import '../utility-dsfXkYTu.js';
|
|
4
|
+
import '@hono/zod-openapi';
|
|
5
5
|
import 'drizzle-zod';
|
|
6
6
|
import 'drizzle-orm/pg-core';
|
|
7
|
-
import '@hono/zod-openapi';
|
|
8
7
|
|
|
9
8
|
/**
|
|
10
9
|
* Registry for managing credential stores in the application context
|
|
@@ -94,9 +93,10 @@ declare class KeyChainStore implements CredentialStore {
|
|
|
94
93
|
get(key: string): Promise<string | null>;
|
|
95
94
|
/**
|
|
96
95
|
* Set a credential in the keychain
|
|
97
|
-
* @param metadata - Optional metadata (ignored by keychain store)
|
|
98
96
|
*/
|
|
99
|
-
set(key: string, value: string,
|
|
97
|
+
set(key: string, value: string,
|
|
98
|
+
/** Optional metadata (ignored by keychain store) */
|
|
99
|
+
_metadata?: Record<string, string>): Promise<void>;
|
|
100
100
|
/**
|
|
101
101
|
* Check if a credential exists in the keychain
|
|
102
102
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CredentialStoreRegistry, InMemoryCredentialStore, KeyChainStore, NangoCredentialStore, createDefaultCredentialStores, createKeyChainStore, createNangoCredentialStore } from '../chunk-
|
|
1
|
+
export { CredentialStoreRegistry, InMemoryCredentialStore, KeyChainStore, NangoCredentialStore, createDefaultCredentialStores, createKeyChainStore, createNangoCredentialStore } from '../chunk-S4XQEAAF.js';
|
package/dist/db/schema.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import 'drizzle-orm';
|
|
2
2
|
import 'drizzle-orm/pg-core';
|
|
3
|
-
import '../utility-
|
|
3
|
+
import '../utility-dsfXkYTu.js';
|
|
4
4
|
export { account, invitation, member, organization, session, ssoProvider, user, verification } from '../auth/auth-schema.js';
|
|
5
|
-
export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from '../schema-
|
|
6
|
-
import 'zod';
|
|
7
|
-
import 'drizzle-zod';
|
|
5
|
+
export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from '../schema-DA6PfmoP.js';
|
|
8
6
|
import '@hono/zod-openapi';
|
|
7
|
+
import 'drizzle-zod';
|
package/dist/db/schema.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { agentRelations, agentToolRelationsRelations, agents, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, ledgerArtifacts, ledgerArtifactsRelations, messages, messagesRelations, projects, projectsRelations, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentExternalAgentRelations, subAgentExternalAgentRelationsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentTeamAgentRelations, subAgentTeamAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from '../chunk-
|
|
2
|
-
export { account, invitation, member, organization, session, ssoProvider, user, verification } from '../chunk-
|
|
1
|
+
export { agentRelations, agentToolRelationsRelations, agents, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, ledgerArtifacts, ledgerArtifactsRelations, messages, messagesRelations, projects, projectsRelations, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentExternalAgentRelations, subAgentExternalAgentRelationsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentTeamAgentRelations, subAgentTeamAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from '../chunk-LH6OJIIM.js';
|
|
2
|
+
export { account, invitation, member, organization, session, ssoProvider, user, verification } from '../chunk-GENLXHZ4.js';
|
package/dist/db/test-client.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { D as DatabaseClient } from '../client-
|
|
1
|
+
import { D as DatabaseClient } from '../client-DG_xZdlN.js';
|
|
2
2
|
import 'drizzle-orm/node-postgres';
|
|
3
3
|
import 'drizzle-orm/pglite';
|
|
4
|
-
import '../schema-
|
|
4
|
+
import '../schema-DA6PfmoP.js';
|
|
5
5
|
import 'drizzle-orm';
|
|
6
6
|
import 'drizzle-orm/pg-core';
|
|
7
|
-
import '../utility-
|
|
8
|
-
import 'zod';
|
|
9
|
-
import 'drizzle-zod';
|
|
7
|
+
import '../utility-dsfXkYTu.js';
|
|
10
8
|
import '@hono/zod-openapi';
|
|
9
|
+
import 'drizzle-zod';
|
|
11
10
|
import '../auth/auth-schema.js';
|
|
12
11
|
|
|
13
12
|
/**
|
package/dist/db/test-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { cleanupTestDatabase, closeTestDatabase, createTestDatabaseClient, createTestOrganization, createTestProject } from '../chunk-
|
|
1
|
+
export { cleanupTestDatabase, closeTestDatabase, createTestDatabaseClient, createTestOrganization, createTestProject } from '../chunk-DW4DNYUS.js';
|