@inkeep/agents-run-api 0.5.0 → 0.6.4

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/index.cjs CHANGED
@@ -283,6 +283,9 @@ var init_conversations = __esm({
283
283
  init_dbClient();
284
284
  }
285
285
  });
286
+
287
+ // src/index.ts
288
+ init_env();
286
289
  var otlpExporter = new exporterTraceOtlpHttp.OTLPTraceExporter();
287
290
  var defaultBatchProcessor = new sdkTraceBase.BatchSpanProcessor(otlpExporter);
288
291
  var defaultResource = resources.resourceFromAttributes({
@@ -325,6 +328,8 @@ new sdkNode.NodeSDK({
325
328
  spanProcessors: defaultSpanProcessors,
326
329
  instrumentations: defaultInstrumentations
327
330
  });
331
+
332
+ // src/middleware/api-key-auth.ts
328
333
  init_dbClient();
329
334
  init_env();
330
335
 
@@ -359,6 +364,7 @@ var apiKeyAuth = () => factory.createMiddleware(async (c, next) => {
359
364
  if (authHeader?.startsWith("Bearer ")) {
360
365
  try {
361
366
  executionContext = await extractContextFromApiKey(authHeader.substring(7));
367
+ executionContext.agentId = agentId;
362
368
  logger.info({}, "Development/test environment - API key authenticated successfully");
363
369
  } catch {
364
370
  executionContext = createExecutionContext({
package/dist/index.js CHANGED
@@ -59,6 +59,7 @@ var apiKeyAuth = () => createMiddleware(async (c, next) => {
59
59
  if (authHeader?.startsWith("Bearer ")) {
60
60
  try {
61
61
  executionContext = await extractContextFromApiKey(authHeader.substring(7));
62
+ executionContext.agentId = agentId;
62
63
  logger.info({}, "Development/test environment - API key authenticated successfully");
63
64
  } catch {
64
65
  executionContext = createExecutionContext({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-run-api",
3
- "version": "0.5.0",
3
+ "version": "0.6.4",
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.5.0"
55
+ "@inkeep/agents-core": "^0.6.4"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@hono/vite-dev-server": "^0.20.1",
@@ -94,7 +94,7 @@
94
94
  "dev:with-bypass": "PORT=3003 vite",
95
95
  "dev:without-bypass": "PORT=3004 INKEEP_AGENTS_RUN_API_BYPASS_SECRET= vite",
96
96
  "build": "tsup",
97
- "start": "node dist/server.js",
97
+ "start": "node dist/index.js",
98
98
  "test": "./run-tests.sh",
99
99
  "test:ci": "vitest --run --config vitest.config.ci.ts",
100
100
  "test:watch": "vitest",