@inkeep/agents-run-api 0.0.0-dev-20250912005306 → 0.0.0-dev-20250912011812
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.
|
@@ -36,7 +36,7 @@ var envSchema = z.object({
|
|
|
36
36
|
NANGO_SECRET_KEY: z.string().optional(),
|
|
37
37
|
OPENAI_API_KEY: z.string().optional(),
|
|
38
38
|
ANTHROPIC_API_KEY: z.string(),
|
|
39
|
-
|
|
39
|
+
INKEEP_AGENTS_RUN_API_BYPASS_SECRET: z.string().optional(),
|
|
40
40
|
OTEL_MAX_EXPORT_BATCH_SIZE: z.coerce.number().optional(),
|
|
41
41
|
OTEL_EXPORTER_OTLP_ENDPOINT: z.string().optional().default("http://localhost:14318/v1/traces")
|
|
42
42
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { createDefaultConversationHistoryConfig, getFormattedConversationHistory, getFullConversationContext, getScopedHistory, getUserFacingHistory, saveA2AMessageResponse } from './chunk-
|
|
1
|
+
export { createDefaultConversationHistoryConfig, getFormattedConversationHistory, getFullConversationContext, getScopedHistory, getUserFacingHistory, saveA2AMessageResponse } from './chunk-P6IQZWFC.js';
|
package/dist/index.cjs
CHANGED
|
@@ -109,7 +109,7 @@ var init_env = __esm({
|
|
|
109
109
|
NANGO_SECRET_KEY: z5.z.string().optional(),
|
|
110
110
|
OPENAI_API_KEY: z5.z.string().optional(),
|
|
111
111
|
ANTHROPIC_API_KEY: z5.z.string(),
|
|
112
|
-
|
|
112
|
+
INKEEP_AGENTS_RUN_API_BYPASS_SECRET: z5.z.string().optional(),
|
|
113
113
|
OTEL_MAX_EXPORT_BATCH_SIZE: z5.z.coerce.number().optional(),
|
|
114
114
|
OTEL_EXPORTER_OTLP_ENDPOINT: z5.z.string().optional().default("http://localhost:14318/v1/traces")
|
|
115
115
|
});
|
|
@@ -493,8 +493,8 @@ var apiKeyAuth = () => factory.createMiddleware(async (c, next) => {
|
|
|
493
493
|
});
|
|
494
494
|
}
|
|
495
495
|
const apiKey = authHeader.substring(7);
|
|
496
|
-
if (env.
|
|
497
|
-
if (apiKey === env.
|
|
496
|
+
if (env.INKEEP_AGENTS_RUN_API_BYPASS_SECRET) {
|
|
497
|
+
if (apiKey === env.INKEEP_AGENTS_RUN_API_BYPASS_SECRET) {
|
|
498
498
|
if (!tenantId || !projectId || !graphId) {
|
|
499
499
|
throw new httpException.HTTPException(401, {
|
|
500
500
|
message: "Missing or invalid tenant, project, or graph ID"
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { env, __publicField, dbClient_default, getFormattedConversationHistory, createDefaultConversationHistoryConfig, saveA2AMessageResponse } from './chunk-
|
|
1
|
+
import { env, __publicField, dbClient_default, getFormattedConversationHistory, createDefaultConversationHistoryConfig, saveA2AMessageResponse } from './chunk-P6IQZWFC.js';
|
|
2
2
|
import { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node';
|
|
3
3
|
import { BaggageSpanProcessor, ALLOW_ALL_BAGGAGE_KEYS } from '@opentelemetry/baggage-span-processor';
|
|
4
4
|
import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-proto';
|
|
@@ -188,8 +188,8 @@ var apiKeyAuth = () => createMiddleware(async (c, next) => {
|
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
190
|
const apiKey = authHeader.substring(7);
|
|
191
|
-
if (env.
|
|
192
|
-
if (apiKey === env.
|
|
191
|
+
if (env.INKEEP_AGENTS_RUN_API_BYPASS_SECRET) {
|
|
192
|
+
if (apiKey === env.INKEEP_AGENTS_RUN_API_BYPASS_SECRET) {
|
|
193
193
|
if (!tenantId || !projectId || !graphId) {
|
|
194
194
|
throw new HTTPException(401, {
|
|
195
195
|
message: "Missing or invalid tenant, project, or graph ID"
|
|
@@ -2135,7 +2135,7 @@ ${this.statusUpdateState?.config.prompt?.trim() || ""}`;
|
|
|
2135
2135
|
);
|
|
2136
2136
|
}
|
|
2137
2137
|
span.setAttributes({ "validation.passed": true });
|
|
2138
|
-
const { getFormattedConversationHistory: getFormattedConversationHistory2 } = await import('./conversations-
|
|
2138
|
+
const { getFormattedConversationHistory: getFormattedConversationHistory2 } = await import('./conversations-EUPRCMQZ.js');
|
|
2139
2139
|
const conversationHistory = await getFormattedConversationHistory2({
|
|
2140
2140
|
tenantId: artifactData.tenantId,
|
|
2141
2141
|
projectId: artifactData.projectId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-run-api",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20250912011812",
|
|
4
4
|
"description": "Execution API for Inkeep Agent Framework - handles chat, agent execution, and streaming",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"traverse": "^0.6.11",
|
|
45
45
|
"ts-pattern": "^5.7.1",
|
|
46
46
|
"zod": "^4.1.5",
|
|
47
|
-
"@inkeep/agents-core": "^0.0.0-dev-
|
|
47
|
+
"@inkeep/agents-core": "^0.0.0-dev-20250912011812"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@hono/vite-dev-server": "^0.20.1",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"scripts": {
|
|
84
84
|
"dev": "vite",
|
|
85
85
|
"dev:with-bypass": "PORT=3003 vite",
|
|
86
|
-
"dev:without-bypass": "PORT=3004
|
|
86
|
+
"dev:without-bypass": "PORT=3004 INKEEP_AGENTS_RUN_API_BYPASS_SECRET= vite",
|
|
87
87
|
"build": "tsup",
|
|
88
88
|
"start": "node dist/server.js",
|
|
89
89
|
"test": "./run-tests.sh",
|