@inkeep/agents-core 0.0.0-dev-20250911232317 → 0.0.0-dev-20250912000125

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,4 +1,4 @@
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
+ import { agents, agentRelations, agentGraph, tasks, taskRelations, tools, conversations, messages, contextCache, dataComponents, agentDataComponents, artifactComponents, agentArtifactComponents, externalAgents, apiKeys, contextConfigs, agentToolRelations, ledgerArtifacts, projects } from './chunk-M4JXMAG7.js';
2
2
  import { VALID_RELATION_TYPES, MCPTransportType, TOOL_STATUS_VALUES, CredentialStoreType, MCPServerType } from './chunk-SVGQSPW4.js';
3
3
  import { z } from '@hono/zod-openapi';
4
4
  import { createSelectSchema, createInsertSchema } from 'drizzle-zod';
@@ -1,4 +1,4 @@
1
- import { __export } from './chunk-P3JAXV7M.js';
1
+ import { __export } from './chunk-MKBO26DX.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,13 +1,9 @@
1
1
  var __defProp = Object.defineProperty;
2
- var __getOwnPropNames = Object.getOwnPropertyNames;
3
2
  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
- };
7
3
  var __export = (target, all) => {
8
4
  for (var name in all)
9
5
  __defProp(target, name, { get: all[name], enumerable: true });
10
6
  };
11
7
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
12
8
 
13
- export { __commonJS, __export, __publicField };
9
+ export { __export, __publicField };
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export { C as CredentialStoreType, M as MCPTransportType } from './entities-CNJaf-rG.cjs';
2
+ export { C as CredentialStoreType, M as MCPTransportType } from './entities-BbN3GqYV.cjs';
3
3
  import 'drizzle-zod';
4
4
  import 'drizzle-orm/sqlite-core';
5
5
  import '@hono/zod-openapi';
@@ -74,8 +74,8 @@ declare const AgentApiInsertSchema: z.ZodObject<{
74
74
  canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
75
75
  canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
76
76
  type: z.ZodOptional<z.ZodEnum<{
77
- internal: "internal";
78
77
  external: "external";
78
+ internal: "internal";
79
79
  }>>;
80
80
  }, z.core.$strip>;
81
81
  declare const ToolApiInsertSchema: z.ZodObject<{
@@ -189,8 +189,8 @@ declare const FullGraphDefinitionSchema: z.ZodObject<{
189
189
  canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
190
190
  canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
191
191
  type: z.ZodOptional<z.ZodEnum<{
192
- internal: "internal";
193
192
  external: "external";
193
+ internal: "internal";
194
194
  }>>;
195
195
  models: z.ZodOptional<z.ZodObject<{
196
196
  base: z.ZodOptional<z.ZodObject<{
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export { C as CredentialStoreType, M as MCPTransportType } from './entities-CNJaf-rG.js';
2
+ export { C as CredentialStoreType, M as MCPTransportType } from './entities-BbN3GqYV.js';
3
3
  import 'drizzle-zod';
4
4
  import 'drizzle-orm/sqlite-core';
5
5
  import '@hono/zod-openapi';
@@ -74,8 +74,8 @@ declare const AgentApiInsertSchema: z.ZodObject<{
74
74
  canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
75
75
  canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
76
76
  type: z.ZodOptional<z.ZodEnum<{
77
- internal: "internal";
78
77
  external: "external";
78
+ internal: "internal";
79
79
  }>>;
80
80
  }, z.core.$strip>;
81
81
  declare const ToolApiInsertSchema: z.ZodObject<{
@@ -189,8 +189,8 @@ declare const FullGraphDefinitionSchema: z.ZodObject<{
189
189
  canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
190
190
  canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
191
191
  type: z.ZodOptional<z.ZodEnum<{
192
- internal: "internal";
193
192
  external: "external";
193
+ internal: "internal";
194
194
  }>>;
195
195
  models: z.ZodOptional<z.ZodObject<{
196
196
  base: z.ZodOptional<z.ZodObject<{
@@ -1,7 +1,7 @@
1
1
  import 'drizzle-orm';
2
2
  import 'drizzle-orm/sqlite-core';
3
- import '../entities-CNJaf-rG.cjs';
4
- export { k as agentArtifactComponents, N as agentArtifactComponentsRelations, i as agentDataComponents, f as agentGraph, E as agentGraphRelations, d as agentRelations, O as agentRelationsRelations, m as agentToolRelations, H as agentToolRelationsRelations, b as agents, D as agentsRelations, r as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, a as contextCache, C as contextCacheRelations, c as contextConfigs, B as contextConfigsRelations, n as conversations, K as conversationsRelations, u as credentialReferences, I as credentialReferencesRelations, h as dataComponents, e as externalAgents, F as externalAgentsRelations, q as ledgerArtifacts, w as ledgerArtifactsContextIdIdx, x as ledgerArtifactsTaskContextNameUnique, v as ledgerArtifactsTaskIdIdx, o as messages, L as messagesRelations, p as projects, z as projectsRelations, g as taskRelations, A as taskRelationsRelations, t as tasks, y as tasksRelations, l as tools, J as toolsRelations } from '../schema-Dbc3UMpd.cjs';
3
+ import '../entities-BbN3GqYV.cjs';
4
+ export { k as agentArtifactComponents, N as agentArtifactComponentsRelations, i as agentDataComponents, f as agentGraph, E as agentGraphRelations, d as agentRelations, O as agentRelationsRelations, m as agentToolRelations, H as agentToolRelationsRelations, b as agents, D as agentsRelations, r as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, a as contextCache, C as contextCacheRelations, c as contextConfigs, B as contextConfigsRelations, n as conversations, K as conversationsRelations, u as credentialReferences, I as credentialReferencesRelations, h as dataComponents, e as externalAgents, F as externalAgentsRelations, q as ledgerArtifacts, w as ledgerArtifactsContextIdIdx, x as ledgerArtifactsTaskContextNameUnique, v as ledgerArtifactsTaskIdIdx, o as messages, L as messagesRelations, p as projects, z as projectsRelations, g as taskRelations, A as taskRelationsRelations, t as tasks, y as tasksRelations, l as tools, J as toolsRelations } from '../schema-2Sd93dmu.cjs';
5
5
  import 'zod';
6
6
  import 'drizzle-zod';
7
7
  import '@hono/zod-openapi';
@@ -1,7 +1,7 @@
1
1
  import 'drizzle-orm';
2
2
  import 'drizzle-orm/sqlite-core';
3
- import '../entities-CNJaf-rG.js';
4
- export { k as agentArtifactComponents, N as agentArtifactComponentsRelations, i as agentDataComponents, f as agentGraph, E as agentGraphRelations, d as agentRelations, O as agentRelationsRelations, m as agentToolRelations, H as agentToolRelationsRelations, b as agents, D as agentsRelations, r as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, a as contextCache, C as contextCacheRelations, c as contextConfigs, B as contextConfigsRelations, n as conversations, K as conversationsRelations, u as credentialReferences, I as credentialReferencesRelations, h as dataComponents, e as externalAgents, F as externalAgentsRelations, q as ledgerArtifacts, w as ledgerArtifactsContextIdIdx, x as ledgerArtifactsTaskContextNameUnique, v as ledgerArtifactsTaskIdIdx, o as messages, L as messagesRelations, p as projects, z as projectsRelations, g as taskRelations, A as taskRelationsRelations, t as tasks, y as tasksRelations, l as tools, J as toolsRelations } from '../schema-DFDqtBpV.js';
3
+ import '../entities-BbN3GqYV.js';
4
+ export { k as agentArtifactComponents, N as agentArtifactComponentsRelations, i as agentDataComponents, f as agentGraph, E as agentGraphRelations, d as agentRelations, O as agentRelationsRelations, m as agentToolRelations, H as agentToolRelationsRelations, b as agents, D as agentsRelations, r as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, a as contextCache, C as contextCacheRelations, c as contextConfigs, B as contextConfigsRelations, n as conversations, K as conversationsRelations, u as credentialReferences, I as credentialReferencesRelations, h as dataComponents, e as externalAgents, F as externalAgentsRelations, q as ledgerArtifacts, w as ledgerArtifactsContextIdIdx, x as ledgerArtifactsTaskContextNameUnique, v as ledgerArtifactsTaskIdIdx, o as messages, L as messagesRelations, p as projects, z as projectsRelations, g as taskRelations, A as taskRelationsRelations, t as tasks, y as tasksRelations, l as tools, J as toolsRelations } from '../schema-BhCjDbs3.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, 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';
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';
package/dist/index.cjs CHANGED
@@ -23,8 +23,10 @@ var ai = require('ai');
23
23
  var exitHook = require('exit-hook');
24
24
  var tsPattern = require('ts-pattern');
25
25
  var zod = require('zod');
26
+ var module$1 = require('module');
26
27
  var node = require('@nangohq/node');
27
28
 
29
+ var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
28
30
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
29
31
 
30
32
  var jmespath__default = /*#__PURE__*/_interopDefault(jmespath);
@@ -32,123 +34,13 @@ var crypto__default = /*#__PURE__*/_interopDefault(crypto);
32
34
  var Ajv__default = /*#__PURE__*/_interopDefault(Ajv);
33
35
 
34
36
  var __defProp = Object.defineProperty;
35
- var __getOwnPropNames = Object.getOwnPropertyNames;
36
37
  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
- };
40
38
  var __export = (target, all) => {
41
39
  for (var name in all)
42
40
  __defProp(target, name, { get: all[name], enumerable: true });
43
41
  };
44
42
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
45
43
 
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-20250911232317",
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
-
152
44
  // src/utils/logger.ts
153
45
  var ConsoleLogger = class {
154
46
  constructor(name) {
@@ -7300,9 +7192,8 @@ function getTracer(serviceName, serviceVersion) {
7300
7192
  return noopTracer;
7301
7193
  }
7302
7194
  }
7303
-
7304
- // src/utils/tracer.ts
7305
- var pkg = require_package();
7195
+ var require2 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)));
7196
+ var pkg = require2("../../package.json");
7306
7197
  var tracer = getTracer("agents-core", pkg.version);
7307
7198
  var logger5 = getLogger("context-cache");
7308
7199
  var ContextCache = class {