@inkeep/agents-api 0.0.0-dev-20260402165145 → 0.0.0-dev-20260402205032

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.
Files changed (33) hide show
  1. package/dist/.well-known/workflow/v1/manifest.json +42 -42
  2. package/dist/data/db/manageDbClient.d.ts +2 -2
  3. package/dist/data/db/runDbClient.d.ts +2 -2
  4. package/dist/data-reconciliation/handlers/agent.d.ts +2 -2
  5. package/dist/data-reconciliation/handlers/context-configs.d.ts +2 -2
  6. package/dist/data-reconciliation/handlers/tools.d.ts +2 -2
  7. package/dist/domains/evals/routes/index.d.ts +2 -2
  8. package/dist/domains/evals/workflow/routes.d.ts +2 -2
  9. package/dist/domains/manage/routes/authLookup.d.ts +2 -2
  10. package/dist/domains/manage/routes/availableAgents.d.ts +2 -2
  11. package/dist/domains/manage/routes/conversations.d.ts +2 -2
  12. package/dist/domains/manage/routes/index.d.ts +2 -2
  13. package/dist/domains/manage/routes/invitations.d.ts +2 -2
  14. package/dist/domains/manage/routes/passwordResetLinks.d.ts +2 -2
  15. package/dist/domains/manage/routes/signoz.js +80 -48
  16. package/dist/domains/manage/routes/users.d.ts +2 -2
  17. package/dist/domains/mcp/routes/mcp.d.ts +2 -2
  18. package/dist/domains/run/agents/relationTools.d.ts +2 -2
  19. package/dist/domains/run/routes/auth.d.ts +2 -2
  20. package/dist/domains/run/types/chat.d.ts +3 -3
  21. package/dist/domains/run/workflow/steps/scheduledTriggerSteps.d.ts +6 -6
  22. package/dist/env.d.ts +3 -3
  23. package/dist/factory.d.ts +81 -81
  24. package/dist/index.d.ts +80 -80
  25. package/dist/middleware/evalsAuth.d.ts +2 -2
  26. package/dist/middleware/manageAuth.d.ts +3 -3
  27. package/dist/middleware/projectConfig.d.ts +3 -3
  28. package/dist/middleware/requirePermission.d.ts +2 -2
  29. package/dist/middleware/runAuth.d.ts +4 -4
  30. package/dist/middleware/sessionAuth.d.ts +3 -3
  31. package/dist/middleware/tenantAccess.d.ts +2 -2
  32. package/dist/middleware/tracing.d.ts +3 -3
  33. package/package.json +5 -6
@@ -1,18 +1,15 @@
1
1
  {
2
2
  "version": "1.0.0",
3
3
  "steps": {
4
- "src/domains/run/workflow/steps/schedulerSteps.ts": {
5
- "checkSchedulerCurrentStep": {
6
- "stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//checkSchedulerCurrentStep"
7
- },
8
- "dispatchDueTriggersStep": {
9
- "stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//dispatchDueTriggersStep"
4
+ "node_modules/.pnpm/workflow@4.2.0-beta.67_@nestjs+common@11.1.13_reflect-metadata@0.2.2_rxjs@7.8.2__@nestj_f2f795b431e3251af7151f15245efde0/node_modules/workflow/dist/internal/builtins.js": {
5
+ "__builtin_response_array_buffer": {
6
+ "stepId": "__builtin_response_array_buffer"
10
7
  },
11
- "msUntilNextMinuteStep": {
12
- "stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//msUntilNextMinuteStep"
8
+ "__builtin_response_json": {
9
+ "stepId": "__builtin_response_json"
13
10
  },
14
- "registerSchedulerStep": {
15
- "stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//registerSchedulerStep"
11
+ "__builtin_response_text": {
12
+ "stepId": "__builtin_response_text"
16
13
  }
17
14
  },
18
15
  "src/domains/evals/workflow/functions/evaluateConversation.ts": {
@@ -29,41 +26,18 @@
29
26
  "stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//logStep"
30
27
  }
31
28
  },
32
- "node_modules/.pnpm/workflow@4.2.0-beta.67_@nestjs+common@11.1.13_reflect-metadata@0.2.2_rxjs@7.8.2__@nestj_f2f795b431e3251af7151f15245efde0/node_modules/workflow/dist/internal/builtins.js": {
33
- "__builtin_response_array_buffer": {
34
- "stepId": "__builtin_response_array_buffer"
35
- },
36
- "__builtin_response_json": {
37
- "stepId": "__builtin_response_json"
38
- },
39
- "__builtin_response_text": {
40
- "stepId": "__builtin_response_text"
41
- }
42
- },
43
- "src/domains/run/workflow/steps/agentExecutionSteps.ts": {
44
- "callLlmStep": {
45
- "stepId": "step//./src/domains/run/workflow/steps/agentExecutionSteps//callLlmStep"
46
- },
47
- "executeToolStep": {
48
- "stepId": "step//./src/domains/run/workflow/steps/agentExecutionSteps//executeToolStep"
49
- },
50
- "initializeTaskStep": {
51
- "stepId": "step//./src/domains/run/workflow/steps/agentExecutionSteps//initializeTaskStep"
52
- },
53
- "markWorkflowCompleteStep": {
54
- "stepId": "step//./src/domains/run/workflow/steps/agentExecutionSteps//markWorkflowCompleteStep"
55
- },
56
- "markWorkflowFailedStep": {
57
- "stepId": "step//./src/domains/run/workflow/steps/agentExecutionSteps//markWorkflowFailedStep"
29
+ "src/domains/run/workflow/steps/schedulerSteps.ts": {
30
+ "checkSchedulerCurrentStep": {
31
+ "stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//checkSchedulerCurrentStep"
58
32
  },
59
- "markWorkflowResumingStep": {
60
- "stepId": "step//./src/domains/run/workflow/steps/agentExecutionSteps//markWorkflowResumingStep"
33
+ "dispatchDueTriggersStep": {
34
+ "stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//dispatchDueTriggersStep"
61
35
  },
62
- "markWorkflowRunningStep": {
63
- "stepId": "step//./src/domains/run/workflow/steps/agentExecutionSteps//markWorkflowRunningStep"
36
+ "msUntilNextMinuteStep": {
37
+ "stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//msUntilNextMinuteStep"
64
38
  },
65
- "markWorkflowSuspendedStep": {
66
- "stepId": "step//./src/domains/run/workflow/steps/agentExecutionSteps//markWorkflowSuspendedStep"
39
+ "registerSchedulerStep": {
40
+ "stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//registerSchedulerStep"
67
41
  }
68
42
  },
69
43
  "node_modules/.pnpm/workflow@4.2.0-beta.67_@nestjs+common@11.1.13_reflect-metadata@0.2.2_rxjs@7.8.2__@nestj_f2f795b431e3251af7151f15245efde0/node_modules/workflow/dist/stdlib.js": {
@@ -134,6 +108,32 @@
134
108
  "resetInvocationToPendingStep": {
135
109
  "stepId": "step//./src/domains/run/workflow/steps/scheduledTriggerSteps//resetInvocationToPendingStep"
136
110
  }
111
+ },
112
+ "src/domains/run/workflow/steps/agentExecutionSteps.ts": {
113
+ "callLlmStep": {
114
+ "stepId": "step//./src/domains/run/workflow/steps/agentExecutionSteps//callLlmStep"
115
+ },
116
+ "executeToolStep": {
117
+ "stepId": "step//./src/domains/run/workflow/steps/agentExecutionSteps//executeToolStep"
118
+ },
119
+ "initializeTaskStep": {
120
+ "stepId": "step//./src/domains/run/workflow/steps/agentExecutionSteps//initializeTaskStep"
121
+ },
122
+ "markWorkflowCompleteStep": {
123
+ "stepId": "step//./src/domains/run/workflow/steps/agentExecutionSteps//markWorkflowCompleteStep"
124
+ },
125
+ "markWorkflowFailedStep": {
126
+ "stepId": "step//./src/domains/run/workflow/steps/agentExecutionSteps//markWorkflowFailedStep"
127
+ },
128
+ "markWorkflowResumingStep": {
129
+ "stepId": "step//./src/domains/run/workflow/steps/agentExecutionSteps//markWorkflowResumingStep"
130
+ },
131
+ "markWorkflowRunningStep": {
132
+ "stepId": "step//./src/domains/run/workflow/steps/agentExecutionSteps//markWorkflowRunningStep"
133
+ },
134
+ "markWorkflowSuspendedStep": {
135
+ "stepId": "step//./src/domains/run/workflow/steps/agentExecutionSteps//markWorkflowSuspendedStep"
136
+ }
137
137
  }
138
138
  },
139
139
  "workflows": {
@@ -1,6 +1,6 @@
1
- import * as _inkeep_agents_core6 from "@inkeep/agents-core";
1
+ import * as _inkeep_agents_core0 from "@inkeep/agents-core";
2
2
 
3
3
  //#region src/data/db/manageDbClient.d.ts
4
- declare const manageDbClient: _inkeep_agents_core6.AgentsManageDatabaseClient;
4
+ declare const manageDbClient: _inkeep_agents_core0.AgentsManageDatabaseClient;
5
5
  //#endregion
6
6
  export { manageDbClient as default };
@@ -1,6 +1,6 @@
1
- import * as _inkeep_agents_core5 from "@inkeep/agents-core";
1
+ import * as _inkeep_agents_core1 from "@inkeep/agents-core";
2
2
 
3
3
  //#region src/data/db/runDbClient.d.ts
4
- declare const runDbClient: _inkeep_agents_core5.AgentsRunDatabaseClient;
4
+ declare const runDbClient: _inkeep_agents_core1.AgentsRunDatabaseClient;
5
5
  //#endregion
6
6
  export { runDbClient as default };
@@ -1,6 +1,6 @@
1
- import * as _inkeep_agents_core1 from "@inkeep/agents-core";
1
+ import * as _inkeep_agents_core2 from "@inkeep/agents-core";
2
2
 
3
3
  //#region src/data-reconciliation/handlers/agent.d.ts
4
- declare const agentHandlers: _inkeep_agents_core1.EntityEffectHandlers<"agent">;
4
+ declare const agentHandlers: _inkeep_agents_core2.EntityEffectHandlers<"agent">;
5
5
  //#endregion
6
6
  export { agentHandlers };
@@ -1,6 +1,6 @@
1
- import * as _inkeep_agents_core2 from "@inkeep/agents-core";
1
+ import * as _inkeep_agents_core3 from "@inkeep/agents-core";
2
2
 
3
3
  //#region src/data-reconciliation/handlers/context-configs.d.ts
4
- declare const contextConfigsHandlers: _inkeep_agents_core2.EntityEffectHandlers<"context_configs">;
4
+ declare const contextConfigsHandlers: _inkeep_agents_core3.EntityEffectHandlers<"context_configs">;
5
5
  //#endregion
6
6
  export { contextConfigsHandlers };
@@ -1,6 +1,6 @@
1
- import * as _inkeep_agents_core0 from "@inkeep/agents-core";
1
+ import * as _inkeep_agents_core4 from "@inkeep/agents-core";
2
2
 
3
3
  //#region src/data-reconciliation/handlers/tools.d.ts
4
- declare const toolsHandlers: _inkeep_agents_core0.EntityEffectHandlers<"tools">;
4
+ declare const toolsHandlers: _inkeep_agents_core4.EntityEffectHandlers<"tools">;
5
5
  //#endregion
6
6
  export { toolsHandlers };
@@ -1,7 +1,7 @@
1
1
  import { OpenAPIHono } from "@hono/zod-openapi";
2
- import * as hono7 from "hono";
2
+ import * as hono8 from "hono";
3
3
 
4
4
  //#region src/domains/evals/routes/index.d.ts
5
- declare const app: OpenAPIHono<hono7.Env, {}, "/">;
5
+ declare const app: OpenAPIHono<hono8.Env, {}, "/">;
6
6
  //#endregion
7
7
  export { app as default };
@@ -1,7 +1,7 @@
1
1
  import { Hono } from "hono";
2
- import * as hono_types8 from "hono/types";
2
+ import * as hono_types12 from "hono/types";
3
3
 
4
4
  //#region src/domains/evals/workflow/routes.d.ts
5
- declare const workflowRoutes: Hono<hono_types8.BlankEnv, hono_types8.BlankSchema, "/">;
5
+ declare const workflowRoutes: Hono<hono_types12.BlankEnv, hono_types12.BlankSchema, "/">;
6
6
  //#endregion
7
7
  export { workflowRoutes };
@@ -1,10 +1,10 @@
1
1
  import { ManageAppVariables } from "../../../types/app.js";
2
2
  import { Hono } from "hono";
3
- import * as hono_types13 from "hono/types";
3
+ import * as hono_types5 from "hono/types";
4
4
 
5
5
  //#region src/domains/manage/routes/authLookup.d.ts
6
6
  declare const authLookupRoutes: Hono<{
7
7
  Variables: ManageAppVariables;
8
- }, hono_types13.BlankSchema, "/">;
8
+ }, hono_types5.BlankSchema, "/">;
9
9
  //#endregion
10
10
  export { authLookupRoutes as default };
@@ -1,7 +1,7 @@
1
1
  import { OpenAPIHono } from "@hono/zod-openapi";
2
- import * as hono14 from "hono";
2
+ import * as hono6 from "hono";
3
3
 
4
4
  //#region src/domains/manage/routes/availableAgents.d.ts
5
- declare const app: OpenAPIHono<hono14.Env, {}, "/">;
5
+ declare const app: OpenAPIHono<hono6.Env, {}, "/">;
6
6
  //#endregion
7
7
  export { app as default };
@@ -1,7 +1,7 @@
1
1
  import { OpenAPIHono } from "@hono/zod-openapi";
2
- import * as hono5 from "hono";
2
+ import * as hono7 from "hono";
3
3
 
4
4
  //#region src/domains/manage/routes/conversations.d.ts
5
- declare const app: OpenAPIHono<hono5.Env, {}, "/">;
5
+ declare const app: OpenAPIHono<hono7.Env, {}, "/">;
6
6
  //#endregion
7
7
  export { app as default };
@@ -1,7 +1,7 @@
1
1
  import { OpenAPIHono } from "@hono/zod-openapi";
2
- import * as hono8 from "hono";
2
+ import * as hono14 from "hono";
3
3
 
4
4
  //#region src/domains/manage/routes/index.d.ts
5
- declare const app: OpenAPIHono<hono8.Env, {}, "/">;
5
+ declare const app: OpenAPIHono<hono14.Env, {}, "/">;
6
6
  //#endregion
7
7
  export { app as default };
@@ -1,10 +1,10 @@
1
1
  import { ManageAppVariables } from "../../../types/app.js";
2
2
  import { Hono } from "hono";
3
- import * as hono_types10 from "hono/types";
3
+ import * as hono_types8 from "hono/types";
4
4
 
5
5
  //#region src/domains/manage/routes/invitations.d.ts
6
6
  declare const invitationsRoutes: Hono<{
7
7
  Variables: ManageAppVariables;
8
- }, hono_types10.BlankSchema, "/">;
8
+ }, hono_types8.BlankSchema, "/">;
9
9
  //#endregion
10
10
  export { invitationsRoutes as default };
@@ -1,10 +1,10 @@
1
1
  import { ManageAppVariables } from "../../../types/app.js";
2
2
  import { Hono } from "hono";
3
- import * as hono_types5 from "hono/types";
3
+ import * as hono_types7 from "hono/types";
4
4
 
5
5
  //#region src/domains/manage/routes/passwordResetLinks.d.ts
6
6
  declare const passwordResetLinksRoutes: Hono<{
7
7
  Variables: ManageAppVariables;
8
- }, hono_types5.BlankSchema, "/">;
8
+ }, hono_types7.BlankSchema, "/">;
9
9
  //#endregion
10
10
  export { passwordResetLinksRoutes as default };
@@ -3,7 +3,6 @@ import { getLogger as getLogger$1 } from "../../../logger.js";
3
3
  import { buildSpanLookupPayload, enforceSecurityFilters } from "../../../utils/signozHelpers.js";
4
4
  import { SPAN_KEYS, canViewProject, createApiError } from "@inkeep/agents-core";
5
5
  import { Hono } from "hono";
6
- import axios from "axios";
7
6
 
8
7
  //#region src/domains/manage/routes/signoz.ts
9
8
  const logger = getLogger$1("signoz-proxy");
@@ -54,10 +53,20 @@ async function authorizeProject(c, projectId) {
54
53
  userId
55
54
  };
56
55
  }
56
+ var FetchResponseError = class extends Error {
57
+ status;
58
+ data;
59
+ constructor(status, data) {
60
+ super(`Request failed with status ${status}`);
61
+ this.name = "FetchResponseError";
62
+ this.status = status;
63
+ this.data = data;
64
+ }
65
+ };
57
66
  const KEY_NOT_FOUND_RE = /key `(.+)` not found/i;
58
67
  function getMissingKeys(error) {
59
- if (!axios.isAxiosError(error) || error.response?.status !== 400) return null;
60
- const errors = error.response?.data?.error?.errors ?? [];
68
+ if (!(error instanceof FetchResponseError) || error.status !== 400) return null;
69
+ const errors = error.data?.error?.errors ?? [];
61
70
  const keys = errors.map((e) => KEY_NOT_FOUND_RE.exec(e?.message)?.[1]).filter(Boolean);
62
71
  if (keys.length === 0 || keys.length !== errors.length) return null;
63
72
  const unique = [...new Set(keys)];
@@ -77,13 +86,27 @@ const EMPTY_RESPONSE = { data: {
77
86
  status: "success",
78
87
  data: { data: { results: [] } }
79
88
  } };
89
+ async function signozPost(endpoint, body, headers$1, timeout) {
90
+ const controller = new AbortController();
91
+ const timeoutId = setTimeout(() => controller.abort(), timeout);
92
+ try {
93
+ const response = await fetch(endpoint, {
94
+ method: "POST",
95
+ headers: headers$1,
96
+ body: JSON.stringify(body),
97
+ signal: controller.signal
98
+ });
99
+ const data = await response.json();
100
+ if (!response.ok) throw new FetchResponseError(response.status, data);
101
+ return { data };
102
+ } finally {
103
+ clearTimeout(timeoutId);
104
+ }
105
+ }
80
106
  async function queryWithRetry(signoz, payload) {
81
107
  try {
82
108
  return {
83
- data: await axios.post(signoz.endpoint, payload, {
84
- headers: signoz.headers,
85
- timeout: 3e4
86
- }),
109
+ data: await signozPost(signoz.endpoint, payload, signoz.headers, 3e4),
87
110
  retried: false
88
111
  };
89
112
  } catch (error) {
@@ -109,28 +132,15 @@ async function queryWithRetry(signoz, payload) {
109
132
  }
110
133
  };
111
134
  return {
112
- data: await axios.post(signoz.endpoint, stripped, {
113
- headers: signoz.headers,
114
- timeout: 3e4
115
- }),
135
+ data: await signozPost(signoz.endpoint, stripped, signoz.headers, 3e4),
116
136
  retried: true
117
137
  };
118
138
  }
119
139
  }
120
140
  function handleSignozError(error, operation) {
121
- if (axios.isAxiosError(error)) {
122
- if (error.code === "ECONNREFUSED" || error.code === "ENOTFOUND") {
123
- logger.error({ error: error.message }, "SigNoz service unavailable");
124
- return {
125
- body: {
126
- error: "Service Unavailable",
127
- message: "SigNoz service is unavailable"
128
- },
129
- status: 503
130
- };
131
- }
132
- if (error.response?.status === 401 || error.response?.status === 403) {
133
- logger.error({ status: error.response.status }, "SigNoz authentication failed");
141
+ if (error instanceof FetchResponseError) {
142
+ if (error.status === 401 || error.status === 403) {
143
+ logger.error({ status: error.status }, "SigNoz authentication failed");
134
144
  return {
135
145
  body: {
136
146
  error: "Internal Server Error",
@@ -139,23 +149,33 @@ function handleSignozError(error, operation) {
139
149
  status: 500
140
150
  };
141
151
  }
142
- if (error.response?.status === 400) {
152
+ if (error.status === 400) {
143
153
  logger.warn({
144
154
  status: 400,
145
- responseData: error.response?.data
155
+ responseData: error.data
146
156
  }, `Invalid SigNoz ${operation}`);
147
157
  return {
148
158
  body: {
149
159
  error: "Bad Request",
150
- message: error.response?.data?.error ?? "Invalid query parameters"
160
+ message: error.data?.error ?? "Invalid query parameters"
151
161
  },
152
162
  status: 400
153
163
  };
154
164
  }
155
165
  }
166
+ if (error instanceof TypeError || error instanceof DOMException && error.name === "AbortError") {
167
+ logger.error({ error: error instanceof Error ? error.message : error }, "SigNoz service unavailable");
168
+ return {
169
+ body: {
170
+ error: "Service Unavailable",
171
+ message: "SigNoz service is unavailable"
172
+ },
173
+ status: 503
174
+ };
175
+ }
156
176
  logger.error({
157
177
  error,
158
- responseData: axios.isAxiosError(error) ? error.response?.data : void 0
178
+ responseData: error instanceof FetchResponseError ? error.data : void 0
159
179
  }, `SigNoz ${operation} failed`);
160
180
  return {
161
181
  body: {
@@ -165,8 +185,8 @@ function handleSignozError(error, operation) {
165
185
  status: 500
166
186
  };
167
187
  }
168
- function extractResults(axiosResponse) {
169
- return axiosResponse.data?.data?.data?.results ?? [];
188
+ function extractResults(fetchResponse) {
189
+ return fetchResponse.data?.data?.data?.results ?? [];
170
190
  }
171
191
  const app = new Hono();
172
192
  app.post("/query", async (c) => {
@@ -275,10 +295,7 @@ app.post("/span-lookup", async (c) => {
275
295
  const now = Date.now();
276
296
  const payload = buildSpanLookupPayload(auth.tenantId, conversationId, spanId, now - 4320 * 60 * 60 * 1e3, now);
277
297
  try {
278
- const resp = await axios.post(signoz.endpoint, payload, {
279
- headers: signoz.headers,
280
- timeout: 15e3
281
- });
298
+ const resp = await signozPost(signoz.endpoint, payload, signoz.headers, 15e3);
282
299
  return c.json(resp.data);
283
300
  } catch (error) {
284
301
  const { body: errBody, status } = handleSignozError(error, "span-lookup");
@@ -296,27 +313,42 @@ app.get("/health", async (c) => {
296
313
  });
297
314
  }
298
315
  try {
299
- await axios.post(signoz.endpoint, {
300
- start: Date.now() - 3e5,
301
- end: Date.now(),
302
- requestType: "scalar",
303
- compositeQuery: { queries: [] }
304
- }, {
316
+ const controller = new AbortController();
317
+ const timeoutId = setTimeout(() => controller.abort(), 5e3);
318
+ const response = await fetch(signoz.endpoint, {
319
+ method: "POST",
305
320
  headers: signoz.headers,
306
- timeout: 5e3,
307
- validateStatus: (s) => s === 200 || s === 400
321
+ body: JSON.stringify({
322
+ start: Date.now() - 3e5,
323
+ end: Date.now(),
324
+ requestType: "scalar",
325
+ compositeQuery: { queries: [] }
326
+ }),
327
+ signal: controller.signal
308
328
  });
309
- return c.json({
329
+ clearTimeout(timeoutId);
330
+ if (response.status === 200 || response.status === 400) return c.json({
310
331
  status: "ok",
311
332
  configured: true
312
333
  });
334
+ if (response.status === 401 || response.status === 403) {
335
+ logger.error({ error: "Invalid API key" }, "SigNoz connection test failed");
336
+ return c.json({
337
+ status: "connection_failed",
338
+ configured: false,
339
+ error: "Invalid SIGNOZ_API_KEY"
340
+ });
341
+ }
342
+ logger.error({ error: `Unexpected status ${response.status}` }, "SigNoz connection test failed");
343
+ return c.json({
344
+ status: "connection_failed",
345
+ configured: false,
346
+ error: "Failed to connect to SigNoz"
347
+ });
313
348
  } catch (error) {
314
349
  let errorMessage = "Failed to connect to SigNoz";
315
- if (axios.isAxiosError(error)) {
316
- if (error.code === "ECONNREFUSED" || error.code === "ENOTFOUND") errorMessage = "Check SIGNOZ_URL";
317
- else if (error.response?.status === 401 || error.response?.status === 403) errorMessage = "Invalid SIGNOZ_API_KEY";
318
- else if (error.code === "ETIMEDOUT" || error.code === "ECONNABORTED") errorMessage = "SigNoz connection timed out";
319
- }
350
+ if (error instanceof DOMException && error.name === "AbortError") errorMessage = "SigNoz connection timed out";
351
+ else if (error instanceof TypeError) errorMessage = "Check SIGNOZ_URL";
320
352
  logger.error({ error: error instanceof Error ? error.message : error }, "SigNoz connection test failed");
321
353
  return c.json({
322
354
  status: "connection_failed",
@@ -1,10 +1,10 @@
1
1
  import { ManageAppVariables } from "../../../types/app.js";
2
2
  import { Hono } from "hono";
3
- import * as hono_types7 from "hono/types";
3
+ import * as hono_types11 from "hono/types";
4
4
 
5
5
  //#region src/domains/manage/routes/users.d.ts
6
6
  declare const usersRoutes: Hono<{
7
7
  Variables: ManageAppVariables;
8
- }, hono_types7.BlankSchema, "/">;
8
+ }, hono_types11.BlankSchema, "/">;
9
9
  //#endregion
10
10
  export { usersRoutes as default };
@@ -1,7 +1,7 @@
1
1
  import { Hono } from "hono";
2
- import * as hono_types3 from "hono/types";
2
+ import * as hono_types0 from "hono/types";
3
3
 
4
4
  //#region src/domains/mcp/routes/mcp.d.ts
5
- declare const app: Hono<hono_types3.BlankEnv, hono_types3.BlankSchema, "/">;
5
+ declare const app: Hono<hono_types0.BlankEnv, hono_types0.BlankSchema, "/">;
6
6
  //#endregion
7
7
  export { app as default };
@@ -2,7 +2,7 @@ import { AgentConfig, DelegateRelation } from "./agent-types.js";
2
2
  import "./Agent.js";
3
3
  import { InternalRelation } from "../utils/project.js";
4
4
  import { z } from "@hono/zod-openapi";
5
- import * as _inkeep_agents_core3 from "@inkeep/agents-core";
5
+ import * as _inkeep_agents_core5 from "@inkeep/agents-core";
6
6
  import { CredentialStoreRegistry, FullExecutionContext } from "@inkeep/agents-core";
7
7
  import * as ai0 from "ai";
8
8
 
@@ -48,7 +48,7 @@ declare function createDelegateToAgentTool({
48
48
  message: string;
49
49
  }, {
50
50
  toolCallId: any;
51
- result: _inkeep_agents_core3.Message | _inkeep_agents_core3.Task;
51
+ result: _inkeep_agents_core5.Message | _inkeep_agents_core5.Task;
52
52
  }>;
53
53
  /**
54
54
  * Parameters for building a transfer relation config
@@ -1,8 +1,8 @@
1
1
  import { OpenAPIHono } from "@hono/zod-openapi";
2
- import * as hono6 from "hono";
2
+ import * as hono9 from "hono";
3
3
 
4
4
  //#region src/domains/run/routes/auth.d.ts
5
5
  declare function getAnonJwtSecret(): Uint8Array;
6
- declare const app: OpenAPIHono<hono6.Env, {}, "/">;
6
+ declare const app: OpenAPIHono<hono9.Env, {}, "/">;
7
7
  //#endregion
8
8
  export { app as default, getAnonJwtSecret };
@@ -102,10 +102,10 @@ declare const VercelMessagePartSchema: z.ZodUnion<readonly [z.ZodObject<{
102
102
  declare const VercelMessageSchema: z.ZodObject<{
103
103
  role: z.ZodEnum<{
104
104
  function: "function";
105
+ tool: "tool";
105
106
  user: "user";
106
107
  system: "system";
107
108
  assistant: "assistant";
108
- tool: "tool";
109
109
  }>;
110
110
  content: z.ZodAny;
111
111
  parts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
@@ -177,10 +177,10 @@ type ContentItem = z.infer<typeof ContentItemSchema>;
177
177
  declare const MessageSchema: z.ZodObject<{
178
178
  role: z.ZodEnum<{
179
179
  function: "function";
180
+ tool: "tool";
180
181
  user: "user";
181
182
  system: "system";
182
183
  assistant: "assistant";
183
- tool: "tool";
184
184
  }>;
185
185
  content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
186
186
  type: z.ZodLiteral<"text">;
@@ -210,10 +210,10 @@ declare const ChatCompletionRequestSchema: z.ZodObject<{
210
210
  messages: z.ZodArray<z.ZodObject<{
211
211
  role: z.ZodEnum<{
212
212
  function: "function";
213
+ tool: "tool";
213
214
  user: "user";
214
215
  system: "system";
215
216
  assistant: "assistant";
216
- tool: "tool";
217
217
  }>;
218
218
  content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
219
219
  type: z.ZodLiteral<"text">;
@@ -71,7 +71,7 @@ declare function createInvocationIdempotentStep(params: {
71
71
  projectId: string;
72
72
  tenantId: string;
73
73
  id: string;
74
- status: "completed" | "pending" | "running" | "failed" | "cancelled";
74
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
75
75
  ref?: {
76
76
  type: "commit" | "tag" | "branch";
77
77
  name: string;
@@ -116,7 +116,7 @@ declare function markRunningStep(params: {
116
116
  projectId: string;
117
117
  tenantId: string;
118
118
  id: string;
119
- status: "completed" | "pending" | "running" | "failed" | "cancelled";
119
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
120
120
  ref?: {
121
121
  type: "commit" | "tag" | "branch";
122
122
  name: string;
@@ -148,7 +148,7 @@ declare function addConversationIdStep(params: {
148
148
  projectId: string;
149
149
  tenantId: string;
150
150
  id: string;
151
- status: "completed" | "pending" | "running" | "failed" | "cancelled";
151
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
152
152
  ref?: {
153
153
  type: "commit" | "tag" | "branch";
154
154
  name: string;
@@ -178,7 +178,7 @@ declare function markCompletedStep(params: {
178
178
  projectId: string;
179
179
  tenantId: string;
180
180
  id: string;
181
- status: "completed" | "pending" | "running" | "failed" | "cancelled";
181
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
182
182
  ref?: {
183
183
  type: "commit" | "tag" | "branch";
184
184
  name: string;
@@ -208,7 +208,7 @@ declare function markFailedStep(params: {
208
208
  projectId: string;
209
209
  tenantId: string;
210
210
  id: string;
211
- status: "completed" | "pending" | "running" | "failed" | "cancelled";
211
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
212
212
  ref?: {
213
213
  type: "commit" | "tag" | "branch";
214
214
  name: string;
@@ -257,7 +257,7 @@ declare function resetInvocationToPendingStep(params: {
257
257
  projectId: string;
258
258
  tenantId: string;
259
259
  id: string;
260
- status: "completed" | "pending" | "running" | "failed" | "cancelled";
260
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
261
261
  ref?: {
262
262
  type: "commit" | "tag" | "branch";
263
263
  name: string;
package/dist/env.d.ts CHANGED
@@ -14,11 +14,11 @@ declare const envSchema: z.ZodObject<{
14
14
  pentest: "pentest";
15
15
  }>>;
16
16
  LOG_LEVEL: z.ZodDefault<z.ZodEnum<{
17
- debug: "debug";
18
17
  error: "error";
18
+ trace: "trace";
19
+ debug: "debug";
19
20
  info: "info";
20
21
  warn: "warn";
21
- trace: "trace";
22
22
  }>>;
23
23
  INKEEP_AGENTS_MANAGE_DATABASE_URL: z.ZodString;
24
24
  INKEEP_AGENTS_RUN_DATABASE_URL: z.ZodString;
@@ -80,7 +80,7 @@ declare const envSchema: z.ZodObject<{
80
80
  declare const env: {
81
81
  NODE_ENV: "development" | "production" | "test";
82
82
  ENVIRONMENT: "development" | "production" | "test" | "pentest";
83
- LOG_LEVEL: "debug" | "error" | "info" | "warn" | "trace";
83
+ LOG_LEVEL: "error" | "trace" | "debug" | "info" | "warn";
84
84
  INKEEP_AGENTS_MANAGE_DATABASE_URL: string;
85
85
  INKEEP_AGENTS_RUN_DATABASE_URL: string;
86
86
  INKEEP_AGENTS_API_URL: string;