@aopslabs/aops-server 0.2.2 → 0.2.4
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/README.md +6 -5
- package/THIRD_PARTY_NOTICES +1112 -90
- package/THIRD_PARTY_NOTICES.inventory.json +228 -17
- package/build/client/_app/immutable/chunks/{BlANKL2r.js → Bjgoxj0p.js} +1 -1
- package/build/client/_app/immutable/entry/{app.a0iGCm6X.js → app.BYB9Sok4.js} +2 -2
- package/build/client/_app/immutable/entry/start.B9dFbET3.js +1 -0
- package/build/client/_app/immutable/nodes/{1.BtbjYUHR.js → 1.CVn3O1wW.js} +1 -1
- package/build/client/_app/version.json +1 -1
- package/build/handler.js +3 -3
- package/build/index.js +3 -3
- package/build/server/chunks/{1-UJuUicIe.js → 1-dRRhKt5b.js} +2 -2
- package/build/server/chunks/{_server.ts-BkxSxdd0.js → _server.ts-B-i329o7.js} +29 -68
- package/build/server/chunks/{_server.ts-Ua5Ieisy.js → _server.ts-BKHrYeaH.js} +13 -10
- package/build/server/chunks/{_server.ts-BX4X0tW0.js → _server.ts-BQ60-REv.js} +1 -1
- package/build/server/chunks/{_server.ts-DQzYSH_C.js → _server.ts-BZ4AVjKT.js} +12 -9
- package/build/server/chunks/{_server.ts-B9gjXi95.js → _server.ts-BpeZOHh9.js} +1 -1
- package/build/server/chunks/{_server.ts-CjzSQgpk.js → _server.ts-Bvm76oFb.js} +11 -8
- package/build/server/chunks/{_server.ts-DaIr3NkR.js → _server.ts-BzCsmQvL.js} +1 -1
- package/build/server/chunks/{_server.ts-Bz-Erv-1.js → _server.ts-CLPseTqB.js} +1 -1
- package/build/server/chunks/{_server.ts-XmKDT59M.js → _server.ts-CUfJtkgM.js} +13 -10
- package/build/server/chunks/{_server.ts-AwMeEYiZ.js → _server.ts-Cc0Bnt1g.js} +1 -1
- package/build/server/chunks/{_server.ts-u2UWBqNN.js → _server.ts-CsKHhoNV.js} +1 -1
- package/build/server/chunks/{_server.ts-N61POKjl.js → _server.ts-D9nuwLDu.js} +12 -9
- package/build/server/chunks/{_server.ts-DsTeOL2P.js → _server.ts-DL4m3Nag.js} +1 -1
- package/build/server/chunks/{_server.ts-DQWRrk5C.js → _server.ts-DUxJA8_s.js} +1 -1
- package/build/server/chunks/{_server.ts-CRKd0KAC.js → _server.ts-Df-V1NXF.js} +13 -10
- package/build/server/chunks/{_server.ts-6bdzoHJH.js → _server.ts-Dm0Cz5fI.js} +17 -6
- package/build/server/chunks/{_server.ts-o9pJceJP.js → _server.ts-Dpu5VI6c.js} +1 -1
- package/build/server/chunks/{_server.ts-De9ZrSV0.js → _server.ts-DxGF-jS0.js} +12 -9
- package/build/server/chunks/{agent-gateway-runtime-C7Kvvy0H.js → agent-gateway-runtime-DV-xLmJx.js} +39 -4
- package/build/server/chunks/commercial-admission-loader-ZGZHRPLe.js +480 -0
- package/build/server/chunks/{discovery-BvDEgiqC.js → discovery-DL0RzVks.js} +2 -2
- package/build/server/chunks/{error.svelte-B9R6O_Hn.js → error.svelte-c1sBbVzV.js} +1 -1
- package/build/server/chunks/{handler-DurXhqww.js → handler-MPrrqrDK.js} +262 -2
- package/build/server/chunks/{hooks.server-DYGrWbgh.js → hooks.server-Dpmff0ik.js} +1 -1
- package/build/server/chunks/{index.js-BQnOaW3H.js → index.js-CkBvZHgI.js} +1414 -2293
- package/build/server/chunks/{manifest.js-CCJDdahY.js → manifest.js-CVFLTOOv.js} +20 -20
- package/build/server/chunks/{registry-DO8ob5o1.js → registry-DIreA2IZ.js} +132 -268
- package/cockpit/.vite/manifest.json +122 -122
- package/cockpit/community.module-inventory.json +30 -30
- package/host.config.json +140 -0
- package/npm-shrinkwrap.json +6640 -0
- package/package.json +10 -4
- package/runtime/commercial-integrity-worker.mjs +8 -1
- package/runtime-closure.package.json +26 -6
- package/build/client/_app/immutable/entry/start.Df7u6fQ1.js +0 -1
- package/build/server/chunks/admission-snapshot-C2wGfTWE.js +0 -1034
- package/build/server/chunks/canonical-text-order-DbXJJnFD.js +0 -5
- package/build/server/chunks/commercial-admission-loader-V_vXHdVa.js +0 -2077
|
@@ -1,39 +1,35 @@
|
|
|
1
|
-
import { j as json } from './index.js-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { j as json } from './index.js-CkBvZHgI.js';
|
|
2
|
+
import { HostGatewayError, parseStrictInvokeEnvelope } from '@aopslabs/host-gateway';
|
|
3
|
+
import { i as invokeKernelAgentTool } from './agent-gateway-runtime-DV-xLmJx.js';
|
|
4
4
|
import { n as normalizePluginFailure, t as toSafePluginFailureLogDetails, i as inferFailureStatusFromPayload, c as classifyInvokeFailureMessage } from './plugin-error-normalize-DNeRsopQ.js';
|
|
5
5
|
import { a as attachResolvedProjectScope, r as resolveHostRequestContext } from './request-context-9wzBoKrz.js';
|
|
6
6
|
import '@aopslabs/host-core';
|
|
7
7
|
import '@aopslabs/manifest';
|
|
8
|
-
import './registry-
|
|
8
|
+
import './registry-DIreA2IZ.js';
|
|
9
|
+
import 'node:fs';
|
|
10
|
+
import 'node:os';
|
|
9
11
|
import 'node:path';
|
|
10
|
-
import 'node:module';
|
|
11
12
|
import 'node:url';
|
|
13
|
+
import '@aopslabs/host-admission';
|
|
14
|
+
import '@aopslabs/host-auth';
|
|
15
|
+
import '@aopslabs/host-shell';
|
|
16
|
+
import 'node:worker_threads';
|
|
17
|
+
import '@aopslabs/artifact-trust-contracts';
|
|
12
18
|
import './aops-runtime-config-CHpDUCdE.js';
|
|
13
|
-
import 'node:fs';
|
|
14
19
|
import 'pg';
|
|
15
|
-
import 'node:worker_threads';
|
|
16
|
-
import './admission-snapshot-C2wGfTWE.js';
|
|
17
|
-
import 'node:crypto';
|
|
18
20
|
import 'node:child_process';
|
|
21
|
+
import 'node:module';
|
|
19
22
|
import 'node:util';
|
|
20
23
|
import './project-alias-BdnRxWft.js';
|
|
21
|
-
import '
|
|
24
|
+
import 'node:crypto';
|
|
22
25
|
import 'ajv';
|
|
26
|
+
import 'zod';
|
|
23
27
|
import '@aopslabs/xf-dm-kits/appConfig';
|
|
24
28
|
import '@aopslabs/xf-dm-kits';
|
|
25
29
|
import '@aopslabs/domain-kit-agentspace';
|
|
26
30
|
import './xf-result-BRDjvftr.js';
|
|
27
31
|
import 'effect';
|
|
28
32
|
|
|
29
|
-
const invokeEnvelopeSchema = z.object({
|
|
30
|
-
sourceId: z.string().trim().min(1).optional(),
|
|
31
|
-
input: z.unknown().optional(),
|
|
32
|
-
preview: z.boolean().optional(),
|
|
33
|
-
apply: z.boolean().optional(),
|
|
34
|
-
confirm: z.boolean().optional(),
|
|
35
|
-
idempotencyKey: z.string().trim().min(1).max(200).optional()
|
|
36
|
-
}).strict();
|
|
37
33
|
function isRecord(value) {
|
|
38
34
|
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
39
35
|
}
|
|
@@ -53,9 +49,6 @@ function sanitizeInvokeHeaders(input) {
|
|
|
53
49
|
}
|
|
54
50
|
return headers;
|
|
55
51
|
}
|
|
56
|
-
function hasClientProvidedContext(input) {
|
|
57
|
-
return isRecord(input) && Object.prototype.hasOwnProperty.call(input, "context");
|
|
58
|
-
}
|
|
59
52
|
function resolveActivitySourceKind(event) {
|
|
60
53
|
const candidate = String(event.request.headers.get("x-activity-source-kind") ?? "").trim().toLowerCase();
|
|
61
54
|
if (candidate === "aops-cli" || candidate === "desktop" || candidate === "runner" || candidate === "system") {
|
|
@@ -67,47 +60,14 @@ async function parseInvokePayload(event) {
|
|
|
67
60
|
try {
|
|
68
61
|
const rawText = await event.request.text();
|
|
69
62
|
if (!rawText.trim()) {
|
|
70
|
-
return { ok:
|
|
63
|
+
return { ok: false, error: "invalid_input", message: "invoke_envelope_required" };
|
|
71
64
|
}
|
|
72
65
|
const rawPayload = JSON.parse(rawText);
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
)
|
|
76
|
-
|
|
77
|
-
if (hasClientProvidedContext(rawPayload)) {
|
|
78
|
-
return {
|
|
79
|
-
ok: false,
|
|
80
|
-
error: "invalid_input",
|
|
81
|
-
message: "invalid_invoke_payload:context_not_allowed"
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
return { ok: true, input: rawPayload };
|
|
85
|
-
}
|
|
86
|
-
const parsedEnvelope = invokeEnvelopeSchema.safeParse(rawPayload);
|
|
87
|
-
if (!parsedEnvelope.success) {
|
|
88
|
-
return {
|
|
89
|
-
ok: false,
|
|
90
|
-
error: "invalid_input",
|
|
91
|
-
message: `invalid_invoke_payload:${parsedEnvelope.error.issues[0]?.message ?? "invalid_envelope"}`
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
if (hasClientProvidedContext(parsedEnvelope.data.input)) {
|
|
95
|
-
return {
|
|
96
|
-
ok: false,
|
|
97
|
-
error: "invalid_input",
|
|
98
|
-
message: "invalid_invoke_payload:input.context_not_allowed"
|
|
99
|
-
};
|
|
66
|
+
return { ok: true, envelope: parseStrictInvokeEnvelope(rawPayload) };
|
|
67
|
+
} catch (error) {
|
|
68
|
+
if (error instanceof HostGatewayError) {
|
|
69
|
+
return { ok: false, error: error.code, message: error.message };
|
|
100
70
|
}
|
|
101
|
-
return {
|
|
102
|
-
ok: true,
|
|
103
|
-
sourceId: parsedEnvelope.data.sourceId?.trim().toLowerCase(),
|
|
104
|
-
input: parsedEnvelope.data.input,
|
|
105
|
-
preview: parsedEnvelope.data.preview,
|
|
106
|
-
apply: parsedEnvelope.data.apply,
|
|
107
|
-
confirm: parsedEnvelope.data.confirm,
|
|
108
|
-
idempotencyKey: parsedEnvelope.data.idempotencyKey?.trim()
|
|
109
|
-
};
|
|
110
|
-
} catch {
|
|
111
71
|
return {
|
|
112
72
|
ok: false,
|
|
113
73
|
error: "invalid_input",
|
|
@@ -121,24 +81,19 @@ const POST = async (event) => {
|
|
|
121
81
|
if (!toolId) {
|
|
122
82
|
return json({ ok: false, error: "missing_tool_id" }, { status: 400 });
|
|
123
83
|
}
|
|
124
|
-
const gateway = getAgentGateway();
|
|
125
84
|
const parsedPayload = await parseInvokePayload(event);
|
|
126
85
|
if (!parsedPayload.ok) {
|
|
127
86
|
return json({ ok: false, error: parsedPayload.error, message: parsedPayload.message }, { status: 400 });
|
|
128
87
|
}
|
|
129
88
|
try {
|
|
130
|
-
const result = await
|
|
89
|
+
const result = await invokeKernelAgentTool({
|
|
131
90
|
toolId,
|
|
132
|
-
|
|
133
|
-
input: parsedPayload.input,
|
|
134
|
-
preview: parsedPayload.preview,
|
|
135
|
-
apply: parsedPayload.apply,
|
|
136
|
-
confirm: parsedPayload.confirm,
|
|
137
|
-
idempotencyKey: parsedPayload.idempotencyKey,
|
|
91
|
+
envelope: parsedPayload.envelope,
|
|
138
92
|
context: {
|
|
139
93
|
...resolveHostRequestContext(event),
|
|
140
94
|
activitySourceKind: resolveActivitySourceKind(event)
|
|
141
|
-
}
|
|
95
|
+
},
|
|
96
|
+
requestHeaders: event.request.headers
|
|
142
97
|
});
|
|
143
98
|
const normalized = normalizePluginFailure(result.status, result.data);
|
|
144
99
|
if (normalized.sanitized) {
|
|
@@ -160,6 +115,12 @@ const POST = async (event) => {
|
|
|
160
115
|
{ status: effectiveStatus, headers: sanitizeInvokeHeaders(result.headers) }
|
|
161
116
|
);
|
|
162
117
|
} catch (error) {
|
|
118
|
+
if (error instanceof HostGatewayError) {
|
|
119
|
+
return json(
|
|
120
|
+
{ ok: false, error: error.code, message: error.message, ...error.details ? { details: error.details } : {} },
|
|
121
|
+
{ status: error.status }
|
|
122
|
+
);
|
|
123
|
+
}
|
|
163
124
|
const message = normalizeErrorMessage(error);
|
|
164
125
|
const classification = classifyInvokeFailureMessage(message);
|
|
165
126
|
return json(
|
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
import { j as json } from './index.js-
|
|
2
|
-
import { g as getAgentDiscoveryDocument } from './discovery-
|
|
1
|
+
import { j as json } from './index.js-CkBvZHgI.js';
|
|
2
|
+
import { g as getAgentDiscoveryDocument } from './discovery-DL0RzVks.js';
|
|
3
3
|
import { r as resolveRequestBaseUrl } from './request-base-url-zKJpVUv5.js';
|
|
4
|
-
import './agent-gateway-runtime-
|
|
4
|
+
import './agent-gateway-runtime-DV-xLmJx.js';
|
|
5
5
|
import '@aopslabs/host-core';
|
|
6
6
|
import '@aopslabs/manifest';
|
|
7
|
-
import './registry-
|
|
7
|
+
import './registry-DIreA2IZ.js';
|
|
8
|
+
import 'node:fs';
|
|
9
|
+
import 'node:os';
|
|
8
10
|
import 'node:path';
|
|
9
|
-
import 'node:module';
|
|
10
11
|
import 'node:url';
|
|
12
|
+
import '@aopslabs/host-admission';
|
|
13
|
+
import '@aopslabs/host-auth';
|
|
14
|
+
import '@aopslabs/host-shell';
|
|
15
|
+
import 'node:worker_threads';
|
|
16
|
+
import '@aopslabs/artifact-trust-contracts';
|
|
11
17
|
import './aops-runtime-config-CHpDUCdE.js';
|
|
12
|
-
import 'node:fs';
|
|
13
18
|
import 'pg';
|
|
14
|
-
import 'node:worker_threads';
|
|
15
|
-
import './admission-snapshot-C2wGfTWE.js';
|
|
16
|
-
import 'node:crypto';
|
|
17
19
|
import 'node:child_process';
|
|
20
|
+
import 'node:module';
|
|
18
21
|
import 'node:util';
|
|
19
22
|
import './project-alias-BdnRxWft.js';
|
|
20
|
-
import '
|
|
23
|
+
import 'node:crypto';
|
|
21
24
|
import 'ajv';
|
|
22
25
|
import 'zod';
|
|
23
26
|
import './auth-provider-C07OUlnz.js';
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { createSvelteKitPluginHandler } from '@aopslabs/host-adapter-sveltekit';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { checkDomainAdmission } from '@aopslabs/host-admission';
|
|
3
|
+
import { j as json } from './index.js-CkBvZHgI.js';
|
|
4
|
+
import { a as getKernelRuntimeSnapshot, e as getHostPluginRegistry } from './registry-DIreA2IZ.js';
|
|
4
5
|
import { a as toSafeDiagnosticLabel, n as normalizePluginFailure, t as toSafePluginFailureLogDetails, i as inferFailureStatusFromPayload } from './plugin-error-normalize-DNeRsopQ.js';
|
|
5
6
|
import { a as attachResolvedProjectScope, r as resolveHostRequestContext } from './request-context-9wzBoKrz.js';
|
|
7
|
+
import 'node:fs';
|
|
8
|
+
import 'node:os';
|
|
6
9
|
import 'node:path';
|
|
7
|
-
import 'node:module';
|
|
8
10
|
import 'node:url';
|
|
9
|
-
import '@aopslabs/host-
|
|
11
|
+
import '@aopslabs/host-auth';
|
|
12
|
+
import '@aopslabs/host-shell';
|
|
13
|
+
import 'node:worker_threads';
|
|
14
|
+
import '@aopslabs/artifact-trust-contracts';
|
|
10
15
|
import './aops-runtime-config-CHpDUCdE.js';
|
|
11
|
-
import 'node:fs';
|
|
12
16
|
import 'pg';
|
|
13
|
-
import '
|
|
14
|
-
import './admission-snapshot-C2wGfTWE.js';
|
|
15
|
-
import 'node:crypto';
|
|
17
|
+
import '@aopslabs/host-core';
|
|
16
18
|
import '@aopslabs/xf-dm-kits/appConfig';
|
|
17
19
|
import '@aopslabs/xf-dm-kits';
|
|
18
20
|
import '@aopslabs/domain-kit-agentspace';
|
|
@@ -88,7 +90,8 @@ async function normalizePluginErrorResponse(response) {
|
|
|
88
90
|
const wrappedHandler = async (event) => {
|
|
89
91
|
await attachResolvedProjectScope(event);
|
|
90
92
|
const domain = String(event.params.domain ?? "").trim().toLowerCase();
|
|
91
|
-
const
|
|
93
|
+
const kernel = await getKernelRuntimeSnapshot();
|
|
94
|
+
const admission = checkDomainAdmission(await kernel.kernel.admission.getSnapshot(), domain);
|
|
92
95
|
if (!admission.allowed) {
|
|
93
96
|
return json(
|
|
94
97
|
{ ok: false, error: "domain_not_available", domain, reason: admission.reason },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as json } from './index.js-
|
|
1
|
+
import { j as json } from './index.js-CkBvZHgI.js';
|
|
2
2
|
import { Effect } from 'effect';
|
|
3
3
|
import { normalizeDocmanFlowAction, saveDocmanGroupFlow, saveDocmanDocumentFlow, saveDocmanSectionFlow, copyDocmanSectionFlow, createLinkedDocmanSection, linkExistingDocmanSection, linkExistingDocmanPageVersion, updateDocmanDocumentSectionLinksFlow, updateDocmanSectionPageLinksFlow, saveDocmanPageVersionDraftFlow, updateDocmanDocumentVersionFlow, updateDocmanPageFlow, copyDocmanPageFlow, createDocmanDocumentVersionFlow, createDocmanPageWithInitialVersionFlow, createLinkedDocmanPage, inferDocmanFlowErrorStatus } from '@aopslabs/domain-product-docman';
|
|
4
4
|
import { a as attachResolvedProjectScope, b as resolveProjectScopeFromLocals } from './request-context-9wzBoKrz.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as json } from './index.js-
|
|
2
|
-
import { g as getAgentGateway } from './agent-gateway-runtime-
|
|
3
|
-
import { b as buildAgentDiscoveryDocument } from './discovery-
|
|
4
|
-
import { g as getHostConfig } from './registry-
|
|
1
|
+
import { j as json } from './index.js-CkBvZHgI.js';
|
|
2
|
+
import { g as getAgentGateway } from './agent-gateway-runtime-DV-xLmJx.js';
|
|
3
|
+
import { b as buildAgentDiscoveryDocument } from './discovery-DL0RzVks.js';
|
|
4
|
+
import { g as getHostConfig } from './registry-DIreA2IZ.js';
|
|
5
5
|
import { r as resolveRequestBaseUrl } from './request-base-url-zKJpVUv5.js';
|
|
6
6
|
import '@aopslabs/host-core';
|
|
7
7
|
import '@aopslabs/manifest';
|
|
@@ -12,15 +12,18 @@ import 'node:url';
|
|
|
12
12
|
import 'node:util';
|
|
13
13
|
import './project-alias-BdnRxWft.js';
|
|
14
14
|
import 'node:crypto';
|
|
15
|
-
import '
|
|
16
|
-
import './admission-snapshot-C2wGfTWE.js';
|
|
15
|
+
import '@aopslabs/artifact-trust-contracts';
|
|
17
16
|
import 'ajv';
|
|
18
17
|
import 'zod';
|
|
19
18
|
import './auth-provider-C07OUlnz.js';
|
|
20
|
-
import './aops-runtime-config-CHpDUCdE.js';
|
|
21
19
|
import 'node:fs';
|
|
22
|
-
import '
|
|
20
|
+
import 'node:os';
|
|
21
|
+
import '@aopslabs/host-admission';
|
|
22
|
+
import '@aopslabs/host-auth';
|
|
23
|
+
import '@aopslabs/host-shell';
|
|
23
24
|
import 'node:worker_threads';
|
|
25
|
+
import './aops-runtime-config-CHpDUCdE.js';
|
|
26
|
+
import 'pg';
|
|
24
27
|
|
|
25
28
|
const AGENT_FLOW_OVERVIEW = {
|
|
26
29
|
version: "1.0",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as json } from './index.js-
|
|
1
|
+
import { j as json } from './index.js-CkBvZHgI.js';
|
|
2
2
|
import { t as testRuntimeConfigAdminTarget, g as getResolvedAopsServerRuntimeConfig } from './aops-runtime-config-CHpDUCdE.js';
|
|
3
3
|
import { o as okResult } from './xf-result-BRDjvftr.js';
|
|
4
4
|
import 'node:fs';
|
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
import { j as json } from './index.js-
|
|
2
|
-
import { g as getAgentDiscoveryDocument } from './discovery-
|
|
1
|
+
import { j as json } from './index.js-CkBvZHgI.js';
|
|
2
|
+
import { g as getAgentDiscoveryDocument } from './discovery-DL0RzVks.js';
|
|
3
3
|
import { r as resolveRequestBaseUrl } from './request-base-url-zKJpVUv5.js';
|
|
4
|
-
import './agent-gateway-runtime-
|
|
4
|
+
import './agent-gateway-runtime-DV-xLmJx.js';
|
|
5
5
|
import '@aopslabs/host-core';
|
|
6
6
|
import '@aopslabs/manifest';
|
|
7
|
-
import './registry-
|
|
7
|
+
import './registry-DIreA2IZ.js';
|
|
8
|
+
import 'node:fs';
|
|
9
|
+
import 'node:os';
|
|
8
10
|
import 'node:path';
|
|
9
|
-
import 'node:module';
|
|
10
11
|
import 'node:url';
|
|
12
|
+
import '@aopslabs/host-admission';
|
|
13
|
+
import '@aopslabs/host-auth';
|
|
14
|
+
import '@aopslabs/host-shell';
|
|
15
|
+
import 'node:worker_threads';
|
|
16
|
+
import '@aopslabs/artifact-trust-contracts';
|
|
11
17
|
import './aops-runtime-config-CHpDUCdE.js';
|
|
12
|
-
import 'node:fs';
|
|
13
18
|
import 'pg';
|
|
14
|
-
import 'node:worker_threads';
|
|
15
|
-
import './admission-snapshot-C2wGfTWE.js';
|
|
16
|
-
import 'node:crypto';
|
|
17
19
|
import 'node:child_process';
|
|
20
|
+
import 'node:module';
|
|
18
21
|
import 'node:util';
|
|
19
22
|
import './project-alias-BdnRxWft.js';
|
|
20
|
-
import '
|
|
23
|
+
import 'node:crypto';
|
|
21
24
|
import 'ajv';
|
|
22
25
|
import 'zod';
|
|
23
26
|
import './auth-provider-C07OUlnz.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as json } from './index.js-
|
|
1
|
+
import { j as json } from './index.js-CkBvZHgI.js';
|
|
2
2
|
import { Effect } from 'effect';
|
|
3
3
|
import { normalizeProjectmanFlowAction, createProjectmanBoardFlow, applyProjectmanTemplateFlow, createProjectmanTemplateFlow, updateProjectmanTemplateFlow, deleteProjectmanTemplateFlow, createProjectmanBoardColumnFlow, createProjectmanTaskFlow, updateProjectmanTaskFlow, moveProjectmanTaskFlow, repositionProjectmanTaskFlow, createProjectmanSprintFlow, updateProjectmanSprintPlanFlow, createProjectmanSprintMicrotaskFlow, updateProjectmanSprintMicrotaskStatusFlow, createProjectmanIssueFlow, updateProjectmanIssueFlow, createProjectmanFeedbackFlow, updateProjectmanFeedbackFlow, convertProjectmanFeedbackToIssueFlow, convertProjectmanFeedbackToTaskFlow, inferProjectmanFlowErrorStatus } from '@aopslabs/domain-product-projectman';
|
|
4
4
|
import './aops-runtime-config-CHpDUCdE.js';
|
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
import { j as json } from './index.js-
|
|
2
|
-
import { g as getAgentGateway } from './agent-gateway-runtime-
|
|
1
|
+
import { j as json } from './index.js-CkBvZHgI.js';
|
|
2
|
+
import { g as getAgentGateway } from './agent-gateway-runtime-DV-xLmJx.js';
|
|
3
3
|
import { r as resolveRequestBaseUrl } from './request-base-url-zKJpVUv5.js';
|
|
4
4
|
import { g as getAuthProvider, i as isTrustedLocalAuthProvider } from './auth-provider-C07OUlnz.js';
|
|
5
5
|
import '@aopslabs/host-core';
|
|
6
6
|
import '@aopslabs/manifest';
|
|
7
|
-
import './registry-
|
|
7
|
+
import './registry-DIreA2IZ.js';
|
|
8
|
+
import 'node:fs';
|
|
9
|
+
import 'node:os';
|
|
8
10
|
import 'node:path';
|
|
9
|
-
import 'node:module';
|
|
10
11
|
import 'node:url';
|
|
12
|
+
import '@aopslabs/host-admission';
|
|
13
|
+
import '@aopslabs/host-auth';
|
|
14
|
+
import '@aopslabs/host-shell';
|
|
15
|
+
import 'node:worker_threads';
|
|
16
|
+
import '@aopslabs/artifact-trust-contracts';
|
|
11
17
|
import './aops-runtime-config-CHpDUCdE.js';
|
|
12
|
-
import 'node:fs';
|
|
13
18
|
import 'pg';
|
|
14
|
-
import 'node:worker_threads';
|
|
15
|
-
import './admission-snapshot-C2wGfTWE.js';
|
|
16
|
-
import 'node:crypto';
|
|
17
19
|
import 'node:child_process';
|
|
20
|
+
import 'node:module';
|
|
18
21
|
import 'node:util';
|
|
19
22
|
import './project-alias-BdnRxWft.js';
|
|
20
|
-
import '
|
|
23
|
+
import 'node:crypto';
|
|
21
24
|
import 'ajv';
|
|
22
25
|
import 'zod';
|
|
23
26
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as json } from './index.js-
|
|
1
|
+
import { j as json } from './index.js-CkBvZHgI.js';
|
|
2
2
|
import { t as testRuntimeConfigAdminTarget } from './aops-runtime-config-CHpDUCdE.js';
|
|
3
3
|
import { o as okResult, e as errResult } from './xf-result-BRDjvftr.js';
|
|
4
4
|
import 'node:fs';
|
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
import { j as json } from './index.js-
|
|
2
|
-
import { a as getAgentToolDetailDocument } from './discovery-
|
|
1
|
+
import { j as json } from './index.js-CkBvZHgI.js';
|
|
2
|
+
import { a as getAgentToolDetailDocument } from './discovery-DL0RzVks.js';
|
|
3
3
|
import { r as resolveRequestBaseUrl } from './request-base-url-zKJpVUv5.js';
|
|
4
|
-
import './agent-gateway-runtime-
|
|
4
|
+
import './agent-gateway-runtime-DV-xLmJx.js';
|
|
5
5
|
import '@aopslabs/host-core';
|
|
6
6
|
import '@aopslabs/manifest';
|
|
7
|
-
import './registry-
|
|
7
|
+
import './registry-DIreA2IZ.js';
|
|
8
|
+
import 'node:fs';
|
|
9
|
+
import 'node:os';
|
|
8
10
|
import 'node:path';
|
|
9
|
-
import 'node:module';
|
|
10
11
|
import 'node:url';
|
|
12
|
+
import '@aopslabs/host-admission';
|
|
13
|
+
import '@aopslabs/host-auth';
|
|
14
|
+
import '@aopslabs/host-shell';
|
|
15
|
+
import 'node:worker_threads';
|
|
16
|
+
import '@aopslabs/artifact-trust-contracts';
|
|
11
17
|
import './aops-runtime-config-CHpDUCdE.js';
|
|
12
|
-
import 'node:fs';
|
|
13
18
|
import 'pg';
|
|
14
|
-
import 'node:worker_threads';
|
|
15
|
-
import './admission-snapshot-C2wGfTWE.js';
|
|
16
|
-
import 'node:crypto';
|
|
17
19
|
import 'node:child_process';
|
|
20
|
+
import 'node:module';
|
|
18
21
|
import 'node:util';
|
|
19
22
|
import './project-alias-BdnRxWft.js';
|
|
20
|
-
import '
|
|
23
|
+
import 'node:crypto';
|
|
21
24
|
import 'ajv';
|
|
22
25
|
import 'zod';
|
|
23
26
|
import './auth-provider-C07OUlnz.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as json } from './index.js-
|
|
2
|
-
import { b as getAgentGatewayDiagnostics } from './agent-gateway-runtime-
|
|
3
|
-
import { g as getHostConfig, a as
|
|
1
|
+
import { j as json } from './index.js-CkBvZHgI.js';
|
|
2
|
+
import { b as getAgentGatewayDiagnostics } from './agent-gateway-runtime-DV-xLmJx.js';
|
|
3
|
+
import { g as getHostConfig, a as getKernelRuntimeSnapshot, b as getHostRegistrationDiagnostics, c as getHostPluginRegistryDiagnostics, d as getHostAdmissionDiagnostics, r as resolveCommunityPackageModule } from './registry-DIreA2IZ.js';
|
|
4
4
|
import { r as readRuntimeConfigAdmin } from './aops-runtime-config-CHpDUCdE.js';
|
|
5
5
|
import '@aopslabs/host-core';
|
|
6
6
|
import '@aopslabs/manifest';
|
|
@@ -11,11 +11,14 @@ import 'node:url';
|
|
|
11
11
|
import 'node:util';
|
|
12
12
|
import './project-alias-BdnRxWft.js';
|
|
13
13
|
import 'node:crypto';
|
|
14
|
-
import '
|
|
15
|
-
import './admission-snapshot-C2wGfTWE.js';
|
|
14
|
+
import '@aopslabs/artifact-trust-contracts';
|
|
16
15
|
import 'ajv';
|
|
17
16
|
import 'zod';
|
|
18
17
|
import 'node:fs';
|
|
18
|
+
import 'node:os';
|
|
19
|
+
import '@aopslabs/host-admission';
|
|
20
|
+
import '@aopslabs/host-auth';
|
|
21
|
+
import '@aopslabs/host-shell';
|
|
19
22
|
import 'node:worker_threads';
|
|
20
23
|
import 'pg';
|
|
21
24
|
|
|
@@ -50,6 +53,7 @@ function areHostAdminPluginDiagnosticsEnabled() {
|
|
|
50
53
|
return getHostConfig().diagnostics?.exposePluginBootstrap !== false;
|
|
51
54
|
}
|
|
52
55
|
async function readHostAdminPluginsSnapshot() {
|
|
56
|
+
const kernel = await getKernelRuntimeSnapshot();
|
|
53
57
|
const config = getHostConfig();
|
|
54
58
|
const plugins = config.plugins ?? [];
|
|
55
59
|
const providers = config.agentGateway?.catalog?.manifestProviders ?? [];
|
|
@@ -63,7 +67,14 @@ async function readHostAdminPluginsSnapshot() {
|
|
|
63
67
|
registrations: getHostRegistrationDiagnostics(),
|
|
64
68
|
agentGateway: getAgentGatewayDiagnostics(),
|
|
65
69
|
storage: { postgres: readRuntimeConfigAdmin() },
|
|
66
|
-
sources: []
|
|
70
|
+
sources: [],
|
|
71
|
+
kernel: {
|
|
72
|
+
profile: kernel.kernel.config.profile,
|
|
73
|
+
authority: kernel.kernel.authority.mode,
|
|
74
|
+
admission: kernel.kernel.admission.mode,
|
|
75
|
+
domainCount: kernel.registry.listDomains().length,
|
|
76
|
+
gateway: kernel.gateway.getDiagnostics()
|
|
77
|
+
}
|
|
67
78
|
};
|
|
68
79
|
}
|
|
69
80
|
const GET = async ({ url }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as json } from './index.js-
|
|
1
|
+
import { j as json } from './index.js-CkBvZHgI.js';
|
|
2
2
|
import { r as readRuntimeConfigAdmin, g as getResolvedAopsServerRuntimeConfig } from './aops-runtime-config-CHpDUCdE.js';
|
|
3
3
|
import { g as getAuthProvider } from './auth-provider-C07OUlnz.js';
|
|
4
4
|
import { o as okResult } from './xf-result-BRDjvftr.js';
|
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
import { j as json } from './index.js-
|
|
2
|
-
import { g as getAgentGateway } from './agent-gateway-runtime-
|
|
1
|
+
import { j as json } from './index.js-CkBvZHgI.js';
|
|
2
|
+
import { g as getAgentGateway } from './agent-gateway-runtime-DV-xLmJx.js';
|
|
3
3
|
import { r as resolveRequestBaseUrl } from './request-base-url-zKJpVUv5.js';
|
|
4
4
|
import { g as getAuthProvider, i as isTrustedLocalAuthProvider } from './auth-provider-C07OUlnz.js';
|
|
5
5
|
import '@aopslabs/host-core';
|
|
6
6
|
import '@aopslabs/manifest';
|
|
7
|
-
import './registry-
|
|
7
|
+
import './registry-DIreA2IZ.js';
|
|
8
|
+
import 'node:fs';
|
|
9
|
+
import 'node:os';
|
|
8
10
|
import 'node:path';
|
|
9
|
-
import 'node:module';
|
|
10
11
|
import 'node:url';
|
|
12
|
+
import '@aopslabs/host-admission';
|
|
13
|
+
import '@aopslabs/host-auth';
|
|
14
|
+
import '@aopslabs/host-shell';
|
|
15
|
+
import 'node:worker_threads';
|
|
16
|
+
import '@aopslabs/artifact-trust-contracts';
|
|
11
17
|
import './aops-runtime-config-CHpDUCdE.js';
|
|
12
|
-
import 'node:fs';
|
|
13
18
|
import 'pg';
|
|
14
|
-
import 'node:worker_threads';
|
|
15
|
-
import './admission-snapshot-C2wGfTWE.js';
|
|
16
|
-
import 'node:crypto';
|
|
17
19
|
import 'node:child_process';
|
|
20
|
+
import 'node:module';
|
|
18
21
|
import 'node:util';
|
|
19
22
|
import './project-alias-BdnRxWft.js';
|
|
20
|
-
import '
|
|
23
|
+
import 'node:crypto';
|
|
21
24
|
import 'ajv';
|
|
22
25
|
import 'zod';
|
|
23
26
|
|
package/build/server/chunks/{agent-gateway-runtime-C7Kvvy0H.js → agent-gateway-runtime-DV-xLmJx.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { dispatchDomainRequest } from '@aopslabs/host-core';
|
|
2
2
|
import { buildAgentGatewayOpenApi, buildFederatedToolCatalog, validateManifest } from '@aopslabs/manifest';
|
|
3
|
-
import { g as getHostConfig,
|
|
3
|
+
import { g as getHostConfig, a as getKernelRuntimeSnapshot, f as checkHostDomainAdmission, h as resetHostPluginRegistry, e as getHostPluginRegistry } from './registry-DIreA2IZ.js';
|
|
4
4
|
import path from 'node:path';
|
|
5
5
|
import { execFile } from 'node:child_process';
|
|
6
6
|
import { createRequire } from 'node:module';
|
|
@@ -8,8 +8,7 @@ import { pathToFileURL } from 'node:url';
|
|
|
8
8
|
import { promisify } from 'node:util';
|
|
9
9
|
import { g as getLogger, h as hasProjectAliasValue } from './project-alias-BdnRxWft.js';
|
|
10
10
|
import { createHash } from 'node:crypto';
|
|
11
|
-
import {
|
|
12
|
-
import './admission-snapshot-C2wGfTWE.js';
|
|
11
|
+
import { compareCanonicalText } from '@aopslabs/artifact-trust-contracts';
|
|
13
12
|
import Ajv from 'ajv';
|
|
14
13
|
import { z } from 'zod';
|
|
15
14
|
|
|
@@ -2610,5 +2609,41 @@ function getAgentGatewayDiagnostics() {
|
|
|
2610
2609
|
errorCount: 0
|
|
2611
2610
|
};
|
|
2612
2611
|
}
|
|
2612
|
+
function normalize(value) {
|
|
2613
|
+
return String(value ?? "").trim().toLowerCase();
|
|
2614
|
+
}
|
|
2615
|
+
async function invokeKernelAgentTool(args) {
|
|
2616
|
+
const catalogGateway = getAgentGateway();
|
|
2617
|
+
const catalog = await catalogGateway.listTools();
|
|
2618
|
+
const catalogTool = catalog.tools.find((tool) => normalize(tool.toolId) === normalize(args.toolId));
|
|
2619
|
+
if (!catalogTool) throw new Error(`tool_not_found:${args.toolId}`);
|
|
2620
|
+
const snapshot = await getKernelRuntimeSnapshot();
|
|
2621
|
+
const plugin = snapshot.registry.get(normalize(catalogTool.domain));
|
|
2622
|
+
if (!plugin) throw new Error(`domain_not_registered:${catalogTool.domain}`);
|
|
2623
|
+
const route = plugin.manifest.routes.find(
|
|
2624
|
+
(candidate) => normalize(candidate.operation) === normalize(catalogTool.operationId)
|
|
2625
|
+
);
|
|
2626
|
+
if (!route) {
|
|
2627
|
+
throw new Error(`operation_route_not_found:${catalogTool.domain}:${catalogTool.operationId}`);
|
|
2628
|
+
}
|
|
2629
|
+
const routeId = normalize(route.id);
|
|
2630
|
+
const kernelToolId = routeId.startsWith(`${normalize(catalogTool.domain)}.`) ? routeId : `${normalize(catalogTool.domain)}.${routeId}`;
|
|
2631
|
+
const result = await snapshot.gateway.invokeTool({
|
|
2632
|
+
toolId: kernelToolId,
|
|
2633
|
+
envelope: args.envelope,
|
|
2634
|
+
context: args.context,
|
|
2635
|
+
...args.requestHeaders ? { requestHeaders: args.requestHeaders } : {}
|
|
2636
|
+
});
|
|
2637
|
+
return {
|
|
2638
|
+
tool: {
|
|
2639
|
+
...catalogTool,
|
|
2640
|
+
sourceId: result.tool.sourceId,
|
|
2641
|
+
sourceKind: "local-route"
|
|
2642
|
+
},
|
|
2643
|
+
status: result.status,
|
|
2644
|
+
data: result.data,
|
|
2645
|
+
...result.headers ? { headers: result.headers } : {}
|
|
2646
|
+
};
|
|
2647
|
+
}
|
|
2613
2648
|
|
|
2614
|
-
export { normalizeToolId as a, getAgentGatewayDiagnostics as b, getAgentGateway as g, normalizeDomain as n, resolveOperationKind as r };
|
|
2649
|
+
export { normalizeToolId as a, getAgentGatewayDiagnostics as b, getAgentGateway as g, invokeKernelAgentTool as i, normalizeDomain as n, resolveOperationKind as r };
|