@alneas/eaos-server 0.0.0-stage → 0.2.0
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/CHANGELOG.md +41 -0
- package/LICENSE +21 -0
- package/README.ja.md +49 -0
- package/README.md +46 -2
- package/dist/agentic/agent-jobs.d.ts +333 -0
- package/dist/agentic/agent-jobs.js +15 -0
- package/dist/agentic/agent-jobs.js.map +1 -0
- package/dist/agentic/agent-node.d.ts +40 -0
- package/dist/agentic/agent-node.js +7 -0
- package/dist/agentic/agent-node.js.map +1 -0
- package/dist/agentic/agent-runner.d.ts +33 -0
- package/dist/agentic/agent-runner.js +7 -0
- package/dist/agentic/agent-runner.js.map +1 -0
- package/dist/agentic/ai-broker.d.ts +169 -0
- package/dist/agentic/ai-broker.js +8 -0
- package/dist/agentic/ai-broker.js.map +1 -0
- package/dist/agentic/atomic-checkpointer.d.ts +137 -0
- package/dist/agentic/atomic-checkpointer.js +9 -0
- package/dist/agentic/atomic-checkpointer.js.map +1 -0
- package/dist/agentic/autonomous-worker.d.ts +122 -0
- package/dist/agentic/autonomous-worker.js +10 -0
- package/dist/agentic/autonomous-worker.js.map +1 -0
- package/dist/agentic/event-bridge.d.ts +350 -0
- package/dist/agentic/event-bridge.js +9 -0
- package/dist/agentic/event-bridge.js.map +1 -0
- package/dist/agentic/executor.d.ts +91 -0
- package/dist/agentic/executor.js +12 -0
- package/dist/agentic/executor.js.map +1 -0
- package/dist/agentic/graph-projection.d.ts +119 -0
- package/dist/agentic/graph-projection.js +7 -0
- package/dist/agentic/graph-projection.js.map +1 -0
- package/dist/agentic/graph.d.ts +524 -0
- package/dist/agentic/graph.js +7 -0
- package/dist/agentic/graph.js.map +1 -0
- package/dist/agentic/index.d.ts +28 -0
- package/dist/agentic/index.js +87 -0
- package/dist/agentic/index.js.map +1 -0
- package/dist/agentic/local-runner.d.ts +106 -0
- package/dist/agentic/local-runner.js +7 -0
- package/dist/agentic/local-runner.js.map +1 -0
- package/dist/agentic/remote-executor.d.ts +67 -0
- package/dist/agentic/remote-executor.js +8 -0
- package/dist/agentic/remote-executor.js.map +1 -0
- package/dist/agentic/types.d.ts +157 -0
- package/dist/agentic/types.js +7 -0
- package/dist/agentic/types.js.map +1 -0
- package/dist/agentic/workflow-catalog.d.ts +152 -0
- package/dist/agentic/workflow-catalog.js +7 -0
- package/dist/agentic/workflow-catalog.js.map +1 -0
- package/dist/agentic/workflow-compiler.d.ts +44 -0
- package/dist/agentic/workflow-compiler.js +8 -0
- package/dist/agentic/workflow-compiler.js.map +1 -0
- package/dist/agentic/workflow-coordinator.d.ts +170 -0
- package/dist/agentic/workflow-coordinator.js +8 -0
- package/dist/agentic/workflow-coordinator.js.map +1 -0
- package/dist/agentic/workflow-manager.d.ts +91 -0
- package/dist/agentic/workflow-manager.js +7 -0
- package/dist/agentic/workflow-manager.js.map +1 -0
- package/dist/agentic/workflow-registry.d.ts +334 -0
- package/dist/agentic/workflow-registry.js +7 -0
- package/dist/agentic/workflow-registry.js.map +1 -0
- package/dist/artifacts-CteHmCMI.d.ts +614 -0
- package/dist/auth-hooks/api-key.d.ts +75 -0
- package/dist/auth-hooks/api-key.js +7 -0
- package/dist/auth-hooks/api-key.js.map +1 -0
- package/dist/auth-hooks/index.d.ts +80 -0
- package/dist/auth-hooks/index.js +28 -0
- package/dist/auth-hooks/index.js.map +1 -0
- package/dist/browser-auth/account-memberships.d.ts +213 -0
- package/dist/browser-auth/account-memberships.js +13 -0
- package/dist/browser-auth/account-memberships.js.map +1 -0
- package/dist/browser-auth/index.d.ts +8 -0
- package/dist/browser-auth/index.js +59 -0
- package/dist/browser-auth/index.js.map +1 -0
- package/dist/browser-auth/kratos-session.d.ts +37 -0
- package/dist/browser-auth/kratos-session.js +7 -0
- package/dist/browser-auth/kratos-session.js.map +1 -0
- package/dist/browser-auth/platform-session.d.ts +120 -0
- package/dist/browser-auth/platform-session.js +7 -0
- package/dist/browser-auth/platform-session.js.map +1 -0
- package/dist/browser-auth/public-memberships.d.ts +22 -0
- package/dist/browser-auth/public-memberships.js +7 -0
- package/dist/browser-auth/public-memberships.js.map +1 -0
- package/dist/cache/index.d.ts +181 -0
- package/dist/cache/index.js +197 -0
- package/dist/cache/index.js.map +1 -0
- package/dist/chunk-32746UQZ.js +131 -0
- package/dist/chunk-32746UQZ.js.map +1 -0
- package/dist/chunk-3NLSWP2Y.js +223 -0
- package/dist/chunk-3NLSWP2Y.js.map +1 -0
- package/dist/chunk-3P4XTTQH.js +346 -0
- package/dist/chunk-3P4XTTQH.js.map +1 -0
- package/dist/chunk-3VITSHN3.js +15 -0
- package/dist/chunk-3VITSHN3.js.map +1 -0
- package/dist/chunk-46UWPEW2.js +226 -0
- package/dist/chunk-46UWPEW2.js.map +1 -0
- package/dist/chunk-4BARRLJR.js +180 -0
- package/dist/chunk-4BARRLJR.js.map +1 -0
- package/dist/chunk-4VORUFKR.js +45 -0
- package/dist/chunk-4VORUFKR.js.map +1 -0
- package/dist/chunk-55D4ERWO.js +1 -0
- package/dist/chunk-55D4ERWO.js.map +1 -0
- package/dist/chunk-5TBBZIND.js +18 -0
- package/dist/chunk-5TBBZIND.js.map +1 -0
- package/dist/chunk-5WOZWPZA.js +211 -0
- package/dist/chunk-5WOZWPZA.js.map +1 -0
- package/dist/chunk-6CBVZ6CT.js +168 -0
- package/dist/chunk-6CBVZ6CT.js.map +1 -0
- package/dist/chunk-6XZXYNJR.js +74 -0
- package/dist/chunk-6XZXYNJR.js.map +1 -0
- package/dist/chunk-753HWDSC.js +222 -0
- package/dist/chunk-753HWDSC.js.map +1 -0
- package/dist/chunk-7AHSS7SO.js +81 -0
- package/dist/chunk-7AHSS7SO.js.map +1 -0
- package/dist/chunk-7FTJN4SA.js +1 -0
- package/dist/chunk-7FTJN4SA.js.map +1 -0
- package/dist/chunk-AVDMLTPF.js +24 -0
- package/dist/chunk-AVDMLTPF.js.map +1 -0
- package/dist/chunk-BKAHUEIT.js +95 -0
- package/dist/chunk-BKAHUEIT.js.map +1 -0
- package/dist/chunk-CJ7OFEF7.js +134 -0
- package/dist/chunk-CJ7OFEF7.js.map +1 -0
- package/dist/chunk-EJKWDZIU.js +111 -0
- package/dist/chunk-EJKWDZIU.js.map +1 -0
- package/dist/chunk-F2J6IQ6I.js +247 -0
- package/dist/chunk-F2J6IQ6I.js.map +1 -0
- package/dist/chunk-F3O7CELI.js +23 -0
- package/dist/chunk-F3O7CELI.js.map +1 -0
- package/dist/chunk-F4IITPGX.js +221 -0
- package/dist/chunk-F4IITPGX.js.map +1 -0
- package/dist/chunk-FD6VC2NA.js +66 -0
- package/dist/chunk-FD6VC2NA.js.map +1 -0
- package/dist/chunk-FRRRWAHO.js +14 -0
- package/dist/chunk-FRRRWAHO.js.map +1 -0
- package/dist/chunk-HCKAGLLB.js +17 -0
- package/dist/chunk-HCKAGLLB.js.map +1 -0
- package/dist/chunk-HVC7FG6B.js +191 -0
- package/dist/chunk-HVC7FG6B.js.map +1 -0
- package/dist/chunk-HXFVOR7Z.js +496 -0
- package/dist/chunk-HXFVOR7Z.js.map +1 -0
- package/dist/chunk-IJWYS2PF.js +122 -0
- package/dist/chunk-IJWYS2PF.js.map +1 -0
- package/dist/chunk-INCHXAFK.js +1395 -0
- package/dist/chunk-INCHXAFK.js.map +1 -0
- package/dist/chunk-JT6BRGQM.js +1 -0
- package/dist/chunk-JT6BRGQM.js.map +1 -0
- package/dist/chunk-L6PMAEMB.js +115 -0
- package/dist/chunk-L6PMAEMB.js.map +1 -0
- package/dist/chunk-LOUGW6MU.js +126 -0
- package/dist/chunk-LOUGW6MU.js.map +1 -0
- package/dist/chunk-LYPZPE53.js +129 -0
- package/dist/chunk-LYPZPE53.js.map +1 -0
- package/dist/chunk-NNCCN7JP.js +186 -0
- package/dist/chunk-NNCCN7JP.js.map +1 -0
- package/dist/chunk-PBC3MZUL.js +212 -0
- package/dist/chunk-PBC3MZUL.js.map +1 -0
- package/dist/chunk-R4ADP2DC.js +20 -0
- package/dist/chunk-R4ADP2DC.js.map +1 -0
- package/dist/chunk-RHN4Y6VS.js +44 -0
- package/dist/chunk-RHN4Y6VS.js.map +1 -0
- package/dist/chunk-SDJNYPYK.js +770 -0
- package/dist/chunk-SDJNYPYK.js.map +1 -0
- package/dist/chunk-UGNTCOVR.js +28 -0
- package/dist/chunk-UGNTCOVR.js.map +1 -0
- package/dist/chunk-VC2PCK2S.js +31 -0
- package/dist/chunk-VC2PCK2S.js.map +1 -0
- package/dist/chunk-VF5YDZJC.js +305 -0
- package/dist/chunk-VF5YDZJC.js.map +1 -0
- package/dist/chunk-VISRDVTK.js +675 -0
- package/dist/chunk-VISRDVTK.js.map +1 -0
- package/dist/chunk-W6O3LVBY.js +102 -0
- package/dist/chunk-W6O3LVBY.js.map +1 -0
- package/dist/chunk-WFEAKJLR.js +47 -0
- package/dist/chunk-WFEAKJLR.js.map +1 -0
- package/dist/chunk-XIEY2OF4.js +67 -0
- package/dist/chunk-XIEY2OF4.js.map +1 -0
- package/dist/chunk-XITLHDG3.js +37 -0
- package/dist/chunk-XITLHDG3.js.map +1 -0
- package/dist/chunk-XMWPYZWZ.js +61 -0
- package/dist/chunk-XMWPYZWZ.js.map +1 -0
- package/dist/chunk-XUP6CNOM.js +34 -0
- package/dist/chunk-XUP6CNOM.js.map +1 -0
- package/dist/chunk-YABTQZDJ.js +25 -0
- package/dist/chunk-YABTQZDJ.js.map +1 -0
- package/dist/chunk-YMHVRBUU.js +199 -0
- package/dist/chunk-YMHVRBUU.js.map +1 -0
- package/dist/chunk-YMJ7BRKU.js +510 -0
- package/dist/chunk-YMJ7BRKU.js.map +1 -0
- package/dist/chunk-ZC3XWU7B.js +28 -0
- package/dist/chunk-ZC3XWU7B.js.map +1 -0
- package/dist/chunk-ZHMTD5KV.js +90 -0
- package/dist/chunk-ZHMTD5KV.js.map +1 -0
- package/dist/chunk-ZWZDLOE7.js +160 -0
- package/dist/chunk-ZWZDLOE7.js.map +1 -0
- package/dist/db-package/db/local-first-sqlite-adapter.d.ts +432 -0
- package/dist/db-package/db/local-first-sqlite-adapter.js +7 -0
- package/dist/db-package/db/local-first-sqlite-adapter.js.map +1 -0
- package/dist/db-package/index.d.ts +7 -0
- package/dist/db-package/index.js +16 -0
- package/dist/db-package/index.js.map +1 -0
- package/dist/db-package/migration/aggregator.d.ts +86 -0
- package/dist/db-package/migration/aggregator.js +7 -0
- package/dist/db-package/migration/aggregator.js.map +1 -0
- package/dist/db-package/migration/index.d.ts +3 -0
- package/dist/db-package/migration/index.js +8 -0
- package/dist/db-package/migration/index.js.map +1 -0
- package/dist/engine.d.ts +205 -0
- package/dist/engine.js +20 -0
- package/dist/engine.js.map +1 -0
- package/dist/entitlements/index.d.ts +313 -0
- package/dist/entitlements/index.js +23 -0
- package/dist/entitlements/index.js.map +1 -0
- package/dist/execution/chat.d.ts +7 -0
- package/dist/execution/chat.js +7 -0
- package/dist/execution/chat.js.map +1 -0
- package/dist/execution/index.d.ts +342 -0
- package/dist/execution/index.js +66 -0
- package/dist/execution/index.js.map +1 -0
- package/dist/execution/tool-agent.d.ts +7 -0
- package/dist/execution/tool-agent.js +8 -0
- package/dist/execution/tool-agent.js.map +1 -0
- package/dist/extensions/index.d.ts +172 -0
- package/dist/extensions/index.js +95 -0
- package/dist/extensions/index.js.map +1 -0
- package/dist/health/index.d.ts +35 -0
- package/dist/health/index.js +7 -0
- package/dist/health/index.js.map +1 -0
- package/dist/index.d.ts +43 -0
- package/dist/index.js +161 -0
- package/dist/index.js.map +1 -0
- package/dist/lifecycle/index.d.ts +133 -0
- package/dist/lifecycle/index.js +13 -0
- package/dist/lifecycle/index.js.map +1 -0
- package/dist/lifecycle-engine/backend-migration.d.ts +2 -0
- package/dist/lifecycle-engine/backend-migration.js +11 -0
- package/dist/lifecycle-engine/backend-migration.js.map +1 -0
- package/dist/lifecycle-engine/baseline.d.ts +2 -0
- package/dist/lifecycle-engine/baseline.js +9 -0
- package/dist/lifecycle-engine/baseline.js.map +1 -0
- package/dist/lifecycle-engine/index.d.ts +1497 -0
- package/dist/lifecycle-engine/index.js +41 -0
- package/dist/lifecycle-engine/index.js.map +1 -0
- package/dist/lifecycle-engine/platform/artifacts.d.ts +4 -0
- package/dist/lifecycle-engine/platform/artifacts.js +7 -0
- package/dist/lifecycle-engine/platform/artifacts.js.map +1 -0
- package/dist/lifecycle-engine/platform/control-plane.d.ts +12 -0
- package/dist/lifecycle-engine/platform/control-plane.js +2 -0
- package/dist/lifecycle-engine/platform/control-plane.js.map +1 -0
- package/dist/lifecycle-engine/platform/database-router.d.ts +118 -0
- package/dist/lifecycle-engine/platform/database-router.js +7 -0
- package/dist/lifecycle-engine/platform/database-router.js.map +1 -0
- package/dist/lifecycle-engine/platform/deployment-placements.d.ts +464 -0
- package/dist/lifecycle-engine/platform/deployment-placements.js +16 -0
- package/dist/lifecycle-engine/platform/deployment-placements.js.map +1 -0
- package/dist/lifecycle-engine/platform/deployment.d.ts +4 -0
- package/dist/lifecycle-engine/platform/deployment.js +17 -0
- package/dist/lifecycle-engine/platform/deployment.js.map +1 -0
- package/dist/lifecycle-engine/platform/index.d.ts +737 -0
- package/dist/lifecycle-engine/platform/index.js +60 -0
- package/dist/lifecycle-engine/platform/index.js.map +1 -0
- package/dist/lifecycle-engine/platform/runtime.d.ts +80 -0
- package/dist/lifecycle-engine/platform/runtime.js +11 -0
- package/dist/lifecycle-engine/platform/runtime.js.map +1 -0
- package/dist/lifecycle-engine/platform/site-publication.d.ts +102 -0
- package/dist/lifecycle-engine/platform/site-publication.js +7 -0
- package/dist/lifecycle-engine/platform/site-publication.js.map +1 -0
- package/dist/lifecycle-engine/platform/user-directory.d.ts +139 -0
- package/dist/lifecycle-engine/platform/user-directory.js +13 -0
- package/dist/lifecycle-engine/platform/user-directory.js.map +1 -0
- package/dist/mcp.d.ts +92 -0
- package/dist/mcp.js +10 -0
- package/dist/mcp.js.map +1 -0
- package/dist/middleware/auth.d.ts +118 -0
- package/dist/middleware/auth.js +7 -0
- package/dist/middleware/auth.js.map +1 -0
- package/dist/middleware/error-handler.d.ts +35 -0
- package/dist/middleware/error-handler.js +7 -0
- package/dist/middleware/error-handler.js.map +1 -0
- package/dist/middleware/module-guard.d.ts +33 -0
- package/dist/middleware/module-guard.js +7 -0
- package/dist/middleware/module-guard.js.map +1 -0
- package/dist/platform-admin/index.d.ts +37 -0
- package/dist/platform-admin/index.js +11 -0
- package/dist/platform-admin/index.js.map +1 -0
- package/dist/platform-admin/store.d.ts +346 -0
- package/dist/platform-admin/store.js +7 -0
- package/dist/platform-admin/store.js.map +1 -0
- package/dist/plugin-data/annotations.d.ts +6 -0
- package/dist/plugin-data/annotations.js +12 -0
- package/dist/plugin-data/annotations.js.map +1 -0
- package/dist/plugin-data/atomic-context.d.ts +41 -0
- package/dist/plugin-data/atomic-context.js +9 -0
- package/dist/plugin-data/atomic-context.js.map +1 -0
- package/dist/plugin-data/atomic.d.ts +6 -0
- package/dist/plugin-data/atomic.js +26 -0
- package/dist/plugin-data/atomic.js.map +1 -0
- package/dist/plugin-data/audit.d.ts +6 -0
- package/dist/plugin-data/audit.js +12 -0
- package/dist/plugin-data/audit.js.map +1 -0
- package/dist/plugin-data/commands.d.ts +6 -0
- package/dist/plugin-data/commands.js +8 -0
- package/dist/plugin-data/commands.js.map +1 -0
- package/dist/plugin-data/composite.d.ts +6 -0
- package/dist/plugin-data/composite.js +8 -0
- package/dist/plugin-data/composite.js.map +1 -0
- package/dist/plugin-data/delivery.d.ts +6 -0
- package/dist/plugin-data/delivery.js +16 -0
- package/dist/plugin-data/delivery.js.map +1 -0
- package/dist/plugin-data/index.d.ts +2798 -0
- package/dist/plugin-data/index.js +102 -0
- package/dist/plugin-data/index.js.map +1 -0
- package/dist/plugin-data/json-documents.d.ts +6 -0
- package/dist/plugin-data/json-documents.js +16 -0
- package/dist/plugin-data/json-documents.js.map +1 -0
- package/dist/plugin-data/outbox.d.ts +6 -0
- package/dist/plugin-data/outbox.js +16 -0
- package/dist/plugin-data/outbox.js.map +1 -0
- package/dist/plugin-data/scoped-records.d.ts +6 -0
- package/dist/plugin-data/scoped-records.js +10 -0
- package/dist/plugin-data/scoped-records.js.map +1 -0
- package/dist/plugin-sdk.d.ts +41 -0
- package/dist/plugin-sdk.js +10 -0
- package/dist/plugin-sdk.js.map +1 -0
- package/dist/sql-lifecycle/index.d.ts +138 -0
- package/dist/sql-lifecycle/index.js +167 -0
- package/dist/sql-lifecycle/index.js.map +1 -0
- package/dist/storage/index.d.ts +2 -0
- package/dist/storage/index.js +13 -0
- package/dist/storage/index.js.map +1 -0
- package/dist/storage/s3-compatible.d.ts +139 -0
- package/dist/storage/s3-compatible.js +11 -0
- package/dist/storage/s3-compatible.js.map +1 -0
- package/dist/tenant.d.ts +108 -0
- package/dist/tenant.js +9 -0
- package/dist/tenant.js.map +1 -0
- package/dist/workspace-context.d.ts +119 -0
- package/dist/workspace-context.js +9 -0
- package/dist/workspace-context.js.map +1 -0
- package/docs/api.md +30560 -0
- package/docs/db/README.md +49 -0
- package/docs/db/docs/api.md +1613 -0
- package/docs/db/docs/guide.md +47 -0
- package/docs/entitlements.md +60 -0
- package/docs/guide.md +92 -0
- package/docs/index.md +57 -0
- package/docs/ja/db/README.md +46 -0
- package/docs/ja/db/docs/guide.md +53 -0
- package/docs/ja/guide.md +46 -0
- package/docs/ja/lifecycle/README.md +46 -0
- package/docs/ja/lifecycle/docs/guide.md +45 -0
- package/docs/ja/storage/README.md +46 -0
- package/docs/ja/storage/docs/guide.md +43 -0
- package/docs/lifecycle/README.md +49 -0
- package/docs/lifecycle/docs/api.md +3770 -0
- package/docs/lifecycle/docs/baseline.md +50 -0
- package/docs/lifecycle/docs/guide.md +47 -0
- package/docs/storage/README.md +49 -0
- package/docs/storage/docs/api.md +470 -0
- package/docs/storage/docs/guide.md +47 -0
- package/package.json +354 -4
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FRAMEWORK_VERSION,
|
|
3
|
+
PluginLifecycle,
|
|
4
|
+
assertBackendMigrationCutover,
|
|
5
|
+
assertBackendMigrationVerification,
|
|
6
|
+
assertDataContractBinding,
|
|
7
|
+
assertJsonDocumentContracts,
|
|
8
|
+
canonical,
|
|
9
|
+
collectSchemaMigrations,
|
|
10
|
+
createDataContractBaseline,
|
|
11
|
+
createJsonDocumentAssertion,
|
|
12
|
+
dataContractTables,
|
|
13
|
+
emptyLifecyclePlatformState,
|
|
14
|
+
emptyLifecycleState,
|
|
15
|
+
lifecycleDigest,
|
|
16
|
+
normalizeLifecycleState,
|
|
17
|
+
planBackendMigration,
|
|
18
|
+
rebaseDataContractBaseline,
|
|
19
|
+
resolveDataContracts
|
|
20
|
+
} from "../chunk-SDJNYPYK.js";
|
|
21
|
+
export {
|
|
22
|
+
FRAMEWORK_VERSION,
|
|
23
|
+
PluginLifecycle,
|
|
24
|
+
assertBackendMigrationCutover,
|
|
25
|
+
assertBackendMigrationVerification,
|
|
26
|
+
assertDataContractBinding,
|
|
27
|
+
assertJsonDocumentContracts,
|
|
28
|
+
canonical,
|
|
29
|
+
collectSchemaMigrations,
|
|
30
|
+
createDataContractBaseline,
|
|
31
|
+
createJsonDocumentAssertion,
|
|
32
|
+
dataContractTables,
|
|
33
|
+
emptyLifecyclePlatformState,
|
|
34
|
+
emptyLifecycleState,
|
|
35
|
+
lifecycleDigest,
|
|
36
|
+
normalizeLifecycleState,
|
|
37
|
+
planBackendMigration,
|
|
38
|
+
rebaseDataContractBaseline,
|
|
39
|
+
resolveDataContracts
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import '../index.js';
|
|
2
|
+
export { PlatformAdminAction, PlatformAdminAuditEvent, PlatformAdminAuthorization, PlatformAdminPrincipal, PlatformBackendRecord, PlatformControlStore, PlatformMigrationReconcileAction, PlatformPlacementExecutor, PlatformTenantCreateInput, PlatformTenantPatch, PlatformTenantRecord, TenantBackendPlacement } from './index.js';
|
|
3
|
+
import '@alneas/eaos-core/contracts/data-contracts';
|
|
4
|
+
import '@alneas/eaos-core/security/gatekeeper';
|
|
5
|
+
import '../../artifacts-CteHmCMI.js';
|
|
6
|
+
import '@alneas/eaos-core/plugin-sdk';
|
|
7
|
+
import './deployment-placements.js';
|
|
8
|
+
import './runtime.js';
|
|
9
|
+
import './database-router.js';
|
|
10
|
+
import '@alneas/eaos-core/db/adapter';
|
|
11
|
+
import './user-directory.js';
|
|
12
|
+
import './site-publication.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { DatabaseAdapter, TenantSessionContext, ConnectionStats } from '@alneas/eaos-core/db/adapter';
|
|
2
|
+
import { BackendTarget } from '../index.js';
|
|
3
|
+
import '@alneas/eaos-core/contracts/data-contracts';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Routes verified tenant operations to isolated existing database pools without implicit fallback.
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* One execution host, isolated pools per DB. No implicit shared fallback or unscoped business access.
|
|
10
|
+
* @remarks
|
|
11
|
+
* All configured adapters must share one dialect. The host supplies membership-verified tenant context, trusted target resolution and real adapter pools. Unscoped business connections always reject; administration requires a separate control adapter. close owns and closes every distinct supplied adapter.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import { TenantDatabaseRouter } from '@alneas/eaos-server/platform/database-router';
|
|
16
|
+
* import type { DatabaseAdapter } from '@alneas/eaos-core/db/adapter';
|
|
17
|
+
* import type { BackendTarget } from '@alneas/eaos-server/lifecycle-engine';
|
|
18
|
+
* export function connectRouter(resolve: (verifiedTenantId: string) => BackendTarget, adapters: ReadonlyMap<string, DatabaseAdapter>) { return new TenantDatabaseRouter(resolve, adapters); }
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
declare class TenantDatabaseRouter implements DatabaseAdapter {
|
|
22
|
+
private readonly resolveTarget;
|
|
23
|
+
/**
|
|
24
|
+
* The single SQL dialect shared by every configured adapter.
|
|
25
|
+
*/
|
|
26
|
+
readonly type: DatabaseAdapter['type'];
|
|
27
|
+
private readonly adapters;
|
|
28
|
+
/**
|
|
29
|
+
* Snapshots configured physical database adapters and requires a single shared dialect.
|
|
30
|
+
* @param resolveTarget - Resolve the verified tenant to its trusted lifecycle backend; synchronous errors propagate.
|
|
31
|
+
* @param adapters - Nonempty map keyed by physical databaseId; adapter objects are shared and later owned by close().
|
|
32
|
+
* @throws Error for no adapters or multiple adapter dialects.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```typescript
|
|
36
|
+
* import { TenantDatabaseRouter } from '@alneas/eaos-server/platform/database-router';
|
|
37
|
+
* import type { DatabaseAdapter } from '@alneas/eaos-core/db/adapter';
|
|
38
|
+
* import type { BackendTarget } from '@alneas/eaos-server/lifecycle-engine';
|
|
39
|
+
* export function connectRouter(resolve: (verifiedTenantId: string) => BackendTarget, adapters: ReadonlyMap<string, DatabaseAdapter>) { return new TenantDatabaseRouter(resolve, adapters); }
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
constructor(resolveTarget: (verifiedTenantId: string) => BackendTarget, adapters: ReadonlyMap<string, DatabaseAdapter>);
|
|
43
|
+
/**
|
|
44
|
+
* Rejects unscoped business database access to require a verified tenant context.
|
|
45
|
+
* @typeParam T - Callback result type required by DatabaseAdapter; this method always rejects.
|
|
46
|
+
* @param _domain - Unused business domain; no connection is opened.
|
|
47
|
+
* @param _callback - Unused callback; it is never invoked.
|
|
48
|
+
* @returns A rejected Promise; this method never resolves a callback result.
|
|
49
|
+
* @throws Always rejects with the verified-context requirement.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```typescript
|
|
53
|
+
* import { TenantDatabaseRouter } from '@alneas/eaos-server/platform/database-router';
|
|
54
|
+
* export async function rejectUnscoped(router: TenantDatabaseRouter) { await router.withConnection('reports', async () => undefined); }
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
withConnection<T>(_domain: string, _callback: (connection: unknown) => Promise<T>): Promise<T>;
|
|
58
|
+
/**
|
|
59
|
+
* Delegates one verified tenant connection to its exact configured physical database adapter.
|
|
60
|
+
* @typeParam T - Value resolved by work on the selected tenant connection.
|
|
61
|
+
* @param domain - Business domain forwarded to the selected adapter.
|
|
62
|
+
* @param callback - Async work invoked by the adapter with its connection; must enforce resource permission.
|
|
63
|
+
* @param context - Verified nonblank trimmed tenant session; a copied context is forwarded.
|
|
64
|
+
* @returns The selected adapter callback result.
|
|
65
|
+
* @throws Rejects invalid tenant, dedicated mismatch, missing adapter or adapter/callback failure; target resolver errors may throw synchronously.
|
|
66
|
+
*
|
|
67
|
+
* @remarks
|
|
68
|
+
* Dedicated target tenant must match. Missing target adapters and dedicated failures never fall back to shared storage. Cancellation/transaction/connection cleanup follow the selected adapter contract.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```typescript
|
|
72
|
+
* import { TenantDatabaseRouter } from '@alneas/eaos-server/platform/database-router';
|
|
73
|
+
* export function withVerifiedTenant<T>(router: TenantDatabaseRouter, tenantId: string, work: (connection: unknown) => Promise<T>) { return router.withTenantConnection('reports', work, { tenantId }); }
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
withTenantConnection<T>(domain: string, callback: (connection: unknown) => Promise<T>, context: TenantSessionContext): Promise<T>;
|
|
77
|
+
/**
|
|
78
|
+
* Checks every distinct configured database adapter concurrently.
|
|
79
|
+
* @returns True only when every adapter ping resolves true; false if any resolves false.
|
|
80
|
+
* @throws Rejects if any adapter ping rejects.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```typescript
|
|
84
|
+
* import { TenantDatabaseRouter } from '@alneas/eaos-server/platform/database-router';
|
|
85
|
+
* export const health = (router: TenantDatabaseRouter) => router.ping();
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
ping(): Promise<boolean>;
|
|
89
|
+
/**
|
|
90
|
+
* Aggregates connection and pool counts from every distinct configured adapter.
|
|
91
|
+
* @returns ConnectionStats with the router dialect and summed counts.
|
|
92
|
+
* @throws Propagates adapter getStats errors.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```typescript
|
|
96
|
+
* import { TenantDatabaseRouter } from '@alneas/eaos-server/platform/database-router';
|
|
97
|
+
* export const stats = (router: TenantDatabaseRouter) => router.getStats();
|
|
98
|
+
* ```
|
|
99
|
+
*/
|
|
100
|
+
getStats(): ConnectionStats;
|
|
101
|
+
/**
|
|
102
|
+
* Closes all distinct configured adapters and collects asynchronous cleanup failures.
|
|
103
|
+
* @returns Resolves without a value after every adapter close settles successfully.
|
|
104
|
+
* @throws Rejects with AggregateError for one or more rejected close Promises; synchronous adapter errors may also reject.
|
|
105
|
+
*
|
|
106
|
+
* @remarks
|
|
107
|
+
* The router does not mark itself closed or make repeated calls idempotent; each adapter owns its lifecycle semantics. A synchronously throwing close implementation can interrupt initial dispatch.
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* ```typescript
|
|
111
|
+
* import { TenantDatabaseRouter } from '@alneas/eaos-server/platform/database-router';
|
|
112
|
+
* export async function shutdown(router: TenantDatabaseRouter) { await router.close(); }
|
|
113
|
+
* ```
|
|
114
|
+
*/
|
|
115
|
+
close(): Promise<void>;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export { TenantDatabaseRouter };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,464 @@
|
|
|
1
|
+
import { DeploymentInventory } from './artifacts.js';
|
|
2
|
+
import { DeploymentComponent, DeploymentTaskStatus, DeploymentTarget, DeploymentResult, DeploymentReceipt, deploymentComponentKinds, deploymentActions } from './deployment.js';
|
|
3
|
+
import '@alneas/eaos-core/plugin-sdk';
|
|
4
|
+
import '../index.js';
|
|
5
|
+
import '@alneas/eaos-core/contracts/data-contracts';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Explicit existing host service/resource or physical database destination with a binding revision.
|
|
9
|
+
*
|
|
10
|
+
* @see summarizePlacedDeployment for canonical integration usage.
|
|
11
|
+
*/
|
|
12
|
+
interface DeploymentDestination {
|
|
13
|
+
/**
|
|
14
|
+
* Unique destination identifier.
|
|
15
|
+
*/
|
|
16
|
+
id: string;
|
|
17
|
+
/**
|
|
18
|
+
* Host/container/function/database/cloud/native/external destination category.
|
|
19
|
+
*/
|
|
20
|
+
placement: DeploymentComponent['placement'];
|
|
21
|
+
/**
|
|
22
|
+
* Optional symbolic existing frontend/backend/worker role; host/container only.
|
|
23
|
+
*
|
|
24
|
+
* Symbolic role of an existing Platform service.
|
|
25
|
+
*/
|
|
26
|
+
service?: 'frontend' | 'backend' | 'worker';
|
|
27
|
+
/**
|
|
28
|
+
* Optional nonsecret host resource/operation binding; never credentials or executable code.
|
|
29
|
+
*
|
|
30
|
+
* Host-owned resource/operation binding reference, never credentials or an executable command.
|
|
31
|
+
*/
|
|
32
|
+
reference?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Required existing backend ID for database destinations; forbidden otherwise.
|
|
35
|
+
*/
|
|
36
|
+
backendId?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Required exact physical database identity for database destinations.
|
|
39
|
+
*/
|
|
40
|
+
databaseId?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Optional dedicated concrete tenant restriction; database destinations only.
|
|
43
|
+
*
|
|
44
|
+
* Restrict a dedicated DB destination to its verified tenant.
|
|
45
|
+
*/
|
|
46
|
+
tenantId?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Nonblank host binding revision; change when wiring/provider/credential revision changes.
|
|
49
|
+
*
|
|
50
|
+
* Change when the host binding changes, including a credential/provider revision.
|
|
51
|
+
*/
|
|
52
|
+
revision: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Explicit plugin selection and destination assignments; empty lists deliberately decline optional components.
|
|
56
|
+
*
|
|
57
|
+
* @see summarizePlacedDeployment for canonical integration usage.
|
|
58
|
+
*/
|
|
59
|
+
interface DeploymentPlacements {
|
|
60
|
+
/**
|
|
61
|
+
* Unique nonsecret existing destination declarations.
|
|
62
|
+
*/
|
|
63
|
+
destinations: DeploymentDestination[];
|
|
64
|
+
/**
|
|
65
|
+
* Selected owner/plugin pairs and complete component-ID to destination-ID lists; selection never registers/enables code.
|
|
66
|
+
*
|
|
67
|
+
* Listing a plugin selects it for this application plan; this never registers or enables code.
|
|
68
|
+
*/
|
|
69
|
+
plugins: Array<{
|
|
70
|
+
/**
|
|
71
|
+
* Exact inventory owner selecting this plugin.
|
|
72
|
+
*/
|
|
73
|
+
owner: string;
|
|
74
|
+
/**
|
|
75
|
+
* Plugin declared by that owner; listing it selects application placement only.
|
|
76
|
+
*/
|
|
77
|
+
pluginId: string;
|
|
78
|
+
/**
|
|
79
|
+
* Complete component-ID to destination-ID lists; empty declines only optional capabilities.
|
|
80
|
+
*/
|
|
81
|
+
components: Record<string, string[]>;
|
|
82
|
+
}>;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Validates nonsecret destination definitions and explicit component-to-destination selections.
|
|
86
|
+
*
|
|
87
|
+
* Validate only non-secret declarations here; no service discovery, provisioning or code execution.
|
|
88
|
+
* @param value - Untrusted destinations/plugins declaration.
|
|
89
|
+
* @returns Completes without a value and narrows the input to DeploymentPlacements.
|
|
90
|
+
* @throws Error for duplicate/unknown IDs, unknown fields, invalid placement kind, malformed host references or conflicting destination configuration.
|
|
91
|
+
*
|
|
92
|
+
* @remarks
|
|
93
|
+
* A database destination uses exact backend/database IDs; other destinations use exactly one symbolic service or host reference. Dedicated tenant restrictions apply only to database destinations. No discovery, provisioning or code execution occurs.
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* ```typescript
|
|
97
|
+
* import { validateDeploymentPlacements } from '@alneas/eaos-server/platform/deployment-placements';
|
|
98
|
+
* const placements: unknown = { destinations: [], plugins: [] };
|
|
99
|
+
* validateDeploymentPlacements(placements);
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
declare function validateDeploymentPlacements(value: unknown): asserts value is DeploymentPlacements;
|
|
103
|
+
/**
|
|
104
|
+
* Resolves each selected plugin component against explicit compatible deployment destinations.
|
|
105
|
+
*
|
|
106
|
+
* All selected components are explicit; [] means an optional capability was deliberately not adopted.
|
|
107
|
+
* @param placements - Validated explicit selections; every component must have a destination list.
|
|
108
|
+
* @param inventories - Trusted inventories with unique owner IDs and declared plugin work.
|
|
109
|
+
* @returns Component selections with copied destinationIds and adopted flags; an empty list deliberately declines an optional component.
|
|
110
|
+
* @throws Error for unknown inventory/plugin/component/destination, duplicate owners, missing required placement, incompatible role/kind or declined dependency.
|
|
111
|
+
*
|
|
112
|
+
* @remarks
|
|
113
|
+
* Selecting a plugin does not register or enable it. Required components cannot be declined, and adopted work cannot depend on declined nonartifact work. A host component may target a container destination.
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* ```typescript
|
|
117
|
+
* import { resolveDeploymentPlacements } from '@alneas/eaos-server/platform/deployment-placements';
|
|
118
|
+
* import type { DeploymentInventory } from '@alneas/eaos-server/platform/artifacts';
|
|
119
|
+
* export function resolve(placements: Parameters<typeof resolveDeploymentPlacements>[0], inventories: DeploymentInventory[]) { return resolveDeploymentPlacements(placements, inventories); }
|
|
120
|
+
* ```
|
|
121
|
+
*/
|
|
122
|
+
declare function resolveDeploymentPlacements(placements: DeploymentPlacements, inventories: DeploymentInventory[]): {
|
|
123
|
+
owner: string;
|
|
124
|
+
pluginId: string;
|
|
125
|
+
componentId: string;
|
|
126
|
+
destinationIds: string[];
|
|
127
|
+
adopted: boolean;
|
|
128
|
+
}[];
|
|
129
|
+
/**
|
|
130
|
+
* Hashes a selected plugin's normalized component destinations and host binding revisions.
|
|
131
|
+
* @param placements - Previously validated placement declaration.
|
|
132
|
+
* @param owner - Inventory owner selecting the plugin.
|
|
133
|
+
* @param pluginId - Selected plugin ID.
|
|
134
|
+
* @param bindings - Optional nonsecret destination-ID to host-binding revision map; defaults to none.
|
|
135
|
+
* @returns A lowercase SHA-256 hash bound to selected components, referenced destinations and applicable binding revisions.
|
|
136
|
+
* @throws Error when the owner/plugin selection is absent or canonical serialization fails.
|
|
137
|
+
*
|
|
138
|
+
* @remarks
|
|
139
|
+
* Order of component/destination maps is normalized. Change binding revisions when provider credentials or host wiring change so old scoped evidence becomes stale.
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* ```typescript
|
|
143
|
+
* import { deploymentPlacementHash, type DeploymentPlacements } from '@alneas/eaos-server/platform/deployment-placements';
|
|
144
|
+
* export function bindingDigest(placements: DeploymentPlacements, owner: string, pluginId: string) { return deploymentPlacementHash(placements, owner, pluginId); }
|
|
145
|
+
* ```
|
|
146
|
+
*/
|
|
147
|
+
declare function deploymentPlacementHash(placements: DeploymentPlacements, owner: string, pluginId: string, bindings?: Record<string, string>): string;
|
|
148
|
+
/**
|
|
149
|
+
* Builds a scoped task target from a reviewed destination and the current inspection context.
|
|
150
|
+
* @param destination - Validated destination with optional exact database and dedicated-tenant identities.
|
|
151
|
+
* @param scope - Environment work omits tenant; tenant work requires a matching concrete tenant.
|
|
152
|
+
* @param context - Current environment/tenant context; omitted cannot resolve a target.
|
|
153
|
+
* @returns A new target object, or undefined for missing context/tenant or dedicated-tenant mismatch.
|
|
154
|
+
*
|
|
155
|
+
* @remarks
|
|
156
|
+
* Backend/database come from the destination, not the context. This performs no authority or resource-existence checks.
|
|
157
|
+
*
|
|
158
|
+
* @example
|
|
159
|
+
* ```typescript
|
|
160
|
+
* import { deploymentExecutionTarget } from '@alneas/eaos-server/platform/deployment-placements';
|
|
161
|
+
* const target = deploymentExecutionTarget({ id: 'web', placement: 'host', service: 'frontend', revision: '1' }, 'environment', { environment: 'review' });
|
|
162
|
+
* ```
|
|
163
|
+
*/
|
|
164
|
+
declare function deploymentExecutionTarget(destination: DeploymentDestination, scope: 'environment' | 'tenant', context?: DeploymentTarget): DeploymentTarget | undefined;
|
|
165
|
+
/**
|
|
166
|
+
* One task instance at an explicit destination or reusable artifact scope.
|
|
167
|
+
*
|
|
168
|
+
* @see summarizePlacedDeployment for canonical integration usage.
|
|
169
|
+
*/
|
|
170
|
+
interface DeploymentExecution {
|
|
171
|
+
/**
|
|
172
|
+
* Declared plugin task ID.
|
|
173
|
+
*/
|
|
174
|
+
taskId: string;
|
|
175
|
+
/**
|
|
176
|
+
* Scoped destination identity; absent for shared artifact work.
|
|
177
|
+
*/
|
|
178
|
+
destinationId?: string;
|
|
179
|
+
/**
|
|
180
|
+
* Adopted components covered at this destination.
|
|
181
|
+
*/
|
|
182
|
+
componentIds: string[];
|
|
183
|
+
/**
|
|
184
|
+
* Whether this adopted execution must succeed for completion.
|
|
185
|
+
*/
|
|
186
|
+
required: boolean;
|
|
187
|
+
/**
|
|
188
|
+
* Dependency-aware derived task state.
|
|
189
|
+
*/
|
|
190
|
+
status: DeploymentTaskStatus;
|
|
191
|
+
/**
|
|
192
|
+
* Resolved environment/database/tenant evidence context, if available.
|
|
193
|
+
*/
|
|
194
|
+
target?: DeploymentTarget;
|
|
195
|
+
/**
|
|
196
|
+
* Latest matching reported result, if any.
|
|
197
|
+
*/
|
|
198
|
+
result?: DeploymentResult;
|
|
199
|
+
/**
|
|
200
|
+
* Prerequisite task/destination identities whose evidence must succeed first.
|
|
201
|
+
*/
|
|
202
|
+
dependencies: Array<{
|
|
203
|
+
/**
|
|
204
|
+
* Prerequisite declared task ID.
|
|
205
|
+
*/
|
|
206
|
+
taskId: string;
|
|
207
|
+
/**
|
|
208
|
+
* Prerequisite destination, absent for shared artifact work.
|
|
209
|
+
*/
|
|
210
|
+
destinationId?: string;
|
|
211
|
+
}>;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Builds one placement-bound execution graph shared by plugin and destination evidence projections.
|
|
215
|
+
*
|
|
216
|
+
* One execution graph powers both plugin and destination projections. Shared artifact work is never duplicated.
|
|
217
|
+
* @param inventory - Trusted artifact inventory with declared plugin work.
|
|
218
|
+
* @param inventorySha256 - Trusted lowercase inventory digest.
|
|
219
|
+
* @param receipts - Reported task evidence, including placement-bound scoped results.
|
|
220
|
+
* @param placements - Explicit compatible destination selections.
|
|
221
|
+
* @param context - Optional environment and tenant only; backend/database must come from destinations.
|
|
222
|
+
* @param bindings - Optional destination host-binding revisions; defaults to none.
|
|
223
|
+
* @returns A deployment summary with selected/adopted components, task executions, destinations, artifact executions and explicit placement coverage.
|
|
224
|
+
* @throws Error for invalid placements/context/receipts, undeclared tasks, mismatched task scope or conflicting equal-time evidence.
|
|
225
|
+
*
|
|
226
|
+
* @remarks
|
|
227
|
+
* Shared artifact work is not duplicated. Old binding hashes are ignored as stale; declined optional components do not satisfy adopted dependency work. No task executes, and reported completion does not grant runtime admission.
|
|
228
|
+
*
|
|
229
|
+
* @example
|
|
230
|
+
* ```typescript
|
|
231
|
+
* import { summarizePlacedDeployment, type DeploymentPlacements } from '@alneas/eaos-server/platform/deployment-placements';
|
|
232
|
+
* import type { DeploymentInventory, DeploymentReceipt } from '@alneas/eaos-server/platform';
|
|
233
|
+
* export function inspectPlaced(inventory: DeploymentInventory, digest: string, receipts: DeploymentReceipt[], placements: DeploymentPlacements) { return summarizePlacedDeployment(inventory, digest, receipts, placements, { environment: 'review' }); }
|
|
234
|
+
* ```
|
|
235
|
+
*/
|
|
236
|
+
declare function summarizePlacedDeployment(inventory: DeploymentInventory, inventorySha256: string, receipts: DeploymentReceipt[], placements: DeploymentPlacements, context?: DeploymentTarget, bindings?: Record<string, string>): {
|
|
237
|
+
plugins: ({
|
|
238
|
+
selected: boolean;
|
|
239
|
+
components: {
|
|
240
|
+
adopted: boolean;
|
|
241
|
+
destinationIds: string[];
|
|
242
|
+
complete: boolean;
|
|
243
|
+
id: string;
|
|
244
|
+
required?: boolean;
|
|
245
|
+
kind: typeof deploymentComponentKinds[number];
|
|
246
|
+
placement: "host" | "container" | "function" | "database" | "cloud" | "native" | "external";
|
|
247
|
+
runtime?: string;
|
|
248
|
+
assets?: string[];
|
|
249
|
+
assetPatterns?: string[];
|
|
250
|
+
entry?: string;
|
|
251
|
+
dataContracts?: Record<string, string>;
|
|
252
|
+
requirements?: {
|
|
253
|
+
tools?: Record<string, string>;
|
|
254
|
+
bindings?: string[];
|
|
255
|
+
adapters?: string[];
|
|
256
|
+
};
|
|
257
|
+
}[];
|
|
258
|
+
tasks: {
|
|
259
|
+
adopted: boolean;
|
|
260
|
+
executions: DeploymentExecution[];
|
|
261
|
+
status: DeploymentTaskStatus;
|
|
262
|
+
result?: DeploymentResult;
|
|
263
|
+
id: string;
|
|
264
|
+
componentIds: string[];
|
|
265
|
+
action: typeof deploymentActions[number];
|
|
266
|
+
scope: "artifact" | "environment" | "tenant";
|
|
267
|
+
required: boolean;
|
|
268
|
+
dependsOn: string[];
|
|
269
|
+
executor: string;
|
|
270
|
+
argv?: string[];
|
|
271
|
+
instructions?: string;
|
|
272
|
+
}[];
|
|
273
|
+
complete: boolean;
|
|
274
|
+
id: string;
|
|
275
|
+
artifactResolved: boolean;
|
|
276
|
+
} | {
|
|
277
|
+
selected: boolean;
|
|
278
|
+
placementSha256: string;
|
|
279
|
+
tasks: {
|
|
280
|
+
adopted: boolean;
|
|
281
|
+
required: boolean;
|
|
282
|
+
status: DeploymentTaskStatus;
|
|
283
|
+
executions: DeploymentExecution[];
|
|
284
|
+
result?: DeploymentResult;
|
|
285
|
+
id: string;
|
|
286
|
+
componentIds: string[];
|
|
287
|
+
action: typeof deploymentActions[number];
|
|
288
|
+
scope: "artifact" | "environment" | "tenant";
|
|
289
|
+
dependsOn: string[];
|
|
290
|
+
executor: string;
|
|
291
|
+
argv?: string[];
|
|
292
|
+
instructions?: string;
|
|
293
|
+
}[];
|
|
294
|
+
complete: boolean;
|
|
295
|
+
components: {
|
|
296
|
+
adopted: boolean;
|
|
297
|
+
destinationIds: string[];
|
|
298
|
+
complete: boolean;
|
|
299
|
+
id: string;
|
|
300
|
+
required?: boolean;
|
|
301
|
+
kind: typeof deploymentComponentKinds[number];
|
|
302
|
+
placement: "host" | "container" | "function" | "database" | "cloud" | "native" | "external";
|
|
303
|
+
runtime?: string;
|
|
304
|
+
assets?: string[];
|
|
305
|
+
assetPatterns?: string[];
|
|
306
|
+
entry?: string;
|
|
307
|
+
dataContracts?: Record<string, string>;
|
|
308
|
+
requirements?: {
|
|
309
|
+
tools?: Record<string, string>;
|
|
310
|
+
bindings?: string[];
|
|
311
|
+
adapters?: string[];
|
|
312
|
+
};
|
|
313
|
+
}[];
|
|
314
|
+
id: string;
|
|
315
|
+
artifactResolved: boolean;
|
|
316
|
+
})[];
|
|
317
|
+
complete: boolean;
|
|
318
|
+
ignoredReceipts: {
|
|
319
|
+
owner: string;
|
|
320
|
+
reason: string;
|
|
321
|
+
}[];
|
|
322
|
+
placementCoverage: "explicit";
|
|
323
|
+
destinations: {
|
|
324
|
+
executions: {
|
|
325
|
+
pluginId: string;
|
|
326
|
+
owner: string;
|
|
327
|
+
/**
|
|
328
|
+
* Declared plugin task ID.
|
|
329
|
+
*/
|
|
330
|
+
taskId: string;
|
|
331
|
+
/**
|
|
332
|
+
* Scoped destination identity; absent for shared artifact work.
|
|
333
|
+
*/
|
|
334
|
+
destinationId?: string;
|
|
335
|
+
/**
|
|
336
|
+
* Adopted components covered at this destination.
|
|
337
|
+
*/
|
|
338
|
+
componentIds: string[];
|
|
339
|
+
/**
|
|
340
|
+
* Whether this adopted execution must succeed for completion.
|
|
341
|
+
*/
|
|
342
|
+
required: boolean;
|
|
343
|
+
/**
|
|
344
|
+
* Dependency-aware derived task state.
|
|
345
|
+
*/
|
|
346
|
+
status: DeploymentTaskStatus;
|
|
347
|
+
/**
|
|
348
|
+
* Resolved environment/database/tenant evidence context, if available.
|
|
349
|
+
*/
|
|
350
|
+
target?: DeploymentTarget;
|
|
351
|
+
/**
|
|
352
|
+
* Latest matching reported result, if any.
|
|
353
|
+
*/
|
|
354
|
+
result?: DeploymentResult;
|
|
355
|
+
/**
|
|
356
|
+
* Prerequisite task/destination identities whose evidence must succeed first.
|
|
357
|
+
*/
|
|
358
|
+
dependencies: Array<{
|
|
359
|
+
/**
|
|
360
|
+
* Prerequisite declared task ID.
|
|
361
|
+
*/
|
|
362
|
+
taskId: string;
|
|
363
|
+
/**
|
|
364
|
+
* Prerequisite destination, absent for shared artifact work.
|
|
365
|
+
*/
|
|
366
|
+
destinationId?: string;
|
|
367
|
+
}>;
|
|
368
|
+
}[];
|
|
369
|
+
/**
|
|
370
|
+
* Unique destination identifier.
|
|
371
|
+
*/
|
|
372
|
+
id: string;
|
|
373
|
+
/**
|
|
374
|
+
* Host/container/function/database/cloud/native/external destination category.
|
|
375
|
+
*/
|
|
376
|
+
placement: DeploymentComponent["placement"];
|
|
377
|
+
/**
|
|
378
|
+
* Optional symbolic existing frontend/backend/worker role; host/container only.
|
|
379
|
+
*
|
|
380
|
+
* Symbolic role of an existing Platform service.
|
|
381
|
+
*/
|
|
382
|
+
service?: "frontend" | "backend" | "worker";
|
|
383
|
+
/**
|
|
384
|
+
* Optional nonsecret host resource/operation binding; never credentials or executable code.
|
|
385
|
+
*
|
|
386
|
+
* Host-owned resource/operation binding reference, never credentials or an executable command.
|
|
387
|
+
*/
|
|
388
|
+
reference?: string;
|
|
389
|
+
/**
|
|
390
|
+
* Required existing backend ID for database destinations; forbidden otherwise.
|
|
391
|
+
*/
|
|
392
|
+
backendId?: string;
|
|
393
|
+
/**
|
|
394
|
+
* Required exact physical database identity for database destinations.
|
|
395
|
+
*/
|
|
396
|
+
databaseId?: string;
|
|
397
|
+
/**
|
|
398
|
+
* Optional dedicated concrete tenant restriction; database destinations only.
|
|
399
|
+
*
|
|
400
|
+
* Restrict a dedicated DB destination to its verified tenant.
|
|
401
|
+
*/
|
|
402
|
+
tenantId?: string;
|
|
403
|
+
/**
|
|
404
|
+
* Nonblank host binding revision; change when wiring/provider/credential revision changes.
|
|
405
|
+
*
|
|
406
|
+
* Change when the host binding changes, including a credential/provider revision.
|
|
407
|
+
*/
|
|
408
|
+
revision: string;
|
|
409
|
+
}[];
|
|
410
|
+
artifactExecutions: {
|
|
411
|
+
pluginId: string;
|
|
412
|
+
owner: string;
|
|
413
|
+
/**
|
|
414
|
+
* Declared plugin task ID.
|
|
415
|
+
*/
|
|
416
|
+
taskId: string;
|
|
417
|
+
/**
|
|
418
|
+
* Scoped destination identity; absent for shared artifact work.
|
|
419
|
+
*/
|
|
420
|
+
destinationId?: string;
|
|
421
|
+
/**
|
|
422
|
+
* Adopted components covered at this destination.
|
|
423
|
+
*/
|
|
424
|
+
componentIds: string[];
|
|
425
|
+
/**
|
|
426
|
+
* Whether this adopted execution must succeed for completion.
|
|
427
|
+
*/
|
|
428
|
+
required: boolean;
|
|
429
|
+
/**
|
|
430
|
+
* Dependency-aware derived task state.
|
|
431
|
+
*/
|
|
432
|
+
status: DeploymentTaskStatus;
|
|
433
|
+
/**
|
|
434
|
+
* Resolved environment/database/tenant evidence context, if available.
|
|
435
|
+
*/
|
|
436
|
+
target?: DeploymentTarget;
|
|
437
|
+
/**
|
|
438
|
+
* Latest matching reported result, if any.
|
|
439
|
+
*/
|
|
440
|
+
result?: DeploymentResult;
|
|
441
|
+
/**
|
|
442
|
+
* Prerequisite task/destination identities whose evidence must succeed first.
|
|
443
|
+
*/
|
|
444
|
+
dependencies: Array<{
|
|
445
|
+
/**
|
|
446
|
+
* Prerequisite declared task ID.
|
|
447
|
+
*/
|
|
448
|
+
taskId: string;
|
|
449
|
+
/**
|
|
450
|
+
* Prerequisite destination, absent for shared artifact work.
|
|
451
|
+
*/
|
|
452
|
+
destinationId?: string;
|
|
453
|
+
}>;
|
|
454
|
+
}[];
|
|
455
|
+
owner: string;
|
|
456
|
+
inventorySha256: string;
|
|
457
|
+
target: DeploymentTarget | undefined;
|
|
458
|
+
coverage: "declared" | "legacy-unclassified";
|
|
459
|
+
artifactResolved: boolean;
|
|
460
|
+
evidencePolicy: string;
|
|
461
|
+
};
|
|
462
|
+
|
|
463
|
+
export { deploymentExecutionTarget, deploymentPlacementHash, resolveDeploymentPlacements, summarizePlacedDeployment, validateDeploymentPlacements };
|
|
464
|
+
export type { DeploymentDestination, DeploymentExecution, DeploymentPlacements };
|