@inkeep/agents-api 0.46.0 → 0.46.1
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/.well-known/workflow/v1/flow.cjs +44 -44
- package/dist/.well-known/workflow/v1/flow.cjs.debug.json +2 -2
- package/dist/.well-known/workflow/v1/step.cjs +167 -172
- package/dist/.well-known/workflow/v1/step.cjs.debug.json +2 -2
- package/dist/createApp.d.ts +2 -2
- package/dist/createApp.js +1 -3
- package/dist/domains/evals/routes/datasetTriggers.d.ts +2 -2
- package/dist/domains/evals/routes/index.d.ts +2 -2
- package/dist/domains/evals/services/EvaluationService.js +1 -2
- package/dist/domains/evals/workflow/routes.d.ts +2 -2
- package/dist/domains/manage/index.js +4 -2
- package/dist/domains/manage/routes/availableAgents.d.ts +2 -2
- package/dist/domains/manage/routes/availableAgents.js +2 -2
- package/dist/domains/manage/routes/conversations.d.ts +2 -2
- package/dist/domains/manage/routes/index.d.ts +2 -2
- package/dist/domains/manage/routes/invitations.d.ts +2 -2
- package/dist/domains/manage/routes/invitations.js +59 -0
- package/dist/domains/manage/routes/mcp.d.ts +2 -2
- package/dist/domains/manage/routes/passwordResetLinks.d.ts +10 -0
- package/dist/domains/manage/routes/passwordResetLinks.js +61 -0
- package/dist/domains/manage/routes/signoz.d.ts +2 -2
- package/dist/domains/manage/routes/users.d.ts +10 -0
- package/dist/domains/manage/routes/users.js +78 -0
- package/dist/domains/mcp/routes/mcp.d.ts +2 -2
- package/dist/domains/run/a2a/client.d.ts +0 -2
- package/dist/domains/run/a2a/client.js +5 -7
- package/dist/domains/run/agents/Agent.d.ts +41 -15
- package/dist/domains/run/agents/Agent.js +127 -281
- package/dist/domains/run/agents/generateTaskHandler.js +10 -5
- package/dist/domains/run/agents/relationTools.js +1 -3
- package/dist/domains/run/agents/types.d.ts +2 -1
- package/dist/domains/run/agents/versions/v1/{Phase1Config.d.ts → PromptConfig.d.ts} +5 -4
- package/dist/domains/run/agents/versions/v1/{Phase1Config.js → PromptConfig.js} +36 -19
- package/dist/domains/run/handlers/executionHandler.js +8 -12
- package/dist/factory.d.ts +55 -21
- package/dist/index.d.ts +124 -90
- package/dist/middleware/evalsAuth.d.ts +2 -2
- package/dist/middleware/projectAccess.d.ts +2 -2
- package/dist/middleware/projectConfig.d.ts +3 -3
- package/dist/middleware/requirePermission.d.ts +2 -2
- package/dist/middleware/runAuth.d.ts +4 -4
- package/dist/middleware/sessionAuth.d.ts +3 -3
- package/dist/middleware/tenantAccess.d.ts +2 -2
- package/dist/middleware/tracing.d.ts +3 -3
- package/dist/templates/v1/prompt/system-prompt.js +5 -0
- package/dist/templates/v1/{phase1 → prompt}/tool.js +1 -1
- package/dist/templates/v1/shared/artifact-retrieval-guidance.js +1 -1
- package/dist/templates/v1/{phase2 → shared}/data-component.js +1 -1
- package/dist/templates/v1/{phase2 → shared}/data-components.js +1 -1
- package/package.json +5 -5
- package/dist/domains/manage/routes/userOrganizations.d.ts +0 -10
- package/dist/domains/manage/routes/userOrganizations.js +0 -29
- package/dist/domains/run/agents/versions/v1/Phase2Config.d.ts +0 -33
- package/dist/domains/run/agents/versions/v1/Phase2Config.js +0 -341
- package/dist/templates/v1/phase1/system-prompt.js +0 -5
- package/dist/templates/v1/phase1/thinking-preparation.js +0 -5
- package/dist/templates/v1/phase2/system-prompt.js +0 -5
- package/dist/utils/in-process-fetch.d.ts +0 -22
- package/dist/utils/in-process-fetch.js +0 -32
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
//#region src/utils/in-process-fetch.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* In-process fetch transport for internal self-calls.
|
|
4
|
-
*
|
|
5
|
-
* Routes requests through the Hono app's full middleware stack in-process
|
|
6
|
-
* rather than over the network. This guarantees same-instance execution,
|
|
7
|
-
* which is critical for features that rely on process-local state
|
|
8
|
-
* (e.g. the stream helper registry for real-time SSE streaming).
|
|
9
|
-
*
|
|
10
|
-
* Drop-in replacement for `fetch()` — same signature, same return type.
|
|
11
|
-
* Throws in production if the app hasn't been registered.
|
|
12
|
-
* Falls back to global `fetch` in test environments where the full app
|
|
13
|
-
* may not be initialized.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* import { getInProcessFetch } from './utils/in-process-fetch';
|
|
17
|
-
* const response = await getInProcessFetch()(url, init);
|
|
18
|
-
*/
|
|
19
|
-
declare function registerAppFetch(fn: typeof fetch): void;
|
|
20
|
-
declare function getInProcessFetch(): typeof fetch;
|
|
21
|
-
//#endregion
|
|
22
|
-
export { getInProcessFetch, registerAppFetch };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
//#region src/utils/in-process-fetch.ts
|
|
2
|
-
/**
|
|
3
|
-
* In-process fetch transport for internal self-calls.
|
|
4
|
-
*
|
|
5
|
-
* Routes requests through the Hono app's full middleware stack in-process
|
|
6
|
-
* rather than over the network. This guarantees same-instance execution,
|
|
7
|
-
* which is critical for features that rely on process-local state
|
|
8
|
-
* (e.g. the stream helper registry for real-time SSE streaming).
|
|
9
|
-
*
|
|
10
|
-
* Drop-in replacement for `fetch()` — same signature, same return type.
|
|
11
|
-
* Throws in production if the app hasn't been registered.
|
|
12
|
-
* Falls back to global `fetch` in test environments where the full app
|
|
13
|
-
* may not be initialized.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* import { getInProcessFetch } from './utils/in-process-fetch';
|
|
17
|
-
* const response = await getInProcessFetch()(url, init);
|
|
18
|
-
*/
|
|
19
|
-
let _appFetch;
|
|
20
|
-
function registerAppFetch(fn) {
|
|
21
|
-
_appFetch = fn;
|
|
22
|
-
}
|
|
23
|
-
function getInProcessFetch() {
|
|
24
|
-
if (!_appFetch) {
|
|
25
|
-
if (process.env.ENVIRONMENT === "test") return fetch;
|
|
26
|
-
throw new Error("[in-process-fetch] App fetch not registered. Call registerAppFetch() during app initialization before handling requests.");
|
|
27
|
-
}
|
|
28
|
-
return _appFetch;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
//#endregion
|
|
32
|
-
export { getInProcessFetch, registerAppFetch };
|