@inkeep/agents-run-api 0.8.4 → 0.8.5
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-OFGZSGQI.js → chunk-F46V23RK.js} +2 -2
- package/dist/{chunk-PEMWKWTV.js → chunk-TWVQBIUL.js} +6 -1
- package/dist/{conversations-W5BDU2IU.js → conversations-AP5WZGWA.js} +1 -1
- package/dist/dbClient-GGR4KMBD.js +1 -0
- package/dist/index.cjs +6 -1
- package/dist/index.js +3 -3
- package/package.json +2 -2
- package/dist/dbClient-LO5HXH2I.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dbClient_default } from './chunk-
|
|
1
|
+
import { dbClient_default } from './chunk-TWVQBIUL.js';
|
|
2
2
|
import { createMessage, getConversationHistory } from '@inkeep/agents-core';
|
|
3
3
|
import { nanoid } from 'nanoid';
|
|
4
4
|
|
|
@@ -189,7 +189,7 @@ async function getConversationScopedArtifacts(params) {
|
|
|
189
189
|
return [];
|
|
190
190
|
}
|
|
191
191
|
const { getLedgerArtifacts } = await import('@inkeep/agents-core');
|
|
192
|
-
const dbClient = (await import('./dbClient-
|
|
192
|
+
const dbClient = (await import('./dbClient-GGR4KMBD.js')).default;
|
|
193
193
|
const visibleTaskIds = visibleMessages.map((msg) => msg.taskId).filter((taskId) => Boolean(taskId));
|
|
194
194
|
const referenceArtifacts = [];
|
|
195
195
|
for (const taskId of visibleTaskIds) {
|
|
@@ -6,7 +6,7 @@ loadEnvironmentFiles();
|
|
|
6
6
|
var envSchema = z.object({
|
|
7
7
|
NODE_ENV: z.enum(["development", "production", "test"]).optional(),
|
|
8
8
|
ENVIRONMENT: z.enum(["development", "production", "pentest", "test"]).optional().default("development"),
|
|
9
|
-
DB_FILE_NAME: z.string(),
|
|
9
|
+
DB_FILE_NAME: z.string().optional(),
|
|
10
10
|
TURSO_DATABASE_URL: z.string().optional(),
|
|
11
11
|
TURSO_AUTH_TOKEN: z.string().optional(),
|
|
12
12
|
AGENTS_RUN_API_URL: z.string().optional().default("http://localhost:3003"),
|
|
@@ -44,6 +44,11 @@ var getDbConfig = () => {
|
|
|
44
44
|
authToken: env.TURSO_AUTH_TOKEN
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
+
if (!env.DB_FILE_NAME) {
|
|
48
|
+
throw new Error(
|
|
49
|
+
"Database configuration error: DB_FILE_NAME must be set if Turso is not configured."
|
|
50
|
+
);
|
|
51
|
+
}
|
|
47
52
|
return {
|
|
48
53
|
url: env.DB_FILE_NAME
|
|
49
54
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { createDefaultConversationHistoryConfig, getConversationScopedArtifacts, getFormattedConversationHistory, getFullConversationContext, getScopedHistory, getUserFacingHistory, saveA2AMessageResponse } from './chunk-
|
|
1
|
+
export { createDefaultConversationHistoryConfig, getConversationScopedArtifacts, getFormattedConversationHistory, getFullConversationContext, getScopedHistory, getUserFacingHistory, saveA2AMessageResponse } from './chunk-F46V23RK.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { dbClient_default as default } from './chunk-TWVQBIUL.js';
|
package/dist/index.cjs
CHANGED
|
@@ -63,7 +63,7 @@ var init_env = __esm({
|
|
|
63
63
|
envSchema = z5.z.object({
|
|
64
64
|
NODE_ENV: z5.z.enum(["development", "production", "test"]).optional(),
|
|
65
65
|
ENVIRONMENT: z5.z.enum(["development", "production", "pentest", "test"]).optional().default("development"),
|
|
66
|
-
DB_FILE_NAME: z5.z.string(),
|
|
66
|
+
DB_FILE_NAME: z5.z.string().optional(),
|
|
67
67
|
TURSO_DATABASE_URL: z5.z.string().optional(),
|
|
68
68
|
TURSO_AUTH_TOKEN: z5.z.string().optional(),
|
|
69
69
|
AGENTS_RUN_API_URL: z5.z.string().optional().default("http://localhost:3003"),
|
|
@@ -121,6 +121,11 @@ var init_dbClient = __esm({
|
|
|
121
121
|
authToken: env.TURSO_AUTH_TOKEN
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
+
if (!env.DB_FILE_NAME) {
|
|
125
|
+
throw new Error(
|
|
126
|
+
"Database configuration error: DB_FILE_NAME must be set if Turso is not configured."
|
|
127
|
+
);
|
|
128
|
+
}
|
|
124
129
|
return {
|
|
125
130
|
url: env.DB_FILE_NAME
|
|
126
131
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defaultBatchProcessor } from './chunk-5RGAMXUL.js';
|
|
2
2
|
import { getLogger } from './chunk-A2S7GSHL.js';
|
|
3
|
-
import { getFormattedConversationHistory, createDefaultConversationHistoryConfig, saveA2AMessageResponse } from './chunk-
|
|
4
|
-
import { dbClient_default, env } from './chunk-
|
|
3
|
+
import { getFormattedConversationHistory, createDefaultConversationHistoryConfig, saveA2AMessageResponse } from './chunk-F46V23RK.js';
|
|
4
|
+
import { dbClient_default, env } from './chunk-TWVQBIUL.js';
|
|
5
5
|
import { __publicField } from './chunk-PKBMQBKP.js';
|
|
6
6
|
import { getLogger as getLogger$1, getTracer, HeadersScopeSchema, getRequestExecutionContext, createApiError, getAgentGraphWithDefaultAgent, contextValidationMiddleware, getFullGraph, createOrGetConversation, getActiveAgentForConversation, setActiveAgentForConversation, getAgentById, handleContextResolution, createMessage, commonGetErrorResponses, loggerFactory, createDefaultCredentialStores, CredentialStoreRegistry, listTaskIdsByContextId, getTask, getLedgerArtifacts, upsertLedgerArtifact, getAgentGraphById, createTask, updateTask, setSpanWithError, updateConversation, handleApiError, TaskState, setActiveAgentForThread, getConversation, getRelatedAgentsForGraph, getToolsForAgent, getDataComponentsForAgent, getArtifactComponentsForAgent, dbResultToMcpTool, validateAndGetApiKey, getProject, ContextResolver, CredentialStuffer, MCPServerType, getCredentialReference, McpClient, getContextConfigById, getFullGraphDefinition, TemplateEngine, graphHasArtifactComponents, MCPTransportType, getExternalAgent } from '@inkeep/agents-core';
|
|
7
7
|
import { otel } from '@hono/otel';
|
|
@@ -6613,7 +6613,7 @@ var Agent = class {
|
|
|
6613
6613
|
inputSchema: tool3.inputSchema || tool3.parameters || {},
|
|
6614
6614
|
usageGuidelines: name.startsWith("transfer_to_") || name.startsWith("delegate_to_") ? `Use this tool to ${name.startsWith("transfer_to_") ? "transfer" : "delegate"} to another agent when appropriate.` : "Use this tool when appropriate for the task at hand."
|
|
6615
6615
|
}));
|
|
6616
|
-
const { getConversationScopedArtifacts } = await import('./conversations-
|
|
6616
|
+
const { getConversationScopedArtifacts } = await import('./conversations-AP5WZGWA.js');
|
|
6617
6617
|
const historyConfig = this.config.conversationHistoryConfig ?? createDefaultConversationHistoryConfig();
|
|
6618
6618
|
const referenceArtifacts = await getConversationScopedArtifacts({
|
|
6619
6619
|
tenantId: this.config.tenantId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-run-api",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.5",
|
|
4
4
|
"description": "Agents Run API for Inkeep Agent Framework - handles chat, agent execution, and streaming",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"traverse": "^0.6.11",
|
|
53
53
|
"ts-pattern": "^5.7.1",
|
|
54
54
|
"zod": "^4.1.5",
|
|
55
|
-
"@inkeep/agents-core": "^0.8.
|
|
55
|
+
"@inkeep/agents-core": "^0.8.5"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@hono/vite-dev-server": "^0.20.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { dbClient_default as default } from './chunk-PEMWKWTV.js';
|