@inkeep/agents-core 0.0.0-dev-20251008200151 → 0.0.0-dev-20251009005405
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/{chunk-BNXFEUNP.js → chunk-HZZTBK7Y.js} +61 -7
- package/dist/{chunk-PR7XWHED.js → chunk-MLKHAZVU.js} +1 -1
- package/dist/{chunk-5ZHSPLXI.js → chunk-TN5JDW2L.js} +41 -3
- package/dist/client-exports.cjs +101 -7
- package/dist/client-exports.d.cts +8 -7
- package/dist/client-exports.d.ts +8 -7
- package/dist/client-exports.js +2 -2
- package/dist/db/schema.cjs +40 -2
- package/dist/db/schema.d.cts +2 -2
- package/dist/db/schema.d.ts +2 -2
- package/dist/db/schema.js +1 -1
- package/dist/index.cjs +2818 -2506
- package/dist/index.d.cts +326 -244
- package/dist/index.d.ts +326 -244
- package/dist/index.js +2458 -2254
- package/dist/{schema-Cn2ZkYOh.d.cts → schema-DKTW_XSC.d.cts} +249 -3
- package/dist/{schema-BYR5XAeI.d.ts → schema-DfH0zjbm.d.ts} +249 -3
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/{utility-6UlHR5nQ.d.cts → utility-BHDxGp6I.d.cts} +827 -237
- package/dist/{utility-6UlHR5nQ.d.ts → utility-BHDxGp6I.d.ts} +827 -237
- package/dist/validation/index.cjs +105 -7
- package/dist/validation/index.d.cts +2 -2
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/drizzle/0002_brown_marvel_apes.sql +16 -0
- package/drizzle/0003_gifted_doctor_spectrum.sql +343 -0
- package/drizzle/meta/{0001_snapshot.json → 0003_snapshot.json} +135 -11
- package/drizzle/meta/_journal.json +9 -2
- package/package.json +1 -1
- package/drizzle/meta/0000_snapshot.json +0 -2425
package/dist/db/schema.cjs
CHANGED
|
@@ -37,6 +37,8 @@ var projects = sqliteCore.sqliteTable(
|
|
|
37
37
|
models: sqliteCore.text("models", { mode: "json" }).$type(),
|
|
38
38
|
// Project-level stopWhen configuration that can be inherited by graphs and agents
|
|
39
39
|
stopWhen: sqliteCore.text("stop_when", { mode: "json" }).$type(),
|
|
40
|
+
// Project-level sandbox configuration for function execution
|
|
41
|
+
sandboxConfig: sqliteCore.text("sandbox_config", { mode: "json" }).$type(),
|
|
40
42
|
...timestamps
|
|
41
43
|
},
|
|
42
44
|
(table) => [sqliteCore.primaryKey({ columns: [table.tenantId, table.id] })]
|
|
@@ -329,13 +331,16 @@ var tools = sqliteCore.sqliteTable(
|
|
|
329
331
|
{
|
|
330
332
|
...projectScoped,
|
|
331
333
|
name: sqliteCore.text("name").notNull(),
|
|
332
|
-
|
|
334
|
+
description: sqliteCore.text("description"),
|
|
335
|
+
// Tool configuration - supports both MCP and function tools
|
|
333
336
|
config: sqliteCore.blob("config", { mode: "json" }).$type().notNull(),
|
|
337
|
+
// For function tools, reference the global functions table
|
|
338
|
+
functionId: sqliteCore.text("function_id"),
|
|
334
339
|
credentialReferenceId: sqliteCore.text("credential_reference_id"),
|
|
335
340
|
headers: sqliteCore.blob("headers", { mode: "json" }).$type(),
|
|
336
341
|
// Image URL for custom tool icon (supports regular URLs and base64 encoded images)
|
|
337
342
|
imageUrl: sqliteCore.text("image_url"),
|
|
338
|
-
// Server capabilities and status
|
|
343
|
+
// Server capabilities and status (only for MCP tools)
|
|
339
344
|
capabilities: sqliteCore.blob("capabilities", { mode: "json" }).$type(),
|
|
340
345
|
lastError: sqliteCore.text("last_error"),
|
|
341
346
|
...timestamps
|
|
@@ -346,6 +351,30 @@ var tools = sqliteCore.sqliteTable(
|
|
|
346
351
|
columns: [table.tenantId, table.projectId],
|
|
347
352
|
foreignColumns: [projects.tenantId, projects.id],
|
|
348
353
|
name: "tools_project_fk"
|
|
354
|
+
}).onDelete("cascade"),
|
|
355
|
+
// Foreign key constraint to functions table (for function tools)
|
|
356
|
+
sqliteCore.foreignKey({
|
|
357
|
+
columns: [table.tenantId, table.projectId, table.functionId],
|
|
358
|
+
foreignColumns: [functions.tenantId, functions.projectId, functions.id],
|
|
359
|
+
name: "tools_function_fk"
|
|
360
|
+
}).onDelete("cascade")
|
|
361
|
+
]
|
|
362
|
+
);
|
|
363
|
+
var functions = sqliteCore.sqliteTable(
|
|
364
|
+
"functions",
|
|
365
|
+
{
|
|
366
|
+
...projectScoped,
|
|
367
|
+
inputSchema: sqliteCore.blob("input_schema", { mode: "json" }).$type(),
|
|
368
|
+
executeCode: sqliteCore.text("execute_code").notNull(),
|
|
369
|
+
dependencies: sqliteCore.blob("dependencies", { mode: "json" }).$type(),
|
|
370
|
+
...timestamps
|
|
371
|
+
},
|
|
372
|
+
(table) => [
|
|
373
|
+
sqliteCore.primaryKey({ columns: [table.tenantId, table.projectId, table.id] }),
|
|
374
|
+
sqliteCore.foreignKey({
|
|
375
|
+
columns: [table.tenantId, table.projectId],
|
|
376
|
+
foreignColumns: [projects.tenantId, projects.id],
|
|
377
|
+
name: "functions_project_fk"
|
|
349
378
|
}).onDelete("cascade")
|
|
350
379
|
]
|
|
351
380
|
);
|
|
@@ -680,6 +709,10 @@ var toolsRelations = drizzleOrm.relations(tools, ({ one, many }) => ({
|
|
|
680
709
|
credentialReference: one(credentialReferences, {
|
|
681
710
|
fields: [tools.credentialReferenceId],
|
|
682
711
|
references: [credentialReferences.id]
|
|
712
|
+
}),
|
|
713
|
+
function: one(functions, {
|
|
714
|
+
fields: [tools.functionId],
|
|
715
|
+
references: [functions.id]
|
|
683
716
|
})
|
|
684
717
|
}));
|
|
685
718
|
var conversationsRelations = drizzleOrm.relations(conversations, ({ one, many }) => ({
|
|
@@ -777,6 +810,9 @@ var ledgerArtifactsRelations = drizzleOrm.relations(ledgerArtifacts, ({ one }) =
|
|
|
777
810
|
references: [tasks.id]
|
|
778
811
|
})
|
|
779
812
|
}));
|
|
813
|
+
var functionsRelations = drizzleOrm.relations(functions, ({ many }) => ({
|
|
814
|
+
tools: many(tools)
|
|
815
|
+
}));
|
|
780
816
|
var agentRelationsRelations = drizzleOrm.relations(agentRelations, ({ one }) => ({
|
|
781
817
|
graph: one(agentGraph, {
|
|
782
818
|
fields: [agentRelations.graphId],
|
|
@@ -826,6 +862,8 @@ exports.dataComponents = dataComponents;
|
|
|
826
862
|
exports.dataComponentsRelations = dataComponentsRelations;
|
|
827
863
|
exports.externalAgents = externalAgents;
|
|
828
864
|
exports.externalAgentsRelations = externalAgentsRelations;
|
|
865
|
+
exports.functions = functions;
|
|
866
|
+
exports.functionsRelations = functionsRelations;
|
|
829
867
|
exports.ledgerArtifacts = ledgerArtifacts;
|
|
830
868
|
exports.ledgerArtifactsRelations = ledgerArtifactsRelations;
|
|
831
869
|
exports.messages = messages;
|
package/dist/db/schema.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'drizzle-orm';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
|
-
import '../utility-
|
|
4
|
-
export { k as agentArtifactComponents,
|
|
3
|
+
import '../utility-BHDxGp6I.cjs';
|
|
4
|
+
export { k as agentArtifactComponents, L as agentArtifactComponentsRelations, i as agentDataComponents, N as agentDataComponentsRelations, a as agentGraph, C as agentGraphRelations, e as agentRelations, Q as agentRelationsRelations, n as agentToolRelations, F as agentToolRelationsRelations, d as agents, B as agentsRelations, u as apiKeys, E as apiKeysRelations, j as artifactComponents, K as artifactComponentsRelations, b as contextCache, A as contextCacheRelations, c as contextConfigs, z as contextConfigsRelations, o as conversations, I as conversationsRelations, v as credentialReferences, G as credentialReferencesRelations, h as dataComponents, M as dataComponentsRelations, f as externalAgents, D as externalAgentsRelations, m as functions, P as functionsRelations, r as ledgerArtifacts, O as ledgerArtifactsRelations, q as messages, J as messagesRelations, p as projects, x as projectsRelations, g as taskRelations, y as taskRelationsRelations, t as tasks, w as tasksRelations, l as tools, H as toolsRelations } from '../schema-DKTW_XSC.cjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'drizzle-zod';
|
|
7
7
|
import '@hono/zod-openapi';
|
package/dist/db/schema.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'drizzle-orm';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
|
-
import '../utility-
|
|
4
|
-
export { k as agentArtifactComponents,
|
|
3
|
+
import '../utility-BHDxGp6I.js';
|
|
4
|
+
export { k as agentArtifactComponents, L as agentArtifactComponentsRelations, i as agentDataComponents, N as agentDataComponentsRelations, a as agentGraph, C as agentGraphRelations, e as agentRelations, Q as agentRelationsRelations, n as agentToolRelations, F as agentToolRelationsRelations, d as agents, B as agentsRelations, u as apiKeys, E as apiKeysRelations, j as artifactComponents, K as artifactComponentsRelations, b as contextCache, A as contextCacheRelations, c as contextConfigs, z as contextConfigsRelations, o as conversations, I as conversationsRelations, v as credentialReferences, G as credentialReferencesRelations, h as dataComponents, M as dataComponentsRelations, f as externalAgents, D as externalAgentsRelations, m as functions, P as functionsRelations, r as ledgerArtifacts, O as ledgerArtifactsRelations, q as messages, J as messagesRelations, p as projects, x as projectsRelations, g as taskRelations, y as taskRelationsRelations, t as tasks, w as tasksRelations, l as tools, H as toolsRelations } from '../schema-DfH0zjbm.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'drizzle-zod';
|
|
7
7
|
import '@hono/zod-openapi';
|
package/dist/db/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { agentArtifactComponents, agentArtifactComponentsRelations, agentDataComponents, agentDataComponentsRelations, agentGraph, agentGraphRelations, agentRelations, agentRelationsRelations, agentToolRelations, agentToolRelationsRelations, agents, agentsRelations, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, externalAgents, externalAgentsRelations, ledgerArtifacts, ledgerArtifactsRelations, messages, messagesRelations, projects, projectsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from '../chunk-
|
|
1
|
+
export { agentArtifactComponents, agentArtifactComponentsRelations, agentDataComponents, agentDataComponentsRelations, agentGraph, agentGraphRelations, agentRelations, agentRelationsRelations, agentToolRelations, agentToolRelationsRelations, agents, agentsRelations, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, externalAgents, externalAgentsRelations, functions, functionsRelations, ledgerArtifacts, ledgerArtifactsRelations, messages, messagesRelations, projects, projectsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from '../chunk-TN5JDW2L.js';
|