@aopslabs/aops-server 0.2.18 → 0.2.20
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/THIRD_PARTY_NOTICES +38 -222
- package/THIRD_PARTY_NOTICES.inventory.json +55 -129
- package/build/client/_app/immutable/chunks/DonIqigD.js +1 -0
- package/build/client/_app/immutable/entry/{app.DE1eK-IO.js → app.C6Lg33Kk.js} +2 -2
- package/build/client/_app/immutable/entry/start.BNV-4lWe.js +1 -0
- package/build/client/_app/immutable/nodes/{1.DF4e4l4l.js → 1.vnXZ9nfR.js} +1 -1
- package/build/client/_app/version.json +1 -1
- package/build/handler.js +4 -4
- package/build/index.js +4 -4
- package/build/server/chunks/chunks/agent-gateway-runtime.js-r4g4yskN.js +924 -0
- package/build/server/chunks/chunks/{aops-runtime-config.js-CHpDUCdE.js → aops-runtime-config.js-Cjj5F0t8.js} +6 -0
- package/build/server/chunks/chunks/{discovery.js-CZjXJ_ZV.js → discovery.js-DxJiP5Ke.js} +2 -2
- package/build/server/chunks/chunks/domain-dispatch.js-DUR9TD3Q.js +83 -0
- package/build/server/chunks/chunks/{internal.js-Cex9xk6X.js → internal.js-D6CldYYG.js} +1 -1
- package/build/server/chunks/chunks/{plugin-error-normalize.js-DNeRsopQ.js → plugin-error-normalize.js-D5rNpava.js} +12 -1
- package/build/server/chunks/chunks/project-delete-preview.js-EPMmUQYW.js +64 -0
- package/build/server/chunks/chunks/{registry.js-DdOAgkkf.js → registry.js-W6rrS4yl.js} +1 -1
- package/build/server/chunks/chunks/{request-context.js-Y9Hk40z6.js → request-context.js-C7pKg6Do.js} +24 -2
- package/build/server/chunks/entries/endpoints/api/_domain_/_...path_/{_server.ts.js-DL2_Wh9Q.js → _server.ts.js-CrmOjNdW.js} +8 -9
- package/build/server/chunks/entries/endpoints/api/agent/discovery.json/{_server.ts.js-ILAncxy4.js → _server.ts.js-C_Bpk024.js} +5 -8
- package/build/server/chunks/entries/endpoints/api/agent/openapi.json/{_server.ts.js-Coo1MB-m.js → _server.ts.js-D_7ZwZLj.js} +4 -7
- package/build/server/chunks/entries/endpoints/api/agent/tools/{_server.ts.js-B99CDA4V.js → _server.ts.js-DsVOzB_s.js} +6 -9
- package/build/server/chunks/entries/endpoints/api/agent/tools/_toolId_/{_server.ts.js-Vdxe7_8Z.js → _server.ts.js-BhSRTRGX.js} +5 -8
- package/build/server/chunks/entries/endpoints/api/agent/tools/_toolId_/invoke/{_server.ts.js-D2N4Kt49.js → _server.ts.js-W45uKRo3.js} +6 -9
- package/build/server/chunks/entries/endpoints/api/aops/docman/flows/{_server.ts.js-97nMAeIY.js → _server.ts.js-B7NK3_ce.js} +2 -3
- package/build/server/chunks/entries/endpoints/api/aops/projectman/flows/{_server.ts.js-Cn1_Y84Z.js → _server.ts.js-QCAvkMnA.js} +2 -3
- package/build/server/chunks/entries/endpoints/api/aops/projects/_scopeId_/delete/_server.ts.js-2JTUKA0R.js +168 -0
- package/build/server/chunks/entries/endpoints/api/aops/projects/_scopeId_/delete-preview/_server.ts.js-6TwPYzNx.js +47 -0
- package/build/server/chunks/entries/endpoints/api/aops/settings/database/status/{_server.ts.js-DEHnxQc6.js → _server.ts.js-CysjqstH.js} +1 -1
- package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-BfazPOwp.js → _server.ts.js-BubTRJg_.js} +1 -1
- package/build/server/chunks/entries/endpoints/api/host-admin/plugins/{_server.ts.js-A9smz4KX.js → _server.ts.js-d549xH5s.js} +5 -8
- package/build/server/chunks/entries/endpoints/api/host-admin/runtime-config/{_server.ts.js-D8HIQFf4.js → _server.ts.js-Dj0PpCx9.js} +1 -1
- package/build/server/chunks/entries/endpoints/api/host-admin/runtime-config/test/{_server.ts.js-BHCFCWYZ.js → _server.ts.js-BmKesVSC.js} +1 -1
- package/build/server/chunks/entries/endpoints/api-info.json/{_server.ts.js-Cd-liJ6G.js → _server.ts.js-BlQ6o52L.js} +5 -8
- package/build/server/chunks/entries/endpoints/health/{_server.ts.js-D_H6vT6P.js → _server.ts.js-Dmp-dGYM.js} +2 -2
- package/build/server/chunks/entries/endpoints/openapi.json/{_server.ts.js-FJKIQip2.js → _server.ts.js-Bpzb9jLa.js} +4 -7
- package/build/server/chunks/{handler-7xD8haQQ.js → handler-JlcqpcVV.js} +2 -2
- package/build/server/chunks/{index.js-oJov90e3.js → index.js-BD5LJ7db.js} +1 -1
- package/build/server/chunks/{manifest.js-JcTVvkpO.js → manifest.js-N6antb1f.js} +32 -18
- package/build/server/chunks/nodes/{1.js-C_yxDx3r.js → 1.js-DCfqyX-a.js} +1 -1
- package/cockpit/.vite/manifest.json +2 -2
- package/cockpit/assets/{index-BSNHteK1.css → index-CNsNqqZP.css} +1 -1
- package/cockpit/assets/index-DuUFC3yd.js +17 -0
- package/cockpit/community.module-inventory.json +231 -191
- package/cockpit/index.html +2 -2
- package/migrations/agentspace/0001_vengeful_firestar.sql +4 -0
- package/migrations/agentspace/meta/_journal.json +7 -0
- package/migrations/projectman/0006_optional_sprint_task.sql +1 -0
- package/migrations/projectman/0007_board_column_delete_restrict.sql +15 -0
- package/migrations/projectman/meta/_journal.json +14 -0
- package/npm-shrinkwrap.json +86 -128
- package/package.json +20 -17
- package/runtime/agentspace-tooling.mjs +3 -10
- package/runtime-closure.package.json +33 -34
- package/scripts/community-migration-policy-package-v1.json +58 -216
- package/build/client/_app/immutable/chunks/Duy8DcbU.js +0 -1
- package/build/client/_app/immutable/entry/start.s0P-l96K.js +0 -1
- package/build/server/chunks/chunks/agent-gateway-runtime.js-De6jvAjX.js +0 -2642
- package/build/server/chunks/chunks/project-alias.js-BdnRxWft.js +0 -28
- package/cockpit/assets/index-BUaKAOXP.js +0 -18
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { j as json } from '../../../../../../../chunks/utils2.js-D_gUiWYm.js';
|
|
2
|
+
import { dispatchDomainRequest } from '@aopslabs/host-core';
|
|
3
|
+
import { b as getHostPluginRegistry } from '../../../../../../../chunks/registry.js-W6rrS4yl.js';
|
|
4
|
+
import { b as buildInternalDomainRequest, c as createRegistryScopeCountDispatch } from '../../../../../../../chunks/domain-dispatch.js-DUR9TD3Q.js';
|
|
5
|
+
import { b as buildProjectDeletePreview } from '../../../../../../../chunks/project-delete-preview.js-EPMmUQYW.js';
|
|
6
|
+
import { a as attachResolvedProjectScope, r as resolveHostRequestContext } from '../../../../../../../chunks/request-context.js-C7pKg6Do.js';
|
|
7
|
+
import { r as readJsonRequestBody } from '../../../../../../../chunks/json-request-body.js-ewKk-XAX.js';
|
|
8
|
+
import { o as okResult } from '../../../../../../../chunks/xf-result.js-BRDjvftr.js';
|
|
9
|
+
import '../../../../../../../chunks/utils.js-BQzn9ikS.js';
|
|
10
|
+
import '../../../../../../../chunks/uneval.js-BnYgIxRU.js';
|
|
11
|
+
import 'node:fs';
|
|
12
|
+
import 'node:os';
|
|
13
|
+
import 'node:path';
|
|
14
|
+
import 'node:url';
|
|
15
|
+
import '@aopslabs/host-auth';
|
|
16
|
+
import '@aopslabs/host-shell';
|
|
17
|
+
import 'node:worker_threads';
|
|
18
|
+
import '@aopslabs/artifact-trust-contracts';
|
|
19
|
+
import '../../../../../../../chunks/aops-runtime-config.js-Cjj5F0t8.js';
|
|
20
|
+
import 'pg';
|
|
21
|
+
import '@aopslabs/host-admission';
|
|
22
|
+
import 'node:crypto';
|
|
23
|
+
import '@aopslabs/xf-dm-kits/appConfig';
|
|
24
|
+
import '@aopslabs/xf-dm-kits';
|
|
25
|
+
import '@aopslabs/domain-kit-agentspace';
|
|
26
|
+
import 'effect';
|
|
27
|
+
|
|
28
|
+
function trimmed(value) {
|
|
29
|
+
return typeof value === "string" ? value.trim() : "";
|
|
30
|
+
}
|
|
31
|
+
function decideProjectDeletion(params) {
|
|
32
|
+
const digest = trimmed(params.request.previewDigest);
|
|
33
|
+
const confirm = trimmed(params.request.confirm);
|
|
34
|
+
if (!digest) {
|
|
35
|
+
return {
|
|
36
|
+
allowed: false,
|
|
37
|
+
status: 400,
|
|
38
|
+
error: "preview_digest_required",
|
|
39
|
+
message: "Deleting a project requires the digest of the preview it was approved from."
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
if (digest !== params.preview.previewDigest) {
|
|
43
|
+
return {
|
|
44
|
+
allowed: false,
|
|
45
|
+
status: 409,
|
|
46
|
+
error: "preview_stale",
|
|
47
|
+
message: "The project changed since the preview was taken. Review the current preview and confirm again.",
|
|
48
|
+
freshDigest: params.preview.previewDigest
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
if (!params.preview.deletable) {
|
|
52
|
+
return {
|
|
53
|
+
allowed: false,
|
|
54
|
+
status: 409,
|
|
55
|
+
error: "project_not_empty",
|
|
56
|
+
message: "This project still holds records. Move or remove them, then delete the project.",
|
|
57
|
+
blockers: params.preview.blockers
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
const accepted = [params.identity.name, params.identity.slug].map((value) => trimmed(value).toLowerCase()).filter(Boolean);
|
|
61
|
+
if (accepted.length === 0) {
|
|
62
|
+
return {
|
|
63
|
+
allowed: false,
|
|
64
|
+
status: 409,
|
|
65
|
+
error: "project_identity_unknown",
|
|
66
|
+
message: "This project has neither a name nor a slug to confirm against, so deletion cannot be confirmed."
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
if (!accepted.includes(confirm.toLowerCase())) {
|
|
70
|
+
return {
|
|
71
|
+
allowed: false,
|
|
72
|
+
status: 400,
|
|
73
|
+
error: "confirmation_mismatch",
|
|
74
|
+
message: "Type the project name or slug exactly to confirm deletion."
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
return { allowed: true };
|
|
78
|
+
}
|
|
79
|
+
const SCOPE_ID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
80
|
+
function isRecord(value) {
|
|
81
|
+
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
82
|
+
}
|
|
83
|
+
const POST = async (event) => {
|
|
84
|
+
const { params, request } = event;
|
|
85
|
+
const scopeId = String(params.scopeId ?? "").trim();
|
|
86
|
+
if (!SCOPE_ID.test(scopeId)) {
|
|
87
|
+
return json(
|
|
88
|
+
{ ok: false, error: "invalid_input", field: "scopeId", message: "scopeId must be a UUID" },
|
|
89
|
+
{ status: 400 }
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
const parsedBody = await readJsonRequestBody(request, { emptyBodyMessage: "request_body_required" });
|
|
93
|
+
if (!parsedBody.ok) {
|
|
94
|
+
return json({ ok: false, error: "invalid_input", message: parsedBody.message }, { status: 400 });
|
|
95
|
+
}
|
|
96
|
+
const payload = isRecord(parsedBody.value) ? parsedBody.value : {};
|
|
97
|
+
const registry = await getHostPluginRegistry();
|
|
98
|
+
await attachResolvedProjectScope(event);
|
|
99
|
+
const context = resolveHostRequestContext(event);
|
|
100
|
+
const preview = await buildProjectDeletePreview({
|
|
101
|
+
scopeId,
|
|
102
|
+
dispatch: createRegistryScopeCountDispatch(registry, context)
|
|
103
|
+
});
|
|
104
|
+
const identity = await readProjectIdentity(registry, scopeId, context);
|
|
105
|
+
const decision = decideProjectDeletion({
|
|
106
|
+
request: { previewDigest: payload.previewDigest, confirm: payload.confirm },
|
|
107
|
+
preview,
|
|
108
|
+
identity
|
|
109
|
+
});
|
|
110
|
+
if (!decision.allowed) {
|
|
111
|
+
return json(
|
|
112
|
+
{
|
|
113
|
+
ok: false,
|
|
114
|
+
error: decision.error,
|
|
115
|
+
message: decision.message,
|
|
116
|
+
...decision.blockers ? { blockers: decision.blockers } : {},
|
|
117
|
+
...decision.freshDigest ? { freshDigest: decision.freshDigest, preview } : {}
|
|
118
|
+
},
|
|
119
|
+
{ status: decision.status }
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
await registry.ensureSetup("agentspace");
|
|
123
|
+
const response = await dispatchDomainRequest({
|
|
124
|
+
registry,
|
|
125
|
+
// agentspace has no DELETE /projects/:id -- its removal is an operation
|
|
126
|
+
// route, and dispatching to the REST-shaped path answered 404 for every
|
|
127
|
+
// call. The gate passed and the delete it guards never happened. Nothing
|
|
128
|
+
// caught it because, until this ran against a live host, the destructive
|
|
129
|
+
// call had never been made at all.
|
|
130
|
+
request: buildInternalDomainRequest({
|
|
131
|
+
method: "DELETE",
|
|
132
|
+
domain: "agentspace",
|
|
133
|
+
path: ["operations", "project", "remove-project"],
|
|
134
|
+
scopeId,
|
|
135
|
+
query: { id: scopeId },
|
|
136
|
+
context
|
|
137
|
+
})
|
|
138
|
+
});
|
|
139
|
+
const status = response.status ?? 500;
|
|
140
|
+
if (status >= 400) {
|
|
141
|
+
return json(
|
|
142
|
+
{ ok: false, error: "project_delete_failed", message: "The project delete was refused downstream.", status },
|
|
143
|
+
{ status }
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
return json(okResult({ scopeId, deleted: true, previewDigest: preview.previewDigest }), { status: 200 });
|
|
147
|
+
};
|
|
148
|
+
async function readProjectIdentity(registry, scopeId, context) {
|
|
149
|
+
await registry.ensureSetup("agentspace");
|
|
150
|
+
const response = await dispatchDomainRequest({
|
|
151
|
+
registry,
|
|
152
|
+
request: buildInternalDomainRequest({
|
|
153
|
+
method: "GET",
|
|
154
|
+
domain: "agentspace",
|
|
155
|
+
path: ["projects", scopeId],
|
|
156
|
+
scopeId,
|
|
157
|
+
context
|
|
158
|
+
})
|
|
159
|
+
});
|
|
160
|
+
const data = response.data;
|
|
161
|
+
const record = isRecord(data) && isRecord(data.data) ? data.data : isRecord(data) ? data : {};
|
|
162
|
+
return {
|
|
163
|
+
name: typeof record.name === "string" ? record.name : null,
|
|
164
|
+
slug: typeof record.slug === "string" ? record.slug : null
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export { POST };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { j as json } from '../../../../../../../chunks/utils2.js-D_gUiWYm.js';
|
|
2
|
+
import { b as getHostPluginRegistry } from '../../../../../../../chunks/registry.js-W6rrS4yl.js';
|
|
3
|
+
import { a as attachResolvedProjectScope, r as resolveHostRequestContext } from '../../../../../../../chunks/request-context.js-C7pKg6Do.js';
|
|
4
|
+
import { c as createRegistryScopeCountDispatch } from '../../../../../../../chunks/domain-dispatch.js-DUR9TD3Q.js';
|
|
5
|
+
import { b as buildProjectDeletePreview } from '../../../../../../../chunks/project-delete-preview.js-EPMmUQYW.js';
|
|
6
|
+
import { o as okResult } from '../../../../../../../chunks/xf-result.js-BRDjvftr.js';
|
|
7
|
+
import '../../../../../../../chunks/utils.js-BQzn9ikS.js';
|
|
8
|
+
import '../../../../../../../chunks/uneval.js-BnYgIxRU.js';
|
|
9
|
+
import 'node:fs';
|
|
10
|
+
import 'node:os';
|
|
11
|
+
import 'node:path';
|
|
12
|
+
import 'node:url';
|
|
13
|
+
import '@aopslabs/host-auth';
|
|
14
|
+
import '@aopslabs/host-shell';
|
|
15
|
+
import 'node:worker_threads';
|
|
16
|
+
import '@aopslabs/artifact-trust-contracts';
|
|
17
|
+
import '../../../../../../../chunks/aops-runtime-config.js-Cjj5F0t8.js';
|
|
18
|
+
import 'pg';
|
|
19
|
+
import '@aopslabs/host-core';
|
|
20
|
+
import '@aopslabs/host-admission';
|
|
21
|
+
import '@aopslabs/xf-dm-kits/appConfig';
|
|
22
|
+
import '@aopslabs/xf-dm-kits';
|
|
23
|
+
import '@aopslabs/domain-kit-agentspace';
|
|
24
|
+
import 'effect';
|
|
25
|
+
import 'node:crypto';
|
|
26
|
+
|
|
27
|
+
const SCOPE_ID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
28
|
+
const GET = async (event) => {
|
|
29
|
+
const { params } = event;
|
|
30
|
+
const scopeId = String(params.scopeId ?? "").trim();
|
|
31
|
+
if (!SCOPE_ID.test(scopeId)) {
|
|
32
|
+
return json(
|
|
33
|
+
{ ok: false, error: "invalid_input", field: "scopeId", message: "scopeId must be a UUID" },
|
|
34
|
+
{ status: 400 }
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
await attachResolvedProjectScope(event);
|
|
38
|
+
const context = resolveHostRequestContext(event);
|
|
39
|
+
const registry = await getHostPluginRegistry();
|
|
40
|
+
const preview = await buildProjectDeletePreview({
|
|
41
|
+
scopeId,
|
|
42
|
+
dispatch: createRegistryScopeCountDispatch(registry, context)
|
|
43
|
+
});
|
|
44
|
+
return json(okResult(preview), { status: 200 });
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export { GET };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as json } from '../../../../../../../chunks/utils2.js-D_gUiWYm.js';
|
|
2
|
-
import { t as testRuntimeConfigAdminTarget, g as getResolvedAopsServerRuntimeConfig } from '../../../../../../../chunks/aops-runtime-config.js-
|
|
2
|
+
import { t as testRuntimeConfigAdminTarget, g as getResolvedAopsServerRuntimeConfig } from '../../../../../../../chunks/aops-runtime-config.js-Cjj5F0t8.js';
|
|
3
3
|
import { o as okResult } from '../../../../../../../chunks/xf-result.js-BRDjvftr.js';
|
|
4
4
|
import '../../../../../../../chunks/utils.js-BQzn9ikS.js';
|
|
5
5
|
import '../../../../../../../chunks/uneval.js-BnYgIxRU.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as json } from '../../../../chunks/utils2.js-D_gUiWYm.js';
|
|
2
|
-
import { r as readRuntimeConfigAdmin, g as getResolvedAopsServerRuntimeConfig } from '../../../../chunks/aops-runtime-config.js-
|
|
2
|
+
import { r as readRuntimeConfigAdmin, g as getResolvedAopsServerRuntimeConfig } from '../../../../chunks/aops-runtime-config.js-Cjj5F0t8.js';
|
|
3
3
|
import { g as getAuthProvider } from '../../../../chunks/auth-provider.js-C07OUlnz.js';
|
|
4
4
|
import { o as okResult } from '../../../../chunks/xf-result.js-BRDjvftr.js';
|
|
5
5
|
import '../../../../chunks/utils.js-BQzn9ikS.js';
|
|
@@ -1,26 +1,23 @@
|
|
|
1
1
|
import { j as json } from '../../../../../chunks/utils2.js-D_gUiWYm.js';
|
|
2
|
-
import { b as getAgentGatewayDiagnostics } from '../../../../../chunks/agent-gateway-runtime.js-
|
|
3
|
-
import { g as getHostConfig, a as getKernelRuntimeSnapshot, d as getHostRegistrationDiagnostics, e as getHostPluginRegistryDiagnostics, f as getHostAdmissionDiagnostics, h as resolveCommunityPackageModule } from '../../../../../chunks/registry.js-
|
|
4
|
-
import { r as readRuntimeConfigAdmin } from '../../../../../chunks/aops-runtime-config.js-
|
|
2
|
+
import { b as getAgentGatewayDiagnostics } from '../../../../../chunks/agent-gateway-runtime.js-r4g4yskN.js';
|
|
3
|
+
import { g as getHostConfig, a as getKernelRuntimeSnapshot, d as getHostRegistrationDiagnostics, e as getHostPluginRegistryDiagnostics, f as getHostAdmissionDiagnostics, h as resolveCommunityPackageModule } from '../../../../../chunks/registry.js-W6rrS4yl.js';
|
|
4
|
+
import { r as readRuntimeConfigAdmin } from '../../../../../chunks/aops-runtime-config.js-Cjj5F0t8.js';
|
|
5
5
|
import '../../../../../chunks/utils.js-BQzn9ikS.js';
|
|
6
6
|
import '../../../../../chunks/uneval.js-BnYgIxRU.js';
|
|
7
7
|
import '@aopslabs/host-core';
|
|
8
|
+
import '../../../../../chunks/domain-dispatch.js-DUR9TD3Q.js';
|
|
8
9
|
import '@aopslabs/manifest';
|
|
9
10
|
import 'node:path';
|
|
10
11
|
import 'node:child_process';
|
|
11
12
|
import 'node:module';
|
|
12
13
|
import 'node:url';
|
|
13
14
|
import 'node:util';
|
|
14
|
-
import '../../../../../chunks/project-alias.js-BdnRxWft.js';
|
|
15
|
-
import 'node:crypto';
|
|
16
|
-
import '@aopslabs/artifact-trust-contracts';
|
|
17
|
-
import 'ajv';
|
|
18
|
-
import 'zod';
|
|
19
15
|
import 'node:fs';
|
|
20
16
|
import 'node:os';
|
|
21
17
|
import '@aopslabs/host-auth';
|
|
22
18
|
import '@aopslabs/host-shell';
|
|
23
19
|
import 'node:worker_threads';
|
|
20
|
+
import '@aopslabs/artifact-trust-contracts';
|
|
24
21
|
import '@aopslabs/host-admission';
|
|
25
22
|
import 'pg';
|
|
26
23
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as json } from '../../../../../chunks/utils2.js-D_gUiWYm.js';
|
|
2
|
-
import { r as readRuntimeConfigAdmin } from '../../../../../chunks/aops-runtime-config.js-
|
|
2
|
+
import { r as readRuntimeConfigAdmin } from '../../../../../chunks/aops-runtime-config.js-Cjj5F0t8.js';
|
|
3
3
|
import { o as okResult } from '../../../../../chunks/xf-result.js-BRDjvftr.js';
|
|
4
4
|
import '../../../../../chunks/utils.js-BQzn9ikS.js';
|
|
5
5
|
import '../../../../../chunks/uneval.js-BnYgIxRU.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as json } from '../../../../../../chunks/utils2.js-D_gUiWYm.js';
|
|
2
|
-
import { t as testRuntimeConfigAdminTarget } from '../../../../../../chunks/aops-runtime-config.js-
|
|
2
|
+
import { t as testRuntimeConfigAdminTarget } from '../../../../../../chunks/aops-runtime-config.js-Cjj5F0t8.js';
|
|
3
3
|
import { o as okResult, e as errResult } from '../../../../../../chunks/xf-result.js-BRDjvftr.js';
|
|
4
4
|
import '../../../../../../chunks/utils.js-BQzn9ikS.js';
|
|
5
5
|
import '../../../../../../chunks/uneval.js-BnYgIxRU.js';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { j as json } from '../../../chunks/utils2.js-D_gUiWYm.js';
|
|
2
|
-
import { g as getAgentDiscoveryDocument } from '../../../chunks/discovery.js-
|
|
2
|
+
import { g as getAgentDiscoveryDocument } from '../../../chunks/discovery.js-DxJiP5Ke.js';
|
|
3
3
|
import { r as resolveRequestBaseUrl } from '../../../chunks/request-base-url.js-zKJpVUv5.js';
|
|
4
4
|
import '../../../chunks/utils.js-BQzn9ikS.js';
|
|
5
5
|
import '../../../chunks/uneval.js-BnYgIxRU.js';
|
|
6
|
-
import '../../../chunks/agent-gateway-runtime.js-
|
|
6
|
+
import '../../../chunks/agent-gateway-runtime.js-r4g4yskN.js';
|
|
7
7
|
import '@aopslabs/host-core';
|
|
8
|
+
import '../../../chunks/domain-dispatch.js-DUR9TD3Q.js';
|
|
8
9
|
import '@aopslabs/manifest';
|
|
9
|
-
import '../../../chunks/registry.js-
|
|
10
|
+
import '../../../chunks/registry.js-W6rrS4yl.js';
|
|
10
11
|
import 'node:fs';
|
|
11
12
|
import 'node:os';
|
|
12
13
|
import 'node:path';
|
|
@@ -15,16 +16,12 @@ import '@aopslabs/host-auth';
|
|
|
15
16
|
import '@aopslabs/host-shell';
|
|
16
17
|
import 'node:worker_threads';
|
|
17
18
|
import '@aopslabs/artifact-trust-contracts';
|
|
18
|
-
import '../../../chunks/aops-runtime-config.js-
|
|
19
|
+
import '../../../chunks/aops-runtime-config.js-Cjj5F0t8.js';
|
|
19
20
|
import 'pg';
|
|
20
21
|
import '@aopslabs/host-admission';
|
|
21
22
|
import 'node:child_process';
|
|
22
23
|
import 'node:module';
|
|
23
24
|
import 'node:util';
|
|
24
|
-
import '../../../chunks/project-alias.js-BdnRxWft.js';
|
|
25
|
-
import 'node:crypto';
|
|
26
|
-
import 'ajv';
|
|
27
|
-
import 'zod';
|
|
28
25
|
import '../../../chunks/auth-provider.js-C07OUlnz.js';
|
|
29
26
|
|
|
30
27
|
const GET = async ({ request, url }) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { GET } from '../api/health/_server.ts.js-
|
|
1
|
+
export { GET } from '../api/health/_server.ts.js-BubTRJg_.js';
|
|
2
2
|
import '../../../chunks/utils2.js-D_gUiWYm.js';
|
|
3
3
|
import '../../../chunks/utils.js-BQzn9ikS.js';
|
|
4
4
|
import '../../../chunks/uneval.js-BnYgIxRU.js';
|
|
5
|
-
import '../../../chunks/aops-runtime-config.js-
|
|
5
|
+
import '../../../chunks/aops-runtime-config.js-Cjj5F0t8.js';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'node:path';
|
|
8
8
|
import 'pg';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { j as json } from '../../../chunks/utils2.js-D_gUiWYm.js';
|
|
2
|
-
import { g as getAgentGateway } from '../../../chunks/agent-gateway-runtime.js-
|
|
2
|
+
import { g as getAgentGateway } from '../../../chunks/agent-gateway-runtime.js-r4g4yskN.js';
|
|
3
3
|
import { r as resolveRequestBaseUrl } from '../../../chunks/request-base-url.js-zKJpVUv5.js';
|
|
4
4
|
import { g as getAuthProvider, i as isTrustedLocalAuthProvider } from '../../../chunks/auth-provider.js-C07OUlnz.js';
|
|
5
5
|
import '../../../chunks/utils.js-BQzn9ikS.js';
|
|
6
6
|
import '../../../chunks/uneval.js-BnYgIxRU.js';
|
|
7
7
|
import '@aopslabs/host-core';
|
|
8
|
+
import '../../../chunks/domain-dispatch.js-DUR9TD3Q.js';
|
|
8
9
|
import '@aopslabs/manifest';
|
|
9
|
-
import '../../../chunks/registry.js-
|
|
10
|
+
import '../../../chunks/registry.js-W6rrS4yl.js';
|
|
10
11
|
import 'node:fs';
|
|
11
12
|
import 'node:os';
|
|
12
13
|
import 'node:path';
|
|
@@ -15,16 +16,12 @@ import '@aopslabs/host-auth';
|
|
|
15
16
|
import '@aopslabs/host-shell';
|
|
16
17
|
import 'node:worker_threads';
|
|
17
18
|
import '@aopslabs/artifact-trust-contracts';
|
|
18
|
-
import '../../../chunks/aops-runtime-config.js-
|
|
19
|
+
import '../../../chunks/aops-runtime-config.js-Cjj5F0t8.js';
|
|
19
20
|
import 'pg';
|
|
20
21
|
import '@aopslabs/host-admission';
|
|
21
22
|
import 'node:child_process';
|
|
22
23
|
import 'node:module';
|
|
23
24
|
import 'node:util';
|
|
24
|
-
import '../../../chunks/project-alias.js-BdnRxWft.js';
|
|
25
|
-
import 'node:crypto';
|
|
26
|
-
import 'ajv';
|
|
27
|
-
import 'zod';
|
|
28
25
|
|
|
29
26
|
const GET = async ({ request, url }) => {
|
|
30
27
|
const gateway = getAgentGateway();
|
|
@@ -8,8 +8,8 @@ import { setImmediate } from 'node:timers';
|
|
|
8
8
|
import * as qs from 'node:querystring';
|
|
9
9
|
import { Readable } from 'node:stream';
|
|
10
10
|
import { S as SvelteKitError } from './chunks/utils2.js-D_gUiWYm.js';
|
|
11
|
-
import { S as Server } from './index.js-
|
|
12
|
-
import { m as manifest } from './manifest.js-
|
|
11
|
+
import { S as Server } from './index.js-BD5LJ7db.js';
|
|
12
|
+
import { m as manifest } from './manifest.js-N6antb1f.js';
|
|
13
13
|
import { env, dir, env_prefix } from '../../env.js';
|
|
14
14
|
import { format } from 'node:url';
|
|
15
15
|
|
|
@@ -4,7 +4,7 @@ import { b as base, a as app_dir, r as relative, o as override, c as assets, d a
|
|
|
4
4
|
import { u as uneval } from './chunks/uneval.js-BnYgIxRU.js';
|
|
5
5
|
import { d as decode_pathname, n as normalize_path, a as disable_search, b as decode_params, v as validate_layout_server_exports, c as validate_layout_exports, e as validate_page_server_exports, f as validate_page_exports, r as resolve, m as make_trackable, w as writable, g as readable } from './chunks/exports.js-BoBrqMaZ.js';
|
|
6
6
|
import { g as get_relative_path, t as text_encoder, a as base64_encode } from './chunks/utils.js-BQzn9ikS.js';
|
|
7
|
-
import { o as options, s as set_private_env, a as set_public_env, g as get_hooks, p as public_env, r as read_implementation, b as set_read_implementation } from './chunks/internal.js-
|
|
7
|
+
import { o as options, s as set_private_env, a as set_public_env, g as get_hooks, p as public_env, r as read_implementation, b as set_read_implementation } from './chunks/internal.js-D6CldYYG.js';
|
|
8
8
|
|
|
9
9
|
const s = JSON.stringify;
|
|
10
10
|
function exec(match, params, matchers) {
|
|
@@ -10,10 +10,10 @@ return {
|
|
|
10
10
|
assets: new Set([]),
|
|
11
11
|
mimeTypes: {},
|
|
12
12
|
_: {
|
|
13
|
-
client: {start:"_app/immutable/entry/start.
|
|
13
|
+
client: {start:"_app/immutable/entry/start.BNV-4lWe.js",app:"_app/immutable/entry/app.C6Lg33Kk.js",imports:["_app/immutable/entry/start.BNV-4lWe.js","_app/immutable/chunks/DonIqigD.js","_app/immutable/chunks/2_TffmqH.js","_app/immutable/chunks/B2EkC-sy.js","_app/immutable/entry/app.C6Lg33Kk.js","_app/immutable/chunks/2_TffmqH.js","_app/immutable/chunks/CMkIcmi1.js","_app/immutable/chunks/rqnVXeyB.js","_app/immutable/chunks/B2EkC-sy.js","_app/immutable/chunks/3DOfIKW0.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
|
14
14
|
nodes: [
|
|
15
15
|
__memo(() => import('./nodes/0.js-RfB6m2nq.js')),
|
|
16
|
-
__memo(() => import('./nodes/1.js-
|
|
16
|
+
__memo(() => import('./nodes/1.js-DCfqyX-a.js'))
|
|
17
17
|
],
|
|
18
18
|
remotes: {
|
|
19
19
|
|
|
@@ -31,7 +31,7 @@ return {
|
|
|
31
31
|
pattern: /^\/api-info\.json\/?$/,
|
|
32
32
|
params: [],
|
|
33
33
|
page: null,
|
|
34
|
-
endpoint: __memo(() => import('./entries/endpoints/api-info.json/_server.ts.js-
|
|
34
|
+
endpoint: __memo(() => import('./entries/endpoints/api-info.json/_server.ts.js-BlQ6o52L.js'))
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
id: "/api-info",
|
|
@@ -52,56 +52,70 @@ return {
|
|
|
52
52
|
pattern: /^\/api\/agent\/discovery\.json\/?$/,
|
|
53
53
|
params: [],
|
|
54
54
|
page: null,
|
|
55
|
-
endpoint: __memo(() => import('./entries/endpoints/api/agent/discovery.json/_server.ts.js-
|
|
55
|
+
endpoint: __memo(() => import('./entries/endpoints/api/agent/discovery.json/_server.ts.js-C_Bpk024.js'))
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
id: "/api/agent/openapi.json",
|
|
59
59
|
pattern: /^\/api\/agent\/openapi\.json\/?$/,
|
|
60
60
|
params: [],
|
|
61
61
|
page: null,
|
|
62
|
-
endpoint: __memo(() => import('./entries/endpoints/api/agent/openapi.json/_server.ts.js-
|
|
62
|
+
endpoint: __memo(() => import('./entries/endpoints/api/agent/openapi.json/_server.ts.js-D_7ZwZLj.js'))
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
id: "/api/agent/tools",
|
|
66
66
|
pattern: /^\/api\/agent\/tools\/?$/,
|
|
67
67
|
params: [],
|
|
68
68
|
page: null,
|
|
69
|
-
endpoint: __memo(() => import('./entries/endpoints/api/agent/tools/_server.ts.js-
|
|
69
|
+
endpoint: __memo(() => import('./entries/endpoints/api/agent/tools/_server.ts.js-DsVOzB_s.js'))
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
id: "/api/agent/tools/[toolId]",
|
|
73
73
|
pattern: /^\/api\/agent\/tools\/([^/]+?)\/?$/,
|
|
74
74
|
params: [{"name":"toolId","optional":false,"rest":false,"chained":false}],
|
|
75
75
|
page: null,
|
|
76
|
-
endpoint: __memo(() => import('./entries/endpoints/api/agent/tools/_toolId_/_server.ts.js-
|
|
76
|
+
endpoint: __memo(() => import('./entries/endpoints/api/agent/tools/_toolId_/_server.ts.js-BhSRTRGX.js'))
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
id: "/api/agent/tools/[toolId]/invoke",
|
|
80
80
|
pattern: /^\/api\/agent\/tools\/([^/]+?)\/invoke\/?$/,
|
|
81
81
|
params: [{"name":"toolId","optional":false,"rest":false,"chained":false}],
|
|
82
82
|
page: null,
|
|
83
|
-
endpoint: __memo(() => import('./entries/endpoints/api/agent/tools/_toolId_/invoke/_server.ts.js-
|
|
83
|
+
endpoint: __memo(() => import('./entries/endpoints/api/agent/tools/_toolId_/invoke/_server.ts.js-W45uKRo3.js'))
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
id: "/api/aops/docman/flows",
|
|
87
87
|
pattern: /^\/api\/aops\/docman\/flows\/?$/,
|
|
88
88
|
params: [],
|
|
89
89
|
page: null,
|
|
90
|
-
endpoint: __memo(() => import('./entries/endpoints/api/aops/docman/flows/_server.ts.js-
|
|
90
|
+
endpoint: __memo(() => import('./entries/endpoints/api/aops/docman/flows/_server.ts.js-B7NK3_ce.js'))
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
id: "/api/aops/projectman/flows",
|
|
94
94
|
pattern: /^\/api\/aops\/projectman\/flows\/?$/,
|
|
95
95
|
params: [],
|
|
96
96
|
page: null,
|
|
97
|
-
endpoint: __memo(() => import('./entries/endpoints/api/aops/projectman/flows/_server.ts.js-
|
|
97
|
+
endpoint: __memo(() => import('./entries/endpoints/api/aops/projectman/flows/_server.ts.js-QCAvkMnA.js'))
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
id: "/api/aops/projects/[scopeId]/delete-preview",
|
|
101
|
+
pattern: /^\/api\/aops\/projects\/([^/]+?)\/delete-preview\/?$/,
|
|
102
|
+
params: [{"name":"scopeId","optional":false,"rest":false,"chained":false}],
|
|
103
|
+
page: null,
|
|
104
|
+
endpoint: __memo(() => import('./entries/endpoints/api/aops/projects/_scopeId_/delete-preview/_server.ts.js-6TwPYzNx.js'))
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
id: "/api/aops/projects/[scopeId]/delete",
|
|
108
|
+
pattern: /^\/api\/aops\/projects\/([^/]+?)\/delete\/?$/,
|
|
109
|
+
params: [{"name":"scopeId","optional":false,"rest":false,"chained":false}],
|
|
110
|
+
page: null,
|
|
111
|
+
endpoint: __memo(() => import('./entries/endpoints/api/aops/projects/_scopeId_/delete/_server.ts.js-2JTUKA0R.js'))
|
|
98
112
|
},
|
|
99
113
|
{
|
|
100
114
|
id: "/api/aops/settings/database/status",
|
|
101
115
|
pattern: /^\/api\/aops\/settings\/database\/status\/?$/,
|
|
102
116
|
params: [],
|
|
103
117
|
page: null,
|
|
104
|
-
endpoint: __memo(() => import('./entries/endpoints/api/aops/settings/database/status/_server.ts.js-
|
|
118
|
+
endpoint: __memo(() => import('./entries/endpoints/api/aops/settings/database/status/_server.ts.js-CysjqstH.js'))
|
|
105
119
|
},
|
|
106
120
|
{
|
|
107
121
|
id: "/api/auth/me",
|
|
@@ -122,7 +136,7 @@ return {
|
|
|
122
136
|
pattern: /^\/api\/health\/?$/,
|
|
123
137
|
params: [],
|
|
124
138
|
page: null,
|
|
125
|
-
endpoint: __memo(() => import('./entries/endpoints/api/health/_server.ts.js-
|
|
139
|
+
endpoint: __memo(() => import('./entries/endpoints/api/health/_server.ts.js-BubTRJg_.js'))
|
|
126
140
|
},
|
|
127
141
|
{
|
|
128
142
|
id: "/api/hello",
|
|
@@ -136,42 +150,42 @@ return {
|
|
|
136
150
|
pattern: /^\/api\/host-admin\/plugins\/?$/,
|
|
137
151
|
params: [],
|
|
138
152
|
page: null,
|
|
139
|
-
endpoint: __memo(() => import('./entries/endpoints/api/host-admin/plugins/_server.ts.js-
|
|
153
|
+
endpoint: __memo(() => import('./entries/endpoints/api/host-admin/plugins/_server.ts.js-d549xH5s.js'))
|
|
140
154
|
},
|
|
141
155
|
{
|
|
142
156
|
id: "/api/host-admin/runtime-config",
|
|
143
157
|
pattern: /^\/api\/host-admin\/runtime-config\/?$/,
|
|
144
158
|
params: [],
|
|
145
159
|
page: null,
|
|
146
|
-
endpoint: __memo(() => import('./entries/endpoints/api/host-admin/runtime-config/_server.ts.js-
|
|
160
|
+
endpoint: __memo(() => import('./entries/endpoints/api/host-admin/runtime-config/_server.ts.js-Dj0PpCx9.js'))
|
|
147
161
|
},
|
|
148
162
|
{
|
|
149
163
|
id: "/api/host-admin/runtime-config/test",
|
|
150
164
|
pattern: /^\/api\/host-admin\/runtime-config\/test\/?$/,
|
|
151
165
|
params: [],
|
|
152
166
|
page: null,
|
|
153
|
-
endpoint: __memo(() => import('./entries/endpoints/api/host-admin/runtime-config/test/_server.ts.js-
|
|
167
|
+
endpoint: __memo(() => import('./entries/endpoints/api/host-admin/runtime-config/test/_server.ts.js-BmKesVSC.js'))
|
|
154
168
|
},
|
|
155
169
|
{
|
|
156
170
|
id: "/api/[domain]/[...path]",
|
|
157
171
|
pattern: /^\/api\/([^/]+?)(?:\/([^]*))?\/?$/,
|
|
158
172
|
params: [{"name":"domain","optional":false,"rest":false,"chained":false},{"name":"path","optional":false,"rest":true,"chained":true}],
|
|
159
173
|
page: null,
|
|
160
|
-
endpoint: __memo(() => import('./entries/endpoints/api/_domain_/_...path_/_server.ts.js-
|
|
174
|
+
endpoint: __memo(() => import('./entries/endpoints/api/_domain_/_...path_/_server.ts.js-CrmOjNdW.js'))
|
|
161
175
|
},
|
|
162
176
|
{
|
|
163
177
|
id: "/health",
|
|
164
178
|
pattern: /^\/health\/?$/,
|
|
165
179
|
params: [],
|
|
166
180
|
page: null,
|
|
167
|
-
endpoint: __memo(() => import('./entries/endpoints/health/_server.ts.js-
|
|
181
|
+
endpoint: __memo(() => import('./entries/endpoints/health/_server.ts.js-Dmp-dGYM.js'))
|
|
168
182
|
},
|
|
169
183
|
{
|
|
170
184
|
id: "/openapi.json",
|
|
171
185
|
pattern: /^\/openapi\.json\/?$/,
|
|
172
186
|
params: [],
|
|
173
187
|
page: null,
|
|
174
|
-
endpoint: __memo(() => import('./entries/endpoints/openapi.json/_server.ts.js-
|
|
188
|
+
endpoint: __memo(() => import('./entries/endpoints/openapi.json/_server.ts.js-Bpzb9jLa.js'))
|
|
175
189
|
}
|
|
176
190
|
],
|
|
177
191
|
prerendered_routes: new Set([]),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const index = 1;
|
|
2
2
|
let component_cache;
|
|
3
3
|
const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js-Cj202Teb.js')).default;
|
|
4
|
-
const imports = ["_app/immutable/nodes/1.
|
|
4
|
+
const imports = ["_app/immutable/nodes/1.vnXZ9nfR.js","_app/immutable/chunks/rqnVXeyB.js","_app/immutable/chunks/2_TffmqH.js","_app/immutable/chunks/CMkIcmi1.js","_app/immutable/chunks/DonIqigD.js","_app/immutable/chunks/B2EkC-sy.js"];
|
|
5
5
|
const stylesheets = [];
|
|
6
6
|
const fonts = [];
|
|
7
7
|
|
|
@@ -148,12 +148,12 @@
|
|
|
148
148
|
"src": "../../node_modules/.pnpm/@fontsource+unbounded@5.2.8/node_modules/@fontsource/unbounded/files/unbounded-vietnamese-600-normal.woff2"
|
|
149
149
|
},
|
|
150
150
|
"index.html": {
|
|
151
|
-
"file": "assets/index-
|
|
151
|
+
"file": "assets/index-DuUFC3yd.js",
|
|
152
152
|
"name": "index",
|
|
153
153
|
"src": "index.html",
|
|
154
154
|
"isEntry": true,
|
|
155
155
|
"css": [
|
|
156
|
-
"assets/index-
|
|
156
|
+
"assets/index-CNsNqqZP.css"
|
|
157
157
|
],
|
|
158
158
|
"assets": [
|
|
159
159
|
"assets/outfit-latin-ext-400-normal-5tcqmc2S.woff2",
|