@inkeep/agents-core 0.0.0-dev-20250911221549 → 0.0.0-dev-20250911223509

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.
@@ -1,5 +1,5 @@
1
+ import { agents, agentRelations, agentGraph, tasks, taskRelations, tools, conversations, messages, contextCache, dataComponents, agentDataComponents, artifactComponents, agentArtifactComponents, externalAgents, apiKeys, contextConfigs, agentToolRelations, ledgerArtifacts, projects } from './chunk-DT762NC3.js';
1
2
  import { VALID_RELATION_TYPES, MCPTransportType, TOOL_STATUS_VALUES, CredentialStoreType, MCPServerType } from './chunk-SVGQSPW4.js';
2
- import { agents, agentRelations, agentGraph, tasks, taskRelations, tools, conversations, messages, contextCache, dataComponents, agentDataComponents, artifactComponents, agentArtifactComponents, externalAgents, apiKeys, contextConfigs, agentToolRelations, ledgerArtifacts, projects } from './chunk-M4JXMAG7.js';
3
3
  import { z } from '@hono/zod-openapi';
4
4
  import { createSelectSchema, createInsertSchema } from 'drizzle-zod';
5
5
 
@@ -1,4 +1,4 @@
1
- import { __export } from './chunk-MKBO26DX.js';
1
+ import { __export } from './chunk-P3JAXV7M.js';
2
2
  import { relations, sql } from 'drizzle-orm';
3
3
  import { sqliteTable, index, unique, text, primaryKey, blob, integer, foreignKey } from 'drizzle-orm/sqlite-core';
4
4
 
@@ -1,9 +1,13 @@
1
1
  var __defProp = Object.defineProperty;
2
+ var __getOwnPropNames = Object.getOwnPropertyNames;
2
3
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
+ var __commonJS = (cb, mod) => function __require() {
5
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
6
+ };
3
7
  var __export = (target, all) => {
4
8
  for (var name in all)
5
9
  __defProp(target, name, { get: all[name], enumerable: true });
6
10
  };
7
11
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
8
12
 
9
- export { __export, __publicField };
13
+ export { __commonJS, __export, __publicField };
package/dist/db/schema.js CHANGED
@@ -1 +1 @@
1
- export { agentArtifactComponents, agentArtifactComponentsRelations, agentDataComponents, agentGraph, agentGraphRelations, agentRelations, agentRelationsRelations, agentToolRelations, agentToolRelationsRelations, agents, agentsRelations, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, externalAgents, externalAgentsRelations, ledgerArtifacts, ledgerArtifactsContextIdIdx, ledgerArtifactsTaskContextNameUnique, ledgerArtifactsTaskIdIdx, messages, messagesRelations, projects, projectsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from '../chunk-M4JXMAG7.js';
1
+ export { agentArtifactComponents, agentArtifactComponentsRelations, agentDataComponents, agentGraph, agentGraphRelations, agentRelations, agentRelationsRelations, agentToolRelations, agentToolRelationsRelations, agents, agentsRelations, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, externalAgents, externalAgentsRelations, ledgerArtifacts, ledgerArtifactsContextIdIdx, ledgerArtifactsTaskContextNameUnique, ledgerArtifactsTaskIdIdx, messages, messagesRelations, projects, projectsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from '../chunk-DT762NC3.js';
package/dist/index.cjs CHANGED
@@ -32,13 +32,123 @@ var crypto__default = /*#__PURE__*/_interopDefault(crypto);
32
32
  var Ajv__default = /*#__PURE__*/_interopDefault(Ajv);
33
33
 
34
34
  var __defProp = Object.defineProperty;
35
+ var __getOwnPropNames = Object.getOwnPropertyNames;
35
36
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37
+ var __commonJS = (cb, mod) => function __require() {
38
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
39
+ };
36
40
  var __export = (target, all) => {
37
41
  for (var name in all)
38
42
  __defProp(target, name, { get: all[name], enumerable: true });
39
43
  };
40
44
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
41
45
 
46
+ // package.json
47
+ var require_package = __commonJS({
48
+ "package.json"(exports, module) {
49
+ module.exports = {
50
+ name: "@inkeep/agents-core",
51
+ version: "0.0.0-dev-20250911223509",
52
+ description: "Core database schema, types, and validation schemas for Inkeep Agent Framework",
53
+ type: "module",
54
+ license: "SEE LICENSE IN LICENSE.md",
55
+ main: "dist/index.js",
56
+ exports: {
57
+ ".": "./dist/index.js",
58
+ "./schema": "./dist/schema/index.js",
59
+ "./types": "./dist/types/index.js",
60
+ "./validation": "./dist/validation/index.js",
61
+ "./client-exports": {
62
+ types: "./dist/client-exports.d.ts",
63
+ import: "./dist/client-exports.js"
64
+ },
65
+ "./package.json": "./package.json"
66
+ },
67
+ scripts: {
68
+ build: "tsup",
69
+ prepare: "pnpm build",
70
+ test: "vitest --run",
71
+ "test:unit": "vitest --run src/__tests__ --exclude src/__tests__/integration/**",
72
+ "test:integration": "vitest --run src/__tests__/integration/",
73
+ "test:coverage": "vitest --run --coverage",
74
+ "test:watch": "vitest --watch",
75
+ lint: "biome lint src",
76
+ "lint:fix": "biome check --write src",
77
+ format: "biome format --write src",
78
+ "format:check": "biome format src",
79
+ typecheck: "tsc --noEmit",
80
+ "db:generate": "drizzle-kit generate",
81
+ "db:push": "drizzle-kit push",
82
+ "db:migrate": "drizzle-kit migrate",
83
+ "db:clean": "tsx src/db/clean.ts",
84
+ "db:studio": "drizzle-kit studio",
85
+ "db:check": "drizzle-kit check",
86
+ "db:reset-schema": "rm -rf drizzle/* && echo 'All migration files removed, generating new schema' && drizzle-kit generate",
87
+ prepack: "clean-package",
88
+ postpack: "clean-package restore"
89
+ },
90
+ "clean-package": "./clean-package.config.json",
91
+ dependencies: {
92
+ "@hono/node-server": "^1.14.3",
93
+ "@hono/zod-openapi": "^1.0.2",
94
+ "@libsql/client": "^0.15.7",
95
+ "@modelcontextprotocol/sdk": "^1.17.2",
96
+ "@nangohq/node": "^0.66.0",
97
+ "@nangohq/types": "^0.66.0",
98
+ "@opentelemetry/api": "^1.9.0",
99
+ "@opentelemetry/auto-instrumentations-node": "^0.62.0",
100
+ "@opentelemetry/baggage-span-processor": "^0.4.0",
101
+ "@opentelemetry/exporter-jaeger": "^2.0.1",
102
+ "@opentelemetry/exporter-trace-otlp-proto": "^0.203.0",
103
+ "@opentelemetry/sdk-metrics": "^2.0.1",
104
+ "@opentelemetry/sdk-node": "^0.203.0",
105
+ "@opentelemetry/sdk-trace-node": "^2.0.1",
106
+ "@opentelemetry/semantic-conventions": "^1.34.0",
107
+ ai: "5.0.11",
108
+ ajv: "^8.17.1",
109
+ "ajv-formats": "^3.0.1",
110
+ dotenv: "^17.2.1",
111
+ "drizzle-orm": "^0.44.4",
112
+ "drizzle-zod": "^0.8.2",
113
+ "exit-hook": "^4.0.0",
114
+ hono: "^4.8.10",
115
+ jmespath: "^0.16.0",
116
+ keytar: "^7.9.0",
117
+ nanoid: "^5.0.9",
118
+ "ts-pattern": "^5.7.1",
119
+ zod: "^4.1.5"
120
+ },
121
+ devDependencies: {
122
+ "@types/jmespath": "^0.15.2",
123
+ "@types/node": "^20.11.24",
124
+ "@vitest/coverage-v8": "^2.0.0",
125
+ "clean-package": "^2.2.0",
126
+ "drizzle-kit": "^0.31.4",
127
+ typescript: "^5.9.2",
128
+ vitest: "^3.1.4"
129
+ },
130
+ engines: {
131
+ node: ">=22.0.0"
132
+ },
133
+ publishConfig: {
134
+ access: "restricted",
135
+ registry: "https://registry.npmjs.org/"
136
+ },
137
+ files: [
138
+ "dist",
139
+ "README.md",
140
+ "LICENSE.md",
141
+ "SUPPLEMENTAL_TERMS.md"
142
+ ],
143
+ repository: {
144
+ type: "git",
145
+ url: "git+https://github.com/inkeep/agents.git",
146
+ directory: "packages/agents-core"
147
+ }
148
+ };
149
+ }
150
+ });
151
+
42
152
  // src/utils/logger.ts
43
153
  var ConsoleLogger = class {
44
154
  constructor(name) {
@@ -7192,12 +7302,9 @@ function getTracer(serviceName, serviceVersion) {
7192
7302
  }
7193
7303
  }
7194
7304
 
7195
- // package.json
7196
- var package_default = {
7197
- version: "0.0.0-dev-20250911221549"};
7198
-
7199
7305
  // src/utils/tracer.ts
7200
- var tracer = getTracer("agents-core", package_default.version);
7306
+ var pkg = require_package();
7307
+ var tracer = getTracer("agents-core", pkg.version);
7201
7308
  var logger5 = getLogger("context-cache");
7202
7309
  var ContextCache = class {
7203
7310
  constructor(tenantId, projectId, dbClient) {
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  export { TaskState } from './chunk-H2F72PDA.js';
2
- import { ContextConfigApiUpdateSchema, validateAndTypeGraphData, validateGraphStructure, isInternalAgent, isExternalAgent } from './chunk-G6FJN6G5.js';
3
- export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentArtifactComponentApiInsertSchema, AgentArtifactComponentApiSelectSchema, AgentArtifactComponentApiUpdateSchema, AgentArtifactComponentInsertSchema, AgentArtifactComponentSelectSchema, AgentArtifactComponentUpdateSchema, AgentDataComponentApiInsertSchema, AgentDataComponentApiSelectSchema, AgentDataComponentApiUpdateSchema, AgentDataComponentInsertSchema, AgentDataComponentSelectSchema, AgentDataComponentUpdateSchema, AgentGraphApiInsertSchema, AgentGraphApiSelectSchema, AgentGraphApiUpdateSchema, AgentGraphInsertSchema, AgentGraphSelectSchema, AgentGraphUpdateSchema, AgentInsertSchema, AgentRelationApiInsertSchema, AgentRelationApiSelectSchema, AgentRelationApiUpdateSchema, AgentRelationInsertSchema, AgentRelationQuerySchema, AgentRelationSelectSchema, AgentRelationUpdateSchema, AgentSelectSchema, AgentToolRelationApiInsertSchema, AgentToolRelationApiSelectSchema, AgentToolRelationApiUpdateSchema, AgentToolRelationInsertSchema, AgentToolRelationSelectSchema, AgentToolRelationUpdateSchema, AgentUpdateSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentInsertSchema, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationSelectSchema, ConversationUpdateSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentRelationApiInsertSchema, ExternalAgentRelationInsertSchema, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, FetchConfigSchema, FetchDefinitionSchema, FullGraphAgentInsertSchema, FullGraphDefinitionSchema, HeadersScopeSchema, IdParamsSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, PaginationQueryParamsSchema, PaginationSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectModelSchema, ProjectSelectSchema, ProjectUpdateSchema, RemovedResponseSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, resourceIdSchema, validateAgentRelationships, validateAndTypeGraphData, validateArtifactComponentReferences, validateDataComponentReferences, validateGraphStructure, validateToolReferences } from './chunk-G6FJN6G5.js';
2
+ import { ContextConfigApiUpdateSchema, validateAndTypeGraphData, validateGraphStructure, isInternalAgent, isExternalAgent } from './chunk-7FSRTNCP.js';
3
+ export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentArtifactComponentApiInsertSchema, AgentArtifactComponentApiSelectSchema, AgentArtifactComponentApiUpdateSchema, AgentArtifactComponentInsertSchema, AgentArtifactComponentSelectSchema, AgentArtifactComponentUpdateSchema, AgentDataComponentApiInsertSchema, AgentDataComponentApiSelectSchema, AgentDataComponentApiUpdateSchema, AgentDataComponentInsertSchema, AgentDataComponentSelectSchema, AgentDataComponentUpdateSchema, AgentGraphApiInsertSchema, AgentGraphApiSelectSchema, AgentGraphApiUpdateSchema, AgentGraphInsertSchema, AgentGraphSelectSchema, AgentGraphUpdateSchema, AgentInsertSchema, AgentRelationApiInsertSchema, AgentRelationApiSelectSchema, AgentRelationApiUpdateSchema, AgentRelationInsertSchema, AgentRelationQuerySchema, AgentRelationSelectSchema, AgentRelationUpdateSchema, AgentSelectSchema, AgentToolRelationApiInsertSchema, AgentToolRelationApiSelectSchema, AgentToolRelationApiUpdateSchema, AgentToolRelationInsertSchema, AgentToolRelationSelectSchema, AgentToolRelationUpdateSchema, AgentUpdateSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentInsertSchema, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationSelectSchema, ConversationUpdateSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentRelationApiInsertSchema, ExternalAgentRelationInsertSchema, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, FetchConfigSchema, FetchDefinitionSchema, FullGraphAgentInsertSchema, FullGraphDefinitionSchema, HeadersScopeSchema, IdParamsSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, PaginationQueryParamsSchema, PaginationSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectModelSchema, ProjectSelectSchema, ProjectUpdateSchema, RemovedResponseSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, resourceIdSchema, validateAgentRelationships, validateAndTypeGraphData, validateArtifactComponentReferences, validateDataComponentReferences, validateGraphStructure, validateToolReferences } from './chunk-7FSRTNCP.js';
4
+ import { schema_exports, agentRelations, agents, externalAgents, agentToolRelations, tools, contextConfigs, agentGraph, agentDataComponents, agentArtifactComponents, dataComponents, artifactComponents, projects, apiKeys, contextCache, conversations, messages, credentialReferences, ledgerArtifacts, tasks, taskRelations } from './chunk-DT762NC3.js';
5
+ export { agentArtifactComponents, agentArtifactComponentsRelations, agentDataComponents, agentGraph, agentGraphRelations, agentRelations, agentRelationsRelations, agentToolRelations, agentToolRelationsRelations, agents, agentsRelations, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, externalAgents, externalAgentsRelations, ledgerArtifacts, ledgerArtifactsContextIdIdx, ledgerArtifactsTaskContextNameUnique, ledgerArtifactsTaskIdIdx, messages, messagesRelations, projects, projectsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from './chunk-DT762NC3.js';
4
6
  import { CredentialStoreType, MCPServerType, MCPTransportType } from './chunk-SVGQSPW4.js';
5
7
  export { CredentialStoreType, MCPServerType, MCPTransportType, TOOL_STATUS_VALUES, VALID_RELATION_TYPES } from './chunk-SVGQSPW4.js';
6
- import { schema_exports, agentRelations, agents, externalAgents, agentToolRelations, tools, contextConfigs, agentGraph, agentDataComponents, agentArtifactComponents, dataComponents, artifactComponents, projects, apiKeys, contextCache, conversations, messages, credentialReferences, ledgerArtifacts, tasks, taskRelations } from './chunk-M4JXMAG7.js';
7
- export { agentArtifactComponents, agentArtifactComponentsRelations, agentDataComponents, agentGraph, agentGraphRelations, agentRelations, agentRelationsRelations, agentToolRelations, agentToolRelationsRelations, agents, agentsRelations, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, externalAgents, externalAgentsRelations, ledgerArtifacts, ledgerArtifactsContextIdIdx, ledgerArtifactsTaskContextNameUnique, ledgerArtifactsTaskIdIdx, messages, messagesRelations, projects, projectsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from './chunk-M4JXMAG7.js';
8
- import { __publicField } from './chunk-MKBO26DX.js';
8
+ import { __commonJS, __publicField } from './chunk-P3JAXV7M.js';
9
9
  import { z as z$2 } from 'zod/v4';
10
10
  import jmespath from 'jmespath';
11
11
  import { createClient } from '@libsql/client';
@@ -29,6 +29,112 @@ import { match } from 'ts-pattern';
29
29
  import { z as z$1 } from 'zod';
30
30
  import { Nango } from '@nangohq/node';
31
31
 
32
+ // package.json
33
+ var require_package = __commonJS({
34
+ "package.json"(exports, module) {
35
+ module.exports = {
36
+ name: "@inkeep/agents-core",
37
+ version: "0.0.0-dev-20250911223509",
38
+ description: "Core database schema, types, and validation schemas for Inkeep Agent Framework",
39
+ type: "module",
40
+ license: "SEE LICENSE IN LICENSE.md",
41
+ main: "dist/index.js",
42
+ exports: {
43
+ ".": "./dist/index.js",
44
+ "./schema": "./dist/schema/index.js",
45
+ "./types": "./dist/types/index.js",
46
+ "./validation": "./dist/validation/index.js",
47
+ "./client-exports": {
48
+ types: "./dist/client-exports.d.ts",
49
+ import: "./dist/client-exports.js"
50
+ },
51
+ "./package.json": "./package.json"
52
+ },
53
+ scripts: {
54
+ build: "tsup",
55
+ prepare: "pnpm build",
56
+ test: "vitest --run",
57
+ "test:unit": "vitest --run src/__tests__ --exclude src/__tests__/integration/**",
58
+ "test:integration": "vitest --run src/__tests__/integration/",
59
+ "test:coverage": "vitest --run --coverage",
60
+ "test:watch": "vitest --watch",
61
+ lint: "biome lint src",
62
+ "lint:fix": "biome check --write src",
63
+ format: "biome format --write src",
64
+ "format:check": "biome format src",
65
+ typecheck: "tsc --noEmit",
66
+ "db:generate": "drizzle-kit generate",
67
+ "db:push": "drizzle-kit push",
68
+ "db:migrate": "drizzle-kit migrate",
69
+ "db:clean": "tsx src/db/clean.ts",
70
+ "db:studio": "drizzle-kit studio",
71
+ "db:check": "drizzle-kit check",
72
+ "db:reset-schema": "rm -rf drizzle/* && echo 'All migration files removed, generating new schema' && drizzle-kit generate",
73
+ prepack: "clean-package",
74
+ postpack: "clean-package restore"
75
+ },
76
+ "clean-package": "./clean-package.config.json",
77
+ dependencies: {
78
+ "@hono/node-server": "^1.14.3",
79
+ "@hono/zod-openapi": "^1.0.2",
80
+ "@libsql/client": "^0.15.7",
81
+ "@modelcontextprotocol/sdk": "^1.17.2",
82
+ "@nangohq/node": "^0.66.0",
83
+ "@nangohq/types": "^0.66.0",
84
+ "@opentelemetry/api": "^1.9.0",
85
+ "@opentelemetry/auto-instrumentations-node": "^0.62.0",
86
+ "@opentelemetry/baggage-span-processor": "^0.4.0",
87
+ "@opentelemetry/exporter-jaeger": "^2.0.1",
88
+ "@opentelemetry/exporter-trace-otlp-proto": "^0.203.0",
89
+ "@opentelemetry/sdk-metrics": "^2.0.1",
90
+ "@opentelemetry/sdk-node": "^0.203.0",
91
+ "@opentelemetry/sdk-trace-node": "^2.0.1",
92
+ "@opentelemetry/semantic-conventions": "^1.34.0",
93
+ ai: "5.0.11",
94
+ ajv: "^8.17.1",
95
+ "ajv-formats": "^3.0.1",
96
+ dotenv: "^17.2.1",
97
+ "drizzle-orm": "^0.44.4",
98
+ "drizzle-zod": "^0.8.2",
99
+ "exit-hook": "^4.0.0",
100
+ hono: "^4.8.10",
101
+ jmespath: "^0.16.0",
102
+ keytar: "^7.9.0",
103
+ nanoid: "^5.0.9",
104
+ "ts-pattern": "^5.7.1",
105
+ zod: "^4.1.5"
106
+ },
107
+ devDependencies: {
108
+ "@types/jmespath": "^0.15.2",
109
+ "@types/node": "^20.11.24",
110
+ "@vitest/coverage-v8": "^2.0.0",
111
+ "clean-package": "^2.2.0",
112
+ "drizzle-kit": "^0.31.4",
113
+ typescript: "^5.9.2",
114
+ vitest: "^3.1.4"
115
+ },
116
+ engines: {
117
+ node: ">=22.0.0"
118
+ },
119
+ publishConfig: {
120
+ access: "restricted",
121
+ registry: "https://registry.npmjs.org/"
122
+ },
123
+ files: [
124
+ "dist",
125
+ "README.md",
126
+ "LICENSE.md",
127
+ "SUPPLEMENTAL_TERMS.md"
128
+ ],
129
+ repository: {
130
+ type: "git",
131
+ url: "git+https://github.com/inkeep/agents.git",
132
+ directory: "packages/agents-core"
133
+ }
134
+ };
135
+ }
136
+ });
137
+
32
138
  // src/utils/logger.ts
33
139
  var ConsoleLogger = class {
34
140
  constructor(name) {
@@ -5674,12 +5780,9 @@ function getTracer(serviceName, serviceVersion) {
5674
5780
  }
5675
5781
  }
5676
5782
 
5677
- // package.json
5678
- var package_default = {
5679
- version: "0.0.0-dev-20250911221549"};
5680
-
5681
5783
  // src/utils/tracer.ts
5682
- var tracer = getTracer("agents-core", package_default.version);
5784
+ var pkg = require_package();
5785
+ var tracer = getTracer("agents-core", pkg.version);
5683
5786
  var logger5 = getLogger("context-cache");
5684
5787
  var ContextCache = class {
5685
5788
  constructor(tenantId, projectId, dbClient) {
@@ -1 +1 @@
1
- export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentArtifactComponentApiInsertSchema, AgentArtifactComponentApiSelectSchema, AgentArtifactComponentApiUpdateSchema, AgentArtifactComponentInsertSchema, AgentArtifactComponentSelectSchema, AgentArtifactComponentUpdateSchema, AgentDataComponentApiInsertSchema, AgentDataComponentApiSelectSchema, AgentDataComponentApiUpdateSchema, AgentDataComponentInsertSchema, AgentDataComponentSelectSchema, AgentDataComponentUpdateSchema, AgentGraphApiInsertSchema, AgentGraphApiSelectSchema, AgentGraphApiUpdateSchema, AgentGraphInsertSchema, AgentGraphSelectSchema, AgentGraphUpdateSchema, AgentInsertSchema, AgentRelationApiInsertSchema, AgentRelationApiSelectSchema, AgentRelationApiUpdateSchema, AgentRelationInsertSchema, AgentRelationQuerySchema, AgentRelationSelectSchema, AgentRelationUpdateSchema, AgentSelectSchema, AgentToolRelationApiInsertSchema, AgentToolRelationApiSelectSchema, AgentToolRelationApiUpdateSchema, AgentToolRelationInsertSchema, AgentToolRelationSelectSchema, AgentToolRelationUpdateSchema, AgentUpdateSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentInsertSchema, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationSelectSchema, ConversationUpdateSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentRelationApiInsertSchema, ExternalAgentRelationInsertSchema, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, FetchConfigSchema, FetchDefinitionSchema, FullGraphAgentInsertSchema, FullGraphDefinitionSchema, HeadersScopeSchema, IdParamsSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, PaginationQueryParamsSchema, PaginationSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectModelSchema, ProjectSelectSchema, ProjectUpdateSchema, RemovedResponseSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, resourceIdSchema, validateAgentRelationships, validateAndTypeGraphData, validateArtifactComponentReferences, validateDataComponentReferences, validateGraphStructure, validateToolReferences } from '../chunk-G6FJN6G5.js';
1
+ export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentArtifactComponentApiInsertSchema, AgentArtifactComponentApiSelectSchema, AgentArtifactComponentApiUpdateSchema, AgentArtifactComponentInsertSchema, AgentArtifactComponentSelectSchema, AgentArtifactComponentUpdateSchema, AgentDataComponentApiInsertSchema, AgentDataComponentApiSelectSchema, AgentDataComponentApiUpdateSchema, AgentDataComponentInsertSchema, AgentDataComponentSelectSchema, AgentDataComponentUpdateSchema, AgentGraphApiInsertSchema, AgentGraphApiSelectSchema, AgentGraphApiUpdateSchema, AgentGraphInsertSchema, AgentGraphSelectSchema, AgentGraphUpdateSchema, AgentInsertSchema, AgentRelationApiInsertSchema, AgentRelationApiSelectSchema, AgentRelationApiUpdateSchema, AgentRelationInsertSchema, AgentRelationQuerySchema, AgentRelationSelectSchema, AgentRelationUpdateSchema, AgentSelectSchema, AgentToolRelationApiInsertSchema, AgentToolRelationApiSelectSchema, AgentToolRelationApiUpdateSchema, AgentToolRelationInsertSchema, AgentToolRelationSelectSchema, AgentToolRelationUpdateSchema, AgentUpdateSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentInsertSchema, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationSelectSchema, ConversationUpdateSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentRelationApiInsertSchema, ExternalAgentRelationInsertSchema, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, FetchConfigSchema, FetchDefinitionSchema, FullGraphAgentInsertSchema, FullGraphDefinitionSchema, HeadersScopeSchema, IdParamsSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, PaginationQueryParamsSchema, PaginationSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectModelSchema, ProjectSelectSchema, ProjectUpdateSchema, RemovedResponseSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, resourceIdSchema, validateAgentRelationships, validateAndTypeGraphData, validateArtifactComponentReferences, validateDataComponentReferences, validateGraphStructure, validateToolReferences } from '../chunk-7FSRTNCP.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-core",
3
- "version": "0.0.0-dev-20250911221549",
3
+ "version": "0.0.0-dev-20250911223509",
4
4
  "description": "Core database schema, types, and validation schemas for Inkeep Agent Framework",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE.md",