@aopslabs/aops-server 0.2.10 → 0.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/THIRD_PARTY_NOTICES +77 -152
  2. package/THIRD_PARTY_NOTICES.inventory.json +202 -53
  3. package/build/client/_app/immutable/chunks/qRIvhaXj.js +1 -0
  4. package/build/client/_app/immutable/entry/{app.wWpgS-lj.js → app.tVDNflbN.js} +2 -2
  5. package/build/client/_app/immutable/entry/start.DLye8RM1.js +1 -0
  6. package/build/client/_app/immutable/nodes/{1.ClIe_uwH.js → 1.DlD7dcNg.js} +1 -1
  7. package/build/client/_app/version.json +1 -1
  8. package/build/handler.js +10 -3
  9. package/build/index.js +10 -3
  10. package/build/server/chunks/{agent-gateway-runtime-D6-UoKQA.js → chunks/agent-gateway-runtime.js-De6jvAjX.js} +11 -18
  11. package/build/server/chunks/{discovery-BaEpDyWT.js → chunks/discovery.js-CZjXJ_ZV.js} +3 -3
  12. package/build/server/chunks/chunks/exports.js-BoBrqMaZ.js +215 -0
  13. package/build/server/chunks/chunks/internal.js-BAGgMnGJ.js +126 -0
  14. package/build/server/chunks/chunks/json-request-body.js-ewKk-XAX.js +18 -0
  15. package/build/server/chunks/{registry-3GWqIriK.js → chunks/registry.js-DdOAgkkf.js} +6 -6
  16. package/build/server/chunks/{request-context-9wzBoKrz.js → chunks/request-context.js-Y9Hk40z6.js} +3 -3
  17. package/build/server/chunks/chunks/root.js-Di8SnzYO.js +4187 -0
  18. package/build/server/chunks/chunks/server.js-Bf8x1V_n.js +15 -0
  19. package/build/server/chunks/chunks/uneval.js-BnYgIxRU.js +521 -0
  20. package/build/server/chunks/chunks/utils.js-DjaWGEhn.js +1623 -0
  21. package/build/server/chunks/chunks/utils2.js-BQzn9ikS.js +37 -0
  22. package/build/server/chunks/{_server.ts-WWdSLatP.js → entries/endpoints/api/_domain_/_...path_/_server.ts.js-C5pGdb58.js} +9 -7
  23. package/build/server/chunks/{_server.ts-5PfufGhQ.js → entries/endpoints/api/_server.ts.js-sSJl5nE9.js} +3 -1
  24. package/build/server/chunks/{_server.ts-CCrjMhLK.js → entries/endpoints/api/agent/discovery.json/_server.ts.js-DBhJ_-B2.js} +10 -8
  25. package/build/server/chunks/{_server.ts-BXCdUW6X.js → entries/endpoints/api/agent/openapi.json/_server.ts.js-DfvqJ5cj.js} +9 -7
  26. package/build/server/chunks/{_server.ts-ClvARLzg.js → entries/endpoints/api/agent/tools/_server.ts.js-DZKcGR3W.js} +10 -8
  27. package/build/server/chunks/{_server.ts-Dy3zDemo.js → entries/endpoints/api/agent/tools/_toolId_/_server.ts.js-B5urFDtl.js} +10 -8
  28. package/build/server/chunks/{_server.ts-C6tCqRgY.js → entries/endpoints/api/agent/tools/_toolId_/invoke/_server.ts.js-BAvkC5Rt.js} +21 -19
  29. package/build/server/chunks/{_server.ts-BJ4evpqP.js → entries/endpoints/api/aops/docman/flows/_server.ts.js-C0Y7KGXm.js} +13 -14
  30. package/build/server/chunks/{_server.ts-CGIpzS6K.js → entries/endpoints/api/aops/projectman/flows/_server.ts.js-JYO0h_yB.js} +13 -14
  31. package/build/server/chunks/{_server.ts-CNd_VT19.js → entries/endpoints/api/aops/settings/database/status/_server.ts.js-Owz6c-s3.js} +5 -3
  32. package/build/server/chunks/{_server.ts-7-tcIJf2.js → entries/endpoints/api/auth/me/_server.ts.js-CSjwLMYe.js} +4 -2
  33. package/build/server/chunks/{_server.ts-DCkBCaJM.js → entries/endpoints/api/health/_server.ts.js-CqZW_cm6.js} +6 -4
  34. package/build/server/chunks/entries/endpoints/api/hello/_server.ts.js-CF4gShRZ.js +11 -0
  35. package/build/server/chunks/{_server.ts-C7O3p1BG.js → entries/endpoints/api/host-admin/plugins/_server.ts.js-BjoRl46U.js} +8 -6
  36. package/build/server/chunks/entries/endpoints/api/host-admin/runtime-config/_server.ts.js-BbVXEK2o.js +12 -0
  37. package/build/server/chunks/{_server.ts-CuifGJTF.js → entries/endpoints/api/host-admin/runtime-config/test/_server.ts.js-4KY0tKLf.js} +5 -3
  38. package/build/server/chunks/{_server.ts-BzHZDsLU.js → entries/endpoints/api-info.json/_server.ts.js-BjF2mgkA.js} +10 -8
  39. package/build/server/chunks/{_server.ts-AJ0imKUc.js → entries/endpoints/openapi.json/_server.ts.js-DGXyC49p.js} +9 -7
  40. package/build/server/chunks/{error.svelte-B5_Vjwmk.js → entries/fallbacks/error.svelte.js-D7yKTuER.js} +5 -1
  41. package/build/server/chunks/{hooks.server-B8q2QwIQ.js → entries/hooks.server.js-0eTKxvgl.js} +4 -2
  42. package/build/server/chunks/{handler-BsClyvu7.js → handler-WdL1KixW.js} +3 -2
  43. package/build/server/chunks/index.js-DOzENJRR.js +4103 -0
  44. package/build/server/chunks/{manifest.js-zg9yAX8Y.js → manifest.js-Dzrd5JLV.js} +24 -24
  45. package/build/server/chunks/{1-CCFGO3E8.js → nodes/1.js-JEOiX_Dx.js} +2 -2
  46. package/host.config.json +2 -2
  47. package/npm-shrinkwrap.json +80 -94
  48. package/package.json +16 -18
  49. package/runtime/agentspace-host-adapter.mjs +19 -5
  50. package/runtime/agentspace-tooling.mjs +23 -23
  51. package/runtime/docman-host-adapter.mjs +33 -3
  52. package/runtime/docman-policy.mjs +1 -0
  53. package/runtime/projectman-host-adapter.mjs +26 -0
  54. package/runtime-closure.package.json +30 -32
  55. package/build/client/_app/immutable/chunks/DOP91BI2.js +0 -1
  56. package/build/client/_app/immutable/entry/start.B6IoXHM8.js +0 -1
  57. package/build/server/chunks/_server.ts-CHX_s-fT.js +0 -9
  58. package/build/server/chunks/_server.ts-DGOwt3F3.js +0 -10
  59. package/build/server/chunks/index.js--6zD1xCG.js +0 -10803
  60. /package/build/server/chunks/{aops-runtime-config-CHpDUCdE.js → chunks/aops-runtime-config.js-CHpDUCdE.js} +0 -0
  61. /package/build/server/chunks/{auth-provider-C07OUlnz.js → chunks/auth-provider.js-C07OUlnz.js} +0 -0
  62. /package/build/server/chunks/{commercial-admission-loader-ZGZHRPLe.js → chunks/commercial-admission-loader.js-ZGZHRPLe.js} +0 -0
  63. /package/build/server/chunks/{plugin-error-normalize-DNeRsopQ.js → chunks/plugin-error-normalize.js-DNeRsopQ.js} +0 -0
  64. /package/build/server/chunks/{project-alias-BdnRxWft.js → chunks/project-alias.js-BdnRxWft.js} +0 -0
  65. /package/build/server/chunks/{request-base-url-zKJpVUv5.js → chunks/request-base-url.js-zKJpVUv5.js} +0 -0
  66. /package/build/server/chunks/{xf-result-BRDjvftr.js → chunks/xf-result.js-BRDjvftr.js} +0 -0
  67. /package/build/server/chunks/{_server.ts-Bly8fCZa.js → entries/endpoints/_server.ts.js-Bly8fCZa.js} +0 -0
  68. /package/build/server/chunks/{_server.ts-DbdAfdYo.js → entries/endpoints/api/chatv3/v1/rooms/_roomId_/stream/_server.ts.js-DbdAfdYo.js} +0 -0
  69. /package/build/server/chunks/{_server.ts-Cv-yaXZI.js → entries/endpoints/api-info/_server.ts.js-Cv-yaXZI.js} +0 -0
  70. /package/build/server/chunks/{0-RfB6m2nq.js → nodes/0.js-RfB6m2nq.js} +0 -0
@@ -0,0 +1,37 @@
1
+ const text_encoder = new TextEncoder();
2
+ function get_relative_path(from, to) {
3
+ const from_parts = from.split(/[/\\]/);
4
+ const to_parts = to.split(/[/\\]/);
5
+ from_parts.pop();
6
+ while (from_parts[0] === to_parts[0]) {
7
+ from_parts.shift();
8
+ to_parts.shift();
9
+ }
10
+ let i = from_parts.length;
11
+ while (i--) from_parts[i] = "..";
12
+ return from_parts.concat(to_parts).join("/");
13
+ }
14
+ function base64_encode(bytes) {
15
+ if (globalThis.Buffer) {
16
+ return globalThis.Buffer.from(bytes).toString("base64");
17
+ }
18
+ let binary = "";
19
+ for (let i = 0; i < bytes.length; i++) {
20
+ binary += String.fromCharCode(bytes[i]);
21
+ }
22
+ return btoa(binary);
23
+ }
24
+ function base64_decode(encoded) {
25
+ if (globalThis.Buffer) {
26
+ const buffer = globalThis.Buffer.from(encoded, "base64");
27
+ return new Uint8Array(buffer);
28
+ }
29
+ const binary = atob(encoded);
30
+ const bytes = new Uint8Array(binary.length);
31
+ for (let i = 0; i < binary.length; i++) {
32
+ bytes[i] = binary.charCodeAt(i);
33
+ }
34
+ return bytes;
35
+ }
36
+
37
+ export { base64_encode as a, base64_decode as b, get_relative_path as g, text_encoder as t };
@@ -1,9 +1,11 @@
1
1
  import { createSvelteKitPluginHandler } from '@aopslabs/host-adapter-sveltekit';
2
2
  import { checkDomainAdmission } from '@aopslabs/host-admission';
3
- import { j as json } from './index.js--6zD1xCG.js';
4
- import { a as getKernelRuntimeSnapshot, e as getHostPluginRegistry } from './registry-3GWqIriK.js';
5
- import { a as toSafeDiagnosticLabel, n as normalizePluginFailure, t as toSafePluginFailureLogDetails, i as inferFailureStatusFromPayload } from './plugin-error-normalize-DNeRsopQ.js';
6
- import { a as attachResolvedProjectScope, r as resolveHostRequestContext } from './request-context-9wzBoKrz.js';
3
+ import { j as json } from '../../../../../chunks/utils.js-DjaWGEhn.js';
4
+ import { a as getKernelRuntimeSnapshot, b as getHostPluginRegistry } from '../../../../../chunks/registry.js-DdOAgkkf.js';
5
+ import { a as toSafeDiagnosticLabel, n as normalizePluginFailure, t as toSafePluginFailureLogDetails, i as inferFailureStatusFromPayload } from '../../../../../chunks/plugin-error-normalize.js-DNeRsopQ.js';
6
+ import { a as attachResolvedProjectScope, r as resolveHostRequestContext } from '../../../../../chunks/request-context.js-Y9Hk40z6.js';
7
+ import '../../../../../chunks/utils2.js-BQzn9ikS.js';
8
+ import '../../../../../chunks/uneval.js-BnYgIxRU.js';
7
9
  import 'node:fs';
8
10
  import 'node:os';
9
11
  import 'node:path';
@@ -12,14 +14,14 @@ import '@aopslabs/host-auth';
12
14
  import '@aopslabs/host-shell';
13
15
  import 'node:worker_threads';
14
16
  import '@aopslabs/artifact-trust-contracts';
15
- import './aops-runtime-config-CHpDUCdE.js';
17
+ import '../../../../../chunks/aops-runtime-config.js-CHpDUCdE.js';
16
18
  import 'pg';
17
19
  import '@aopslabs/host-core';
18
20
  import '@aopslabs/xf-dm-kits/appConfig';
19
21
  import '@aopslabs/xf-dm-kits';
20
22
  import '@aopslabs/domain-kit-agentspace';
21
- import './project-alias-BdnRxWft.js';
22
- import './xf-result-BRDjvftr.js';
23
+ import '../../../../../chunks/project-alias.js-BdnRxWft.js';
24
+ import '../../../../../chunks/xf-result.js-BRDjvftr.js';
23
25
  import 'effect';
24
26
 
25
27
  const handler = createSvelteKitPluginHandler(getHostPluginRegistry, {
@@ -1,4 +1,6 @@
1
- import { j as json } from './index.js--6zD1xCG.js';
1
+ import { j as json } from '../../../chunks/utils.js-DjaWGEhn.js';
2
+ import '../../../chunks/utils2.js-BQzn9ikS.js';
3
+ import '../../../chunks/uneval.js-BnYgIxRU.js';
2
4
 
3
5
  const API_ROOT_ERROR = {
4
6
  ok: false,
@@ -1,10 +1,12 @@
1
- import { j as json } from './index.js--6zD1xCG.js';
2
- import { g as getAgentDiscoveryDocument } from './discovery-BaEpDyWT.js';
3
- import { r as resolveRequestBaseUrl } from './request-base-url-zKJpVUv5.js';
4
- import './agent-gateway-runtime-D6-UoKQA.js';
1
+ import { j as json } from '../../../../../chunks/utils.js-DjaWGEhn.js';
2
+ import { g as getAgentDiscoveryDocument } from '../../../../../chunks/discovery.js-CZjXJ_ZV.js';
3
+ import { r as resolveRequestBaseUrl } from '../../../../../chunks/request-base-url.js-zKJpVUv5.js';
4
+ import '../../../../../chunks/utils2.js-BQzn9ikS.js';
5
+ import '../../../../../chunks/uneval.js-BnYgIxRU.js';
6
+ import '../../../../../chunks/agent-gateway-runtime.js-De6jvAjX.js';
5
7
  import '@aopslabs/host-core';
6
8
  import '@aopslabs/manifest';
7
- import './registry-3GWqIriK.js';
9
+ import '../../../../../chunks/registry.js-DdOAgkkf.js';
8
10
  import 'node:fs';
9
11
  import 'node:os';
10
12
  import 'node:path';
@@ -13,17 +15,17 @@ import '@aopslabs/host-auth';
13
15
  import '@aopslabs/host-shell';
14
16
  import 'node:worker_threads';
15
17
  import '@aopslabs/artifact-trust-contracts';
16
- import './aops-runtime-config-CHpDUCdE.js';
18
+ import '../../../../../chunks/aops-runtime-config.js-CHpDUCdE.js';
17
19
  import 'pg';
18
20
  import '@aopslabs/host-admission';
19
21
  import 'node:child_process';
20
22
  import 'node:module';
21
23
  import 'node:util';
22
- import './project-alias-BdnRxWft.js';
24
+ import '../../../../../chunks/project-alias.js-BdnRxWft.js';
23
25
  import 'node:crypto';
24
26
  import 'ajv';
25
27
  import 'zod';
26
- import './auth-provider-C07OUlnz.js';
28
+ import '../../../../../chunks/auth-provider.js-C07OUlnz.js';
27
29
 
28
30
  const GET = async ({ request, url }) => {
29
31
  try {
@@ -1,10 +1,12 @@
1
- import { j as json } from './index.js--6zD1xCG.js';
2
- import { g as getAgentGateway } from './agent-gateway-runtime-D6-UoKQA.js';
3
- import { r as resolveRequestBaseUrl } from './request-base-url-zKJpVUv5.js';
4
- import { g as getAuthProvider, i as isTrustedLocalAuthProvider } from './auth-provider-C07OUlnz.js';
1
+ import { j as json } from '../../../../../chunks/utils.js-DjaWGEhn.js';
2
+ import { g as getAgentGateway } from '../../../../../chunks/agent-gateway-runtime.js-De6jvAjX.js';
3
+ import { r as resolveRequestBaseUrl } from '../../../../../chunks/request-base-url.js-zKJpVUv5.js';
4
+ import { g as getAuthProvider, i as isTrustedLocalAuthProvider } from '../../../../../chunks/auth-provider.js-C07OUlnz.js';
5
+ import '../../../../../chunks/utils2.js-BQzn9ikS.js';
6
+ import '../../../../../chunks/uneval.js-BnYgIxRU.js';
5
7
  import '@aopslabs/host-core';
6
8
  import '@aopslabs/manifest';
7
- import './registry-3GWqIriK.js';
9
+ import '../../../../../chunks/registry.js-DdOAgkkf.js';
8
10
  import 'node:fs';
9
11
  import 'node:os';
10
12
  import 'node:path';
@@ -13,13 +15,13 @@ import '@aopslabs/host-auth';
13
15
  import '@aopslabs/host-shell';
14
16
  import 'node:worker_threads';
15
17
  import '@aopslabs/artifact-trust-contracts';
16
- import './aops-runtime-config-CHpDUCdE.js';
18
+ import '../../../../../chunks/aops-runtime-config.js-CHpDUCdE.js';
17
19
  import 'pg';
18
20
  import '@aopslabs/host-admission';
19
21
  import 'node:child_process';
20
22
  import 'node:module';
21
23
  import 'node:util';
22
- import './project-alias-BdnRxWft.js';
24
+ import '../../../../../chunks/project-alias.js-BdnRxWft.js';
23
25
  import 'node:crypto';
24
26
  import 'ajv';
25
27
  import 'zod';
@@ -1,8 +1,10 @@
1
- import { j as json } from './index.js--6zD1xCG.js';
2
- import { g as getAgentGateway } from './agent-gateway-runtime-D6-UoKQA.js';
3
- import { b as buildAgentDiscoveryDocument } from './discovery-BaEpDyWT.js';
4
- import { g as getHostConfig } from './registry-3GWqIriK.js';
5
- import { r as resolveRequestBaseUrl } from './request-base-url-zKJpVUv5.js';
1
+ import { j as json } from '../../../../../chunks/utils.js-DjaWGEhn.js';
2
+ import { g as getAgentGateway } from '../../../../../chunks/agent-gateway-runtime.js-De6jvAjX.js';
3
+ import { b as buildAgentDiscoveryDocument } from '../../../../../chunks/discovery.js-CZjXJ_ZV.js';
4
+ import { g as getHostConfig } from '../../../../../chunks/registry.js-DdOAgkkf.js';
5
+ import { r as resolveRequestBaseUrl } from '../../../../../chunks/request-base-url.js-zKJpVUv5.js';
6
+ import '../../../../../chunks/utils2.js-BQzn9ikS.js';
7
+ import '../../../../../chunks/uneval.js-BnYgIxRU.js';
6
8
  import '@aopslabs/host-core';
7
9
  import '@aopslabs/manifest';
8
10
  import 'node:path';
@@ -10,18 +12,18 @@ import 'node:child_process';
10
12
  import 'node:module';
11
13
  import 'node:url';
12
14
  import 'node:util';
13
- import './project-alias-BdnRxWft.js';
15
+ import '../../../../../chunks/project-alias.js-BdnRxWft.js';
14
16
  import 'node:crypto';
15
17
  import '@aopslabs/artifact-trust-contracts';
16
18
  import 'ajv';
17
19
  import 'zod';
18
- import './auth-provider-C07OUlnz.js';
20
+ import '../../../../../chunks/auth-provider.js-C07OUlnz.js';
19
21
  import 'node:fs';
20
22
  import 'node:os';
21
23
  import '@aopslabs/host-auth';
22
24
  import '@aopslabs/host-shell';
23
25
  import 'node:worker_threads';
24
- import './aops-runtime-config-CHpDUCdE.js';
26
+ import '../../../../../chunks/aops-runtime-config.js-CHpDUCdE.js';
25
27
  import 'pg';
26
28
  import '@aopslabs/host-admission';
27
29
 
@@ -1,10 +1,12 @@
1
- import { j as json } from './index.js--6zD1xCG.js';
2
- import { a as getAgentToolDetailDocument } from './discovery-BaEpDyWT.js';
3
- import { r as resolveRequestBaseUrl } from './request-base-url-zKJpVUv5.js';
4
- import './agent-gateway-runtime-D6-UoKQA.js';
1
+ import { j as json } from '../../../../../../chunks/utils.js-DjaWGEhn.js';
2
+ import { a as getAgentToolDetailDocument } from '../../../../../../chunks/discovery.js-CZjXJ_ZV.js';
3
+ import { r as resolveRequestBaseUrl } from '../../../../../../chunks/request-base-url.js-zKJpVUv5.js';
4
+ import '../../../../../../chunks/utils2.js-BQzn9ikS.js';
5
+ import '../../../../../../chunks/uneval.js-BnYgIxRU.js';
6
+ import '../../../../../../chunks/agent-gateway-runtime.js-De6jvAjX.js';
5
7
  import '@aopslabs/host-core';
6
8
  import '@aopslabs/manifest';
7
- import './registry-3GWqIriK.js';
9
+ import '../../../../../../chunks/registry.js-DdOAgkkf.js';
8
10
  import 'node:fs';
9
11
  import 'node:os';
10
12
  import 'node:path';
@@ -13,17 +15,17 @@ import '@aopslabs/host-auth';
13
15
  import '@aopslabs/host-shell';
14
16
  import 'node:worker_threads';
15
17
  import '@aopslabs/artifact-trust-contracts';
16
- import './aops-runtime-config-CHpDUCdE.js';
18
+ import '../../../../../../chunks/aops-runtime-config.js-CHpDUCdE.js';
17
19
  import 'pg';
18
20
  import '@aopslabs/host-admission';
19
21
  import 'node:child_process';
20
22
  import 'node:module';
21
23
  import 'node:util';
22
- import './project-alias-BdnRxWft.js';
24
+ import '../../../../../../chunks/project-alias.js-BdnRxWft.js';
23
25
  import 'node:crypto';
24
26
  import 'ajv';
25
27
  import 'zod';
26
- import './auth-provider-C07OUlnz.js';
28
+ import '../../../../../../chunks/auth-provider.js-C07OUlnz.js';
27
29
 
28
30
  const GET = async ({ params, request, url }) => {
29
31
  const toolId = params.toolId?.trim().toLowerCase();
@@ -1,11 +1,14 @@
1
- import { j as json } from './index.js--6zD1xCG.js';
1
+ import { j as json } from '../../../../../../../chunks/utils.js-DjaWGEhn.js';
2
2
  import { HostGatewayError, parseStrictInvokeEnvelope } from '@aopslabs/host-gateway';
3
- import { i as invokeKernelAgentTool } from './agent-gateway-runtime-D6-UoKQA.js';
4
- import { n as normalizePluginFailure, t as toSafePluginFailureLogDetails, i as inferFailureStatusFromPayload, c as classifyInvokeFailureMessage } from './plugin-error-normalize-DNeRsopQ.js';
5
- import { a as attachResolvedProjectScope, r as resolveHostRequestContext } from './request-context-9wzBoKrz.js';
3
+ import { i as invokeKernelAgentTool } from '../../../../../../../chunks/agent-gateway-runtime.js-De6jvAjX.js';
4
+ import { n as normalizePluginFailure, t as toSafePluginFailureLogDetails, i as inferFailureStatusFromPayload, c as classifyInvokeFailureMessage } from '../../../../../../../chunks/plugin-error-normalize.js-DNeRsopQ.js';
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-Y9Hk40z6.js';
7
+ import '../../../../../../../chunks/utils2.js-BQzn9ikS.js';
8
+ import '../../../../../../../chunks/uneval.js-BnYgIxRU.js';
6
9
  import '@aopslabs/host-core';
7
10
  import '@aopslabs/manifest';
8
- import './registry-3GWqIriK.js';
11
+ import '../../../../../../../chunks/registry.js-DdOAgkkf.js';
9
12
  import 'node:fs';
10
13
  import 'node:os';
11
14
  import 'node:path';
@@ -14,20 +17,20 @@ import '@aopslabs/host-auth';
14
17
  import '@aopslabs/host-shell';
15
18
  import 'node:worker_threads';
16
19
  import '@aopslabs/artifact-trust-contracts';
17
- import './aops-runtime-config-CHpDUCdE.js';
20
+ import '../../../../../../../chunks/aops-runtime-config.js-CHpDUCdE.js';
18
21
  import 'pg';
19
22
  import '@aopslabs/host-admission';
20
23
  import 'node:child_process';
21
24
  import 'node:module';
22
25
  import 'node:util';
23
- import './project-alias-BdnRxWft.js';
26
+ import '../../../../../../../chunks/project-alias.js-BdnRxWft.js';
24
27
  import 'node:crypto';
25
28
  import 'ajv';
26
29
  import 'zod';
27
30
  import '@aopslabs/xf-dm-kits/appConfig';
28
31
  import '@aopslabs/xf-dm-kits';
29
32
  import '@aopslabs/domain-kit-agentspace';
30
- import './xf-result-BRDjvftr.js';
33
+ import '../../../../../../../chunks/xf-result.js-BRDjvftr.js';
31
34
  import 'effect';
32
35
 
33
36
  function isRecord(value) {
@@ -57,22 +60,21 @@ function resolveActivitySourceKind(event) {
57
60
  return "system";
58
61
  }
59
62
  async function parseInvokePayload(event) {
63
+ const body = await readJsonRequestBody(event.request, { emptyBodyMessage: "request_body_required" });
64
+ if (!body.ok) {
65
+ return {
66
+ ok: false,
67
+ error: "invalid_input",
68
+ message: body.message === "request_body_required" ? "invoke_envelope_required" : body.message
69
+ };
70
+ }
60
71
  try {
61
- const rawText = await event.request.text();
62
- if (!rawText.trim()) {
63
- return { ok: false, error: "invalid_input", message: "invoke_envelope_required" };
64
- }
65
- const rawPayload = JSON.parse(rawText);
66
- return { ok: true, envelope: parseStrictInvokeEnvelope(rawPayload) };
72
+ return { ok: true, envelope: parseStrictInvokeEnvelope(body.value) };
67
73
  } catch (error) {
68
74
  if (error instanceof HostGatewayError) {
69
75
  return { ok: false, error: error.code, message: error.message };
70
76
  }
71
- return {
72
- ok: false,
73
- error: "invalid_input",
74
- message: "invalid_json_body"
75
- };
77
+ return { ok: false, error: "invalid_input", message: "invalid_json_body" };
76
78
  }
77
79
  }
78
80
  const POST = async (event) => {
@@ -1,16 +1,20 @@
1
- import { j as json } from './index.js--6zD1xCG.js';
1
+ import { j as json } from '../../../../../../chunks/utils.js-DjaWGEhn.js';
2
2
  import { Effect } from 'effect';
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
- import { a as attachResolvedProjectScope, b as resolveProjectScopeFromLocals } from './request-context-9wzBoKrz.js';
5
- import { e as errResult, o as okResult } from './xf-result-BRDjvftr.js';
6
- import './aops-runtime-config-CHpDUCdE.js';
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-Y9Hk40z6.js';
5
+ import { r as readJsonRequestBody } from '../../../../../../chunks/json-request-body.js-ewKk-XAX.js';
6
+ import { e as errResult, o as okResult } from '../../../../../../chunks/xf-result.js-BRDjvftr.js';
7
+ import '../../../../../../chunks/utils2.js-BQzn9ikS.js';
8
+ import '../../../../../../chunks/uneval.js-BnYgIxRU.js';
9
+ import '../../../../../../chunks/aops-runtime-config.js-CHpDUCdE.js';
7
10
  import 'node:fs';
8
11
  import 'node:path';
9
12
  import 'pg';
10
13
  import '@aopslabs/xf-dm-kits/appConfig';
11
14
  import '@aopslabs/xf-dm-kits';
12
15
  import '@aopslabs/domain-kit-agentspace';
13
- import './project-alias-BdnRxWft.js';
16
+ import '../../../../../../chunks/project-alias.js-BdnRxWft.js';
17
+ import '@aopslabs/host-core';
14
18
 
15
19
  function toRecord(value) {
16
20
  if (!value || typeof value !== "object" || Array.isArray(value)) return {};
@@ -59,16 +63,11 @@ async function resolveDocmanFlowScope(params) {
59
63
  })
60
64
  };
61
65
  }
62
- async function readJsonBody(request) {
63
- try {
64
- return toRecord(await request.json());
65
- } catch {
66
- return {};
67
- }
68
- }
69
66
  const POST = async ({ request, locals }) => {
70
67
  await attachResolvedProjectScope({ request, locals });
71
- const body = await readJsonBody(request);
68
+ const parsedBody = await readJsonRequestBody(request, { emptyBodyMessage: "invalid_json_body" });
69
+ if (!parsedBody.ok) return json(errResult(parsedBody.message), { status: 400 });
70
+ const body = toRecord(parsedBody.value);
72
71
  const attachedScopeId = normalizeNonEmpty(locals.scopeId);
73
72
  const requestedScopeId = normalizeNonEmpty(body.scopeId);
74
73
  let resolvedScopeId = attachedScopeId;
@@ -1,16 +1,20 @@
1
- import { j as json } from './index.js--6zD1xCG.js';
1
+ import { j as json } from '../../../../../../chunks/utils.js-DjaWGEhn.js';
2
2
  import { Effect } from 'effect';
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
- import './aops-runtime-config-CHpDUCdE.js';
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-CHpDUCdE.js';
5
5
  import '@aopslabs/xf-dm-kits/appConfig';
6
- import { a as attachResolvedProjectScope, b as resolveProjectScopeFromLocals, g as getAgentspaceKit } from './request-context-9wzBoKrz.js';
7
- import { e as errResult, o as okResult } from './xf-result-BRDjvftr.js';
6
+ import { a as attachResolvedProjectScope, b as resolveProjectScopeFromLocals, g as getAgentspaceKit } from '../../../../../../chunks/request-context.js-Y9Hk40z6.js';
7
+ import { r as readJsonRequestBody } from '../../../../../../chunks/json-request-body.js-ewKk-XAX.js';
8
+ import { e as errResult, o as okResult } from '../../../../../../chunks/xf-result.js-BRDjvftr.js';
9
+ import '../../../../../../chunks/utils2.js-BQzn9ikS.js';
10
+ import '../../../../../../chunks/uneval.js-BnYgIxRU.js';
8
11
  import 'node:fs';
9
12
  import 'node:path';
10
13
  import 'pg';
11
14
  import '@aopslabs/xf-dm-kits';
12
15
  import '@aopslabs/domain-kit-agentspace';
13
- import './project-alias-BdnRxWft.js';
16
+ import '../../../../../../chunks/project-alias.js-BdnRxWft.js';
17
+ import '@aopslabs/host-core';
14
18
 
15
19
  function toRecord(value) {
16
20
  if (!value || typeof value !== "object" || Array.isArray(value)) return {};
@@ -23,13 +27,6 @@ function pickOptionalBodyString(body, primaryKey, fallbackKey) {
23
27
  const value = pickBodyValue(body, primaryKey, fallbackKey);
24
28
  return typeof value === "string" && value.trim().length > 0 ? value.trim() : void 0;
25
29
  }
26
- async function readJsonBody(request) {
27
- try {
28
- return toRecord(await request.json());
29
- } catch {
30
- return {};
31
- }
32
- }
33
30
  function inferScopeStatus(result) {
34
31
  if (result.ok) return 200;
35
32
  const message = String(result.messages?.[0]?.messageText ?? "").trim().toLowerCase();
@@ -72,7 +69,9 @@ const POST = async ({ request, locals }) => {
72
69
  return json(errResult("unauthorized"), { status: 401 });
73
70
  }
74
71
  await attachResolvedProjectScope({ request, locals });
75
- const body = await readJsonBody(request);
72
+ const parsedBody = await readJsonRequestBody(request, { emptyBodyMessage: "invalid_json_body" });
73
+ if (!parsedBody.ok) return json(errResult(parsedBody.message), { status: 400 });
74
+ const body = toRecord(parsedBody.value);
76
75
  const scope = await resolveProjectScopeFromLocals({
77
76
  input: {
78
77
  projectId: body.projectId ?? locals.projectId,
@@ -1,6 +1,8 @@
1
- import { j as json } from './index.js--6zD1xCG.js';
2
- import { t as testRuntimeConfigAdminTarget, g as getResolvedAopsServerRuntimeConfig } from './aops-runtime-config-CHpDUCdE.js';
3
- import { o as okResult } from './xf-result-BRDjvftr.js';
1
+ import { j as json } from '../../../../../../../chunks/utils.js-DjaWGEhn.js';
2
+ import { t as testRuntimeConfigAdminTarget, g as getResolvedAopsServerRuntimeConfig } from '../../../../../../../chunks/aops-runtime-config.js-CHpDUCdE.js';
3
+ import { o as okResult } from '../../../../../../../chunks/xf-result.js-BRDjvftr.js';
4
+ import '../../../../../../../chunks/utils2.js-BQzn9ikS.js';
5
+ import '../../../../../../../chunks/uneval.js-BnYgIxRU.js';
4
6
  import 'node:fs';
5
7
  import 'node:path';
6
8
  import 'pg';
@@ -1,5 +1,7 @@
1
- import { j as json } from './index.js--6zD1xCG.js';
2
- import { o as okResult } from './xf-result-BRDjvftr.js';
1
+ import { j as json } from '../../../../../chunks/utils.js-DjaWGEhn.js';
2
+ import { o as okResult } from '../../../../../chunks/xf-result.js-BRDjvftr.js';
3
+ import '../../../../../chunks/utils2.js-BQzn9ikS.js';
4
+ import '../../../../../chunks/uneval.js-BnYgIxRU.js';
3
5
 
4
6
  const GET = async ({ locals }) => {
5
7
  if (!locals.principal) {
@@ -1,7 +1,9 @@
1
- import { j as json } from './index.js--6zD1xCG.js';
2
- import { r as readRuntimeConfigAdmin, g as getResolvedAopsServerRuntimeConfig } from './aops-runtime-config-CHpDUCdE.js';
3
- import { g as getAuthProvider } from './auth-provider-C07OUlnz.js';
4
- import { o as okResult } from './xf-result-BRDjvftr.js';
1
+ import { j as json } from '../../../../chunks/utils.js-DjaWGEhn.js';
2
+ import { r as readRuntimeConfigAdmin, g as getResolvedAopsServerRuntimeConfig } from '../../../../chunks/aops-runtime-config.js-CHpDUCdE.js';
3
+ import { g as getAuthProvider } from '../../../../chunks/auth-provider.js-C07OUlnz.js';
4
+ import { o as okResult } from '../../../../chunks/xf-result.js-BRDjvftr.js';
5
+ import '../../../../chunks/utils2.js-BQzn9ikS.js';
6
+ import '../../../../chunks/uneval.js-BnYgIxRU.js';
5
7
  import 'node:fs';
6
8
  import 'node:path';
7
9
  import 'pg';
@@ -0,0 +1,11 @@
1
+ import { j as json } from '../../../../chunks/utils.js-DjaWGEhn.js';
2
+ import '../../../../chunks/utils2.js-BQzn9ikS.js';
3
+ import '../../../../chunks/uneval.js-BnYgIxRU.js';
4
+
5
+ const GET = async () => {
6
+ return json({
7
+ message: "Hello World"
8
+ });
9
+ };
10
+
11
+ export { GET };
@@ -1,7 +1,9 @@
1
- import { j as json } from './index.js--6zD1xCG.js';
2
- import { b as getAgentGatewayDiagnostics } from './agent-gateway-runtime-D6-UoKQA.js';
3
- import { g as getHostConfig, a as getKernelRuntimeSnapshot, b as getHostRegistrationDiagnostics, c as getHostPluginRegistryDiagnostics, d as getHostAdmissionDiagnostics, r as resolveCommunityPackageModule } from './registry-3GWqIriK.js';
4
- import { r as readRuntimeConfigAdmin } from './aops-runtime-config-CHpDUCdE.js';
1
+ import { j as json } from '../../../../../chunks/utils.js-DjaWGEhn.js';
2
+ import { b as getAgentGatewayDiagnostics } from '../../../../../chunks/agent-gateway-runtime.js-De6jvAjX.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-DdOAgkkf.js';
4
+ import { r as readRuntimeConfigAdmin } from '../../../../../chunks/aops-runtime-config.js-CHpDUCdE.js';
5
+ import '../../../../../chunks/utils2.js-BQzn9ikS.js';
6
+ import '../../../../../chunks/uneval.js-BnYgIxRU.js';
5
7
  import '@aopslabs/host-core';
6
8
  import '@aopslabs/manifest';
7
9
  import 'node:path';
@@ -9,7 +11,7 @@ import 'node:child_process';
9
11
  import 'node:module';
10
12
  import 'node:url';
11
13
  import 'node:util';
12
- import './project-alias-BdnRxWft.js';
14
+ import '../../../../../chunks/project-alias.js-BdnRxWft.js';
13
15
  import 'node:crypto';
14
16
  import '@aopslabs/artifact-trust-contracts';
15
17
  import 'ajv';
@@ -33,7 +35,7 @@ const EXPECTED_PROVIDERS = {
33
35
  sys: { module: "@aopslabs/domain-kit-sys", exportName: "buildSysDomainCapabilityManifest" },
34
36
  agentspace: { module: resolveCommunityPackageModule("./runtime/agentspace-tooling.mjs"), exportName: "buildCommunityAgentspaceDomainCapabilityManifest" },
35
37
  docman: { module: resolveCommunityPackageModule("./runtime/docman-tooling.mjs"), exportName: "buildAopsDocmanDomainCapabilityManifest" },
36
- projectman: { module: "@aopslabs/domain-kit-projectman", exportName: "buildProjectmanDomainCapabilityManifest" },
38
+ projectman: { module: resolveCommunityPackageModule("./runtime/projectman-host-adapter.mjs"), exportName: "buildAopsProjectmanDomainCapabilityManifest" },
37
39
  chatv3: { module: "@aopslabs/domain-kit-chatv3", exportName: "buildChatv3DomainCapabilityManifest" }
38
40
  };
39
41
  function assertExactRows(rows, expected, label) {
@@ -0,0 +1,12 @@
1
+ import { j as json } from '../../../../../chunks/utils.js-DjaWGEhn.js';
2
+ import { r as readRuntimeConfigAdmin } from '../../../../../chunks/aops-runtime-config.js-CHpDUCdE.js';
3
+ import { o as okResult } from '../../../../../chunks/xf-result.js-BRDjvftr.js';
4
+ import '../../../../../chunks/utils2.js-BQzn9ikS.js';
5
+ import '../../../../../chunks/uneval.js-BnYgIxRU.js';
6
+ import 'node:fs';
7
+ import 'node:path';
8
+ import 'pg';
9
+
10
+ const GET = async () => json(okResult(readRuntimeConfigAdmin()), { status: 200 });
11
+
12
+ export { GET };
@@ -1,6 +1,8 @@
1
- import { j as json } from './index.js--6zD1xCG.js';
2
- import { t as testRuntimeConfigAdminTarget } from './aops-runtime-config-CHpDUCdE.js';
3
- import { o as okResult, e as errResult } from './xf-result-BRDjvftr.js';
1
+ import { j as json } from '../../../../../../chunks/utils.js-DjaWGEhn.js';
2
+ import { t as testRuntimeConfigAdminTarget } from '../../../../../../chunks/aops-runtime-config.js-CHpDUCdE.js';
3
+ import { o as okResult, e as errResult } from '../../../../../../chunks/xf-result.js-BRDjvftr.js';
4
+ import '../../../../../../chunks/utils2.js-BQzn9ikS.js';
5
+ import '../../../../../../chunks/uneval.js-BnYgIxRU.js';
4
6
  import 'node:fs';
5
7
  import 'node:path';
6
8
  import 'pg';
@@ -1,10 +1,12 @@
1
- import { j as json } from './index.js--6zD1xCG.js';
2
- import { g as getAgentDiscoveryDocument } from './discovery-BaEpDyWT.js';
3
- import { r as resolveRequestBaseUrl } from './request-base-url-zKJpVUv5.js';
4
- import './agent-gateway-runtime-D6-UoKQA.js';
1
+ import { j as json } from '../../../chunks/utils.js-DjaWGEhn.js';
2
+ import { g as getAgentDiscoveryDocument } from '../../../chunks/discovery.js-CZjXJ_ZV.js';
3
+ import { r as resolveRequestBaseUrl } from '../../../chunks/request-base-url.js-zKJpVUv5.js';
4
+ import '../../../chunks/utils2.js-BQzn9ikS.js';
5
+ import '../../../chunks/uneval.js-BnYgIxRU.js';
6
+ import '../../../chunks/agent-gateway-runtime.js-De6jvAjX.js';
5
7
  import '@aopslabs/host-core';
6
8
  import '@aopslabs/manifest';
7
- import './registry-3GWqIriK.js';
9
+ import '../../../chunks/registry.js-DdOAgkkf.js';
8
10
  import 'node:fs';
9
11
  import 'node:os';
10
12
  import 'node:path';
@@ -13,17 +15,17 @@ import '@aopslabs/host-auth';
13
15
  import '@aopslabs/host-shell';
14
16
  import 'node:worker_threads';
15
17
  import '@aopslabs/artifact-trust-contracts';
16
- import './aops-runtime-config-CHpDUCdE.js';
18
+ import '../../../chunks/aops-runtime-config.js-CHpDUCdE.js';
17
19
  import 'pg';
18
20
  import '@aopslabs/host-admission';
19
21
  import 'node:child_process';
20
22
  import 'node:module';
21
23
  import 'node:util';
22
- import './project-alias-BdnRxWft.js';
24
+ import '../../../chunks/project-alias.js-BdnRxWft.js';
23
25
  import 'node:crypto';
24
26
  import 'ajv';
25
27
  import 'zod';
26
- import './auth-provider-C07OUlnz.js';
28
+ import '../../../chunks/auth-provider.js-C07OUlnz.js';
27
29
 
28
30
  const GET = async ({ request, url }) => {
29
31
  try {
@@ -1,10 +1,12 @@
1
- import { j as json } from './index.js--6zD1xCG.js';
2
- import { g as getAgentGateway } from './agent-gateway-runtime-D6-UoKQA.js';
3
- import { r as resolveRequestBaseUrl } from './request-base-url-zKJpVUv5.js';
4
- import { g as getAuthProvider, i as isTrustedLocalAuthProvider } from './auth-provider-C07OUlnz.js';
1
+ import { j as json } from '../../../chunks/utils.js-DjaWGEhn.js';
2
+ import { g as getAgentGateway } from '../../../chunks/agent-gateway-runtime.js-De6jvAjX.js';
3
+ import { r as resolveRequestBaseUrl } from '../../../chunks/request-base-url.js-zKJpVUv5.js';
4
+ import { g as getAuthProvider, i as isTrustedLocalAuthProvider } from '../../../chunks/auth-provider.js-C07OUlnz.js';
5
+ import '../../../chunks/utils2.js-BQzn9ikS.js';
6
+ import '../../../chunks/uneval.js-BnYgIxRU.js';
5
7
  import '@aopslabs/host-core';
6
8
  import '@aopslabs/manifest';
7
- import './registry-3GWqIriK.js';
9
+ import '../../../chunks/registry.js-DdOAgkkf.js';
8
10
  import 'node:fs';
9
11
  import 'node:os';
10
12
  import 'node:path';
@@ -13,13 +15,13 @@ import '@aopslabs/host-auth';
13
15
  import '@aopslabs/host-shell';
14
16
  import 'node:worker_threads';
15
17
  import '@aopslabs/artifact-trust-contracts';
16
- import './aops-runtime-config-CHpDUCdE.js';
18
+ import '../../../chunks/aops-runtime-config.js-CHpDUCdE.js';
17
19
  import 'pg';
18
20
  import '@aopslabs/host-admission';
19
21
  import 'node:child_process';
20
22
  import 'node:module';
21
23
  import 'node:util';
22
- import './project-alias-BdnRxWft.js';
24
+ import '../../../chunks/project-alias.js-BdnRxWft.js';
23
25
  import 'node:crypto';
24
26
  import 'ajv';
25
27
  import 'zod';
@@ -1,4 +1,8 @@
1
- import { e as escape_html, g as getContext, n as noop, w as writable } from './index.js--6zD1xCG.js';
1
+ import { e as escape_html, g as getContext, n as noop } from '../../chunks/root.js-Di8SnzYO.js';
2
+ import { w as writable } from '../../chunks/exports.js-BoBrqMaZ.js';
3
+ import '../../chunks/utils.js-DjaWGEhn.js';
4
+ import '../../chunks/utils2.js-BQzn9ikS.js';
5
+ import '../../chunks/uneval.js-BnYgIxRU.js';
2
6
 
3
7
  function create_updated_store() {
4
8
  const { set, subscribe } = writable(false);