@aopslabs/aops-server 0.2.17 → 0.2.19
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 +40 -224
- package/THIRD_PARTY_NOTICES.inventory.json +59 -115
- package/build/client/_app/immutable/chunks/{DsVD5sY-.js → DwNoiPzd.js} +1 -1
- package/build/client/_app/immutable/entry/{app.drhGhM7-.js → app.BCeW6qfW.js} +2 -2
- package/build/client/_app/immutable/entry/start.zwNVELjE.js +1 -0
- package/build/client/_app/immutable/nodes/{1.CmvZWhgC.js → 1.DDA3xyX5.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-CHt2o7ou.js → internal.js-CQc6YaRD.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-BfsqMBoK.js → handler-BhSuXULO.js} +2 -2
- package/build/server/chunks/{index.js-B85XMLmi.js → index.js-DaJ2rIzs.js} +1 -1
- package/build/server/chunks/{manifest.js-BeFELu1I.js → manifest.js-BeuL7Ebk.js} +32 -18
- package/build/server/chunks/nodes/{1.js-C7id1cFV.js → 1.js-CE_jApMe.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 +90 -132
- package/package.json +22 -19
- package/runtime/agentspace-tooling.mjs +3 -10
- package/runtime-closure.package.json +35 -36
- package/scripts/community-migration-policy-package-v1.json +41 -216
- package/build/client/_app/immutable/entry/start.DFlIg1ZE.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
|
@@ -146,6 +146,12 @@ async function runRuntimeConfigAdminTargetProbe(processEnv = process.env) {
|
|
|
146
146
|
const repoUrl = nonEmpty(processEnv[COMMUNITY_PG_ENV_KEY]);
|
|
147
147
|
const target = parsePgTarget(repoUrl);
|
|
148
148
|
const pool = new Pool(createCommunityPgPoolConfig(repoUrl));
|
|
149
|
+
pool.on("error", (error) => {
|
|
150
|
+
console.warn("[runtime-config-probe] PostgreSQL client failed during target probe", {
|
|
151
|
+
message: error.message,
|
|
152
|
+
code: error.code
|
|
153
|
+
});
|
|
154
|
+
});
|
|
149
155
|
try {
|
|
150
156
|
const database = await pool.query("select current_database() as name");
|
|
151
157
|
const tables = await pool.query(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getAgentGateway, n as normalizeDomain, a as normalizeToolId, r as resolveOperationKind } from './agent-gateway-runtime.js-
|
|
2
|
-
import { g as getHostConfig } from './registry.js-
|
|
1
|
+
import { g as getAgentGateway, n as normalizeDomain, a as normalizeToolId, r as resolveOperationKind } from './agent-gateway-runtime.js-r4g4yskN.js';
|
|
2
|
+
import { g as getHostConfig } from './registry.js-W6rrS4yl.js';
|
|
3
3
|
import { g as getAuthProvider, i as isTrustedLocalAuthProvider } from './auth-provider.js-C07OUlnz.js';
|
|
4
4
|
|
|
5
5
|
const COMMUNITY_CLIENT_COMPATIBILITY_SCHEMA_VERSION = 1;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { dispatchDomainRequest } from '@aopslabs/host-core';
|
|
2
|
+
|
|
3
|
+
function buildInternalDomainRequest(input) {
|
|
4
|
+
const query = new URLSearchParams({ scopeId: input.scopeId, ...input.query ?? {} });
|
|
5
|
+
const url = new URL(`http://localhost/api/${input.domain}/${input.path.join("/")}?${query.toString()}`);
|
|
6
|
+
return {
|
|
7
|
+
method: input.method,
|
|
8
|
+
domain: input.domain,
|
|
9
|
+
path: [...input.path],
|
|
10
|
+
query,
|
|
11
|
+
body: input.body,
|
|
12
|
+
headers: new Headers({ "x-scope-id": input.scopeId, ...input.headers ?? {} }),
|
|
13
|
+
url,
|
|
14
|
+
// scopeId last: this call is about this scope, whatever the caller's
|
|
15
|
+
// ambient scope was.
|
|
16
|
+
context: { ...input.context ?? {}, scopeId: input.scopeId },
|
|
17
|
+
inputTransport: {
|
|
18
|
+
version: 1,
|
|
19
|
+
kind: "http",
|
|
20
|
+
queryEntries: Array.from(query.entries()),
|
|
21
|
+
// `absent` is the adapter's own word for "no body", not an empty
|
|
22
|
+
// object: an empty object would be input the caller never sent.
|
|
23
|
+
body: input.body === void 0 ? { kind: "absent" } : { kind: "json", value: input.body }
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function isRecord(value) {
|
|
28
|
+
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
29
|
+
}
|
|
30
|
+
function readRows(payload) {
|
|
31
|
+
const data = isRecord(payload) ? payload.data : payload;
|
|
32
|
+
const rows = Array.isArray(data) ? data : isRecord(data) && Array.isArray(data.items) ? data.items : [];
|
|
33
|
+
return rows.filter(isRecord);
|
|
34
|
+
}
|
|
35
|
+
function toIsoTimestamp(value) {
|
|
36
|
+
if (value instanceof Date) {
|
|
37
|
+
return Number.isNaN(value.getTime()) ? null : value.toISOString();
|
|
38
|
+
}
|
|
39
|
+
if (typeof value === "string") {
|
|
40
|
+
const parsed = Date.parse(value);
|
|
41
|
+
return Number.isNaN(parsed) ? null : new Date(parsed).toISOString();
|
|
42
|
+
}
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
function newestUpdatedAt(rows) {
|
|
46
|
+
let newestMs = null;
|
|
47
|
+
let newest = null;
|
|
48
|
+
for (const row of rows) {
|
|
49
|
+
const iso = toIsoTimestamp(row.updatedAt);
|
|
50
|
+
if (iso === null) continue;
|
|
51
|
+
const ms = Date.parse(iso);
|
|
52
|
+
if (newestMs === null || ms > newestMs) {
|
|
53
|
+
newestMs = ms;
|
|
54
|
+
newest = iso;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return newest;
|
|
58
|
+
}
|
|
59
|
+
function createRegistryScopeCountDispatch(registry, context) {
|
|
60
|
+
return async ({ domain, path, scopeId }) => {
|
|
61
|
+
await registry.ensureSetup(domain);
|
|
62
|
+
const response = await dispatchDomainRequest({
|
|
63
|
+
registry,
|
|
64
|
+
request: buildInternalDomainRequest({ method: "GET", domain, path, scopeId, context })
|
|
65
|
+
});
|
|
66
|
+
const status = response.status ?? 500;
|
|
67
|
+
if (status >= 400) {
|
|
68
|
+
const payload = response.data;
|
|
69
|
+
console.warn("[project-delete-preview] scope count refused", {
|
|
70
|
+
domain,
|
|
71
|
+
path: path.join("/"),
|
|
72
|
+
status,
|
|
73
|
+
error: payload && typeof payload === "object" && "error" in payload ? String(payload.error) : void 0,
|
|
74
|
+
message: payload && typeof payload === "object" && "message" in payload ? String(payload.message) : void 0
|
|
75
|
+
});
|
|
76
|
+
throw new Error(`scope_count_failed:${domain}/${path.join("/")}:status_${String(status)}`);
|
|
77
|
+
}
|
|
78
|
+
const rows = readRows(response.data);
|
|
79
|
+
return { count: rows.length, latestUpdatedAt: newestUpdatedAt(rows) };
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export { buildInternalDomainRequest as b, createRegistryScopeCountDispatch as c };
|
|
@@ -101,7 +101,7 @@ const options = {
|
|
|
101
101
|
app: ({ head, body, assets, nonce, env }) => '<!doctype html>\n<html lang="en">\n <head>\n <meta charset="utf-8" />\n <link rel="icon" href="' + assets + '/favicon.png" />\n <meta name="viewport" content="width=device-width, initial-scale=1" />\n ' + head + '\n </head>\n <body data-sveltekit-preload-data="hover">\n <div style="display: contents">' + body + "</div>\n </body>\n</html>\n",
|
|
102
102
|
error
|
|
103
103
|
},
|
|
104
|
-
version_hash: "
|
|
104
|
+
version_hash: "1vfpoj"
|
|
105
105
|
};
|
|
106
106
|
async function get_hooks() {
|
|
107
107
|
let handle;
|
|
@@ -110,6 +110,17 @@ function toSafeDiagnosticLabel(value) {
|
|
|
110
110
|
const normalized = toText(value);
|
|
111
111
|
return SAFE_DIAGNOSTIC_LABEL.test(normalized) ? normalized : "invalid";
|
|
112
112
|
}
|
|
113
|
+
const SECRET_PATTERNS = [
|
|
114
|
+
// A connection string carries its password in the authority section.
|
|
115
|
+
[/([a-z][a-z0-9+.-]*:\/\/[^:@\s/]+:)[^@\s/]+@/gi, "$1[REDACTED]@"],
|
|
116
|
+
[/((?:password|secret|token|api[_-]?key|authorization)\s*[=:]\s*)("[^"]*"|'[^']*'|[^\s,;)]+)/gi, "$1[REDACTED]"]
|
|
117
|
+
];
|
|
118
|
+
function toSafePluginFailureLogCause(message) {
|
|
119
|
+
let text = toText(message);
|
|
120
|
+
if (!text) return "";
|
|
121
|
+
for (const [pattern, replacement] of SECRET_PATTERNS) text = text.replace(pattern, replacement);
|
|
122
|
+
return text.length > 2048 ? `${text.slice(0, 2048)}…[truncated]` : text;
|
|
123
|
+
}
|
|
113
124
|
function toSafePluginFailureLogDetails(payload) {
|
|
114
125
|
const details = isRecord(payload) ? payload : {};
|
|
115
126
|
return {
|
|
@@ -306,4 +317,4 @@ function normalizePluginFailure(status, payload) {
|
|
|
306
317
|
};
|
|
307
318
|
}
|
|
308
319
|
|
|
309
|
-
export { toSafeDiagnosticLabel as a, classifyInvokeFailureMessage as c, inferFailureStatusFromPayload as i, normalizePluginFailure as n, toSafePluginFailureLogDetails as t };
|
|
320
|
+
export { toSafeDiagnosticLabel as a, toSafePluginFailureLogCause as b, classifyInvokeFailureMessage as c, inferFailureStatusFromPayload as i, normalizePluginFailure as n, toSafePluginFailureLogDetails as t };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
2
|
+
|
|
3
|
+
const PROJECT_SCOPE_RECORD_SOURCES = [
|
|
4
|
+
{ domain: "projectman", path: ["kanban-boards"], label: "Boards" },
|
|
5
|
+
{ domain: "projectman", path: ["kanban-tasks"], label: "Tasks" },
|
|
6
|
+
{ domain: "projectman", path: ["sprints"], label: "Sprints" },
|
|
7
|
+
{ domain: "projectman", path: ["issues"], label: "Issues" },
|
|
8
|
+
{ domain: "projectman", path: ["feedbacks"], label: "Feedback" },
|
|
9
|
+
{ domain: "projectman", path: ["review-requests"], label: "Review requests" },
|
|
10
|
+
{ domain: "agentspace", path: ["memory-items"], label: "Memory" },
|
|
11
|
+
{ domain: "agentspace", path: ["discussion-topics"], label: "Discussions" },
|
|
12
|
+
{ domain: "docman", path: ["documents"], label: "Documents" }
|
|
13
|
+
];
|
|
14
|
+
function computePreviewDigest(scopeId, domains) {
|
|
15
|
+
const canonical = [
|
|
16
|
+
`scope:${scopeId}`,
|
|
17
|
+
...[...domains].map(
|
|
18
|
+
(entry) => (
|
|
19
|
+
// The readability state is part of the picture, not a detail of
|
|
20
|
+
// how it was produced. A domain that could not be counted and a
|
|
21
|
+
// domain that answered zero are two different things to have
|
|
22
|
+
// approved, and without this they hash the same: a digest minted
|
|
23
|
+
// from a preview that refused would still match once the domain
|
|
24
|
+
// became readable, and the delete would go through on approval
|
|
25
|
+
// given to a picture that said "unreadable".
|
|
26
|
+
`${entry.domain}/${entry.path.join("/")}:${entry.error ? `error:${entry.error}` : entry.count}:${entry.latestUpdatedAt ?? "-"}`
|
|
27
|
+
)
|
|
28
|
+
).sort()
|
|
29
|
+
].join("\n");
|
|
30
|
+
return `sha256:${createHash("sha256").update(canonical).digest("hex")}`;
|
|
31
|
+
}
|
|
32
|
+
async function buildProjectDeletePreview(params) {
|
|
33
|
+
const sources = params.sources ?? PROJECT_SCOPE_RECORD_SOURCES;
|
|
34
|
+
const domains = [];
|
|
35
|
+
for (const source of sources) {
|
|
36
|
+
try {
|
|
37
|
+
const counted = await params.dispatch({
|
|
38
|
+
domain: source.domain,
|
|
39
|
+
path: source.path,
|
|
40
|
+
scopeId: params.scopeId
|
|
41
|
+
});
|
|
42
|
+
domains.push({ ...source, count: counted.count, latestUpdatedAt: counted.latestUpdatedAt });
|
|
43
|
+
} catch (error) {
|
|
44
|
+
domains.push({
|
|
45
|
+
...source,
|
|
46
|
+
count: 0,
|
|
47
|
+
latestUpdatedAt: null,
|
|
48
|
+
error: error instanceof Error ? error.message : String(error)
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
const blockers = domains.filter((entry) => entry.count > 0 || entry.error !== void 0).map((entry) => ({ label: entry.error ? `${entry.label} (unreadable)` : entry.label, count: entry.count }));
|
|
53
|
+
return {
|
|
54
|
+
scopeId: params.scopeId,
|
|
55
|
+
domains,
|
|
56
|
+
totalRecords: domains.reduce((total, entry) => total + entry.count, 0),
|
|
57
|
+
blockers,
|
|
58
|
+
deletable: blockers.length === 0,
|
|
59
|
+
previewDigest: computePreviewDigest(params.scopeId, domains),
|
|
60
|
+
generatedAt: (params.now ?? (() => /* @__PURE__ */ new Date()))().toISOString()
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export { buildProjectDeletePreview as b };
|
|
@@ -6,7 +6,7 @@ import { createTrustedLocalAuthorityProvider } from '@aopslabs/host-auth';
|
|
|
6
6
|
import { bootstrapHostRuntime, resolveHostConfig } from '@aopslabs/host-shell';
|
|
7
7
|
import { Worker } from 'node:worker_threads';
|
|
8
8
|
import { AdmissionDecisionCache, buildAdmittedDomainSnapshot, CommercialArtifactError } from '@aopslabs/artifact-trust-contracts';
|
|
9
|
-
import './aops-runtime-config.js-
|
|
9
|
+
import './aops-runtime-config.js-Cjj5F0t8.js';
|
|
10
10
|
import { validateHostConfig } from '@aopslabs/host-core';
|
|
11
11
|
import { createLeaseAdmissionProvider } from '@aopslabs/host-admission';
|
|
12
12
|
|
package/build/server/chunks/chunks/{request-context.js-Y9Hk40z6.js → request-context.js-C7pKg6Do.js}
RENAMED
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
import { g as getResolvedAopsServerRuntimeConfig } from './aops-runtime-config.js-
|
|
1
|
+
import { g as getResolvedAopsServerRuntimeConfig } from './aops-runtime-config.js-Cjj5F0t8.js';
|
|
2
2
|
import { createAppMetaConfigManager } from '@aopslabs/xf-dm-kits/appConfig';
|
|
3
3
|
import { getGlobalSingleton, cacheKeyFromLocale } from '@aopslabs/xf-dm-kits';
|
|
4
4
|
import { createAgentspaceKitWithEnv } from '@aopslabs/domain-kit-agentspace';
|
|
5
|
-
import { n as normalizeNonEmptyProjectText, r as resolveProjectAliasValue, g as getLogger } from './project-alias.js-BdnRxWft.js';
|
|
6
5
|
import { e as errResult } from './xf-result.js-BRDjvftr.js';
|
|
7
6
|
import { Effect } from 'effect';
|
|
8
7
|
|
|
8
|
+
function normalizeNonEmptyProjectText(value) {
|
|
9
|
+
if (typeof value !== "string") return void 0;
|
|
10
|
+
const trimmed = value.trim();
|
|
11
|
+
return trimmed.length > 0 ? trimmed : void 0;
|
|
12
|
+
}
|
|
13
|
+
function resolveProjectAliasValue(input) {
|
|
14
|
+
return normalizeNonEmptyProjectText(input.projectId) ?? normalizeNonEmptyProjectText(input.projectName) ?? normalizeNonEmptyProjectText(input.project);
|
|
15
|
+
}
|
|
9
16
|
function resolveAgentspaceRepoUrl(_repositoryType) {
|
|
10
17
|
const value = getResolvedAopsServerRuntimeConfig().repoUrl.trim();
|
|
11
18
|
if (!value) {
|
|
@@ -74,6 +81,21 @@ function normalizeLogLevel(value) {
|
|
|
74
81
|
const normalized = String(value ?? "").toLowerCase();
|
|
75
82
|
return ALLOWED_LOG_LEVELS.includes(normalized) ? normalized : "info";
|
|
76
83
|
}
|
|
84
|
+
async function getLogger(opts = {}) {
|
|
85
|
+
const { level = "info", file = false, console = true } = opts;
|
|
86
|
+
const mod = await import('@aopslabs/xf-logger');
|
|
87
|
+
return await mod.createLogger({
|
|
88
|
+
level,
|
|
89
|
+
runtime: "nodejs",
|
|
90
|
+
printServerConsole: !!console,
|
|
91
|
+
printFile: file,
|
|
92
|
+
fileType: "txt",
|
|
93
|
+
splitErrorWarn: true,
|
|
94
|
+
prettyConsole: true,
|
|
95
|
+
path: "./logs/aops-server",
|
|
96
|
+
base: { module: "AOPS-API" }
|
|
97
|
+
});
|
|
98
|
+
}
|
|
77
99
|
async function resolveDefaultLogger() {
|
|
78
100
|
try {
|
|
79
101
|
const l = await getLogger({ level: "info", file: false, console: true });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createSvelteKitPluginHandler } from '@aopslabs/host-adapter-sveltekit';
|
|
2
2
|
import { checkDomainAdmission } from '@aopslabs/host-admission';
|
|
3
3
|
import { j as json } from '../../../../../chunks/utils2.js-D_gUiWYm.js';
|
|
4
|
-
import { a as getKernelRuntimeSnapshot, b as getHostPluginRegistry } from '../../../../../chunks/registry.js-
|
|
5
|
-
import { a as toSafeDiagnosticLabel, n as normalizePluginFailure, t as toSafePluginFailureLogDetails, i as inferFailureStatusFromPayload } from '../../../../../chunks/plugin-error-normalize.js-
|
|
6
|
-
import { a as attachResolvedProjectScope, r as resolveHostRequestContext } from '../../../../../chunks/request-context.js-
|
|
4
|
+
import { a as getKernelRuntimeSnapshot, b as getHostPluginRegistry } from '../../../../../chunks/registry.js-W6rrS4yl.js';
|
|
5
|
+
import { a as toSafeDiagnosticLabel, n as normalizePluginFailure, b as toSafePluginFailureLogCause, t as toSafePluginFailureLogDetails, i as inferFailureStatusFromPayload } from '../../../../../chunks/plugin-error-normalize.js-D5rNpava.js';
|
|
6
|
+
import { a as attachResolvedProjectScope, r as resolveHostRequestContext } from '../../../../../chunks/request-context.js-C7pKg6Do.js';
|
|
7
7
|
import '../../../../../chunks/utils.js-BQzn9ikS.js';
|
|
8
8
|
import '../../../../../chunks/uneval.js-BnYgIxRU.js';
|
|
9
9
|
import 'node:fs';
|
|
@@ -14,13 +14,12 @@ import '@aopslabs/host-auth';
|
|
|
14
14
|
import '@aopslabs/host-shell';
|
|
15
15
|
import 'node:worker_threads';
|
|
16
16
|
import '@aopslabs/artifact-trust-contracts';
|
|
17
|
-
import '../../../../../chunks/aops-runtime-config.js-
|
|
17
|
+
import '../../../../../chunks/aops-runtime-config.js-Cjj5F0t8.js';
|
|
18
18
|
import 'pg';
|
|
19
19
|
import '@aopslabs/host-core';
|
|
20
20
|
import '@aopslabs/xf-dm-kits/appConfig';
|
|
21
21
|
import '@aopslabs/xf-dm-kits';
|
|
22
22
|
import '@aopslabs/domain-kit-agentspace';
|
|
23
|
-
import '../../../../../chunks/project-alias.js-BdnRxWft.js';
|
|
24
23
|
import '../../../../../chunks/xf-result.js-BRDjvftr.js';
|
|
25
24
|
import 'effect';
|
|
26
25
|
|
|
@@ -63,10 +62,10 @@ async function normalizePluginErrorResponse(response) {
|
|
|
63
62
|
let nextStatus = normalized.status;
|
|
64
63
|
let nextPayload = normalized.payload;
|
|
65
64
|
if (normalized.sanitized) {
|
|
66
|
-
console.warn(
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
);
|
|
65
|
+
console.warn("[api-domain] sanitized plugin error response", {
|
|
66
|
+
...toSafePluginFailureLogDetails(normalized.payload),
|
|
67
|
+
cause: toSafePluginFailureLogCause(normalized.originalMessage)
|
|
68
|
+
});
|
|
70
69
|
}
|
|
71
70
|
if (nextStatus < 400) {
|
|
72
71
|
const inferredStatus = inferFailureStatusFromPayload(nextPayload, nextStatus);
|
|
@@ -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,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();
|
|
@@ -1,29 +1,26 @@
|
|
|
1
1
|
import { j as json } from '../../../../../chunks/utils2.js-D_gUiWYm.js';
|
|
2
|
-
import { g as getAgentGateway } from '../../../../../chunks/agent-gateway-runtime.js-
|
|
3
|
-
import { b as buildAgentDiscoveryDocument } from '../../../../../chunks/discovery.js-
|
|
4
|
-
import { g as getHostConfig } from '../../../../../chunks/registry.js-
|
|
2
|
+
import { g as getAgentGateway } from '../../../../../chunks/agent-gateway-runtime.js-r4g4yskN.js';
|
|
3
|
+
import { b as buildAgentDiscoveryDocument } from '../../../../../chunks/discovery.js-DxJiP5Ke.js';
|
|
4
|
+
import { g as getHostConfig } from '../../../../../chunks/registry.js-W6rrS4yl.js';
|
|
5
5
|
import { r as resolveRequestBaseUrl } from '../../../../../chunks/request-base-url.js-zKJpVUv5.js';
|
|
6
6
|
import '../../../../../chunks/utils.js-BQzn9ikS.js';
|
|
7
7
|
import '../../../../../chunks/uneval.js-BnYgIxRU.js';
|
|
8
8
|
import '@aopslabs/host-core';
|
|
9
|
+
import '../../../../../chunks/domain-dispatch.js-DUR9TD3Q.js';
|
|
9
10
|
import '@aopslabs/manifest';
|
|
10
11
|
import 'node:path';
|
|
11
12
|
import 'node:child_process';
|
|
12
13
|
import 'node:module';
|
|
13
14
|
import 'node:url';
|
|
14
15
|
import 'node:util';
|
|
15
|
-
import '../../../../../chunks/project-alias.js-BdnRxWft.js';
|
|
16
|
-
import 'node:crypto';
|
|
17
|
-
import '@aopslabs/artifact-trust-contracts';
|
|
18
|
-
import 'ajv';
|
|
19
|
-
import 'zod';
|
|
20
16
|
import '../../../../../chunks/auth-provider.js-C07OUlnz.js';
|
|
21
17
|
import 'node:fs';
|
|
22
18
|
import 'node:os';
|
|
23
19
|
import '@aopslabs/host-auth';
|
|
24
20
|
import '@aopslabs/host-shell';
|
|
25
21
|
import 'node:worker_threads';
|
|
26
|
-
import '
|
|
22
|
+
import '@aopslabs/artifact-trust-contracts';
|
|
23
|
+
import '../../../../../chunks/aops-runtime-config.js-Cjj5F0t8.js';
|
|
27
24
|
import 'pg';
|
|
28
25
|
import '@aopslabs/host-admission';
|
|
29
26
|
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { j as json } from '../../../../../../chunks/utils2.js-D_gUiWYm.js';
|
|
2
|
-
import { a as getAgentToolDetailDocument } from '../../../../../../chunks/discovery.js-
|
|
2
|
+
import { a as getAgentToolDetailDocument } 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 ({ params, request, url }) => {
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { j as json } from '../../../../../../../chunks/utils2.js-D_gUiWYm.js';
|
|
2
2
|
import { HostGatewayError, parseStrictInvokeEnvelope } from '@aopslabs/host-gateway';
|
|
3
|
-
import { i as invokeKernelAgentTool } from '../../../../../../../chunks/agent-gateway-runtime.js-
|
|
4
|
-
import { n as normalizePluginFailure, t as toSafePluginFailureLogDetails, i as inferFailureStatusFromPayload, c as classifyInvokeFailureMessage } from '../../../../../../../chunks/plugin-error-normalize.js-
|
|
3
|
+
import { i as invokeKernelAgentTool } from '../../../../../../../chunks/agent-gateway-runtime.js-r4g4yskN.js';
|
|
4
|
+
import { n as normalizePluginFailure, t as toSafePluginFailureLogDetails, i as inferFailureStatusFromPayload, c as classifyInvokeFailureMessage } from '../../../../../../../chunks/plugin-error-normalize.js-D5rNpava.js';
|
|
5
5
|
import { r as readJsonRequestBody } from '../../../../../../../chunks/json-request-body.js-ewKk-XAX.js';
|
|
6
|
-
import { a as attachResolvedProjectScope, r as resolveHostRequestContext } from '../../../../../../../chunks/request-context.js-
|
|
6
|
+
import { a as attachResolvedProjectScope, r as resolveHostRequestContext } from '../../../../../../../chunks/request-context.js-C7pKg6Do.js';
|
|
7
7
|
import '../../../../../../../chunks/utils.js-BQzn9ikS.js';
|
|
8
8
|
import '../../../../../../../chunks/uneval.js-BnYgIxRU.js';
|
|
9
9
|
import '@aopslabs/host-core';
|
|
10
|
+
import '../../../../../../../chunks/domain-dispatch.js-DUR9TD3Q.js';
|
|
10
11
|
import '@aopslabs/manifest';
|
|
11
|
-
import '../../../../../../../chunks/registry.js-
|
|
12
|
+
import '../../../../../../../chunks/registry.js-W6rrS4yl.js';
|
|
12
13
|
import 'node:fs';
|
|
13
14
|
import 'node:os';
|
|
14
15
|
import 'node:path';
|
|
@@ -17,16 +18,12 @@ import '@aopslabs/host-auth';
|
|
|
17
18
|
import '@aopslabs/host-shell';
|
|
18
19
|
import 'node:worker_threads';
|
|
19
20
|
import '@aopslabs/artifact-trust-contracts';
|
|
20
|
-
import '../../../../../../../chunks/aops-runtime-config.js-
|
|
21
|
+
import '../../../../../../../chunks/aops-runtime-config.js-Cjj5F0t8.js';
|
|
21
22
|
import 'pg';
|
|
22
23
|
import '@aopslabs/host-admission';
|
|
23
24
|
import 'node:child_process';
|
|
24
25
|
import 'node:module';
|
|
25
26
|
import 'node:util';
|
|
26
|
-
import '../../../../../../../chunks/project-alias.js-BdnRxWft.js';
|
|
27
|
-
import 'node:crypto';
|
|
28
|
-
import 'ajv';
|
|
29
|
-
import 'zod';
|
|
30
27
|
import '@aopslabs/xf-dm-kits/appConfig';
|
|
31
28
|
import '@aopslabs/xf-dm-kits';
|
|
32
29
|
import '@aopslabs/domain-kit-agentspace';
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { j as json } from '../../../../../../chunks/utils2.js-D_gUiWYm.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-kit-docman/flows';
|
|
4
|
-
import { a as attachResolvedProjectScope, b as resolveProjectScopeFromLocals } from '../../../../../../chunks/request-context.js-
|
|
4
|
+
import { a as attachResolvedProjectScope, b as resolveProjectScopeFromLocals } from '../../../../../../chunks/request-context.js-C7pKg6Do.js';
|
|
5
5
|
import { r as readJsonRequestBody } from '../../../../../../chunks/json-request-body.js-ewKk-XAX.js';
|
|
6
6
|
import { e as errResult, o as okResult } from '../../../../../../chunks/xf-result.js-BRDjvftr.js';
|
|
7
7
|
import '../../../../../../chunks/utils.js-BQzn9ikS.js';
|
|
8
8
|
import '../../../../../../chunks/uneval.js-BnYgIxRU.js';
|
|
9
|
-
import '../../../../../../chunks/aops-runtime-config.js-
|
|
9
|
+
import '../../../../../../chunks/aops-runtime-config.js-Cjj5F0t8.js';
|
|
10
10
|
import 'node:fs';
|
|
11
11
|
import 'node:path';
|
|
12
12
|
import 'pg';
|
|
13
13
|
import '@aopslabs/xf-dm-kits/appConfig';
|
|
14
14
|
import '@aopslabs/xf-dm-kits';
|
|
15
15
|
import '@aopslabs/domain-kit-agentspace';
|
|
16
|
-
import '../../../../../../chunks/project-alias.js-BdnRxWft.js';
|
|
17
16
|
import '@aopslabs/host-core';
|
|
18
17
|
|
|
19
18
|
function toRecord(value) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as json } from '../../../../../../chunks/utils2.js-D_gUiWYm.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-kit-projectman/flows';
|
|
4
|
-
import '../../../../../../chunks/aops-runtime-config.js-
|
|
4
|
+
import '../../../../../../chunks/aops-runtime-config.js-Cjj5F0t8.js';
|
|
5
5
|
import '@aopslabs/xf-dm-kits/appConfig';
|
|
6
|
-
import { a as attachResolvedProjectScope, b as resolveProjectScopeFromLocals, g as getAgentspaceKit } from '../../../../../../chunks/request-context.js-
|
|
6
|
+
import { a as attachResolvedProjectScope, b as resolveProjectScopeFromLocals, g as getAgentspaceKit } from '../../../../../../chunks/request-context.js-C7pKg6Do.js';
|
|
7
7
|
import { r as readJsonRequestBody } from '../../../../../../chunks/json-request-body.js-ewKk-XAX.js';
|
|
8
8
|
import { e as errResult, o as okResult } from '../../../../../../chunks/xf-result.js-BRDjvftr.js';
|
|
9
9
|
import '../../../../../../chunks/utils.js-BQzn9ikS.js';
|
|
@@ -13,7 +13,6 @@ import 'node:path';
|
|
|
13
13
|
import 'pg';
|
|
14
14
|
import '@aopslabs/xf-dm-kits';
|
|
15
15
|
import '@aopslabs/domain-kit-agentspace';
|
|
16
|
-
import '../../../../../../chunks/project-alias.js-BdnRxWft.js';
|
|
17
16
|
import '@aopslabs/host-core';
|
|
18
17
|
|
|
19
18
|
function toRecord(value) {
|