@inkeep/agents-run-api 0.0.0-dev-20250911232805 → 0.0.0-dev-20250912005306
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,11 +6,7 @@ import * as dotenv from 'dotenv';
|
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
|
|
8
8
|
var __defProp = Object.defineProperty;
|
|
9
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
10
9
|
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
|
-
};
|
|
14
10
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
15
11
|
dotenv.config({ quiet: true });
|
|
16
12
|
z.enum(["development", "production"]).default("development");
|
|
@@ -240,4 +236,4 @@ ${formattedHistory}
|
|
|
240
236
|
`;
|
|
241
237
|
}
|
|
242
238
|
|
|
243
|
-
export {
|
|
239
|
+
export { __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-2MQ324HB.js';
|
package/dist/index.cjs
CHANGED
|
@@ -73,9 +73,6 @@ 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
|
-
};
|
|
79
76
|
var __export = (target, all) => {
|
|
80
77
|
for (var name in all)
|
|
81
78
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -332,108 +329,6 @@ var init_conversations = __esm({
|
|
|
332
329
|
}
|
|
333
330
|
});
|
|
334
331
|
|
|
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
|
-
|
|
437
332
|
// src/instrumentation.ts
|
|
438
333
|
init_env();
|
|
439
334
|
var otlpUrl = env.OTEL_EXPORTER_OTLP_ENDPOINT;
|
|
@@ -1322,8 +1217,11 @@ init_dbClient();
|
|
|
1322
1217
|
// src/agents/Agent.ts
|
|
1323
1218
|
init_conversations();
|
|
1324
1219
|
init_dbClient();
|
|
1325
|
-
|
|
1326
|
-
|
|
1220
|
+
|
|
1221
|
+
// package.json
|
|
1222
|
+
var package_default = {
|
|
1223
|
+
version: "0.1.3"};
|
|
1224
|
+
var tracer = agentsCore.getTracer("agents-run-api", package_default.version);
|
|
1327
1225
|
function agentInitializingOp(sessionId, graphId) {
|
|
1328
1226
|
return {
|
|
1329
1227
|
type: "agent_initializing",
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { env, __publicField, dbClient_default, getFormattedConversationHistory, createDefaultConversationHistoryConfig, saveA2AMessageResponse } from './chunk-2MQ324HB.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,107 +33,6 @@ 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
|
-
});
|
|
137
36
|
var otlpUrl = env.OTEL_EXPORTER_OTLP_ENDPOINT;
|
|
138
37
|
var otlpExporter = new OTLPTraceExporter({ url: otlpUrl });
|
|
139
38
|
var FanOutSpanProcessor = class {
|
|
@@ -1000,8 +899,11 @@ async function handleTasksResubscribe(c, agent, request) {
|
|
|
1000
899
|
});
|
|
1001
900
|
}
|
|
1002
901
|
}
|
|
1003
|
-
|
|
1004
|
-
|
|
902
|
+
|
|
903
|
+
// package.json
|
|
904
|
+
var package_default = {
|
|
905
|
+
version: "0.1.3"};
|
|
906
|
+
var tracer = getTracer("agents-run-api", package_default.version);
|
|
1005
907
|
function agentInitializingOp(sessionId, graphId) {
|
|
1006
908
|
return {
|
|
1007
909
|
type: "agent_initializing",
|
|
@@ -2233,7 +2135,7 @@ ${this.statusUpdateState?.config.prompt?.trim() || ""}`;
|
|
|
2233
2135
|
);
|
|
2234
2136
|
}
|
|
2235
2137
|
span.setAttributes({ "validation.passed": true });
|
|
2236
|
-
const { getFormattedConversationHistory: getFormattedConversationHistory2 } = await import('./conversations-
|
|
2138
|
+
const { getFormattedConversationHistory: getFormattedConversationHistory2 } = await import('./conversations-WZLXOMZH.js');
|
|
2237
2139
|
const conversationHistory = await getFormattedConversationHistory2({
|
|
2238
2140
|
tenantId: artifactData.tenantId,
|
|
2239
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-20250912005306",
|
|
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-20250912005306"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@hono/vite-dev-server": "^0.20.1",
|