@inkeep/agents-core 0.0.0-dev-20251010210603 → 0.0.0-dev-20251012022558

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 { subAgents, subAgentRelations, agentGraph, tasks, taskRelations, tools, conversations, messages, contextCache, dataComponents, subAgentDataComponents, artifactComponents, subAgentArtifactComponents, externalAgents, apiKeys, credentialReferences, functionTools, functions, contextConfigs, subAgentToolRelations, ledgerArtifacts, projects } from './chunk-ID4CFGVF.js';
1
+ import { subAgents, subAgentRelations, agentGraph, tasks, taskRelations, tools, conversations, messages, contextCache, dataComponents, subAgentDataComponents, artifactComponents, subAgentArtifactComponents, externalAgents, apiKeys, credentialReferences, functionTools, functions, contextConfigs, subAgentToolRelations, ledgerArtifacts, projects } from './chunk-OEKS3RQI.js';
2
2
  import { VALID_RELATION_TYPES, MCPTransportType, TOOL_STATUS_VALUES, CredentialStoreType, MCPServerType } from './chunk-YFHT5M2R.js';
3
3
  import { z } from '@hono/zod-openapi';
4
4
  import { createSelectSchema, createInsertSchema } from 'drizzle-zod';
@@ -0,0 +1,19 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropNames = Object.getOwnPropertyNames;
3
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
5
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
6
+ }) : x)(function(x) {
7
+ if (typeof require !== "undefined") return require.apply(this, arguments);
8
+ throw Error('Dynamic require of "' + x + '" is not supported');
9
+ });
10
+ var __commonJS = (cb, mod) => function __require2() {
11
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12
+ };
13
+ var __export = (target, all) => {
14
+ for (var name in all)
15
+ __defProp(target, name, { get: all[name], enumerable: true });
16
+ };
17
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
18
+
19
+ export { __commonJS, __export, __publicField, __require };
@@ -0,0 +1,27 @@
1
+ // src/constants/models.ts
2
+ var ANTHROPIC_MODELS = {
3
+ CLAUDE_OPUS_4_1: "anthropic/claude-opus-4-1-20250805",
4
+ CLAUDE_SONNET_4_5: "anthropic/claude-sonnet-4.5-20250531",
5
+ CLAUDE_SONNET_4: "anthropic/claude-sonnet-4-20250514",
6
+ CLAUDE_3_5_SONNET: "anthropic/claude-3-5-sonnet-20241022",
7
+ CLAUDE_3_5_HAIKU: "anthropic/claude-3-5-haiku-20241022"
8
+ };
9
+ var OPENAI_MODELS = {
10
+ GPT_5: "openai/gpt-5-2025-08-07",
11
+ GPT_5_MINI: "openai/gpt-5-mini-2025-08-07",
12
+ GPT_5_NANO: "openai/gpt-5-nano-2025-08-07",
13
+ GPT_4_1: "openai/gpt-4.1-2025-04-14",
14
+ GPT_4_1_MINI: "openai/gpt-4.1-mini-2025-04-14",
15
+ GPT_4_1_NANO: "openai/gpt-4.1-nano-2025-04-14",
16
+ GPT_4O: "gpt-4o",
17
+ GPT_4O_MINI: "gpt-4o-mini",
18
+ GPT_4_TURBO: "gpt-4-turbo",
19
+ GPT_3_5_TURBO: "gpt-3.5-turbo"
20
+ };
21
+ var GOOGLE_MODELS = {
22
+ GEMINI_2_5_PRO: "google/gemini-2.5-pro",
23
+ GEMINI_2_5_FLASH: "google/gemini-2.5-flash",
24
+ GEMINI_2_5_FLASH_LITE: "google/gemini-2.5-flash-lite"
25
+ };
26
+
27
+ export { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS };
@@ -1,4 +1,4 @@
1
- import { GraphWithinContextOfProjectSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-E4SFK6AI.js';
1
+ import { GraphWithinContextOfProjectSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-ASA7FU3H.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  var TransferDataSchema = z.object({
@@ -1,4 +1,4 @@
1
- import { __export } from './chunk-MKBO26DX.js';
1
+ import { __export } from './chunk-E6R6PML7.js';
2
2
  import { relations, sql } from 'drizzle-orm';
3
3
  import { sqliteTable, text, primaryKey, foreignKey, blob, integer, index, unique } from 'drizzle-orm/sqlite-core';
4
4
 
@@ -1,4 +1,4 @@
1
- import { __publicField } from './chunk-MKBO26DX.js';
1
+ import { __publicField } from './chunk-E6R6PML7.js';
2
2
  import { z } from 'zod';
3
3
  import pino from 'pino';
4
4
  import pinoPretty from 'pino-pretty';
@@ -1,6 +1,6 @@
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-H6PMWHNV.js';
2
- import { ModelSettingsSchema, FullGraphAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-E4SFK6AI.js';
3
- export { SubAgentStopWhenSchema as AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, GraphStopWhenSchema, ModelSettingsSchema, SandboxConfigSchema, StopWhenSchema, validatePropsAsJsonSchema } from './chunk-E4SFK6AI.js';
2
+ import { ModelSettingsSchema, FullGraphAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-ASA7FU3H.js';
3
+ export { SubAgentStopWhenSchema as AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, GraphStopWhenSchema, ModelSettingsSchema, SandboxConfigSchema, StopWhenSchema, validatePropsAsJsonSchema } from './chunk-ASA7FU3H.js';
4
4
  import { CredentialStoreType } from './chunk-YFHT5M2R.js';
5
5
  export { CredentialStoreType, MCPTransportType } from './chunk-YFHT5M2R.js';
6
6
  import { z } from 'zod';
@@ -0,0 +1,31 @@
1
+ 'use strict';
2
+
3
+ // src/constants/models.ts
4
+ var ANTHROPIC_MODELS = {
5
+ CLAUDE_OPUS_4_1: "anthropic/claude-opus-4-1-20250805",
6
+ CLAUDE_SONNET_4_5: "anthropic/claude-sonnet-4.5-20250531",
7
+ CLAUDE_SONNET_4: "anthropic/claude-sonnet-4-20250514",
8
+ CLAUDE_3_5_SONNET: "anthropic/claude-3-5-sonnet-20241022",
9
+ CLAUDE_3_5_HAIKU: "anthropic/claude-3-5-haiku-20241022"
10
+ };
11
+ var OPENAI_MODELS = {
12
+ GPT_5: "openai/gpt-5-2025-08-07",
13
+ GPT_5_MINI: "openai/gpt-5-mini-2025-08-07",
14
+ GPT_5_NANO: "openai/gpt-5-nano-2025-08-07",
15
+ GPT_4_1: "openai/gpt-4.1-2025-04-14",
16
+ GPT_4_1_MINI: "openai/gpt-4.1-mini-2025-04-14",
17
+ GPT_4_1_NANO: "openai/gpt-4.1-nano-2025-04-14",
18
+ GPT_4O: "gpt-4o",
19
+ GPT_4O_MINI: "gpt-4o-mini",
20
+ GPT_4_TURBO: "gpt-4-turbo",
21
+ GPT_3_5_TURBO: "gpt-3.5-turbo"
22
+ };
23
+ var GOOGLE_MODELS = {
24
+ GEMINI_2_5_PRO: "google/gemini-2.5-pro",
25
+ GEMINI_2_5_FLASH: "google/gemini-2.5-flash",
26
+ GEMINI_2_5_FLASH_LITE: "google/gemini-2.5-flash-lite"
27
+ };
28
+
29
+ exports.ANTHROPIC_MODELS = ANTHROPIC_MODELS;
30
+ exports.GOOGLE_MODELS = GOOGLE_MODELS;
31
+ exports.OPENAI_MODELS = OPENAI_MODELS;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Model name constants used throughout the Inkeep Agents SDK
3
+ */
4
+ declare const ANTHROPIC_MODELS: {
5
+ readonly CLAUDE_OPUS_4_1: "anthropic/claude-opus-4-1-20250805";
6
+ readonly CLAUDE_SONNET_4_5: "anthropic/claude-sonnet-4.5-20250531";
7
+ readonly CLAUDE_SONNET_4: "anthropic/claude-sonnet-4-20250514";
8
+ readonly CLAUDE_3_5_SONNET: "anthropic/claude-3-5-sonnet-20241022";
9
+ readonly CLAUDE_3_5_HAIKU: "anthropic/claude-3-5-haiku-20241022";
10
+ };
11
+ declare const OPENAI_MODELS: {
12
+ readonly GPT_5: "openai/gpt-5-2025-08-07";
13
+ readonly GPT_5_MINI: "openai/gpt-5-mini-2025-08-07";
14
+ readonly GPT_5_NANO: "openai/gpt-5-nano-2025-08-07";
15
+ readonly GPT_4_1: "openai/gpt-4.1-2025-04-14";
16
+ readonly GPT_4_1_MINI: "openai/gpt-4.1-mini-2025-04-14";
17
+ readonly GPT_4_1_NANO: "openai/gpt-4.1-nano-2025-04-14";
18
+ readonly GPT_4O: "gpt-4o";
19
+ readonly GPT_4O_MINI: "gpt-4o-mini";
20
+ readonly GPT_4_TURBO: "gpt-4-turbo";
21
+ readonly GPT_3_5_TURBO: "gpt-3.5-turbo";
22
+ };
23
+ declare const GOOGLE_MODELS: {
24
+ readonly GEMINI_2_5_PRO: "google/gemini-2.5-pro";
25
+ readonly GEMINI_2_5_FLASH: "google/gemini-2.5-flash";
26
+ readonly GEMINI_2_5_FLASH_LITE: "google/gemini-2.5-flash-lite";
27
+ };
28
+ type AnthropicModel = typeof ANTHROPIC_MODELS[keyof typeof ANTHROPIC_MODELS];
29
+ type OpenAIModel = typeof OPENAI_MODELS[keyof typeof OPENAI_MODELS];
30
+ type GoogleModel = typeof GOOGLE_MODELS[keyof typeof GOOGLE_MODELS];
31
+ type ModelName = AnthropicModel | OpenAIModel | GoogleModel;
32
+
33
+ export { ANTHROPIC_MODELS, type AnthropicModel, GOOGLE_MODELS, type GoogleModel, type ModelName, OPENAI_MODELS, type OpenAIModel };
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Model name constants used throughout the Inkeep Agents SDK
3
+ */
4
+ declare const ANTHROPIC_MODELS: {
5
+ readonly CLAUDE_OPUS_4_1: "anthropic/claude-opus-4-1-20250805";
6
+ readonly CLAUDE_SONNET_4_5: "anthropic/claude-sonnet-4.5-20250531";
7
+ readonly CLAUDE_SONNET_4: "anthropic/claude-sonnet-4-20250514";
8
+ readonly CLAUDE_3_5_SONNET: "anthropic/claude-3-5-sonnet-20241022";
9
+ readonly CLAUDE_3_5_HAIKU: "anthropic/claude-3-5-haiku-20241022";
10
+ };
11
+ declare const OPENAI_MODELS: {
12
+ readonly GPT_5: "openai/gpt-5-2025-08-07";
13
+ readonly GPT_5_MINI: "openai/gpt-5-mini-2025-08-07";
14
+ readonly GPT_5_NANO: "openai/gpt-5-nano-2025-08-07";
15
+ readonly GPT_4_1: "openai/gpt-4.1-2025-04-14";
16
+ readonly GPT_4_1_MINI: "openai/gpt-4.1-mini-2025-04-14";
17
+ readonly GPT_4_1_NANO: "openai/gpt-4.1-nano-2025-04-14";
18
+ readonly GPT_4O: "gpt-4o";
19
+ readonly GPT_4O_MINI: "gpt-4o-mini";
20
+ readonly GPT_4_TURBO: "gpt-4-turbo";
21
+ readonly GPT_3_5_TURBO: "gpt-3.5-turbo";
22
+ };
23
+ declare const GOOGLE_MODELS: {
24
+ readonly GEMINI_2_5_PRO: "google/gemini-2.5-pro";
25
+ readonly GEMINI_2_5_FLASH: "google/gemini-2.5-flash";
26
+ readonly GEMINI_2_5_FLASH_LITE: "google/gemini-2.5-flash-lite";
27
+ };
28
+ type AnthropicModel = typeof ANTHROPIC_MODELS[keyof typeof ANTHROPIC_MODELS];
29
+ type OpenAIModel = typeof OPENAI_MODELS[keyof typeof OPENAI_MODELS];
30
+ type GoogleModel = typeof GOOGLE_MODELS[keyof typeof GOOGLE_MODELS];
31
+ type ModelName = AnthropicModel | OpenAIModel | GoogleModel;
32
+
33
+ export { ANTHROPIC_MODELS, type AnthropicModel, GOOGLE_MODELS, type GoogleModel, type ModelName, OPENAI_MODELS, type OpenAIModel };
@@ -0,0 +1 @@
1
+ export { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS } from '../chunk-HYS7HUYJ.js';
package/dist/db/schema.js CHANGED
@@ -1 +1 @@
1
- export { agentFunctionToolRelations, agentFunctionToolRelationsRelations, agentGraph, agentGraphRelations, agentToolRelationsRelations, 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, subAgentRelations, subAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from '../chunk-ID4CFGVF.js';
1
+ export { agentFunctionToolRelations, agentFunctionToolRelationsRelations, agentGraph, agentGraphRelations, agentToolRelationsRelations, 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, subAgentRelations, subAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from '../chunk-OEKS3RQI.js';