@inkeep/agents-run-api 0.0.0-dev-20250912174511 → 0.0.0-dev-20250912184739

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
@@ -435,6 +435,10 @@ function createExecutionContext(params) {
435
435
  // src/middleware/api-key-auth.ts
436
436
  var logger2 = agentsCore.getLogger("env-key-auth");
437
437
  var apiKeyAuth = () => factory.createMiddleware(async (c, next) => {
438
+ if (c.req.method === "OPTIONS") {
439
+ await next();
440
+ return;
441
+ }
438
442
  const authHeader = c.req.header("Authorization");
439
443
  const tenantId = c.req.header("x-inkeep-tenant-id");
440
444
  const projectId = c.req.header("x-inkeep-project-id");
@@ -1211,7 +1215,6 @@ init_dbClient();
1211
1215
  // src/agents/Agent.ts
1212
1216
  init_conversations();
1213
1217
  init_dbClient();
1214
- var tracer = agentsCore.getTracer("agents-run-api");
1215
1218
  function agentInitializingOp(sessionId, graphId) {
1216
1219
  return {
1217
1220
  type: "agent_initializing",
@@ -1522,6 +1525,7 @@ var ModelFactory = _ModelFactory;
1522
1525
  // src/utils/graph-session.ts
1523
1526
  init_conversations();
1524
1527
  init_dbClient();
1528
+ var tracer = agentsCore.getTracer("agents-run-api");
1525
1529
 
1526
1530
  // src/utils/stream-registry.ts
1527
1531
  var streamHelperRegistry = /* @__PURE__ */ new Map();
package/dist/index.js CHANGED
@@ -135,6 +135,10 @@ function createExecutionContext(params) {
135
135
  // src/middleware/api-key-auth.ts
136
136
  var logger2 = getLogger$1("env-key-auth");
137
137
  var apiKeyAuth = () => createMiddleware(async (c, next) => {
138
+ if (c.req.method === "OPTIONS") {
139
+ await next();
140
+ return;
141
+ }
138
142
  const authHeader = c.req.header("Authorization");
139
143
  const tenantId = c.req.header("x-inkeep-tenant-id");
140
144
  const projectId = c.req.header("x-inkeep-project-id");
@@ -898,7 +902,6 @@ async function handleTasksResubscribe(c, agent, request) {
898
902
  });
899
903
  }
900
904
  }
901
- var tracer = getTracer("agents-run-api");
902
905
  function agentInitializingOp(sessionId, graphId) {
903
906
  return {
904
907
  type: "agent_initializing",
@@ -1205,6 +1208,7 @@ var _ModelFactory = class _ModelFactory {
1205
1208
  */
1206
1209
  __publicField(_ModelFactory, "SUPPORTED_PROVIDERS", ["anthropic", "openai"]);
1207
1210
  var ModelFactory = _ModelFactory;
1211
+ var tracer = getTracer("agents-run-api");
1208
1212
 
1209
1213
  // src/utils/stream-registry.ts
1210
1214
  var streamHelperRegistry = /* @__PURE__ */ new Map();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-run-api",
3
- "version": "0.0.0-dev-20250912174511",
3
+ "version": "0.0.0-dev-20250912184739",
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",
@@ -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-20250912174511"
47
+ "@inkeep/agents-core": "^0.0.0-dev-20250912184739"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@hono/vite-dev-server": "^0.20.1",