@inkeep/agents-run-api 0.0.0-dev-20250911192304 → 0.0.0-dev-20250911210702

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-run-api",
3
- "version": "0.0.0-dev-20250911192304",
3
+ "version": "0.0.0-dev-20250911210702",
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-20250911192304"
47
+ "@inkeep/agents-core": "^0.0.0-dev-20250911210702"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@hono/vite-dev-server": "^0.20.1",
@@ -1,70 +0,0 @@
1
- import { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node';
2
- import { BaggageSpanProcessor, ALLOW_ALL_BAGGAGE_KEYS } from '@opentelemetry/baggage-span-processor';
3
- import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-proto';
4
- import { NodeSDK } from '@opentelemetry/sdk-node';
5
- import { BatchSpanProcessor } from '@opentelemetry/sdk-trace-node';
6
-
7
- // src/instrumentation.ts
8
- var otlpUrl = process.env.OTEL_EXPORTER_OTLP_ENDPOINT || "http://localhost:14318/v1/traces";
9
- var otlpExporter = new OTLPTraceExporter({ url: otlpUrl });
10
- var FanOutSpanProcessor = class {
11
- constructor(inner) {
12
- this.inner = inner;
13
- }
14
- onStart(span, parent) {
15
- this.inner.forEach((p) => p.onStart(span, parent));
16
- }
17
- onEnd(span) {
18
- this.inner.forEach((p) => p.onEnd(span));
19
- }
20
- forceFlush() {
21
- return Promise.all(this.inner.map((p) => p.forceFlush?.())).then(() => {
22
- });
23
- }
24
- shutdown() {
25
- return Promise.all(this.inner.map((p) => p.shutdown?.())).then(() => {
26
- });
27
- }
28
- };
29
- var spanProcessor = new FanOutSpanProcessor([
30
- new BaggageSpanProcessor(ALLOW_ALL_BAGGAGE_KEYS),
31
- new BatchSpanProcessor(otlpExporter, {
32
- maxExportBatchSize: 1,
33
- // Send immediately (vs 512)
34
- scheduledDelayMillis: 100,
35
- // 100ms delay (vs 5000ms)
36
- exportTimeoutMillis: 5e3,
37
- // 5s timeout (vs 30s)
38
- maxQueueSize: 512
39
- // Smaller queue
40
- })
41
- ]);
42
- var sdk = new NodeSDK({
43
- serviceName: "inkeep-chat",
44
- spanProcessor,
45
- instrumentations: [
46
- getNodeAutoInstrumentations({
47
- "@opentelemetry/instrumentation-http": {
48
- enabled: true,
49
- requestHook: (span, request) => {
50
- const url = request?.url ?? request?.path;
51
- if (!url) return;
52
- const u = new URL(url, "http://localhost");
53
- span.updateName(`${request?.method || "UNKNOWN"} ${u.pathname}`);
54
- }
55
- },
56
- "@opentelemetry/instrumentation-undici": {
57
- requestHook: (span) => {
58
- const method = span.attributes?.["http.request.method"];
59
- const host = span.attributes?.["server.address"];
60
- const path = span.attributes?.["url.path"];
61
- if (method && path)
62
- span.updateName(host ? `${method} ${host}${path}` : `${method} ${path}`);
63
- }
64
- }
65
- })
66
- ]
67
- });
68
- sdk.start();
69
-
70
- export { sdk, spanProcessor };
@@ -1,5 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
-
5
- export { __publicField };
@@ -1 +0,0 @@
1
- export { sdk, spanProcessor } from './chunk-3COYP2VE.js';