@inkeep/agents-run-api 0.0.0-dev-20250912000125 → 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
- INKEEP_AGENTS_RUN_BYPASS_SECRET: z.string().optional(),
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-2MQ324HB.js';
1
+ export { createDefaultConversationHistoryConfig, getFormattedConversationHistory, getFullConversationContext, getScopedHistory, getUserFacingHistory, saveA2AMessageResponse } from './chunk-P6IQZWFC.js';
package/dist/index.cjs CHANGED
@@ -28,7 +28,6 @@ var streaming = require('hono/streaming');
28
28
  var destr = require('destr');
29
29
  var traverse = require('traverse');
30
30
  var ai = require('ai');
31
- var module$1 = require('module');
32
31
  var anthropic = require('@ai-sdk/anthropic');
33
32
  var openai = require('@ai-sdk/openai');
34
33
  var jmespath = require('jmespath');
@@ -110,7 +109,7 @@ var init_env = __esm({
110
109
  NANGO_SECRET_KEY: z5.z.string().optional(),
111
110
  OPENAI_API_KEY: z5.z.string().optional(),
112
111
  ANTHROPIC_API_KEY: z5.z.string(),
113
- INKEEP_AGENTS_RUN_BYPASS_SECRET: z5.z.string().optional(),
112
+ INKEEP_AGENTS_RUN_API_BYPASS_SECRET: z5.z.string().optional(),
114
113
  OTEL_MAX_EXPORT_BATCH_SIZE: z5.z.coerce.number().optional(),
115
114
  OTEL_EXPORTER_OTLP_ENDPOINT: z5.z.string().optional().default("http://localhost:14318/v1/traces")
116
115
  });
@@ -494,8 +493,8 @@ var apiKeyAuth = () => factory.createMiddleware(async (c, next) => {
494
493
  });
495
494
  }
496
495
  const apiKey = authHeader.substring(7);
497
- if (env.INKEEP_AGENTS_RUN_BYPASS_SECRET) {
498
- if (apiKey === env.INKEEP_AGENTS_RUN_BYPASS_SECRET) {
496
+ if (env.INKEEP_AGENTS_RUN_API_BYPASS_SECRET) {
497
+ if (apiKey === env.INKEEP_AGENTS_RUN_API_BYPASS_SECRET) {
499
498
  if (!tenantId || !projectId || !graphId) {
500
499
  throw new httpException.HTTPException(401, {
501
500
  message: "Missing or invalid tenant, project, or graph ID"
@@ -1218,9 +1217,11 @@ init_dbClient();
1218
1217
  // src/agents/Agent.ts
1219
1218
  init_conversations();
1220
1219
  init_dbClient();
1221
- 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)));
1222
- var pkg = require2("../../package.json");
1223
- var tracer = agentsCore.getTracer("agents-run-api", pkg.version);
1220
+
1221
+ // package.json
1222
+ var package_default = {
1223
+ version: "0.1.3"};
1224
+ var tracer = agentsCore.getTracer("agents-run-api", package_default.version);
1224
1225
  function agentInitializingOp(sessionId, graphId) {
1225
1226
  return {
1226
1227
  type: "agent_initializing",
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { env, __publicField, dbClient_default, getFormattedConversationHistory, createDefaultConversationHistoryConfig, saveA2AMessageResponse } from './chunk-2MQ324HB.js';
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';
@@ -22,7 +22,6 @@ import { nanoid } from 'nanoid';
22
22
  import destr from 'destr';
23
23
  import traverse from 'traverse';
24
24
  import { createUIMessageStream, JsonToSseTransformStream, parsePartialJson, generateText, generateObject, tool, streamText } from 'ai';
25
- import { createRequire } from 'module';
26
25
  import { createAnthropic, anthropic } from '@ai-sdk/anthropic';
27
26
  import { createOpenAI, openai } from '@ai-sdk/openai';
28
27
  import jmespath from 'jmespath';
@@ -189,8 +188,8 @@ var apiKeyAuth = () => createMiddleware(async (c, next) => {
189
188
  });
190
189
  }
191
190
  const apiKey = authHeader.substring(7);
192
- if (env.INKEEP_AGENTS_RUN_BYPASS_SECRET) {
193
- if (apiKey === env.INKEEP_AGENTS_RUN_BYPASS_SECRET) {
191
+ if (env.INKEEP_AGENTS_RUN_API_BYPASS_SECRET) {
192
+ if (apiKey === env.INKEEP_AGENTS_RUN_API_BYPASS_SECRET) {
194
193
  if (!tenantId || !projectId || !graphId) {
195
194
  throw new HTTPException(401, {
196
195
  message: "Missing or invalid tenant, project, or graph ID"
@@ -900,9 +899,11 @@ async function handleTasksResubscribe(c, agent, request) {
900
899
  });
901
900
  }
902
901
  }
903
- var require2 = createRequire(import.meta.url);
904
- var pkg = require2("../../package.json");
905
- var tracer = getTracer("agents-run-api", pkg.version);
902
+
903
+ // package.json
904
+ var package_default = {
905
+ version: "0.1.3"};
906
+ var tracer = getTracer("agents-run-api", package_default.version);
906
907
  function agentInitializingOp(sessionId, graphId) {
907
908
  return {
908
909
  type: "agent_initializing",
@@ -2134,7 +2135,7 @@ ${this.statusUpdateState?.config.prompt?.trim() || ""}`;
2134
2135
  );
2135
2136
  }
2136
2137
  span.setAttributes({ "validation.passed": true });
2137
- const { getFormattedConversationHistory: getFormattedConversationHistory2 } = await import('./conversations-WZLXOMZH.js');
2138
+ const { getFormattedConversationHistory: getFormattedConversationHistory2 } = await import('./conversations-EUPRCMQZ.js');
2138
2139
  const conversationHistory = await getFormattedConversationHistory2({
2139
2140
  tenantId: artifactData.tenantId,
2140
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-20250912000125",
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-20250912000125"
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 INKEEP_AGENTS_RUN_BYPASS_SECRET= vite",
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",