@inkeep/agents-run-api 0.0.0-dev-20250911221549 → 0.0.0-dev-20250911223509
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.
|
@@ -6,7 +6,11 @@ import * as dotenv from 'dotenv';
|
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
|
|
8
8
|
var __defProp = Object.defineProperty;
|
|
9
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
9
10
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
12
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
13
|
+
};
|
|
10
14
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
11
15
|
dotenv.config({ quiet: true });
|
|
12
16
|
z.enum(["development", "production"]).default("development");
|
|
@@ -236,4 +240,4 @@ ${formattedHistory}
|
|
|
236
240
|
`;
|
|
237
241
|
}
|
|
238
242
|
|
|
239
|
-
export { __publicField, createDefaultConversationHistoryConfig, dbClient_default, env, getFormattedConversationHistory, getFullConversationContext, getScopedHistory, getUserFacingHistory, saveA2AMessageResponse };
|
|
243
|
+
export { __commonJS, __publicField, createDefaultConversationHistoryConfig, dbClient_default, env, getFormattedConversationHistory, getFullConversationContext, getScopedHistory, getUserFacingHistory, saveA2AMessageResponse };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { createDefaultConversationHistoryConfig, getFormattedConversationHistory, getFullConversationContext, getScopedHistory, getUserFacingHistory, saveA2AMessageResponse } from './chunk-
|
|
1
|
+
export { createDefaultConversationHistoryConfig, getFormattedConversationHistory, getFullConversationContext, getScopedHistory, getUserFacingHistory, saveA2AMessageResponse } from './chunk-JURVTDOY.js';
|
package/dist/index.cjs
CHANGED
|
@@ -73,6 +73,9 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
|
|
|
73
73
|
var __esm = (fn, res) => function __init() {
|
|
74
74
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
75
75
|
};
|
|
76
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
77
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
78
|
+
};
|
|
76
79
|
var __export = (target, all) => {
|
|
77
80
|
for (var name in all)
|
|
78
81
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -329,6 +332,108 @@ var init_conversations = __esm({
|
|
|
329
332
|
}
|
|
330
333
|
});
|
|
331
334
|
|
|
335
|
+
// package.json
|
|
336
|
+
var require_package = __commonJS({
|
|
337
|
+
"package.json"(exports, module) {
|
|
338
|
+
module.exports = {
|
|
339
|
+
name: "@inkeep/agents-run-api",
|
|
340
|
+
version: "0.1.3",
|
|
341
|
+
description: "Execution API for Inkeep Agent Framework - handles chat, agent execution, and streaming",
|
|
342
|
+
main: "dist/index.js",
|
|
343
|
+
types: "dist/index.d.ts",
|
|
344
|
+
exports: {
|
|
345
|
+
".": "./dist/index.js"
|
|
346
|
+
},
|
|
347
|
+
type: "module",
|
|
348
|
+
license: "SEE LICENSE IN LICENSE.md",
|
|
349
|
+
scripts: {
|
|
350
|
+
dev: "vite",
|
|
351
|
+
"dev:with-bypass": "PORT=3003 vite",
|
|
352
|
+
"dev:without-bypass": "PORT=3004 INKEEP_AGENTS_RUN_BYPASS_SECRET= vite",
|
|
353
|
+
build: "tsup",
|
|
354
|
+
start: "node dist/server.js",
|
|
355
|
+
test: "./run-tests.sh",
|
|
356
|
+
"test:ci": "vitest --run --config vitest.config.ci.ts",
|
|
357
|
+
"test:watch": "vitest",
|
|
358
|
+
"test:coverage": "vitest --run --coverage",
|
|
359
|
+
typecheck: "tsc --noEmit"
|
|
360
|
+
},
|
|
361
|
+
dependencies: {
|
|
362
|
+
"@ai-sdk/anthropic": "2.0.2",
|
|
363
|
+
"@ai-sdk/openai": "2.0.11",
|
|
364
|
+
"@ai-sdk/react": "2.0.11",
|
|
365
|
+
"@hono/node-server": "^1.14.3",
|
|
366
|
+
"@hono/otel": "^0.4.0",
|
|
367
|
+
"@hono/swagger-ui": "^0.5.1",
|
|
368
|
+
"@hono/zod-openapi": "^1.0.2",
|
|
369
|
+
"@inkeep/agents-core": "workspace:^",
|
|
370
|
+
"@modelcontextprotocol/sdk": "^1.17.2",
|
|
371
|
+
"@opentelemetry/api": "^1.9.0",
|
|
372
|
+
"@opentelemetry/auto-instrumentations-node": "^0.62.0",
|
|
373
|
+
"@opentelemetry/baggage-span-processor": "^0.4.0",
|
|
374
|
+
"@opentelemetry/exporter-jaeger": "^2.0.1",
|
|
375
|
+
"@opentelemetry/exporter-trace-otlp-proto": "^0.203.0",
|
|
376
|
+
"@opentelemetry/sdk-metrics": "^2.0.1",
|
|
377
|
+
"@opentelemetry/sdk-node": "^0.203.0",
|
|
378
|
+
"@opentelemetry/sdk-trace-base": "^1.29.2",
|
|
379
|
+
"@opentelemetry/sdk-trace-node": "^2.0.1",
|
|
380
|
+
"@opentelemetry/semantic-conventions": "^1.34.0",
|
|
381
|
+
ai: "5.0.11",
|
|
382
|
+
ajv: "^8.17.1",
|
|
383
|
+
"ajv-formats": "^3.0.1",
|
|
384
|
+
destr: "^2.0.5",
|
|
385
|
+
dotenv: "^17.2.1",
|
|
386
|
+
"drizzle-orm": "^0.44.4",
|
|
387
|
+
"exit-hook": "^4.0.0",
|
|
388
|
+
"fetch-to-node": "^2.1.0",
|
|
389
|
+
hono: "^4.8.10",
|
|
390
|
+
"hono-pino": "^0.10.1",
|
|
391
|
+
jmespath: "^0.16.0",
|
|
392
|
+
nanoid: "^5.1.5",
|
|
393
|
+
pino: "^9.7.0",
|
|
394
|
+
traverse: "^0.6.11",
|
|
395
|
+
"ts-pattern": "^5.7.1",
|
|
396
|
+
zod: "^4.1.5"
|
|
397
|
+
},
|
|
398
|
+
devDependencies: {
|
|
399
|
+
"@hono/vite-dev-server": "^0.20.1",
|
|
400
|
+
"@types/ajv": "^1.0.4",
|
|
401
|
+
"@types/jmespath": "^0.15.2",
|
|
402
|
+
"@types/node": "^20.11.24",
|
|
403
|
+
"@types/traverse": "^0.6.37",
|
|
404
|
+
"@vitest/coverage-v8": "^2.0.0",
|
|
405
|
+
nodemon: "^3.1.0",
|
|
406
|
+
"pino-pretty": "^13.1.1",
|
|
407
|
+
tsx: "^4.7.1",
|
|
408
|
+
typescript: "^5.3.3",
|
|
409
|
+
vite: "^7.1.4",
|
|
410
|
+
"vite-tsconfig-paths": "^5.1.4",
|
|
411
|
+
vitest: "^3.1.4"
|
|
412
|
+
},
|
|
413
|
+
packageManager: "pnpm@10.11.0",
|
|
414
|
+
engines: {
|
|
415
|
+
node: ">=22.0.0"
|
|
416
|
+
},
|
|
417
|
+
publishConfig: {
|
|
418
|
+
access: "public",
|
|
419
|
+
registry: "https://registry.npmjs.org/"
|
|
420
|
+
},
|
|
421
|
+
files: [
|
|
422
|
+
"dist",
|
|
423
|
+
"templates",
|
|
424
|
+
"README.md",
|
|
425
|
+
"LICENSE.md",
|
|
426
|
+
"SUPPLEMENTAL_TERMS.md"
|
|
427
|
+
],
|
|
428
|
+
repository: {
|
|
429
|
+
type: "git",
|
|
430
|
+
url: "git+https://github.com/inkeep/agents.git",
|
|
431
|
+
directory: "agents-run-api"
|
|
432
|
+
}
|
|
433
|
+
};
|
|
434
|
+
}
|
|
435
|
+
});
|
|
436
|
+
|
|
332
437
|
// src/instrumentation.ts
|
|
333
438
|
init_env();
|
|
334
439
|
var otlpUrl = env.OTEL_EXPORTER_OTLP_ENDPOINT;
|
|
@@ -1217,11 +1322,8 @@ init_dbClient();
|
|
|
1217
1322
|
// src/agents/Agent.ts
|
|
1218
1323
|
init_conversations();
|
|
1219
1324
|
init_dbClient();
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
var package_default = {
|
|
1223
|
-
version: "0.1.3"};
|
|
1224
|
-
var tracer = agentsCore.getTracer("agents-run-api", package_default.version);
|
|
1325
|
+
var pkg = require_package();
|
|
1326
|
+
var tracer = agentsCore.getTracer("agents-run-api", pkg.version);
|
|
1225
1327
|
function agentInitializingOp(sessionId, graphId) {
|
|
1226
1328
|
return {
|
|
1227
1329
|
type: "agent_initializing",
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { env, __publicField, dbClient_default, getFormattedConversationHistory, createDefaultConversationHistoryConfig, saveA2AMessageResponse } from './chunk-
|
|
1
|
+
import { __commonJS, env, __publicField, dbClient_default, getFormattedConversationHistory, createDefaultConversationHistoryConfig, saveA2AMessageResponse } from './chunk-JURVTDOY.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';
|
|
@@ -33,6 +33,107 @@ import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/
|
|
|
33
33
|
import { z as z$2 } from 'zod/v3';
|
|
34
34
|
import { toReqRes, toFetchResponse } from 'fetch-to-node';
|
|
35
35
|
|
|
36
|
+
// package.json
|
|
37
|
+
var require_package = __commonJS({
|
|
38
|
+
"package.json"(exports, module) {
|
|
39
|
+
module.exports = {
|
|
40
|
+
name: "@inkeep/agents-run-api",
|
|
41
|
+
version: "0.1.3",
|
|
42
|
+
description: "Execution API for Inkeep Agent Framework - handles chat, agent execution, and streaming",
|
|
43
|
+
main: "dist/index.js",
|
|
44
|
+
types: "dist/index.d.ts",
|
|
45
|
+
exports: {
|
|
46
|
+
".": "./dist/index.js"
|
|
47
|
+
},
|
|
48
|
+
type: "module",
|
|
49
|
+
license: "SEE LICENSE IN LICENSE.md",
|
|
50
|
+
scripts: {
|
|
51
|
+
dev: "vite",
|
|
52
|
+
"dev:with-bypass": "PORT=3003 vite",
|
|
53
|
+
"dev:without-bypass": "PORT=3004 INKEEP_AGENTS_RUN_BYPASS_SECRET= vite",
|
|
54
|
+
build: "tsup",
|
|
55
|
+
start: "node dist/server.js",
|
|
56
|
+
test: "./run-tests.sh",
|
|
57
|
+
"test:ci": "vitest --run --config vitest.config.ci.ts",
|
|
58
|
+
"test:watch": "vitest",
|
|
59
|
+
"test:coverage": "vitest --run --coverage",
|
|
60
|
+
typecheck: "tsc --noEmit"
|
|
61
|
+
},
|
|
62
|
+
dependencies: {
|
|
63
|
+
"@ai-sdk/anthropic": "2.0.2",
|
|
64
|
+
"@ai-sdk/openai": "2.0.11",
|
|
65
|
+
"@ai-sdk/react": "2.0.11",
|
|
66
|
+
"@hono/node-server": "^1.14.3",
|
|
67
|
+
"@hono/otel": "^0.4.0",
|
|
68
|
+
"@hono/swagger-ui": "^0.5.1",
|
|
69
|
+
"@hono/zod-openapi": "^1.0.2",
|
|
70
|
+
"@inkeep/agents-core": "workspace:^",
|
|
71
|
+
"@modelcontextprotocol/sdk": "^1.17.2",
|
|
72
|
+
"@opentelemetry/api": "^1.9.0",
|
|
73
|
+
"@opentelemetry/auto-instrumentations-node": "^0.62.0",
|
|
74
|
+
"@opentelemetry/baggage-span-processor": "^0.4.0",
|
|
75
|
+
"@opentelemetry/exporter-jaeger": "^2.0.1",
|
|
76
|
+
"@opentelemetry/exporter-trace-otlp-proto": "^0.203.0",
|
|
77
|
+
"@opentelemetry/sdk-metrics": "^2.0.1",
|
|
78
|
+
"@opentelemetry/sdk-node": "^0.203.0",
|
|
79
|
+
"@opentelemetry/sdk-trace-base": "^1.29.2",
|
|
80
|
+
"@opentelemetry/sdk-trace-node": "^2.0.1",
|
|
81
|
+
"@opentelemetry/semantic-conventions": "^1.34.0",
|
|
82
|
+
ai: "5.0.11",
|
|
83
|
+
ajv: "^8.17.1",
|
|
84
|
+
"ajv-formats": "^3.0.1",
|
|
85
|
+
destr: "^2.0.5",
|
|
86
|
+
dotenv: "^17.2.1",
|
|
87
|
+
"drizzle-orm": "^0.44.4",
|
|
88
|
+
"exit-hook": "^4.0.0",
|
|
89
|
+
"fetch-to-node": "^2.1.0",
|
|
90
|
+
hono: "^4.8.10",
|
|
91
|
+
"hono-pino": "^0.10.1",
|
|
92
|
+
jmespath: "^0.16.0",
|
|
93
|
+
nanoid: "^5.1.5",
|
|
94
|
+
pino: "^9.7.0",
|
|
95
|
+
traverse: "^0.6.11",
|
|
96
|
+
"ts-pattern": "^5.7.1",
|
|
97
|
+
zod: "^4.1.5"
|
|
98
|
+
},
|
|
99
|
+
devDependencies: {
|
|
100
|
+
"@hono/vite-dev-server": "^0.20.1",
|
|
101
|
+
"@types/ajv": "^1.0.4",
|
|
102
|
+
"@types/jmespath": "^0.15.2",
|
|
103
|
+
"@types/node": "^20.11.24",
|
|
104
|
+
"@types/traverse": "^0.6.37",
|
|
105
|
+
"@vitest/coverage-v8": "^2.0.0",
|
|
106
|
+
nodemon: "^3.1.0",
|
|
107
|
+
"pino-pretty": "^13.1.1",
|
|
108
|
+
tsx: "^4.7.1",
|
|
109
|
+
typescript: "^5.3.3",
|
|
110
|
+
vite: "^7.1.4",
|
|
111
|
+
"vite-tsconfig-paths": "^5.1.4",
|
|
112
|
+
vitest: "^3.1.4"
|
|
113
|
+
},
|
|
114
|
+
packageManager: "pnpm@10.11.0",
|
|
115
|
+
engines: {
|
|
116
|
+
node: ">=22.0.0"
|
|
117
|
+
},
|
|
118
|
+
publishConfig: {
|
|
119
|
+
access: "public",
|
|
120
|
+
registry: "https://registry.npmjs.org/"
|
|
121
|
+
},
|
|
122
|
+
files: [
|
|
123
|
+
"dist",
|
|
124
|
+
"templates",
|
|
125
|
+
"README.md",
|
|
126
|
+
"LICENSE.md",
|
|
127
|
+
"SUPPLEMENTAL_TERMS.md"
|
|
128
|
+
],
|
|
129
|
+
repository: {
|
|
130
|
+
type: "git",
|
|
131
|
+
url: "git+https://github.com/inkeep/agents.git",
|
|
132
|
+
directory: "agents-run-api"
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
});
|
|
36
137
|
var otlpUrl = env.OTEL_EXPORTER_OTLP_ENDPOINT;
|
|
37
138
|
var otlpExporter = new OTLPTraceExporter({ url: otlpUrl });
|
|
38
139
|
var FanOutSpanProcessor = class {
|
|
@@ -899,11 +1000,8 @@ async function handleTasksResubscribe(c, agent, request) {
|
|
|
899
1000
|
});
|
|
900
1001
|
}
|
|
901
1002
|
}
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
var package_default = {
|
|
905
|
-
version: "0.1.3"};
|
|
906
|
-
var tracer = getTracer("agents-run-api", package_default.version);
|
|
1003
|
+
var pkg = require_package();
|
|
1004
|
+
var tracer = getTracer("agents-run-api", pkg.version);
|
|
907
1005
|
function agentInitializingOp(sessionId, graphId) {
|
|
908
1006
|
return {
|
|
909
1007
|
type: "agent_initializing",
|
|
@@ -2135,7 +2233,7 @@ ${this.statusUpdateState?.config.prompt?.trim() || ""}`;
|
|
|
2135
2233
|
);
|
|
2136
2234
|
}
|
|
2137
2235
|
span.setAttributes({ "validation.passed": true });
|
|
2138
|
-
const { getFormattedConversationHistory: getFormattedConversationHistory2 } = await import('./conversations-
|
|
2236
|
+
const { getFormattedConversationHistory: getFormattedConversationHistory2 } = await import('./conversations-XMUY6IPA.js');
|
|
2139
2237
|
const conversationHistory = await getFormattedConversationHistory2({
|
|
2140
2238
|
tenantId: artifactData.tenantId,
|
|
2141
2239
|
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-20250911223509",
|
|
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-20250911223509"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@hono/vite-dev-server": "^0.20.1",
|