@inkeep/agents-run-api 0.37.0 → 0.37.2
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/{SandboxExecutorFactory-NUNGK35F.js → SandboxExecutorFactory-A2LTPE2X.js} +3 -4
- package/dist/{chunk-OAAX46OE.js → chunk-BQB27EXW.js} +3 -3
- package/dist/{chunk-HUZGFAUJ.js → chunk-CDYXP4BN.js} +2 -1
- package/dist/{chunk-2LBNQ773.js → chunk-QOUOKHYQ.js} +1 -1
- package/dist/{chunk-IVALDC72.js → chunk-SUUSOBLI.js} +1 -1
- package/dist/{chunk-D3AB2AZW.js → chunk-W6UIBREL.js} +1 -1
- package/dist/{conversations-YFQ52RQB.js → conversations-33GSAG2C.js} +1 -1
- package/dist/dbClient-47AP7OHJ.js +1 -0
- package/dist/index.cjs +673 -538
- package/dist/index.js +570 -432
- package/dist/instrumentation.cjs +19 -18
- package/dist/instrumentation.js +1 -1
- package/package.json +6 -4
- package/dist/dbClient-XK4IR7QF.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getLogger } from './chunk-A2S7GSHL.js';
|
|
2
|
-
import { FUNCTION_TOOL_SANDBOX_POOL_TTL_MS, FUNCTION_TOOL_SANDBOX_MAX_USE_COUNT, FUNCTION_TOOL_SANDBOX_CLEANUP_INTERVAL_MS, FUNCTION_TOOL_EXECUTION_TIMEOUT_MS_DEFAULT, FUNCTION_TOOL_SANDBOX_MAX_OUTPUT_SIZE_BYTES, FUNCTION_TOOL_SANDBOX_QUEUE_WAIT_TIMEOUT_MS } from './chunk-
|
|
2
|
+
import { FUNCTION_TOOL_SANDBOX_POOL_TTL_MS, FUNCTION_TOOL_SANDBOX_MAX_USE_COUNT, FUNCTION_TOOL_SANDBOX_CLEANUP_INTERVAL_MS, FUNCTION_TOOL_EXECUTION_TIMEOUT_MS_DEFAULT, FUNCTION_TOOL_SANDBOX_MAX_OUTPUT_SIZE_BYTES, FUNCTION_TOOL_SANDBOX_QUEUE_WAIT_TIMEOUT_MS } from './chunk-SUUSOBLI.js';
|
|
3
3
|
import { spawn } from 'child_process';
|
|
4
4
|
import crypto, { createHash } from 'crypto';
|
|
5
5
|
import { mkdirSync, existsSync, rmSync, writeFileSync } from 'fs';
|
|
@@ -172,10 +172,9 @@ var NativeSandboxExecutor = class _NativeSandboxExecutor {
|
|
|
172
172
|
"Reusing cached sandbox"
|
|
173
173
|
);
|
|
174
174
|
return sandbox.sandboxDir;
|
|
175
|
-
} else {
|
|
176
|
-
this.cleanupSandbox(sandbox.sandboxDir);
|
|
177
|
-
delete this.sandboxPool[poolKey];
|
|
178
175
|
}
|
|
176
|
+
this.cleanupSandbox(sandbox.sandboxDir);
|
|
177
|
+
delete this.sandboxPool[poolKey];
|
|
179
178
|
}
|
|
180
179
|
return null;
|
|
181
180
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { dbClient_default } from './chunk-
|
|
2
|
-
import { CONVERSATION_HISTORY_DEFAULT_LIMIT } from './chunk-
|
|
1
|
+
import { dbClient_default } from './chunk-W6UIBREL.js';
|
|
2
|
+
import { CONVERSATION_HISTORY_DEFAULT_LIMIT } from './chunk-SUUSOBLI.js';
|
|
3
3
|
import { CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT, createMessage, generateId, getConversationHistory } from '@inkeep/agents-core';
|
|
4
4
|
|
|
5
5
|
function createDefaultConversationHistoryConfig(mode = "full") {
|
|
@@ -208,7 +208,7 @@ async function getConversationScopedArtifacts(params) {
|
|
|
208
208
|
return [];
|
|
209
209
|
}
|
|
210
210
|
const { getLedgerArtifacts } = await import('@inkeep/agents-core');
|
|
211
|
-
const dbClient = (await import('./dbClient-
|
|
211
|
+
const dbClient = (await import('./dbClient-47AP7OHJ.js')).default;
|
|
212
212
|
const visibleTaskIds = visibleMessages.map((msg) => msg.taskId).filter((taskId) => Boolean(taskId));
|
|
213
213
|
const referenceArtifacts = [];
|
|
214
214
|
for (const taskId of visibleTaskIds) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { loadEnvironmentFiles } from '@inkeep/agents-core';
|
|
2
|
-
import { z } from 'zod';
|
|
2
|
+
import { z } from '@hono/zod-openapi';
|
|
3
3
|
|
|
4
4
|
// src/env.ts
|
|
5
5
|
loadEnvironmentFiles();
|
|
@@ -8,6 +8,7 @@ var envSchema = z.object({
|
|
|
8
8
|
ENVIRONMENT: z.enum(["development", "production", "pentest", "test"]).optional().default("development"),
|
|
9
9
|
DATABASE_URL: z.string().optional(),
|
|
10
10
|
INKEEP_AGENTS_RUN_API_URL: z.string().optional().default("http://localhost:3003"),
|
|
11
|
+
AGENTS_MANAGE_UI_URL: z.string().optional().default("http://localhost:3000"),
|
|
11
12
|
LOG_LEVEL: z.enum(["trace", "debug", "info", "warn", "error"]).optional().default("debug"),
|
|
12
13
|
NANGO_SERVER_URL: z.string().optional().default("https://api.nango.dev"),
|
|
13
14
|
NANGO_SECRET_KEY: z.string().optional(),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { env } from './chunk-
|
|
1
|
+
import { env } from './chunk-CDYXP4BN.js';
|
|
2
2
|
import { getLogger } from './chunk-A2S7GSHL.js';
|
|
3
3
|
import { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node';
|
|
4
4
|
import { BaggageSpanProcessor, ALLOW_ALL_BAGGAGE_KEYS } from '@opentelemetry/baggage-span-processor';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { env } from './chunk-
|
|
1
|
+
import { env } from './chunk-CDYXP4BN.js';
|
|
2
2
|
import { F, u, R, x, T, h, U, L, or, C, Vr, ce, ur, P } from './chunk-SBJLXGYG.js';
|
|
3
3
|
import { createDatabaseClient } from '@inkeep/agents-core';
|
|
4
4
|
import * as schema from '@inkeep/agents-core/db/schema';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { createDefaultConversationHistoryConfig, getConversationScopedArtifacts, getFormattedConversationHistory, getFullConversationContext, getScopedHistory, getUserFacingHistory, saveA2AMessageResponse } from './chunk-
|
|
1
|
+
export { createDefaultConversationHistoryConfig, getConversationScopedArtifacts, getFormattedConversationHistory, getFullConversationContext, getScopedHistory, getUserFacingHistory, saveA2AMessageResponse } from './chunk-BQB27EXW.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { dbClient_default as default } from './chunk-W6UIBREL.js';
|