@wildo-ai/wildo-cli 1.1.2
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/LICENSE +34 -0
- package/bin/wildo-tsc-native.mjs +108 -0
- package/bin/wildo.ts +10 -0
- package/dist/bin/wildo.d.ts +3 -0
- package/dist/bin/wildo.d.ts.map +1 -0
- package/dist/bin/wildo.js +7 -0
- package/dist/bin/wildo.js.map +1 -0
- package/dist/src/__tests__/sandbox-dependencies.test-helpers.d.ts +8 -0
- package/dist/src/__tests__/sandbox-dependencies.test-helpers.d.ts.map +1 -0
- package/dist/src/__tests__/sandbox-dependencies.test-helpers.js +54 -0
- package/dist/src/__tests__/sandbox-dependencies.test-helpers.js.map +1 -0
- package/dist/src/commands/acp/probe.command.d.ts +30 -0
- package/dist/src/commands/acp/probe.command.d.ts.map +1 -0
- package/dist/src/commands/acp/probe.command.js +122 -0
- package/dist/src/commands/acp/probe.command.js.map +1 -0
- package/dist/src/commands/align-deps.command.d.ts +7 -0
- package/dist/src/commands/align-deps.command.d.ts.map +1 -0
- package/dist/src/commands/align-deps.command.js +102 -0
- package/dist/src/commands/align-deps.command.js.map +1 -0
- package/dist/src/commands/assets/sync.command.d.ts +23 -0
- package/dist/src/commands/assets/sync.command.d.ts.map +1 -0
- package/dist/src/commands/assets/sync.command.js +59 -0
- package/dist/src/commands/assets/sync.command.js.map +1 -0
- package/dist/src/commands/brand/propagate.command.d.ts +62 -0
- package/dist/src/commands/brand/propagate.command.d.ts.map +1 -0
- package/dist/src/commands/brand/propagate.command.js +193 -0
- package/dist/src/commands/brand/propagate.command.js.map +1 -0
- package/dist/src/commands/compose.command.d.ts +7 -0
- package/dist/src/commands/compose.command.d.ts.map +1 -0
- package/dist/src/commands/compose.command.js +99 -0
- package/dist/src/commands/compose.command.js.map +1 -0
- package/dist/src/commands/config/__tests__/reapply-declaration.command.test.d.ts +22 -0
- package/dist/src/commands/config/__tests__/reapply-declaration.command.test.d.ts.map +1 -0
- package/dist/src/commands/config/__tests__/reapply-declaration.command.test.js +268 -0
- package/dist/src/commands/config/__tests__/reapply-declaration.command.test.js.map +1 -0
- package/dist/src/commands/config/__tests__/sync.command.test.d.ts +2 -0
- package/dist/src/commands/config/__tests__/sync.command.test.d.ts.map +1 -0
- package/dist/src/commands/config/__tests__/sync.command.test.js +1229 -0
- package/dist/src/commands/config/__tests__/sync.command.test.js.map +1 -0
- package/dist/src/commands/config/__tests__/validate.command.test.d.ts +14 -0
- package/dist/src/commands/config/__tests__/validate.command.test.d.ts.map +1 -0
- package/dist/src/commands/config/__tests__/validate.command.test.js +375 -0
- package/dist/src/commands/config/__tests__/validate.command.test.js.map +1 -0
- package/dist/src/commands/config/mutate.command.d.ts +32 -0
- package/dist/src/commands/config/mutate.command.d.ts.map +1 -0
- package/dist/src/commands/config/mutate.command.js +119 -0
- package/dist/src/commands/config/mutate.command.js.map +1 -0
- package/dist/src/commands/config/reapply-declaration.command.d.ts +40 -0
- package/dist/src/commands/config/reapply-declaration.command.d.ts.map +1 -0
- package/dist/src/commands/config/reapply-declaration.command.js +174 -0
- package/dist/src/commands/config/reapply-declaration.command.js.map +1 -0
- package/dist/src/commands/config/sync.command.d.ts +123 -0
- package/dist/src/commands/config/sync.command.d.ts.map +1 -0
- package/dist/src/commands/config/sync.command.js +1170 -0
- package/dist/src/commands/config/sync.command.js.map +1 -0
- package/dist/src/commands/config/validate.command.d.ts +117 -0
- package/dist/src/commands/config/validate.command.d.ts.map +1 -0
- package/dist/src/commands/config/validate.command.js +563 -0
- package/dist/src/commands/config/validate.command.js.map +1 -0
- package/dist/src/commands/context/coherence.command.d.ts +13 -0
- package/dist/src/commands/context/coherence.command.d.ts.map +1 -0
- package/dist/src/commands/context/coherence.command.js +44 -0
- package/dist/src/commands/context/coherence.command.js.map +1 -0
- package/dist/src/commands/context/context-command.utils.d.ts +43 -0
- package/dist/src/commands/context/context-command.utils.d.ts.map +1 -0
- package/dist/src/commands/context/context-command.utils.js +57 -0
- package/dist/src/commands/context/context-command.utils.js.map +1 -0
- package/dist/src/commands/context/health.command.d.ts +11 -0
- package/dist/src/commands/context/health.command.d.ts.map +1 -0
- package/dist/src/commands/context/health.command.js +40 -0
- package/dist/src/commands/context/health.command.js.map +1 -0
- package/dist/src/commands/context/info.command.d.ts +20 -0
- package/dist/src/commands/context/info.command.d.ts.map +1 -0
- package/dist/src/commands/context/info.command.js +90 -0
- package/dist/src/commands/context/info.command.js.map +1 -0
- package/dist/src/commands/context/journey.command.d.ts +16 -0
- package/dist/src/commands/context/journey.command.d.ts.map +1 -0
- package/dist/src/commands/context/journey.command.js +69 -0
- package/dist/src/commands/context/journey.command.js.map +1 -0
- package/dist/src/commands/context/list.command.d.ts +15 -0
- package/dist/src/commands/context/list.command.d.ts.map +1 -0
- package/dist/src/commands/context/list.command.js +60 -0
- package/dist/src/commands/context/list.command.js.map +1 -0
- package/dist/src/commands/db/db-schema-plan.utils.d.ts +26 -0
- package/dist/src/commands/db/db-schema-plan.utils.d.ts.map +1 -0
- package/dist/src/commands/db/db-schema-plan.utils.js +89 -0
- package/dist/src/commands/db/db-schema-plan.utils.js.map +1 -0
- package/dist/src/commands/db/diff.command.d.ts +39 -0
- package/dist/src/commands/db/diff.command.d.ts.map +1 -0
- package/dist/src/commands/db/diff.command.js +153 -0
- package/dist/src/commands/db/diff.command.js.map +1 -0
- package/dist/src/commands/db/generate.command.d.ts +32 -0
- package/dist/src/commands/db/generate.command.d.ts.map +1 -0
- package/dist/src/commands/db/generate.command.js +139 -0
- package/dist/src/commands/db/generate.command.js.map +1 -0
- package/dist/src/commands/db/migrate.command.d.ts +41 -0
- package/dist/src/commands/db/migrate.command.d.ts.map +1 -0
- package/dist/src/commands/db/migrate.command.js +111 -0
- package/dist/src/commands/db/migrate.command.js.map +1 -0
- package/dist/src/commands/db/resolve.command.d.ts +22 -0
- package/dist/src/commands/db/resolve.command.d.ts.map +1 -0
- package/dist/src/commands/db/resolve.command.js +97 -0
- package/dist/src/commands/db/resolve.command.js.map +1 -0
- package/dist/src/commands/dev/__tests__/design-tokens.command.test.d.ts +2 -0
- package/dist/src/commands/dev/__tests__/design-tokens.command.test.d.ts.map +1 -0
- package/dist/src/commands/dev/__tests__/design-tokens.command.test.js +202 -0
- package/dist/src/commands/dev/__tests__/design-tokens.command.test.js.map +1 -0
- package/dist/src/commands/dev/__tests__/start.command.test.d.ts +2 -0
- package/dist/src/commands/dev/__tests__/start.command.test.d.ts.map +1 -0
- package/dist/src/commands/dev/__tests__/start.command.test.js +468 -0
- package/dist/src/commands/dev/__tests__/start.command.test.js.map +1 -0
- package/dist/src/commands/dev/__tests__/stop.command.test.d.ts +2 -0
- package/dist/src/commands/dev/__tests__/stop.command.test.d.ts.map +1 -0
- package/dist/src/commands/dev/__tests__/stop.command.test.js +72 -0
- package/dist/src/commands/dev/__tests__/stop.command.test.js.map +1 -0
- package/dist/src/commands/dev/__tests__/sync-csp.command.test.d.ts +2 -0
- package/dist/src/commands/dev/__tests__/sync-csp.command.test.d.ts.map +1 -0
- package/dist/src/commands/dev/__tests__/sync-csp.command.test.js +114 -0
- package/dist/src/commands/dev/__tests__/sync-csp.command.test.js.map +1 -0
- package/dist/src/commands/dev/charts-audit.command.d.ts +19 -0
- package/dist/src/commands/dev/charts-audit.command.d.ts.map +1 -0
- package/dist/src/commands/dev/charts-audit.command.js +74 -0
- package/dist/src/commands/dev/charts-audit.command.js.map +1 -0
- package/dist/src/commands/dev/design-tokens-generate.command.d.ts +10 -0
- package/dist/src/commands/dev/design-tokens-generate.command.d.ts.map +1 -0
- package/dist/src/commands/dev/design-tokens-generate.command.js +24 -0
- package/dist/src/commands/dev/design-tokens-generate.command.js.map +1 -0
- package/dist/src/commands/dev/design-tokens-init.command.d.ts +10 -0
- package/dist/src/commands/dev/design-tokens-init.command.d.ts.map +1 -0
- package/dist/src/commands/dev/design-tokens-init.command.js +24 -0
- package/dist/src/commands/dev/design-tokens-init.command.js.map +1 -0
- package/dist/src/commands/dev/design-tokens-validate.command.d.ts +10 -0
- package/dist/src/commands/dev/design-tokens-validate.command.d.ts.map +1 -0
- package/dist/src/commands/dev/design-tokens-validate.command.js +24 -0
- package/dist/src/commands/dev/design-tokens-validate.command.js.map +1 -0
- package/dist/src/commands/dev/force-stop.command.d.ts +29 -0
- package/dist/src/commands/dev/force-stop.command.d.ts.map +1 -0
- package/dist/src/commands/dev/force-stop.command.js +68 -0
- package/dist/src/commands/dev/force-stop.command.js.map +1 -0
- package/dist/src/commands/dev/resources.command.d.ts +16 -0
- package/dist/src/commands/dev/resources.command.d.ts.map +1 -0
- package/dist/src/commands/dev/resources.command.js +45 -0
- package/dist/src/commands/dev/resources.command.js.map +1 -0
- package/dist/src/commands/dev/start.command.d.ts +16 -0
- package/dist/src/commands/dev/start.command.d.ts.map +1 -0
- package/dist/src/commands/dev/start.command.js +409 -0
- package/dist/src/commands/dev/start.command.js.map +1 -0
- package/dist/src/commands/dev/stop-all.command.d.ts +14 -0
- package/dist/src/commands/dev/stop-all.command.d.ts.map +1 -0
- package/dist/src/commands/dev/stop-all.command.js +96 -0
- package/dist/src/commands/dev/stop-all.command.js.map +1 -0
- package/dist/src/commands/dev/sync-csp.command.d.ts +7 -0
- package/dist/src/commands/dev/sync-csp.command.d.ts.map +1 -0
- package/dist/src/commands/dev/sync-csp.command.js +61 -0
- package/dist/src/commands/dev/sync-csp.command.js.map +1 -0
- package/dist/src/commands/frontend/publish.command.d.ts +16 -0
- package/dist/src/commands/frontend/publish.command.d.ts.map +1 -0
- package/dist/src/commands/frontend/publish.command.js +91 -0
- package/dist/src/commands/frontend/publish.command.js.map +1 -0
- package/dist/src/commands/fwk/__tests__/dev-skills.command.test.d.ts +2 -0
- package/dist/src/commands/fwk/__tests__/dev-skills.command.test.d.ts.map +1 -0
- package/dist/src/commands/fwk/__tests__/dev-skills.command.test.js +79 -0
- package/dist/src/commands/fwk/__tests__/dev-skills.command.test.js.map +1 -0
- package/dist/src/commands/fwk/__tests__/generate-docs.command.test.d.ts +2 -0
- package/dist/src/commands/fwk/__tests__/generate-docs.command.test.d.ts.map +1 -0
- package/dist/src/commands/fwk/__tests__/generate-docs.command.test.js +113 -0
- package/dist/src/commands/fwk/__tests__/generate-docs.command.test.js.map +1 -0
- package/dist/src/commands/fwk/audit.command.d.ts +19 -0
- package/dist/src/commands/fwk/audit.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/audit.command.js +83 -0
- package/dist/src/commands/fwk/audit.command.js.map +1 -0
- package/dist/src/commands/fwk/dev-skills.command.d.ts +12 -0
- package/dist/src/commands/fwk/dev-skills.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/dev-skills.command.js +56 -0
- package/dist/src/commands/fwk/dev-skills.command.js.map +1 -0
- package/dist/src/commands/fwk/generate-docs.command.d.ts +7 -0
- package/dist/src/commands/fwk/generate-docs.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/generate-docs.command.js +38 -0
- package/dist/src/commands/fwk/generate-docs.command.js.map +1 -0
- package/dist/src/commands/fwk/graph.command.d.ts +18 -0
- package/dist/src/commands/fwk/graph.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/graph.command.js +56 -0
- package/dist/src/commands/fwk/graph.command.js.map +1 -0
- package/dist/src/commands/fwk/publish-all.command.d.ts +7 -0
- package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/publish-all.command.js +51 -0
- package/dist/src/commands/fwk/publish-all.command.js.map +1 -0
- package/dist/src/commands/fwk/publish-docker.command.d.ts +8 -0
- package/dist/src/commands/fwk/publish-docker.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/publish-docker.command.js +89 -0
- package/dist/src/commands/fwk/publish-docker.command.js.map +1 -0
- package/dist/src/commands/fwk/publish-npm.command.d.ts +8 -0
- package/dist/src/commands/fwk/publish-npm.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/publish-npm.command.js +114 -0
- package/dist/src/commands/fwk/publish-npm.command.js.map +1 -0
- package/dist/src/commands/fwk/version-bump.command.d.ts +7 -0
- package/dist/src/commands/fwk/version-bump.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/version-bump.command.js +25 -0
- package/dist/src/commands/fwk/version-bump.command.js.map +1 -0
- package/dist/src/commands/fwk/version-set.command.d.ts +7 -0
- package/dist/src/commands/fwk/version-set.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/version-set.command.js +24 -0
- package/dist/src/commands/fwk/version-set.command.js.map +1 -0
- package/dist/src/commands/fwk/version-show.command.d.ts +7 -0
- package/dist/src/commands/fwk/version-show.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/version-show.command.js +22 -0
- package/dist/src/commands/fwk/version-show.command.js.map +1 -0
- package/dist/src/commands/fwk/version-sync.command.d.ts +7 -0
- package/dist/src/commands/fwk/version-sync.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/version-sync.command.js +18 -0
- package/dist/src/commands/fwk/version-sync.command.js.map +1 -0
- package/dist/src/commands/fwk/what-touches.command.d.ts +17 -0
- package/dist/src/commands/fwk/what-touches.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/what-touches.command.js +48 -0
- package/dist/src/commands/fwk/what-touches.command.js.map +1 -0
- package/dist/src/commands/fwk/wt-status.command.d.ts +22 -0
- package/dist/src/commands/fwk/wt-status.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/wt-status.command.js +60 -0
- package/dist/src/commands/fwk/wt-status.command.js.map +1 -0
- package/dist/src/commands/fwk/wt-tail.command.d.ts +22 -0
- package/dist/src/commands/fwk/wt-tail.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/wt-tail.command.js +64 -0
- package/dist/src/commands/fwk/wt-tail.command.js.map +1 -0
- package/dist/src/commands/generate/__tests__/email-command.utils.test.d.ts +2 -0
- package/dist/src/commands/generate/__tests__/email-command.utils.test.d.ts.map +1 -0
- package/dist/src/commands/generate/__tests__/email-command.utils.test.js +94 -0
- package/dist/src/commands/generate/__tests__/email-command.utils.test.js.map +1 -0
- package/dist/src/commands/generate/email-command.utils.d.ts +72 -0
- package/dist/src/commands/generate/email-command.utils.d.ts.map +1 -0
- package/dist/src/commands/generate/email-command.utils.js +91 -0
- package/dist/src/commands/generate/email-command.utils.js.map +1 -0
- package/dist/src/commands/generate/email-preview.command.d.ts +7 -0
- package/dist/src/commands/generate/email-preview.command.d.ts.map +1 -0
- package/dist/src/commands/generate/email-preview.command.js +62 -0
- package/dist/src/commands/generate/email-preview.command.js.map +1 -0
- package/dist/src/commands/generate/email-status.command.d.ts +7 -0
- package/dist/src/commands/generate/email-status.command.d.ts.map +1 -0
- package/dist/src/commands/generate/email-status.command.js +42 -0
- package/dist/src/commands/generate/email-status.command.js.map +1 -0
- package/dist/src/commands/generate/email-test-send.command.d.ts +7 -0
- package/dist/src/commands/generate/email-test-send.command.d.ts.map +1 -0
- package/dist/src/commands/generate/email-test-send.command.js +67 -0
- package/dist/src/commands/generate/email-test-send.command.js.map +1 -0
- package/dist/src/commands/generate/email-translate.command.d.ts +7 -0
- package/dist/src/commands/generate/email-translate.command.d.ts.map +1 -0
- package/dist/src/commands/generate/email-translate.command.js +59 -0
- package/dist/src/commands/generate/email-translate.command.js.map +1 -0
- package/dist/src/commands/generate/email.command.d.ts +10 -0
- package/dist/src/commands/generate/email.command.d.ts.map +1 -0
- package/dist/src/commands/generate/email.command.js +62 -0
- package/dist/src/commands/generate/email.command.js.map +1 -0
- package/dist/src/commands/generate/labelling-command.utils.d.ts +138 -0
- package/dist/src/commands/generate/labelling-command.utils.d.ts.map +1 -0
- package/dist/src/commands/generate/labelling-command.utils.js +422 -0
- package/dist/src/commands/generate/labelling-command.utils.js.map +1 -0
- package/dist/src/commands/generate/labels-plan.command.d.ts +34 -0
- package/dist/src/commands/generate/labels-plan.command.d.ts.map +1 -0
- package/dist/src/commands/generate/labels-plan.command.js +103 -0
- package/dist/src/commands/generate/labels-plan.command.js.map +1 -0
- package/dist/src/commands/generate/labels.command.d.ts +29 -0
- package/dist/src/commands/generate/labels.command.d.ts.map +1 -0
- package/dist/src/commands/generate/labels.command.js +87 -0
- package/dist/src/commands/generate/labels.command.js.map +1 -0
- package/dist/src/commands/generate/translate.command.d.ts +31 -0
- package/dist/src/commands/generate/translate.command.d.ts.map +1 -0
- package/dist/src/commands/generate/translate.command.js +95 -0
- package/dist/src/commands/generate/translate.command.js.map +1 -0
- package/dist/src/commands/help.command.d.ts +7 -0
- package/dist/src/commands/help.command.d.ts.map +1 -0
- package/dist/src/commands/help.command.js +86 -0
- package/dist/src/commands/help.command.js.map +1 -0
- package/dist/src/commands/init.command.d.ts +113 -0
- package/dist/src/commands/init.command.d.ts.map +1 -0
- package/dist/src/commands/init.command.js +636 -0
- package/dist/src/commands/init.command.js.map +1 -0
- package/dist/src/commands/local/__tests__/dev-status.command.test.d.ts +2 -0
- package/dist/src/commands/local/__tests__/dev-status.command.test.d.ts.map +1 -0
- package/dist/src/commands/local/__tests__/dev-status.command.test.js +58 -0
- package/dist/src/commands/local/__tests__/dev-status.command.test.js.map +1 -0
- package/dist/src/commands/local/__tests__/dev.command.test.d.ts +2 -0
- package/dist/src/commands/local/__tests__/dev.command.test.d.ts.map +1 -0
- package/dist/src/commands/local/__tests__/dev.command.test.js +399 -0
- package/dist/src/commands/local/__tests__/dev.command.test.js.map +1 -0
- package/dist/src/commands/local/__tests__/doctor.command.test.d.ts +2 -0
- package/dist/src/commands/local/__tests__/doctor.command.test.d.ts.map +1 -0
- package/dist/src/commands/local/__tests__/doctor.command.test.js +260 -0
- package/dist/src/commands/local/__tests__/doctor.command.test.js.map +1 -0
- package/dist/src/commands/local/__tests__/init.command.test.d.ts +2 -0
- package/dist/src/commands/local/__tests__/init.command.test.d.ts.map +1 -0
- package/dist/src/commands/local/__tests__/init.command.test.js +83 -0
- package/dist/src/commands/local/__tests__/init.command.test.js.map +1 -0
- package/dist/src/commands/local/__tests__/reinit.command.test.d.ts +2 -0
- package/dist/src/commands/local/__tests__/reinit.command.test.d.ts.map +1 -0
- package/dist/src/commands/local/__tests__/reinit.command.test.js +177 -0
- package/dist/src/commands/local/__tests__/reinit.command.test.js.map +1 -0
- package/dist/src/commands/local/__tests__/reset.command.test.d.ts +2 -0
- package/dist/src/commands/local/__tests__/reset.command.test.d.ts.map +1 -0
- package/dist/src/commands/local/__tests__/reset.command.test.js +266 -0
- package/dist/src/commands/local/__tests__/reset.command.test.js.map +1 -0
- package/dist/src/commands/local/__tests__/up.command.test.d.ts +2 -0
- package/dist/src/commands/local/__tests__/up.command.test.d.ts.map +1 -0
- package/dist/src/commands/local/__tests__/up.command.test.js +207 -0
- package/dist/src/commands/local/__tests__/up.command.test.js.map +1 -0
- package/dist/src/commands/local/dev-status.command.d.ts +15 -0
- package/dist/src/commands/local/dev-status.command.d.ts.map +1 -0
- package/dist/src/commands/local/dev-status.command.js +84 -0
- package/dist/src/commands/local/dev-status.command.js.map +1 -0
- package/dist/src/commands/local/dev.command.d.ts +150 -0
- package/dist/src/commands/local/dev.command.d.ts.map +1 -0
- package/dist/src/commands/local/dev.command.js +813 -0
- package/dist/src/commands/local/dev.command.js.map +1 -0
- package/dist/src/commands/local/doctor.command.d.ts +177 -0
- package/dist/src/commands/local/doctor.command.d.ts.map +1 -0
- package/dist/src/commands/local/doctor.command.js +863 -0
- package/dist/src/commands/local/doctor.command.js.map +1 -0
- package/dist/src/commands/local/down.command.d.ts +9 -0
- package/dist/src/commands/local/down.command.d.ts.map +1 -0
- package/dist/src/commands/local/down.command.js +117 -0
- package/dist/src/commands/local/down.command.js.map +1 -0
- package/dist/src/commands/local/init.command.d.ts +15 -0
- package/dist/src/commands/local/init.command.d.ts.map +1 -0
- package/dist/src/commands/local/init.command.js +85 -0
- package/dist/src/commands/local/init.command.js.map +1 -0
- package/dist/src/commands/local/logs.command.d.ts +9 -0
- package/dist/src/commands/local/logs.command.d.ts.map +1 -0
- package/dist/src/commands/local/logs.command.js +61 -0
- package/dist/src/commands/local/logs.command.js.map +1 -0
- package/dist/src/commands/local/reinit.command.d.ts +35 -0
- package/dist/src/commands/local/reinit.command.d.ts.map +1 -0
- package/dist/src/commands/local/reinit.command.js +135 -0
- package/dist/src/commands/local/reinit.command.js.map +1 -0
- package/dist/src/commands/local/reset.command.d.ts +42 -0
- package/dist/src/commands/local/reset.command.d.ts.map +1 -0
- package/dist/src/commands/local/reset.command.js +203 -0
- package/dist/src/commands/local/reset.command.js.map +1 -0
- package/dist/src/commands/local/status.command.d.ts +9 -0
- package/dist/src/commands/local/status.command.d.ts.map +1 -0
- package/dist/src/commands/local/status.command.js +79 -0
- package/dist/src/commands/local/status.command.js.map +1 -0
- package/dist/src/commands/local/up.command.d.ts +32 -0
- package/dist/src/commands/local/up.command.d.ts.map +1 -0
- package/dist/src/commands/local/up.command.js +355 -0
- package/dist/src/commands/local/up.command.js.map +1 -0
- package/dist/src/commands/lock/__tests__/check.command.test.d.ts +11 -0
- package/dist/src/commands/lock/__tests__/check.command.test.d.ts.map +1 -0
- package/dist/src/commands/lock/__tests__/check.command.test.js +140 -0
- package/dist/src/commands/lock/__tests__/check.command.test.js.map +1 -0
- package/dist/src/commands/lock/__tests__/check.live.contract.test.d.ts +35 -0
- package/dist/src/commands/lock/__tests__/check.live.contract.test.d.ts.map +1 -0
- package/dist/src/commands/lock/__tests__/check.live.contract.test.js +122 -0
- package/dist/src/commands/lock/__tests__/check.live.contract.test.js.map +1 -0
- package/dist/src/commands/lock/check.command.d.ts +92 -0
- package/dist/src/commands/lock/check.command.d.ts.map +1 -0
- package/dist/src/commands/lock/check.command.js +242 -0
- package/dist/src/commands/lock/check.command.js.map +1 -0
- package/dist/src/commands/market/__tests__/generate.command.test.d.ts +2 -0
- package/dist/src/commands/market/__tests__/generate.command.test.d.ts.map +1 -0
- package/dist/src/commands/market/__tests__/generate.command.test.js +207 -0
- package/dist/src/commands/market/__tests__/generate.command.test.js.map +1 -0
- package/dist/src/commands/market/__tests__/market-command.utils.test.d.ts +2 -0
- package/dist/src/commands/market/__tests__/market-command.utils.test.d.ts.map +1 -0
- package/dist/src/commands/market/__tests__/market-command.utils.test.js +146 -0
- package/dist/src/commands/market/__tests__/market-command.utils.test.js.map +1 -0
- package/dist/src/commands/market/generate.command.d.ts +56 -0
- package/dist/src/commands/market/generate.command.d.ts.map +1 -0
- package/dist/src/commands/market/generate.command.js +191 -0
- package/dist/src/commands/market/generate.command.js.map +1 -0
- package/dist/src/commands/market/market-command.utils.d.ts +70 -0
- package/dist/src/commands/market/market-command.utils.d.ts.map +1 -0
- package/dist/src/commands/market/market-command.utils.js +89 -0
- package/dist/src/commands/market/market-command.utils.js.map +1 -0
- package/dist/src/commands/registry/add.command.d.ts +37 -0
- package/dist/src/commands/registry/add.command.d.ts.map +1 -0
- package/dist/src/commands/registry/add.command.js +251 -0
- package/dist/src/commands/registry/add.command.js.map +1 -0
- package/dist/src/commands/registry/info.command.d.ts +14 -0
- package/dist/src/commands/registry/info.command.d.ts.map +1 -0
- package/dist/src/commands/registry/info.command.js +83 -0
- package/dist/src/commands/registry/info.command.js.map +1 -0
- package/dist/src/commands/registry/lockfile-smoke.command.d.ts +31 -0
- package/dist/src/commands/registry/lockfile-smoke.command.d.ts.map +1 -0
- package/dist/src/commands/registry/lockfile-smoke.command.js +131 -0
- package/dist/src/commands/registry/lockfile-smoke.command.js.map +1 -0
- package/dist/src/commands/registry/login.command.d.ts +28 -0
- package/dist/src/commands/registry/login.command.d.ts.map +1 -0
- package/dist/src/commands/registry/login.command.js +117 -0
- package/dist/src/commands/registry/login.command.js.map +1 -0
- package/dist/src/commands/registry/logout.command.d.ts +15 -0
- package/dist/src/commands/registry/logout.command.d.ts.map +1 -0
- package/dist/src/commands/registry/logout.command.js +47 -0
- package/dist/src/commands/registry/logout.command.js.map +1 -0
- package/dist/src/commands/registry/ping.command.d.ts +21 -0
- package/dist/src/commands/registry/ping.command.d.ts.map +1 -0
- package/dist/src/commands/registry/ping.command.js +92 -0
- package/dist/src/commands/registry/ping.command.js.map +1 -0
- package/dist/src/commands/registry/publish.command.d.ts +37 -0
- package/dist/src/commands/registry/publish.command.d.ts.map +1 -0
- package/dist/src/commands/registry/publish.command.js +211 -0
- package/dist/src/commands/registry/publish.command.js.map +1 -0
- package/dist/src/commands/registry/remove.command.d.ts +25 -0
- package/dist/src/commands/registry/remove.command.d.ts.map +1 -0
- package/dist/src/commands/registry/remove.command.js +122 -0
- package/dist/src/commands/registry/remove.command.js.map +1 -0
- package/dist/src/commands/registry/repair-lockfile.command.d.ts +31 -0
- package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -0
- package/dist/src/commands/registry/repair-lockfile.command.js +174 -0
- package/dist/src/commands/registry/repair-lockfile.command.js.map +1 -0
- package/dist/src/commands/registry/search.command.d.ts +15 -0
- package/dist/src/commands/registry/search.command.d.ts.map +1 -0
- package/dist/src/commands/registry/search.command.js +76 -0
- package/dist/src/commands/registry/search.command.js.map +1 -0
- package/dist/src/commands/registry/update.command.d.ts +32 -0
- package/dist/src/commands/registry/update.command.d.ts.map +1 -0
- package/dist/src/commands/registry/update.command.js +297 -0
- package/dist/src/commands/registry/update.command.js.map +1 -0
- package/dist/src/commands/registry/whoami.command.d.ts +16 -0
- package/dist/src/commands/registry/whoami.command.d.ts.map +1 -0
- package/dist/src/commands/registry/whoami.command.js +116 -0
- package/dist/src/commands/registry/whoami.command.js.map +1 -0
- package/dist/src/commands/remote/__tests__/remote-commands.test.d.ts +2 -0
- package/dist/src/commands/remote/__tests__/remote-commands.test.d.ts.map +1 -0
- package/dist/src/commands/remote/__tests__/remote-commands.test.js +100 -0
- package/dist/src/commands/remote/__tests__/remote-commands.test.js.map +1 -0
- package/dist/src/commands/remote/create.command.d.ts +7 -0
- package/dist/src/commands/remote/create.command.d.ts.map +1 -0
- package/dist/src/commands/remote/create.command.js +110 -0
- package/dist/src/commands/remote/create.command.js.map +1 -0
- package/dist/src/commands/remote/list.command.d.ts +7 -0
- package/dist/src/commands/remote/list.command.d.ts.map +1 -0
- package/dist/src/commands/remote/list.command.js +46 -0
- package/dist/src/commands/remote/list.command.js.map +1 -0
- package/dist/src/commands/remote/status.command.d.ts +7 -0
- package/dist/src/commands/remote/status.command.d.ts.map +1 -0
- package/dist/src/commands/remote/status.command.js +67 -0
- package/dist/src/commands/remote/status.command.js.map +1 -0
- package/dist/src/commands/remote/sync.command.d.ts +7 -0
- package/dist/src/commands/remote/sync.command.d.ts.map +1 -0
- package/dist/src/commands/remote/sync.command.js +27 -0
- package/dist/src/commands/remote/sync.command.js.map +1 -0
- package/dist/src/commands/setup.command.d.ts +19 -0
- package/dist/src/commands/setup.command.d.ts.map +1 -0
- package/dist/src/commands/setup.command.js +95 -0
- package/dist/src/commands/setup.command.js.map +1 -0
- package/dist/src/commands/version.command.d.ts +7 -0
- package/dist/src/commands/version.command.d.ts.map +1 -0
- package/dist/src/commands/version.command.js +16 -0
- package/dist/src/commands/version.command.js.map +1 -0
- package/dist/src/commands/website/__tests__/audit.command.test.d.ts +2 -0
- package/dist/src/commands/website/__tests__/audit.command.test.d.ts.map +1 -0
- package/dist/src/commands/website/__tests__/audit.command.test.js +105 -0
- package/dist/src/commands/website/__tests__/audit.command.test.js.map +1 -0
- package/dist/src/commands/website/audit.command.d.ts +12 -0
- package/dist/src/commands/website/audit.command.d.ts.map +1 -0
- package/dist/src/commands/website/audit.command.js +90 -0
- package/dist/src/commands/website/audit.command.js.map +1 -0
- package/dist/src/commands/workbench/__tests__/workbench.commands.test.d.ts +2 -0
- package/dist/src/commands/workbench/__tests__/workbench.commands.test.d.ts.map +1 -0
- package/dist/src/commands/workbench/__tests__/workbench.commands.test.js +59 -0
- package/dist/src/commands/workbench/__tests__/workbench.commands.test.js.map +1 -0
- package/dist/src/commands/workbench/open.command.d.ts +7 -0
- package/dist/src/commands/workbench/open.command.d.ts.map +1 -0
- package/dist/src/commands/workbench/open.command.js +26 -0
- package/dist/src/commands/workbench/open.command.js.map +1 -0
- package/dist/src/commands/workbench/status.command.d.ts +7 -0
- package/dist/src/commands/workbench/status.command.d.ts.map +1 -0
- package/dist/src/commands/workbench/status.command.js +47 -0
- package/dist/src/commands/workbench/status.command.js.map +1 -0
- package/dist/src/infrastructure/errors/error.utils.d.ts +30 -0
- package/dist/src/infrastructure/errors/error.utils.d.ts.map +1 -0
- package/dist/src/infrastructure/errors/error.utils.js +80 -0
- package/dist/src/infrastructure/errors/error.utils.js.map +1 -0
- package/dist/src/infrastructure/io/file.utils.d.ts +11 -0
- package/dist/src/infrastructure/io/file.utils.d.ts.map +1 -0
- package/dist/src/infrastructure/io/file.utils.js +36 -0
- package/dist/src/infrastructure/io/file.utils.js.map +1 -0
- package/dist/src/infrastructure/io/io.schemas.d.ts +39 -0
- package/dist/src/infrastructure/io/io.schemas.d.ts.map +1 -0
- package/dist/src/infrastructure/io/io.schemas.js +45 -0
- package/dist/src/infrastructure/io/io.schemas.js.map +1 -0
- package/dist/src/infrastructure/io/template-processor.d.ts +31 -0
- package/dist/src/infrastructure/io/template-processor.d.ts.map +1 -0
- package/dist/src/infrastructure/io/template-processor.js +160 -0
- package/dist/src/infrastructure/io/template-processor.js.map +1 -0
- package/dist/src/infrastructure/logger/logger.service.d.ts +62 -0
- package/dist/src/infrastructure/logger/logger.service.d.ts.map +1 -0
- package/dist/src/infrastructure/logger/logger.service.js +116 -0
- package/dist/src/infrastructure/logger/logger.service.js.map +1 -0
- package/dist/src/infrastructure/process/__tests__/spawn.utils.test.d.ts +2 -0
- package/dist/src/infrastructure/process/__tests__/spawn.utils.test.d.ts.map +1 -0
- package/dist/src/infrastructure/process/__tests__/spawn.utils.test.js +138 -0
- package/dist/src/infrastructure/process/__tests__/spawn.utils.test.js.map +1 -0
- package/dist/src/infrastructure/process/spawn.utils.d.ts +60 -0
- package/dist/src/infrastructure/process/spawn.utils.d.ts.map +1 -0
- package/dist/src/infrastructure/process/spawn.utils.js +222 -0
- package/dist/src/infrastructure/process/spawn.utils.js.map +1 -0
- package/dist/src/infrastructure/ui/formatting.service.d.ts +23 -0
- package/dist/src/infrastructure/ui/formatting.service.d.ts.map +1 -0
- package/dist/src/infrastructure/ui/formatting.service.js +106 -0
- package/dist/src/infrastructure/ui/formatting.service.js.map +1 -0
- package/dist/src/infrastructure/ui/interaction-engine.service.d.ts +17 -0
- package/dist/src/infrastructure/ui/interaction-engine.service.d.ts.map +1 -0
- package/dist/src/infrastructure/ui/interaction-engine.service.js +87 -0
- package/dist/src/infrastructure/ui/interaction-engine.service.js.map +1 -0
- package/dist/src/infrastructure/ui/markdown-renderer.service.d.ts +8 -0
- package/dist/src/infrastructure/ui/markdown-renderer.service.d.ts.map +1 -0
- package/dist/src/infrastructure/ui/markdown-renderer.service.js +153 -0
- package/dist/src/infrastructure/ui/markdown-renderer.service.js.map +1 -0
- package/dist/src/infrastructure/ui/ui.schemas.d.ts +36 -0
- package/dist/src/infrastructure/ui/ui.schemas.d.ts.map +1 -0
- package/dist/src/infrastructure/ui/ui.schemas.js +12 -0
- package/dist/src/infrastructure/ui/ui.schemas.js.map +1 -0
- package/dist/src/infrastructure/utils/string.utils.d.ts +8 -0
- package/dist/src/infrastructure/utils/string.utils.d.ts.map +1 -0
- package/dist/src/infrastructure/utils/string.utils.js +10 -0
- package/dist/src/infrastructure/utils/string.utils.js.map +1 -0
- package/dist/src/infrastructure/validation/validator.service.d.ts +31 -0
- package/dist/src/infrastructure/validation/validator.service.d.ts.map +1 -0
- package/dist/src/infrastructure/validation/validator.service.js +52 -0
- package/dist/src/infrastructure/validation/validator.service.js.map +1 -0
- package/dist/src/kernel/__tests__/bootstrap.test.d.ts +2 -0
- package/dist/src/kernel/__tests__/bootstrap.test.d.ts.map +1 -0
- package/dist/src/kernel/__tests__/bootstrap.test.js +88 -0
- package/dist/src/kernel/__tests__/bootstrap.test.js.map +1 -0
- package/dist/src/kernel/__tests__/command-registry.test.d.ts +2 -0
- package/dist/src/kernel/__tests__/command-registry.test.d.ts.map +1 -0
- package/dist/src/kernel/__tests__/command-registry.test.js +188 -0
- package/dist/src/kernel/__tests__/command-registry.test.js.map +1 -0
- package/dist/src/kernel/__tests__/command-runner.test.d.ts +2 -0
- package/dist/src/kernel/__tests__/command-runner.test.d.ts.map +1 -0
- package/dist/src/kernel/__tests__/command-runner.test.js +285 -0
- package/dist/src/kernel/__tests__/command-runner.test.js.map +1 -0
- package/dist/src/kernel/__tests__/command-scope-utils.test.d.ts +2 -0
- package/dist/src/kernel/__tests__/command-scope-utils.test.d.ts.map +1 -0
- package/dist/src/kernel/__tests__/command-scope-utils.test.js +46 -0
- package/dist/src/kernel/__tests__/command-scope-utils.test.js.map +1 -0
- package/dist/src/kernel/__tests__/flag-utils.test.d.ts +2 -0
- package/dist/src/kernel/__tests__/flag-utils.test.d.ts.map +1 -0
- package/dist/src/kernel/__tests__/flag-utils.test.js +38 -0
- package/dist/src/kernel/__tests__/flag-utils.test.js.map +1 -0
- package/dist/src/kernel/__tests__/hooks.test.d.ts +2 -0
- package/dist/src/kernel/__tests__/hooks.test.d.ts.map +1 -0
- package/dist/src/kernel/__tests__/hooks.test.js +72 -0
- package/dist/src/kernel/__tests__/hooks.test.js.map +1 -0
- package/dist/src/kernel/base-command.d.ts +26 -0
- package/dist/src/kernel/base-command.d.ts.map +1 -0
- package/dist/src/kernel/base-command.js +79 -0
- package/dist/src/kernel/base-command.js.map +1 -0
- package/dist/src/kernel/bootstrap.d.ts +9 -0
- package/dist/src/kernel/bootstrap.d.ts.map +1 -0
- package/dist/src/kernel/bootstrap.js +109 -0
- package/dist/src/kernel/bootstrap.js.map +1 -0
- package/dist/src/kernel/command-registry.d.ts +44 -0
- package/dist/src/kernel/command-registry.d.ts.map +1 -0
- package/dist/src/kernel/command-registry.js +248 -0
- package/dist/src/kernel/command-registry.js.map +1 -0
- package/dist/src/kernel/command-runner.d.ts +26 -0
- package/dist/src/kernel/command-runner.d.ts.map +1 -0
- package/dist/src/kernel/command-runner.js +169 -0
- package/dist/src/kernel/command-runner.js.map +1 -0
- package/dist/src/kernel/command-scope-utils.d.ts +27 -0
- package/dist/src/kernel/command-scope-utils.d.ts.map +1 -0
- package/dist/src/kernel/command-scope-utils.js +40 -0
- package/dist/src/kernel/command-scope-utils.js.map +1 -0
- package/dist/src/kernel/flag-utils.d.ts +32 -0
- package/dist/src/kernel/flag-utils.d.ts.map +1 -0
- package/dist/src/kernel/flag-utils.js +43 -0
- package/dist/src/kernel/flag-utils.js.map +1 -0
- package/dist/src/kernel/hooks.d.ts +17 -0
- package/dist/src/kernel/hooks.d.ts.map +1 -0
- package/dist/src/kernel/hooks.js +51 -0
- package/dist/src/kernel/hooks.js.map +1 -0
- package/dist/src/kernel/logger.d.ts +3 -0
- package/dist/src/kernel/logger.d.ts.map +1 -0
- package/dist/src/kernel/logger.js +10 -0
- package/dist/src/kernel/logger.js.map +1 -0
- package/dist/src/kernel/types.d.ts +145 -0
- package/dist/src/kernel/types.d.ts.map +1 -0
- package/dist/src/kernel/types.js +66 -0
- package/dist/src/kernel/types.js.map +1 -0
- package/dist/src/main.d.ts +7 -0
- package/dist/src/main.d.ts.map +1 -0
- package/dist/src/main.js +12 -0
- package/dist/src/main.js.map +1 -0
- package/dist/src/modules/domain/credentials/__tests__/admin-user.module.test.d.ts +2 -0
- package/dist/src/modules/domain/credentials/__tests__/admin-user.module.test.d.ts.map +1 -0
- package/dist/src/modules/domain/credentials/__tests__/admin-user.module.test.js +88 -0
- package/dist/src/modules/domain/credentials/__tests__/admin-user.module.test.js.map +1 -0
- package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.d.ts +2 -0
- package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.d.ts.map +1 -0
- package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.js +96 -0
- package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.js.map +1 -0
- package/dist/src/modules/domain/credentials/admin-user.module.d.ts +53 -0
- package/dist/src/modules/domain/credentials/admin-user.module.d.ts.map +1 -0
- package/dist/src/modules/domain/credentials/admin-user.module.js +130 -0
- package/dist/src/modules/domain/credentials/admin-user.module.js.map +1 -0
- package/dist/src/modules/domain/credentials/module.types.d.ts +2 -0
- package/dist/src/modules/domain/credentials/module.types.d.ts.map +1 -0
- package/dist/src/modules/domain/credentials/module.types.js +1 -0
- package/dist/src/modules/domain/credentials/module.types.js.map +1 -0
- package/dist/src/modules/domain/credentials/providers-config.module.d.ts +31 -0
- package/dist/src/modules/domain/credentials/providers-config.module.d.ts.map +1 -0
- package/dist/src/modules/domain/credentials/providers-config.module.js +146 -0
- package/dist/src/modules/domain/credentials/providers-config.module.js.map +1 -0
- package/dist/src/modules/domain/environment/__tests__/database-config.module.test.d.ts +2 -0
- package/dist/src/modules/domain/environment/__tests__/database-config.module.test.d.ts.map +1 -0
- package/dist/src/modules/domain/environment/__tests__/database-config.module.test.js +89 -0
- package/dist/src/modules/domain/environment/__tests__/database-config.module.test.js.map +1 -0
- package/dist/src/modules/domain/environment/database-config.module.d.ts +10 -0
- package/dist/src/modules/domain/environment/database-config.module.d.ts.map +1 -0
- package/dist/src/modules/domain/environment/database-config.module.js +131 -0
- package/dist/src/modules/domain/environment/database-config.module.js.map +1 -0
- package/dist/src/modules/domain/environment/module.types.d.ts +14 -0
- package/dist/src/modules/domain/environment/module.types.d.ts.map +1 -0
- package/dist/src/modules/domain/environment/module.types.js +1 -0
- package/dist/src/modules/domain/environment/module.types.js.map +1 -0
- package/dist/src/modules/domain/environment/paths-config.module.d.ts +15 -0
- package/dist/src/modules/domain/environment/paths-config.module.d.ts.map +1 -0
- package/dist/src/modules/domain/environment/paths-config.module.js +90 -0
- package/dist/src/modules/domain/environment/paths-config.module.js.map +1 -0
- package/dist/src/modules/domain/environment/runtime-selector.module.d.ts +7 -0
- package/dist/src/modules/domain/environment/runtime-selector.module.d.ts.map +1 -0
- package/dist/src/modules/domain/environment/runtime-selector.module.js +30 -0
- package/dist/src/modules/domain/environment/runtime-selector.module.js.map +1 -0
- package/dist/src/modules/domain/environment/runtime-semantics.module.d.ts +8 -0
- package/dist/src/modules/domain/environment/runtime-semantics.module.d.ts.map +1 -0
- package/dist/src/modules/domain/environment/runtime-semantics.module.js +35 -0
- package/dist/src/modules/domain/environment/runtime-semantics.module.js.map +1 -0
- package/dist/src/modules/domain/module.types.d.ts +10 -0
- package/dist/src/modules/domain/module.types.d.ts.map +1 -0
- package/dist/src/modules/domain/module.types.js +1 -0
- package/dist/src/modules/domain/module.types.js.map +1 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.apps-manager-reconnect.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.apps-manager-reconnect.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.apps-manager-reconnect.test.js +129 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.apps-manager-reconnect.test.js.map +1 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.degraded-env.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.degraded-env.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.degraded-env.test.js +220 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.degraded-env.test.js.map +1 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.js +112 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.js.map +1 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.test.js +873 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.js +237 -0
- package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.js.map +1 -0
- package/dist/src/services/application/__tests__/app-runtime-targets.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/app-runtime-targets.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/app-runtime-targets.service.test.js +244 -0
- package/dist/src/services/application/__tests__/app-runtime-targets.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/application-assets-delivery.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/application-assets-delivery.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/application-assets-delivery.service.test.js +81 -0
- package/dist/src/services/application/__tests__/application-assets-delivery.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/application-dependency-alignment.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/application-dependency-alignment.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/application-dependency-alignment.service.test.js +211 -0
- package/dist/src/services/application/__tests__/application-dependency-alignment.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/application-initialization-verification.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/application-initialization-verification.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/application-initialization-verification.service.test.js +159 -0
- package/dist/src/services/application/__tests__/application-initialization-verification.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/application-runtime-bootstrap.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/application-runtime-bootstrap.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/application-runtime-bootstrap.service.test.js +137 -0
- package/dist/src/services/application/__tests__/application-runtime-bootstrap.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.js +41 -0
- package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.js.map +1 -0
- package/dist/src/services/application/__tests__/audit-provider-immudb-backing.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/audit-provider-immudb-backing.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/audit-provider-immudb-backing.test.js +65 -0
- package/dist/src/services/application/__tests__/audit-provider-immudb-backing.test.js.map +1 -0
- package/dist/src/services/application/__tests__/dev-orchestrator.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/dev-orchestrator.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/dev-orchestrator.service.test.js +46 -0
- package/dist/src/services/application/__tests__/dev-orchestrator.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/dev-schema-drift.service.test.d.ts +10 -0
- package/dist/src/services/application/__tests__/dev-schema-drift.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/dev-schema-drift.service.test.js +142 -0
- package/dist/src/services/application/__tests__/dev-schema-drift.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.js +292 -0
- package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/local-app-reinit.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/local-app-reinit.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/local-app-reinit.service.test.js +348 -0
- package/dist/src/services/application/__tests__/local-app-reinit.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/local-application-initialization.guard.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/local-application-initialization.guard.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/local-application-initialization.guard.test.js +98 -0
- package/dist/src/services/application/__tests__/local-application-initialization.guard.test.js.map +1 -0
- package/dist/src/services/application/__tests__/local-application-initialization.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/local-application-initialization.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/local-application-initialization.service.test.js +94 -0
- package/dist/src/services/application/__tests__/local-application-initialization.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.js +771 -0
- package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.d.ts +19 -0
- package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.js +173 -0
- package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.js.map +1 -0
- package/dist/src/services/application/__tests__/saas-scaffold.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/saas-scaffold.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/saas-scaffold.service.test.js +29 -0
- package/dist/src/services/application/__tests__/saas-scaffold.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/saas-skeleton.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/saas-skeleton.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/saas-skeleton.service.test.js +378 -0
- package/dist/src/services/application/__tests__/saas-skeleton.service.test.js.map +1 -0
- package/dist/src/services/application/app-bootstrap.service.d.ts +438 -0
- package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -0
- package/dist/src/services/application/app-bootstrap.service.js +1512 -0
- package/dist/src/services/application/app-bootstrap.service.js.map +1 -0
- package/dist/src/services/application/app-env.service.d.ts +18 -0
- package/dist/src/services/application/app-env.service.d.ts.map +1 -0
- package/dist/src/services/application/app-env.service.js +55 -0
- package/dist/src/services/application/app-env.service.js.map +1 -0
- package/dist/src/services/application/app-local-runtime-addresses.service.d.ts +34 -0
- package/dist/src/services/application/app-local-runtime-addresses.service.d.ts.map +1 -0
- package/dist/src/services/application/app-local-runtime-addresses.service.js +110 -0
- package/dist/src/services/application/app-local-runtime-addresses.service.js.map +1 -0
- package/dist/src/services/application/app-runtime-targets.service.d.ts +74 -0
- package/dist/src/services/application/app-runtime-targets.service.d.ts.map +1 -0
- package/dist/src/services/application/app-runtime-targets.service.js +134 -0
- package/dist/src/services/application/app-runtime-targets.service.js.map +1 -0
- package/dist/src/services/application/app-schema-bootstrap.service.d.ts +81 -0
- package/dist/src/services/application/app-schema-bootstrap.service.d.ts.map +1 -0
- package/dist/src/services/application/app-schema-bootstrap.service.js +139 -0
- package/dist/src/services/application/app-schema-bootstrap.service.js.map +1 -0
- package/dist/src/services/application/application-assets-delivery.service.d.ts +75 -0
- package/dist/src/services/application/application-assets-delivery.service.d.ts.map +1 -0
- package/dist/src/services/application/application-assets-delivery.service.js +152 -0
- package/dist/src/services/application/application-assets-delivery.service.js.map +1 -0
- package/dist/src/services/application/application-dependency-alignment.service.d.ts +142 -0
- package/dist/src/services/application/application-dependency-alignment.service.d.ts.map +1 -0
- package/dist/src/services/application/application-dependency-alignment.service.js +388 -0
- package/dist/src/services/application/application-dependency-alignment.service.js.map +1 -0
- package/dist/src/services/application/application-dev-port-offsets.d.ts +35 -0
- package/dist/src/services/application/application-dev-port-offsets.d.ts.map +1 -0
- package/dist/src/services/application/application-dev-port-offsets.js +35 -0
- package/dist/src/services/application/application-dev-port-offsets.js.map +1 -0
- package/dist/src/services/application/application-initialization-verification.service.d.ts +51 -0
- package/dist/src/services/application/application-initialization-verification.service.d.ts.map +1 -0
- package/dist/src/services/application/application-initialization-verification.service.js +124 -0
- package/dist/src/services/application/application-initialization-verification.service.js.map +1 -0
- package/dist/src/services/application/application-root.utils.d.ts +9 -0
- package/dist/src/services/application/application-root.utils.d.ts.map +1 -0
- package/dist/src/services/application/application-root.utils.js +21 -0
- package/dist/src/services/application/application-root.utils.js.map +1 -0
- package/dist/src/services/application/application-runtime-bootstrap.service.d.ts +39 -0
- package/dist/src/services/application/application-runtime-bootstrap.service.d.ts.map +1 -0
- package/dist/src/services/application/application-runtime-bootstrap.service.js +99 -0
- package/dist/src/services/application/application-runtime-bootstrap.service.js.map +1 -0
- package/dist/src/services/application/dev-orchestrator.service.d.ts +31 -0
- package/dist/src/services/application/dev-orchestrator.service.d.ts.map +1 -0
- package/dist/src/services/application/dev-orchestrator.service.js +182 -0
- package/dist/src/services/application/dev-orchestrator.service.js.map +1 -0
- package/dist/src/services/application/dev-schema-drift.service.d.ts +75 -0
- package/dist/src/services/application/dev-schema-drift.service.d.ts.map +1 -0
- package/dist/src/services/application/dev-schema-drift.service.js +210 -0
- package/dist/src/services/application/dev-schema-drift.service.js.map +1 -0
- package/dist/src/services/application/existing-app-bootstrap.service.d.ts +18 -0
- package/dist/src/services/application/existing-app-bootstrap.service.d.ts.map +1 -0
- package/dist/src/services/application/existing-app-bootstrap.service.js +221 -0
- package/dist/src/services/application/existing-app-bootstrap.service.js.map +1 -0
- package/dist/src/services/application/local-app-reinit.service.d.ts +41 -0
- package/dist/src/services/application/local-app-reinit.service.d.ts.map +1 -0
- package/dist/src/services/application/local-app-reinit.service.js +118 -0
- package/dist/src/services/application/local-app-reinit.service.js.map +1 -0
- package/dist/src/services/application/local-application-initialization.service.d.ts +36 -0
- package/dist/src/services/application/local-application-initialization.service.d.ts.map +1 -0
- package/dist/src/services/application/local-application-initialization.service.js +96 -0
- package/dist/src/services/application/local-application-initialization.service.js.map +1 -0
- package/dist/src/services/application/provider-runtime-sync.service.d.ts +63 -0
- package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -0
- package/dist/src/services/application/provider-runtime-sync.service.js +609 -0
- package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -0
- package/dist/src/services/application/saas-scaffold.service.d.ts +14 -0
- package/dist/src/services/application/saas-scaffold.service.d.ts.map +1 -0
- package/dist/src/services/application/saas-scaffold.service.js +86 -0
- package/dist/src/services/application/saas-scaffold.service.js.map +1 -0
- package/dist/src/services/application/saas-skeleton.service.d.ts +69 -0
- package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -0
- package/dist/src/services/application/saas-skeleton.service.js +774 -0
- package/dist/src/services/application/saas-skeleton.service.js.map +1 -0
- package/dist/src/services/brand/__tests__/brand-asset-delivery.test.d.ts +23 -0
- package/dist/src/services/brand/__tests__/brand-asset-delivery.test.d.ts.map +1 -0
- package/dist/src/services/brand/__tests__/brand-asset-delivery.test.js +190 -0
- package/dist/src/services/brand/__tests__/brand-asset-delivery.test.js.map +1 -0
- package/dist/src/services/brand/brand-asset-projection.d.ts +39 -0
- package/dist/src/services/brand/brand-asset-projection.d.ts.map +1 -0
- package/dist/src/services/brand/brand-asset-projection.js +68 -0
- package/dist/src/services/brand/brand-asset-projection.js.map +1 -0
- package/dist/src/services/brand/brand-destination-utils.d.ts +137 -0
- package/dist/src/services/brand/brand-destination-utils.d.ts.map +1 -0
- package/dist/src/services/brand/brand-destination-utils.js +227 -0
- package/dist/src/services/brand/brand-destination-utils.js.map +1 -0
- package/dist/src/services/brand/brand-propagation.types.d.ts +101 -0
- package/dist/src/services/brand/brand-propagation.types.d.ts.map +1 -0
- package/dist/src/services/brand/brand-propagation.types.js +22 -0
- package/dist/src/services/brand/brand-propagation.types.js.map +1 -0
- package/dist/src/services/brand/brand-ssot-reader.d.ts +52 -0
- package/dist/src/services/brand/brand-ssot-reader.d.ts.map +1 -0
- package/dist/src/services/brand/brand-ssot-reader.js +146 -0
- package/dist/src/services/brand/brand-ssot-reader.js.map +1 -0
- package/dist/src/services/brand/destinations/app-public.destination.d.ts +30 -0
- package/dist/src/services/brand/destinations/app-public.destination.d.ts.map +1 -0
- package/dist/src/services/brand/destinations/app-public.destination.js +79 -0
- package/dist/src/services/brand/destinations/app-public.destination.js.map +1 -0
- package/dist/src/services/brand/destinations/runtime-app-config.destination.d.ts +61 -0
- package/dist/src/services/brand/destinations/runtime-app-config.destination.d.ts.map +1 -0
- package/dist/src/services/brand/destinations/runtime-app-config.destination.js +149 -0
- package/dist/src/services/brand/destinations/runtime-app-config.destination.js.map +1 -0
- package/dist/src/services/brand/destinations/technical-doc-static.destination.d.ts +22 -0
- package/dist/src/services/brand/destinations/technical-doc-static.destination.d.ts.map +1 -0
- package/dist/src/services/brand/destinations/technical-doc-static.destination.js +84 -0
- package/dist/src/services/brand/destinations/technical-doc-static.destination.js.map +1 -0
- package/dist/src/services/brand/destinations/website-og.destination.d.ts +34 -0
- package/dist/src/services/brand/destinations/website-og.destination.d.ts.map +1 -0
- package/dist/src/services/brand/destinations/website-og.destination.js +80 -0
- package/dist/src/services/brand/destinations/website-og.destination.js.map +1 -0
- package/dist/src/services/brand/destinations/website-public.destination.d.ts +40 -0
- package/dist/src/services/brand/destinations/website-public.destination.d.ts.map +1 -0
- package/dist/src/services/brand/destinations/website-public.destination.js +122 -0
- package/dist/src/services/brand/destinations/website-public.destination.js.map +1 -0
- package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.d.ts +2 -0
- package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.d.ts.map +1 -0
- package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.js +142 -0
- package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.js.map +1 -0
- package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.d.ts +2 -0
- package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.d.ts.map +1 -0
- package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.js +94 -0
- package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.js.map +1 -0
- package/dist/src/services/catalog/service-address-resolver.service.d.ts +91 -0
- package/dist/src/services/catalog/service-address-resolver.service.d.ts.map +1 -0
- package/dist/src/services/catalog/service-address-resolver.service.js +255 -0
- package/dist/src/services/catalog/service-address-resolver.service.js.map +1 -0
- package/dist/src/services/catalog/service-catalog.schemas.d.ts +165 -0
- package/dist/src/services/catalog/service-catalog.schemas.d.ts.map +1 -0
- package/dist/src/services/catalog/service-catalog.schemas.js +273 -0
- package/dist/src/services/catalog/service-catalog.schemas.js.map +1 -0
- package/dist/src/services/coding-agents/acp-conformance-probe.service.d.ts +105 -0
- package/dist/src/services/coding-agents/acp-conformance-probe.service.d.ts.map +1 -0
- package/dist/src/services/coding-agents/acp-conformance-probe.service.js +418 -0
- package/dist/src/services/coding-agents/acp-conformance-probe.service.js.map +1 -0
- package/dist/src/services/companion/__tests__/companion-client.service.test.d.ts +10 -0
- package/dist/src/services/companion/__tests__/companion-client.service.test.d.ts.map +1 -0
- package/dist/src/services/companion/__tests__/companion-client.service.test.js +95 -0
- package/dist/src/services/companion/__tests__/companion-client.service.test.js.map +1 -0
- package/dist/src/services/companion/__tests__/companion-lifecycle.service.test.d.ts +2 -0
- package/dist/src/services/companion/__tests__/companion-lifecycle.service.test.d.ts.map +1 -0
- package/dist/src/services/companion/__tests__/companion-lifecycle.service.test.js +74 -0
- package/dist/src/services/companion/__tests__/companion-lifecycle.service.test.js.map +1 -0
- package/dist/src/services/companion/__tests__/workbench-browser-launcher.service.test.d.ts +2 -0
- package/dist/src/services/companion/__tests__/workbench-browser-launcher.service.test.d.ts.map +1 -0
- package/dist/src/services/companion/__tests__/workbench-browser-launcher.service.test.js +14 -0
- package/dist/src/services/companion/__tests__/workbench-browser-launcher.service.test.js.map +1 -0
- package/dist/src/services/companion/__tests__/workbench-cli.service.test.d.ts +2 -0
- package/dist/src/services/companion/__tests__/workbench-cli.service.test.d.ts.map +1 -0
- package/dist/src/services/companion/__tests__/workbench-cli.service.test.js +50 -0
- package/dist/src/services/companion/__tests__/workbench-cli.service.test.js.map +1 -0
- package/dist/src/services/companion/companion-client-options.utils.d.ts +17 -0
- package/dist/src/services/companion/companion-client-options.utils.d.ts.map +1 -0
- package/dist/src/services/companion/companion-client-options.utils.js +31 -0
- package/dist/src/services/companion/companion-client-options.utils.js.map +1 -0
- package/dist/src/services/companion/companion-client.service.d.ts +16 -0
- package/dist/src/services/companion/companion-client.service.d.ts.map +1 -0
- package/dist/src/services/companion/companion-client.service.js +149 -0
- package/dist/src/services/companion/companion-client.service.js.map +1 -0
- package/dist/src/services/companion/companion-lifecycle.service.d.ts +18 -0
- package/dist/src/services/companion/companion-lifecycle.service.d.ts.map +1 -0
- package/dist/src/services/companion/companion-lifecycle.service.js +96 -0
- package/dist/src/services/companion/companion-lifecycle.service.js.map +1 -0
- package/dist/src/services/companion/companion.schemas.d.ts +36 -0
- package/dist/src/services/companion/companion.schemas.d.ts.map +1 -0
- package/dist/src/services/companion/companion.schemas.js +25 -0
- package/dist/src/services/companion/companion.schemas.js.map +1 -0
- package/dist/src/services/companion/git-helper.service.d.ts +29 -0
- package/dist/src/services/companion/git-helper.service.d.ts.map +1 -0
- package/dist/src/services/companion/git-helper.service.js +59 -0
- package/dist/src/services/companion/git-helper.service.js.map +1 -0
- package/dist/src/services/companion/local-companion-authority.service.d.ts +24 -0
- package/dist/src/services/companion/local-companion-authority.service.d.ts.map +1 -0
- package/dist/src/services/companion/local-companion-authority.service.js +79 -0
- package/dist/src/services/companion/local-companion-authority.service.js.map +1 -0
- package/dist/src/services/companion/workbench-browser-launcher.service.d.ts +9 -0
- package/dist/src/services/companion/workbench-browser-launcher.service.d.ts.map +1 -0
- package/dist/src/services/companion/workbench-browser-launcher.service.js +34 -0
- package/dist/src/services/companion/workbench-browser-launcher.service.js.map +1 -0
- package/dist/src/services/companion/workbench-cli.service.d.ts +41 -0
- package/dist/src/services/companion/workbench-cli.service.d.ts.map +1 -0
- package/dist/src/services/companion/workbench-cli.service.js +74 -0
- package/dist/src/services/companion/workbench-cli.service.js.map +1 -0
- package/dist/src/services/context/__tests__/context-manager.installed-assets.test.d.ts +2 -0
- package/dist/src/services/context/__tests__/context-manager.installed-assets.test.d.ts.map +1 -0
- package/dist/src/services/context/__tests__/context-manager.installed-assets.test.js +49 -0
- package/dist/src/services/context/__tests__/context-manager.installed-assets.test.js.map +1 -0
- package/dist/src/services/context/__tests__/context-manager.service.test.d.ts +2 -0
- package/dist/src/services/context/__tests__/context-manager.service.test.d.ts.map +1 -0
- package/dist/src/services/context/__tests__/context-manager.service.test.js +119 -0
- package/dist/src/services/context/__tests__/context-manager.service.test.js.map +1 -0
- package/dist/src/services/context/context-manager.service.d.ts +66 -0
- package/dist/src/services/context/context-manager.service.d.ts.map +1 -0
- package/dist/src/services/context/context-manager.service.js +161 -0
- package/dist/src/services/context/context-manager.service.js.map +1 -0
- package/dist/src/services/context/context.schemas.d.ts +31 -0
- package/dist/src/services/context/context.schemas.d.ts.map +1 -0
- package/dist/src/services/context/context.schemas.js +1 -0
- package/dist/src/services/context/context.schemas.js.map +1 -0
- package/dist/src/services/context/state-manager.service.d.ts +49 -0
- package/dist/src/services/context/state-manager.service.d.ts.map +1 -0
- package/dist/src/services/context/state-manager.service.js +94 -0
- package/dist/src/services/context/state-manager.service.js.map +1 -0
- package/dist/src/services/credentials/__tests__/framework-managed-secrets.test.d.ts +14 -0
- package/dist/src/services/credentials/__tests__/framework-managed-secrets.test.d.ts.map +1 -0
- package/dist/src/services/credentials/__tests__/framework-managed-secrets.test.js +258 -0
- package/dist/src/services/credentials/__tests__/framework-managed-secrets.test.js.map +1 -0
- package/dist/src/services/credentials/__tests__/secrets-contracts.test.d.ts +2 -0
- package/dist/src/services/credentials/__tests__/secrets-contracts.test.d.ts.map +1 -0
- package/dist/src/services/credentials/__tests__/secrets-contracts.test.js +277 -0
- package/dist/src/services/credentials/__tests__/secrets-contracts.test.js.map +1 -0
- package/dist/src/services/credentials/ci-secrets-adapter.service.d.ts +31 -0
- package/dist/src/services/credentials/ci-secrets-adapter.service.d.ts.map +1 -0
- package/dist/src/services/credentials/ci-secrets-adapter.service.js +124 -0
- package/dist/src/services/credentials/ci-secrets-adapter.service.js.map +1 -0
- package/dist/src/services/credentials/credentials.schemas.d.ts +498 -0
- package/dist/src/services/credentials/credentials.schemas.d.ts.map +1 -0
- package/dist/src/services/credentials/credentials.schemas.js +454 -0
- package/dist/src/services/credentials/credentials.schemas.js.map +1 -0
- package/dist/src/services/credentials/credentials.service.d.ts +23 -0
- package/dist/src/services/credentials/credentials.service.d.ts.map +1 -0
- package/dist/src/services/credentials/credentials.service.js +118 -0
- package/dist/src/services/credentials/credentials.service.js.map +1 -0
- package/dist/src/services/credentials/framework-managed-secrets.d.ts +169 -0
- package/dist/src/services/credentials/framework-managed-secrets.d.ts.map +1 -0
- package/dist/src/services/credentials/framework-managed-secrets.js +406 -0
- package/dist/src/services/credentials/framework-managed-secrets.js.map +1 -0
- package/dist/src/services/credentials/provider-env-vars.utils.d.ts +142 -0
- package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -0
- package/dist/src/services/credentials/provider-env-vars.utils.js +420 -0
- package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -0
- package/dist/src/services/credentials/secrets-provisioning.service.d.ts +109 -0
- package/dist/src/services/credentials/secrets-provisioning.service.d.ts.map +1 -0
- package/dist/src/services/credentials/secrets-provisioning.service.js +104 -0
- package/dist/src/services/credentials/secrets-provisioning.service.js.map +1 -0
- package/dist/src/services/credentials/secrets-reader.service.d.ts +64 -0
- package/dist/src/services/credentials/secrets-reader.service.d.ts.map +1 -0
- package/dist/src/services/credentials/secrets-reader.service.js +222 -0
- package/dist/src/services/credentials/secrets-reader.service.js.map +1 -0
- package/dist/src/services/credentials/secrets-rotation.service.d.ts +21 -0
- package/dist/src/services/credentials/secrets-rotation.service.d.ts.map +1 -0
- package/dist/src/services/credentials/secrets-rotation.service.js +30 -0
- package/dist/src/services/credentials/secrets-rotation.service.js.map +1 -0
- package/dist/src/services/credentials/secrets-writer.service.d.ts +29 -0
- package/dist/src/services/credentials/secrets-writer.service.d.ts.map +1 -0
- package/dist/src/services/credentials/secrets-writer.service.js +63 -0
- package/dist/src/services/credentials/secrets-writer.service.js.map +1 -0
- package/dist/src/services/data-services/data-services.schemas.d.ts +229 -0
- package/dist/src/services/data-services/data-services.schemas.d.ts.map +1 -0
- package/dist/src/services/data-services/data-services.schemas.js +239 -0
- package/dist/src/services/data-services/data-services.schemas.js.map +1 -0
- package/dist/src/services/data-services/data-services.service.d.ts +14 -0
- package/dist/src/services/data-services/data-services.service.d.ts.map +1 -0
- package/dist/src/services/data-services/data-services.service.js +24 -0
- package/dist/src/services/data-services/data-services.service.js.map +1 -0
- package/dist/src/services/deployment/__tests__/apps-manager-diagnostics.service.test.d.ts +2 -0
- package/dist/src/services/deployment/__tests__/apps-manager-diagnostics.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/apps-manager-diagnostics.service.test.js +64 -0
- package/dist/src/services/deployment/__tests__/apps-manager-diagnostics.service.test.js.map +1 -0
- package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.d.ts +2 -0
- package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.js +147 -0
- package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.js.map +1 -0
- package/dist/src/services/deployment/__tests__/ci-workflow-generator.service.test.d.ts +2 -0
- package/dist/src/services/deployment/__tests__/ci-workflow-generator.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/ci-workflow-generator.service.test.js +39 -0
- package/dist/src/services/deployment/__tests__/ci-workflow-generator.service.test.js.map +1 -0
- package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.d.ts +2 -0
- package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.js +286 -0
- package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.js.map +1 -0
- package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.d.ts +20 -0
- package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.js +316 -0
- package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.js.map +1 -0
- package/dist/src/services/deployment/__tests__/infra-templates-render-smoke.test.d.ts +2 -0
- package/dist/src/services/deployment/__tests__/infra-templates-render-smoke.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/infra-templates-render-smoke.test.js +211 -0
- package/dist/src/services/deployment/__tests__/infra-templates-render-smoke.test.js.map +1 -0
- package/dist/src/services/deployment/__tests__/local-dev-observer-lifecycle.test.d.ts +2 -0
- package/dist/src/services/deployment/__tests__/local-dev-observer-lifecycle.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/local-dev-observer-lifecycle.test.js +97 -0
- package/dist/src/services/deployment/__tests__/local-dev-observer-lifecycle.test.js.map +1 -0
- package/dist/src/services/deployment/__tests__/local-dev-output-boundary.test.d.ts +2 -0
- package/dist/src/services/deployment/__tests__/local-dev-output-boundary.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/local-dev-output-boundary.test.js +258 -0
- package/dist/src/services/deployment/__tests__/local-dev-output-boundary.test.js.map +1 -0
- package/dist/src/services/deployment/__tests__/local-dev-session-lease.service.test.d.ts +2 -0
- package/dist/src/services/deployment/__tests__/local-dev-session-lease.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/local-dev-session-lease.service.test.js +223 -0
- package/dist/src/services/deployment/__tests__/local-dev-session-lease.service.test.js.map +1 -0
- package/dist/src/services/deployment/__tests__/local-dev-shutdown-coordinator.test.d.ts +2 -0
- package/dist/src/services/deployment/__tests__/local-dev-shutdown-coordinator.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/local-dev-shutdown-coordinator.test.js +100 -0
- package/dist/src/services/deployment/__tests__/local-dev-shutdown-coordinator.test.js.map +1 -0
- package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.d.ts +11 -0
- package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.js +451 -0
- package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.js.map +1 -0
- package/dist/src/services/deployment/__tests__/local-runtime-process-cleanup.service.test.d.ts +2 -0
- package/dist/src/services/deployment/__tests__/local-runtime-process-cleanup.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/local-runtime-process-cleanup.service.test.js +189 -0
- package/dist/src/services/deployment/__tests__/local-runtime-process-cleanup.service.test.js.map +1 -0
- package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.d.ts +2 -0
- package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.js +150 -0
- package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.js.map +1 -0
- package/dist/src/services/deployment/__tests__/platform-lifecycle.service.test.d.ts +2 -0
- package/dist/src/services/deployment/__tests__/platform-lifecycle.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/platform-lifecycle.service.test.js +245 -0
- package/dist/src/services/deployment/__tests__/platform-lifecycle.service.test.js.map +1 -0
- package/dist/src/services/deployment/__tests__/platform-runtime-policy.service.test.d.ts +2 -0
- package/dist/src/services/deployment/__tests__/platform-runtime-policy.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/platform-runtime-policy.service.test.js +27 -0
- package/dist/src/services/deployment/__tests__/platform-runtime-policy.service.test.js.map +1 -0
- package/dist/src/services/deployment/apps-manager-diagnostics.service.d.ts +7 -0
- package/dist/src/services/deployment/apps-manager-diagnostics.service.d.ts.map +1 -0
- package/dist/src/services/deployment/apps-manager-diagnostics.service.js +51 -0
- package/dist/src/services/deployment/apps-manager-diagnostics.service.js.map +1 -0
- package/dist/src/services/deployment/ci-deploy-generator.service.d.ts +54 -0
- package/dist/src/services/deployment/ci-deploy-generator.service.d.ts.map +1 -0
- package/dist/src/services/deployment/ci-deploy-generator.service.js +319 -0
- package/dist/src/services/deployment/ci-deploy-generator.service.js.map +1 -0
- package/dist/src/services/deployment/ci-workflow-generator.service.d.ts +109 -0
- package/dist/src/services/deployment/ci-workflow-generator.service.d.ts.map +1 -0
- package/dist/src/services/deployment/ci-workflow-generator.service.js +160 -0
- package/dist/src/services/deployment/ci-workflow-generator.service.js.map +1 -0
- package/dist/src/services/deployment/docker/__tests__/compose-env-value-encoding.test.d.ts +2 -0
- package/dist/src/services/deployment/docker/__tests__/compose-env-value-encoding.test.d.ts.map +1 -0
- package/dist/src/services/deployment/docker/__tests__/compose-env-value-encoding.test.js +45 -0
- package/dist/src/services/deployment/docker/__tests__/compose-env-value-encoding.test.js.map +1 -0
- package/dist/src/services/deployment/docker/__tests__/compose-host-mounted-artifact.test.d.ts +2 -0
- package/dist/src/services/deployment/docker/__tests__/compose-host-mounted-artifact.test.d.ts.map +1 -0
- package/dist/src/services/deployment/docker/__tests__/compose-host-mounted-artifact.test.js +81 -0
- package/dist/src/services/deployment/docker/__tests__/compose-host-mounted-artifact.test.js.map +1 -0
- package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.d.ts +2 -0
- package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.js +814 -0
- package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.js.map +1 -0
- package/dist/src/services/deployment/docker/__tests__/docker-compose-readiness.service.test.d.ts +2 -0
- package/dist/src/services/deployment/docker/__tests__/docker-compose-readiness.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/docker/__tests__/docker-compose-readiness.service.test.js +77 -0
- package/dist/src/services/deployment/docker/__tests__/docker-compose-readiness.service.test.js.map +1 -0
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts +225 -0
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -0
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js +696 -0
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -0
- package/dist/src/services/deployment/docker/docker-compose-readiness.service.d.ts +89 -0
- package/dist/src/services/deployment/docker/docker-compose-readiness.service.d.ts.map +1 -0
- package/dist/src/services/deployment/docker/docker-compose-readiness.service.js +198 -0
- package/dist/src/services/deployment/docker/docker-compose-readiness.service.js.map +1 -0
- package/dist/src/services/deployment/docker/docker.schemas.d.ts +17 -0
- package/dist/src/services/deployment/docker/docker.schemas.d.ts.map +1 -0
- package/dist/src/services/deployment/docker/docker.schemas.js +4 -0
- package/dist/src/services/deployment/docker/docker.schemas.js.map +1 -0
- package/dist/src/services/deployment/docker/docker.service.d.ts +23 -0
- package/dist/src/services/deployment/docker/docker.service.d.ts.map +1 -0
- package/dist/src/services/deployment/docker/docker.service.js +94 -0
- package/dist/src/services/deployment/docker/docker.service.js.map +1 -0
- package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts +209 -0
- package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts.map +1 -0
- package/dist/src/services/deployment/host-toolchain-readiness.service.js +283 -0
- package/dist/src/services/deployment/host-toolchain-readiness.service.js.map +1 -0
- package/dist/src/services/deployment/infra-writer.service.d.ts +16 -0
- package/dist/src/services/deployment/infra-writer.service.d.ts.map +1 -0
- package/dist/src/services/deployment/infra-writer.service.js +71 -0
- package/dist/src/services/deployment/infra-writer.service.js.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.d.ts +2 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.js +235 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.js.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.d.ts +2 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.js +968 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.js.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-operations.service.test.d.ts +2 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-operations.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-operations.service.test.js +39 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-operations.service.test.js.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.d.ts +2 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.js +175 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.js.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/kind.service.test.d.ts +2 -0
- package/dist/src/services/deployment/k8s/__tests__/kind.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/kind.service.test.js +47 -0
- package/dist/src/services/deployment/k8s/__tests__/kind.service.test.js.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/local-k8s-application-pruning.service.test.d.ts +2 -0
- package/dist/src/services/deployment/k8s/__tests__/local-k8s-application-pruning.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/local-k8s-application-pruning.service.test.js +22 -0
- package/dist/src/services/deployment/k8s/__tests__/local-k8s-application-pruning.service.test.js.map +1 -0
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.d.ts +30 -0
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js +659 -0
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js.map +1 -0
- package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.d.ts +47 -0
- package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.js +135 -0
- package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.js.map +1 -0
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts +283 -0
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js +874 -0
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -0
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts +164 -0
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js +74 -0
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js.map +1 -0
- package/dist/src/services/deployment/k8s/k8s-operations.service.d.ts +152 -0
- package/dist/src/services/deployment/k8s/k8s-operations.service.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/k8s-operations.service.js +430 -0
- package/dist/src/services/deployment/k8s/k8s-operations.service.js.map +1 -0
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts +23 -0
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js +351 -0
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js.map +1 -0
- package/dist/src/services/deployment/k8s/k8s.schemas.d.ts +36 -0
- package/dist/src/services/deployment/k8s/k8s.schemas.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/k8s.schemas.js +39 -0
- package/dist/src/services/deployment/k8s/k8s.schemas.js.map +1 -0
- package/dist/src/services/deployment/k8s/kind.service.d.ts +64 -0
- package/dist/src/services/deployment/k8s/kind.service.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/kind.service.js +448 -0
- package/dist/src/services/deployment/k8s/kind.service.js.map +1 -0
- package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.d.ts +11 -0
- package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.js +29 -0
- package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.js.map +1 -0
- package/dist/src/services/deployment/local-dev-observer-lifecycle.d.ts +35 -0
- package/dist/src/services/deployment/local-dev-observer-lifecycle.d.ts.map +1 -0
- package/dist/src/services/deployment/local-dev-observer-lifecycle.js +80 -0
- package/dist/src/services/deployment/local-dev-observer-lifecycle.js.map +1 -0
- package/dist/src/services/deployment/local-dev-output-boundary.d.ts +120 -0
- package/dist/src/services/deployment/local-dev-output-boundary.d.ts.map +1 -0
- package/dist/src/services/deployment/local-dev-output-boundary.js +450 -0
- package/dist/src/services/deployment/local-dev-output-boundary.js.map +1 -0
- package/dist/src/services/deployment/local-dev-session-lease.service.d.ts +63 -0
- package/dist/src/services/deployment/local-dev-session-lease.service.d.ts.map +1 -0
- package/dist/src/services/deployment/local-dev-session-lease.service.js +240 -0
- package/dist/src/services/deployment/local-dev-session-lease.service.js.map +1 -0
- package/dist/src/services/deployment/local-dev-shutdown-coordinator.d.ts +56 -0
- package/dist/src/services/deployment/local-dev-shutdown-coordinator.d.ts.map +1 -0
- package/dist/src/services/deployment/local-dev-shutdown-coordinator.js +62 -0
- package/dist/src/services/deployment/local-dev-shutdown-coordinator.js.map +1 -0
- package/dist/src/services/deployment/local-infrastructure-initialization.service.d.ts +16 -0
- package/dist/src/services/deployment/local-infrastructure-initialization.service.d.ts.map +1 -0
- package/dist/src/services/deployment/local-infrastructure-initialization.service.js +72 -0
- package/dist/src/services/deployment/local-infrastructure-initialization.service.js.map +1 -0
- package/dist/src/services/deployment/local-precondition-checks.schemas.d.ts +41 -0
- package/dist/src/services/deployment/local-precondition-checks.schemas.d.ts.map +1 -0
- package/dist/src/services/deployment/local-precondition-checks.schemas.js +32 -0
- package/dist/src/services/deployment/local-precondition-checks.schemas.js.map +1 -0
- package/dist/src/services/deployment/local-precondition-checks.service.d.ts +394 -0
- package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -0
- package/dist/src/services/deployment/local-precondition-checks.service.js +785 -0
- package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -0
- package/dist/src/services/deployment/local-runtime-process-cleanup.service.d.ts +83 -0
- package/dist/src/services/deployment/local-runtime-process-cleanup.service.d.ts.map +1 -0
- package/dist/src/services/deployment/local-runtime-process-cleanup.service.js +298 -0
- package/dist/src/services/deployment/local-runtime-process-cleanup.service.js.map +1 -0
- package/dist/src/services/deployment/platform-lifecycle.service.d.ts +105 -0
- package/dist/src/services/deployment/platform-lifecycle.service.d.ts.map +1 -0
- package/dist/src/services/deployment/platform-lifecycle.service.js +509 -0
- package/dist/src/services/deployment/platform-lifecycle.service.js.map +1 -0
- package/dist/src/services/deployment/platform-runtime-policy.service.d.ts +18 -0
- package/dist/src/services/deployment/platform-runtime-policy.service.d.ts.map +1 -0
- package/dist/src/services/deployment/platform-runtime-policy.service.js +33 -0
- package/dist/src/services/deployment/platform-runtime-policy.service.js.map +1 -0
- package/dist/src/services/deployment/version-compare.utils.d.ts +38 -0
- package/dist/src/services/deployment/version-compare.utils.d.ts.map +1 -0
- package/dist/src/services/deployment/version-compare.utils.js +59 -0
- package/dist/src/services/deployment/version-compare.utils.js.map +1 -0
- package/dist/src/services/design-tokens/design-tokens-command.service.d.ts +5 -0
- package/dist/src/services/design-tokens/design-tokens-command.service.d.ts.map +1 -0
- package/dist/src/services/design-tokens/design-tokens-command.service.js +277 -0
- package/dist/src/services/design-tokens/design-tokens-command.service.js.map +1 -0
- package/dist/src/services/design-tokens/design-tokens-config.service.d.ts +5 -0
- package/dist/src/services/design-tokens/design-tokens-config.service.d.ts.map +1 -0
- package/dist/src/services/design-tokens/design-tokens-config.service.js +45 -0
- package/dist/src/services/design-tokens/design-tokens-config.service.js.map +1 -0
- package/dist/src/services/design-tokens/design-tokens-config.template.d.ts +2 -0
- package/dist/src/services/design-tokens/design-tokens-config.template.d.ts.map +1 -0
- package/dist/src/services/design-tokens/design-tokens-config.template.js +12 -0
- package/dist/src/services/design-tokens/design-tokens-config.template.js.map +1 -0
- package/dist/src/services/design-tokens/design-tokens-css-block.service.d.ts +7 -0
- package/dist/src/services/design-tokens/design-tokens-css-block.service.d.ts.map +1 -0
- package/dist/src/services/design-tokens/design-tokens-css-block.service.js +24 -0
- package/dist/src/services/design-tokens/design-tokens-css-block.service.js.map +1 -0
- package/dist/src/services/design-tokens/design-tokens-paths.service.d.ts +23 -0
- package/dist/src/services/design-tokens/design-tokens-paths.service.d.ts.map +1 -0
- package/dist/src/services/design-tokens/design-tokens-paths.service.js +49 -0
- package/dist/src/services/design-tokens/design-tokens-paths.service.js.map +1 -0
- package/dist/src/services/design-tokens/design-tokens.constants.d.ts +7 -0
- package/dist/src/services/design-tokens/design-tokens.constants.d.ts.map +1 -0
- package/dist/src/services/design-tokens/design-tokens.constants.js +16 -0
- package/dist/src/services/design-tokens/design-tokens.constants.js.map +1 -0
- package/dist/src/services/design-tokens/design-tokens.models.d.ts +7 -0
- package/dist/src/services/design-tokens/design-tokens.models.d.ts.map +1 -0
- package/dist/src/services/design-tokens/design-tokens.models.js +1 -0
- package/dist/src/services/design-tokens/design-tokens.models.js.map +1 -0
- package/dist/src/services/environment/__tests__/compose-converge-args.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/compose-converge-args.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/compose-converge-args.test.js +93 -0
- package/dist/src/services/environment/__tests__/compose-converge-args.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/config-hydration-seam.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/config-hydration-seam.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/config-hydration-seam.test.js +105 -0
- package/dist/src/services/environment/__tests__/config-hydration-seam.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.js +555 -0
- package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/env-sync.service.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/env-sync.service.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/env-sync.service.test.js +122 -0
- package/dist/src/services/environment/__tests__/env-sync.service.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/env-vars-builder.service.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/env-vars-builder.service.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/env-vars-builder.service.test.js +1547 -0
- package/dist/src/services/environment/__tests__/env-vars-builder.service.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/environment-hydration.utils.test.d.ts +22 -0
- package/dist/src/services/environment/__tests__/environment-hydration.utils.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/environment-hydration.utils.test.js +100 -0
- package/dist/src/services/environment/__tests__/environment-hydration.utils.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-mongodb.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-mongodb.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-mongodb.test.js +82 -0
- package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-mongodb.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-postgresql.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-postgresql.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-postgresql.test.js +116 -0
- package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-postgresql.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/environment-paths.service.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/environment-paths.service.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/environment-paths.service.test.js +18 -0
- package/dist/src/services/environment/__tests__/environment-paths.service.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/environment-registry.service.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/environment-registry.service.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/environment-registry.service.test.js +175 -0
- package/dist/src/services/environment/__tests__/environment-registry.service.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.js +164 -0
- package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/platform-engine-change.utils.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/platform-engine-change.utils.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/platform-engine-change.utils.test.js +96 -0
- package/dist/src/services/environment/__tests__/platform-engine-change.utils.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/platform-image-ref.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/platform-image-ref.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/platform-image-ref.test.js +30 -0
- package/dist/src/services/environment/__tests__/platform-image-ref.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/platform-runtime-state.service.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/platform-runtime-state.service.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/platform-runtime-state.service.test.js +48 -0
- package/dist/src/services/environment/__tests__/platform-runtime-state.service.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/provider-secrets-env.service.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/provider-secrets-env.service.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/provider-secrets-env.service.test.js +96 -0
- package/dist/src/services/environment/__tests__/provider-secrets-env.service.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/runtime-bootstrap.authored-database-refresh.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/runtime-bootstrap.authored-database-refresh.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/runtime-bootstrap.authored-database-refresh.test.js +121 -0
- package/dist/src/services/environment/__tests__/runtime-bootstrap.authored-database-refresh.test.js.map +1 -0
- package/dist/src/services/environment/authored-infra-config.utils.d.ts +69 -0
- package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -0
- package/dist/src/services/environment/authored-infra-config.utils.js +174 -0
- package/dist/src/services/environment/authored-infra-config.utils.js.map +1 -0
- package/dist/src/services/environment/env-configuration-generator.service.d.ts +340 -0
- package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -0
- package/dist/src/services/environment/env-configuration-generator.service.js +560 -0
- package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -0
- package/dist/src/services/environment/env-sync.service.d.ts +36 -0
- package/dist/src/services/environment/env-sync.service.d.ts.map +1 -0
- package/dist/src/services/environment/env-sync.service.js +166 -0
- package/dist/src/services/environment/env-sync.service.js.map +1 -0
- package/dist/src/services/environment/env-vars-builder.service.d.ts +301 -0
- package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -0
- package/dist/src/services/environment/env-vars-builder.service.js +1493 -0
- package/dist/src/services/environment/env-vars-builder.service.js.map +1 -0
- package/dist/src/services/environment/environment-hydration.utils.d.ts +92 -0
- package/dist/src/services/environment/environment-hydration.utils.d.ts.map +1 -0
- package/dist/src/services/environment/environment-hydration.utils.js +178 -0
- package/dist/src/services/environment/environment-hydration.utils.js.map +1 -0
- package/dist/src/services/environment/environment-lifecycle.service.d.ts +103 -0
- package/dist/src/services/environment/environment-lifecycle.service.d.ts.map +1 -0
- package/dist/src/services/environment/environment-lifecycle.service.js +264 -0
- package/dist/src/services/environment/environment-lifecycle.service.js.map +1 -0
- package/dist/src/services/environment/environment-paths.service.d.ts +235 -0
- package/dist/src/services/environment/environment-paths.service.d.ts.map +1 -0
- package/dist/src/services/environment/environment-paths.service.js +472 -0
- package/dist/src/services/environment/environment-paths.service.js.map +1 -0
- package/dist/src/services/environment/environment-registry.service.d.ts +111 -0
- package/dist/src/services/environment/environment-registry.service.d.ts.map +1 -0
- package/dist/src/services/environment/environment-registry.service.js +391 -0
- package/dist/src/services/environment/environment-registry.service.js.map +1 -0
- package/dist/src/services/environment/environment-setup.service.d.ts +28 -0
- package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -0
- package/dist/src/services/environment/environment-setup.service.js +304 -0
- package/dist/src/services/environment/environment-setup.service.js.map +1 -0
- package/dist/src/services/environment/environment.schemas.d.ts +211 -0
- package/dist/src/services/environment/environment.schemas.d.ts.map +1 -0
- package/dist/src/services/environment/environment.schemas.js +56 -0
- package/dist/src/services/environment/environment.schemas.js.map +1 -0
- package/dist/src/services/environment/environment.service.d.ts +74 -0
- package/dist/src/services/environment/environment.service.d.ts.map +1 -0
- package/dist/src/services/environment/environment.service.js +65 -0
- package/dist/src/services/environment/environment.service.js.map +1 -0
- package/dist/src/services/environment/platform-engine-change.utils.d.ts +87 -0
- package/dist/src/services/environment/platform-engine-change.utils.d.ts.map +1 -0
- package/dist/src/services/environment/platform-engine-change.utils.js +121 -0
- package/dist/src/services/environment/platform-engine-change.utils.js.map +1 -0
- package/dist/src/services/environment/platform-runtime-state.service.d.ts +14 -0
- package/dist/src/services/environment/platform-runtime-state.service.d.ts.map +1 -0
- package/dist/src/services/environment/platform-runtime-state.service.js +68 -0
- package/dist/src/services/environment/platform-runtime-state.service.js.map +1 -0
- package/dist/src/services/environment/platform-runtime.schemas.d.ts +74 -0
- package/dist/src/services/environment/platform-runtime.schemas.d.ts.map +1 -0
- package/dist/src/services/environment/platform-runtime.schemas.js +85 -0
- package/dist/src/services/environment/platform-runtime.schemas.js.map +1 -0
- package/dist/src/services/environment/runtime-bootstrap.service.d.ts +285 -0
- package/dist/src/services/environment/runtime-bootstrap.service.d.ts.map +1 -0
- package/dist/src/services/environment/runtime-bootstrap.service.js +436 -0
- package/dist/src/services/environment/runtime-bootstrap.service.js.map +1 -0
- package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.d.ts +14 -0
- package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.js +65 -0
- package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.js.map +1 -0
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.js +41 -0
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.package-only.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.package-only.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.package-only.test.js +38 -0
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.package-only.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.service.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.service.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.service.test.js +181 -0
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.service.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.js +328 -0
- package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-application-guidance.validator.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-application-guidance.validator.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-application-guidance.validator.test.js +84 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-application-guidance.validator.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.js +232 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.js +1316 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.js +1224 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.js +504 -0
- package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.js +456 -0
- package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/framework-release.service.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/framework-release.service.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/framework-release.service.test.js +75 -0
- package/dist/src/services/framework/__tests__/framework-release.service.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/framework-secrets-writer.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/framework-secrets-writer.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/framework-secrets-writer.test.js +64 -0
- package/dist/src/services/framework/__tests__/framework-secrets-writer.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/framework-version.service.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/framework-version.service.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/framework-version.service.test.js +105 -0
- package/dist/src/services/framework/__tests__/framework-version.service.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/installed-framework-assets.service.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/installed-framework-assets.service.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/installed-framework-assets.service.test.js +60 -0
- package/dist/src/services/framework/__tests__/installed-framework-assets.service.test.js.map +1 -0
- package/dist/src/services/framework/framework-development-skills-sync.service.d.ts +67 -0
- package/dist/src/services/framework/framework-development-skills-sync.service.d.ts.map +1 -0
- package/dist/src/services/framework/framework-development-skills-sync.service.js +536 -0
- package/dist/src/services/framework/framework-development-skills-sync.service.js.map +1 -0
- package/dist/src/services/framework/framework-docker-publish.service.d.ts +82 -0
- package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -0
- package/dist/src/services/framework/framework-docker-publish.service.js +234 -0
- package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -0
- package/dist/src/services/framework/framework-knowledge-application-guidance.validator.d.ts +42 -0
- package/dist/src/services/framework/framework-knowledge-application-guidance.validator.d.ts.map +1 -0
- package/dist/src/services/framework/framework-knowledge-application-guidance.validator.js +214 -0
- package/dist/src/services/framework/framework-knowledge-application-guidance.validator.js.map +1 -0
- package/dist/src/services/framework/framework-knowledge-audit.service.d.ts +547 -0
- package/dist/src/services/framework/framework-knowledge-audit.service.d.ts.map +1 -0
- package/dist/src/services/framework/framework-knowledge-audit.service.js +2138 -0
- package/dist/src/services/framework/framework-knowledge-audit.service.js.map +1 -0
- package/dist/src/services/framework/framework-knowledge-generation.service.d.ts +181 -0
- package/dist/src/services/framework/framework-knowledge-generation.service.d.ts.map +1 -0
- package/dist/src/services/framework/framework-knowledge-generation.service.js +1794 -0
- package/dist/src/services/framework/framework-knowledge-generation.service.js.map +1 -0
- package/dist/src/services/framework/framework-knowledge-scan.constants.d.ts +11 -0
- package/dist/src/services/framework/framework-knowledge-scan.constants.d.ts.map +1 -0
- package/dist/src/services/framework/framework-knowledge-scan.constants.js +74 -0
- package/dist/src/services/framework/framework-knowledge-scan.constants.js.map +1 -0
- package/dist/src/services/framework/framework-npm-publish.service.d.ts +82 -0
- package/dist/src/services/framework/framework-npm-publish.service.d.ts.map +1 -0
- package/dist/src/services/framework/framework-npm-publish.service.js +365 -0
- package/dist/src/services/framework/framework-npm-publish.service.js.map +1 -0
- package/dist/src/services/framework/framework-publish-manifest.service.d.ts +111 -0
- package/dist/src/services/framework/framework-publish-manifest.service.d.ts.map +1 -0
- package/dist/src/services/framework/framework-publish-manifest.service.js +520 -0
- package/dist/src/services/framework/framework-publish-manifest.service.js.map +1 -0
- package/dist/src/services/framework/framework-release.service.d.ts +40 -0
- package/dist/src/services/framework/framework-release.service.d.ts.map +1 -0
- package/dist/src/services/framework/framework-release.service.js +104 -0
- package/dist/src/services/framework/framework-release.service.js.map +1 -0
- package/dist/src/services/framework/framework-version.service.d.ts +39 -0
- package/dist/src/services/framework/framework-version.service.d.ts.map +1 -0
- package/dist/src/services/framework/framework-version.service.js +200 -0
- package/dist/src/services/framework/framework-version.service.js.map +1 -0
- package/dist/src/services/framework/installed-framework-assets.service.d.ts +61 -0
- package/dist/src/services/framework/installed-framework-assets.service.d.ts.map +1 -0
- package/dist/src/services/framework/installed-framework-assets.service.js +87 -0
- package/dist/src/services/framework/installed-framework-assets.service.js.map +1 -0
- package/dist/src/services/frontend/__tests__/cloudflare-cdn.service.test.d.ts +2 -0
- package/dist/src/services/frontend/__tests__/cloudflare-cdn.service.test.d.ts.map +1 -0
- package/dist/src/services/frontend/__tests__/cloudflare-cdn.service.test.js +69 -0
- package/dist/src/services/frontend/__tests__/cloudflare-cdn.service.test.js.map +1 -0
- package/dist/src/services/frontend/__tests__/frontend-dist-uploader.service.test.d.ts +2 -0
- package/dist/src/services/frontend/__tests__/frontend-dist-uploader.service.test.d.ts.map +1 -0
- package/dist/src/services/frontend/__tests__/frontend-dist-uploader.service.test.js +52 -0
- package/dist/src/services/frontend/__tests__/frontend-dist-uploader.service.test.js.map +1 -0
- package/dist/src/services/frontend/__tests__/frontend-publish.service.test.d.ts +2 -0
- package/dist/src/services/frontend/__tests__/frontend-publish.service.test.d.ts.map +1 -0
- package/dist/src/services/frontend/__tests__/frontend-publish.service.test.js +129 -0
- package/dist/src/services/frontend/__tests__/frontend-publish.service.test.js.map +1 -0
- package/dist/src/services/frontend/cloudflare-cdn.service.d.ts +49 -0
- package/dist/src/services/frontend/cloudflare-cdn.service.d.ts.map +1 -0
- package/dist/src/services/frontend/cloudflare-cdn.service.js +84 -0
- package/dist/src/services/frontend/cloudflare-cdn.service.js.map +1 -0
- package/dist/src/services/frontend/frontend-dist-uploader.service.d.ts +62 -0
- package/dist/src/services/frontend/frontend-dist-uploader.service.d.ts.map +1 -0
- package/dist/src/services/frontend/frontend-dist-uploader.service.js +149 -0
- package/dist/src/services/frontend/frontend-dist-uploader.service.js.map +1 -0
- package/dist/src/services/frontend/frontend-publish.service.d.ts +70 -0
- package/dist/src/services/frontend/frontend-publish.service.d.ts.map +1 -0
- package/dist/src/services/frontend/frontend-publish.service.js +211 -0
- package/dist/src/services/frontend/frontend-publish.service.js.map +1 -0
- package/dist/src/services/generation/domain-generator.service.d.ts +11 -0
- package/dist/src/services/generation/domain-generator.service.d.ts.map +1 -0
- package/dist/src/services/generation/domain-generator.service.js +35 -0
- package/dist/src/services/generation/domain-generator.service.js.map +1 -0
- package/dist/src/services/generation/generator.schemas.d.ts +27 -0
- package/dist/src/services/generation/generator.schemas.d.ts.map +1 -0
- package/dist/src/services/generation/generator.schemas.js +4 -0
- package/dist/src/services/generation/generator.schemas.js.map +1 -0
- package/dist/src/services/generation/operation-generator.service.d.ts +11 -0
- package/dist/src/services/generation/operation-generator.service.d.ts.map +1 -0
- package/dist/src/services/generation/operation-generator.service.js +42 -0
- package/dist/src/services/generation/operation-generator.service.js.map +1 -0
- package/dist/src/services/generation/resource-generator.service.d.ts +11 -0
- package/dist/src/services/generation/resource-generator.service.d.ts.map +1 -0
- package/dist/src/services/generation/resource-generator.service.js +41 -0
- package/dist/src/services/generation/resource-generator.service.js.map +1 -0
- package/dist/src/services/generation/template-registry.service.d.ts +13 -0
- package/dist/src/services/generation/template-registry.service.d.ts.map +1 -0
- package/dist/src/services/generation/template-registry.service.js +25 -0
- package/dist/src/services/generation/template-registry.service.js.map +1 -0
- package/dist/src/services/registry/artifact-extractor.utils.d.ts +49 -0
- package/dist/src/services/registry/artifact-extractor.utils.d.ts.map +1 -0
- package/dist/src/services/registry/artifact-extractor.utils.js +146 -0
- package/dist/src/services/registry/artifact-extractor.utils.js.map +1 -0
- package/dist/src/services/registry/boundary-fanout.utils.d.ts +95 -0
- package/dist/src/services/registry/boundary-fanout.utils.d.ts.map +1 -0
- package/dist/src/services/registry/boundary-fanout.utils.js +178 -0
- package/dist/src/services/registry/boundary-fanout.utils.js.map +1 -0
- package/dist/src/services/registry/index.d.ts +7 -0
- package/dist/src/services/registry/index.d.ts.map +1 -0
- package/dist/src/services/registry/index.js +7 -0
- package/dist/src/services/registry/index.js.map +1 -0
- package/dist/src/services/registry/registry-command.utils.d.ts +90 -0
- package/dist/src/services/registry/registry-command.utils.d.ts.map +1 -0
- package/dist/src/services/registry/registry-command.utils.js +164 -0
- package/dist/src/services/registry/registry-command.utils.js.map +1 -0
- package/dist/src/services/registry/registry-config-resolver.service.d.ts +50 -0
- package/dist/src/services/registry/registry-config-resolver.service.d.ts.map +1 -0
- package/dist/src/services/registry/registry-config-resolver.service.js +88 -0
- package/dist/src/services/registry/registry-config-resolver.service.js.map +1 -0
- package/dist/src/services/registry/registry-credentials.service.d.ts +64 -0
- package/dist/src/services/registry/registry-credentials.service.d.ts.map +1 -0
- package/dist/src/services/registry/registry-credentials.service.js +171 -0
- package/dist/src/services/registry/registry-credentials.service.js.map +1 -0
- package/dist/src/services/registry/saas-root-required.error.d.ts +22 -0
- package/dist/src/services/registry/saas-root-required.error.d.ts.map +1 -0
- package/dist/src/services/registry/saas-root-required.error.js +26 -0
- package/dist/src/services/registry/saas-root-required.error.js.map +1 -0
- package/dist/src/services/security/__tests__/csp-boundary.test.d.ts +2 -0
- package/dist/src/services/security/__tests__/csp-boundary.test.d.ts.map +1 -0
- package/dist/src/services/security/__tests__/csp-boundary.test.js +99 -0
- package/dist/src/services/security/__tests__/csp-boundary.test.js.map +1 -0
- package/dist/src/services/security/__tests__/csp-sync.service.test.d.ts +2 -0
- package/dist/src/services/security/__tests__/csp-sync.service.test.d.ts.map +1 -0
- package/dist/src/services/security/__tests__/csp-sync.service.test.js +158 -0
- package/dist/src/services/security/__tests__/csp-sync.service.test.js.map +1 -0
- package/dist/src/services/security/csp-sync.service.d.ts +65 -0
- package/dist/src/services/security/csp-sync.service.d.ts.map +1 -0
- package/dist/src/services/security/csp-sync.service.js +294 -0
- package/dist/src/services/security/csp-sync.service.js.map +1 -0
- package/dist/src/services/tools/utility-tools.service.d.ts +47 -0
- package/dist/src/services/tools/utility-tools.service.d.ts.map +1 -0
- package/dist/src/services/tools/utility-tools.service.js +332 -0
- package/dist/src/services/tools/utility-tools.service.js.map +1 -0
- package/dist/src/services/website/website-structured-data-audit.service.d.ts +15 -0
- package/dist/src/services/website/website-structured-data-audit.service.d.ts.map +1 -0
- package/dist/src/services/website/website-structured-data-audit.service.js +125 -0
- package/dist/src/services/website/website-structured-data-audit.service.js.map +1 -0
- package/dist/src/test-utils/resolved-homes.test.utils.d.ts +4 -0
- package/dist/src/test-utils/resolved-homes.test.utils.d.ts.map +1 -0
- package/dist/src/test-utils/resolved-homes.test.utils.js +18 -0
- package/dist/src/test-utils/resolved-homes.test.utils.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/framework-root-package.json +270 -0
- package/package.json +431 -0
- package/scripts/app-dependency-alignment/propagated-engine-overrides.json +773 -0
- package/templates/config/app-backend-env.example.hbs +47 -0
- package/templates/infra/ci/README.md +36 -0
- package/templates/infra/ci/deploy-docker-compose.yml.hbs +103 -0
- package/templates/infra/ci/deploy-k8s.yml.hbs +114 -0
- package/templates/infra/ci/wildo-config-validation.yml.hbs +40 -0
- package/templates/infra/docker-compose/.env.example +24 -0
- package/templates/infra/docker-compose/docker-compose.app.yml.hbs +174 -0
- package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +1198 -0
- package/templates/infra/docker-images/application/.dockerignore +83 -0
- package/templates/infra/docker-images/backend/Dockerfile.backend-base +43 -0
- package/templates/infra/docker-images/backend/Dockerfile.backend-base-java +31 -0
- package/templates/infra/docker-images/platform/Dockerfile.platform-base +178 -0
- package/templates/infra/docker-images/platform/Dockerfile.platform-base.dockerignore +46 -0
- package/templates/infra/docker-images/platform/entrypoint.sh +191 -0
- package/templates/infra/docker-images/platform/verify-peers.mjs +67 -0
- package/templates/infra/k8s/applications/wildo-ai-application/backend.deployment.yaml.hbs +164 -0
- package/templates/infra/k8s/applications/wildo-ai-application/backend.immudb-audit-state.pvc.yaml.hbs +43 -0
- package/templates/infra/k8s/applications/wildo-ai-application/backend.service.yaml.hbs +31 -0
- package/templates/infra/k8s/applications/wildo-ai-application/frontend.deployment.yaml.hbs +117 -0
- package/templates/infra/k8s/applications/wildo-ai-application/frontend.service.yaml.hbs +27 -0
- package/templates/infra/k8s/applications/wildo-ai-application/ingress.yaml.hbs +59 -0
- package/templates/infra/k8s/applications/wildo-ai-application/minion.deployment.yaml.hbs +158 -0
- package/templates/infra/k8s/applications/wildo-ai-application/worker.deployment.yaml.hbs +145 -0
- package/templates/infra/k8s/applications/wildo-ai-application/worker.service.yaml.hbs +29 -0
- package/templates/infra/k8s/ingress/cert-manager/cluster-issuer.yaml.hbs +44 -0
- package/templates/infra/k8s/ingress/cert-manager/local/selfsigned-issuer.yaml +48 -0
- package/templates/infra/k8s/ingress/cert-manager/local/wildcard-certificate.yaml +24 -0
- package/templates/infra/k8s/ingress/cert-manager/wildcard-certificate.yaml.hbs +41 -0
- package/templates/infra/k8s/ingress/providers/scaleway-annotations.yaml.hbs +39 -0
- package/templates/infra/k8s/ingress/traefik/local/values.yaml +57 -0
- package/templates/infra/k8s/ingress/traefik/values.yaml.hbs +79 -0
- package/templates/infra/k8s/internal/clamav/deployment.yaml.hbs +96 -0
- package/templates/infra/k8s/internal/clamav/service.yaml.hbs +22 -0
- package/templates/infra/k8s/internal/gotenberg/deployment.yaml.hbs +46 -0
- package/templates/infra/k8s/internal/gotenberg/service.yaml.hbs +19 -0
- package/templates/infra/k8s/internal/immudb/deployment.yaml.hbs +153 -0
- package/templates/infra/k8s/internal/immudb/service.yaml.hbs +21 -0
- package/templates/infra/k8s/internal/minio/deployment.yaml.hbs +97 -0
- package/templates/infra/k8s/internal/minio/service.yaml.hbs +23 -0
- package/templates/infra/k8s/internal/mongodb/deployment.yaml.hbs +273 -0
- package/templates/infra/k8s/internal/mongodb/service.yaml.hbs +24 -0
- package/templates/infra/k8s/internal/mongot/configmap.yaml.hbs +53 -0
- package/templates/infra/k8s/internal/mongot/deployment.yaml.hbs +123 -0
- package/templates/infra/k8s/internal/mongot/service.yaml.hbs +33 -0
- package/templates/infra/k8s/internal/postgresql/configmap.yaml.hbs +46 -0
- package/templates/infra/k8s/internal/postgresql/deployment.yaml.hbs +131 -0
- package/templates/infra/k8s/internal/postgresql/service.yaml.hbs +19 -0
- package/templates/infra/k8s/internal/rabbitmq/deployment.yaml.hbs +105 -0
- package/templates/infra/k8s/internal/rabbitmq/service.yaml.hbs +23 -0
- package/templates/infra/k8s/internal/valkey/configmap.yaml.hbs +23 -0
- package/templates/infra/k8s/internal/valkey/deployment.yaml.hbs +129 -0
- package/templates/infra/k8s/internal/valkey/service.yaml.hbs +19 -0
- package/templates/infra/k8s/middleware.yaml.hbs +101 -0
- package/templates/infra/k8s/namespace.yaml.hbs +7 -0
- package/templates/infra/k8s/platform/platform-apps-manager/deployment.yaml.hbs +172 -0
- package/templates/infra/k8s/platform/platform-apps-manager/service.yaml +19 -0
- package/templates/infra/k8s/platform/platform-crontabs-batches-manager/deployment.yaml.hbs +161 -0
- package/templates/infra/k8s/platform/platform-crontabs-batches-manager/service.yaml +19 -0
- package/templates/infra/k8s/platform/platform-module-registry/deployment.yaml.hbs +161 -0
- package/templates/infra/k8s/platform/platform-module-registry/service.yaml +19 -0
- package/templates/infra/k8s/storage/local/persistent-volumes.yaml.hbs +221 -0
- package/templates/infra/k8s/storage/local/storage-class.yaml +74 -0
- package/templates/infra/k8s/tls-config.yaml.hbs +41 -0
- package/templates/infra/yara-rules/archives.yar +99 -0
- package/templates/infra/yara-rules/executables.yar +88 -0
- package/templates/infra/yara-rules/office_macros.yar +79 -0
- package/templates/infra/yara-rules/scripts.yar +103 -0
- package/templates/infra/yara-rules/webshells.yar +111 -0
- package/templates/infra/yara-service/Dockerfile +30 -0
- package/templates/infra/yara-service/api.py +236 -0
- package/templates/infra/yara-service/requirements.txt +3 -0
- package/templates/infra/yara-service/rules/archives.yar +99 -0
- package/templates/infra/yara-service/rules/executables.yar +88 -0
- package/templates/infra/yara-service/rules/office_macros.yar +79 -0
- package/templates/infra/yara-service/rules/scripts.yar +103 -0
- package/templates/infra/yara-service/rules/webshells.yar +111 -0
- package/templates/saas/engine-peer-closure.json +569 -0
- package/templates/saas/i18n/email/components/AlertBox.tsx +53 -0
- package/templates/saas/i18n/email/components/BodyText.tsx +25 -0
- package/templates/saas/i18n/email/components/Card.tsx +23 -0
- package/templates/saas/i18n/email/components/Divider.tsx +19 -0
- package/templates/saas/i18n/email/components/EmailFooter.tsx +47 -0
- package/templates/saas/i18n/email/components/EmailHeader.tsx +37 -0
- package/templates/saas/i18n/email/components/EmailLayout.tsx +52 -0
- package/templates/saas/i18n/email/components/HeadingText.tsx +27 -0
- package/templates/saas/i18n/email/components/InfoRow.tsx +43 -0
- package/templates/saas/i18n/email/components/OtpCodeDisplay.tsx +35 -0
- package/templates/saas/i18n/email/components/PrimaryButton.tsx +30 -0
- package/templates/saas/i18n/email/components/SecondaryButton.tsx +31 -0
- package/templates/saas/i18n/email/components/index.ts +35 -0
- package/templates/saas/i18n/email/email-template-definitions.ts +46 -0
- package/templates/saas/i18n/email/index.ts +2 -0
- package/templates/saas/i18n/email/resources/applicationApiKeys/create.application-administrator/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applicationApiKeys/create.application-administrator/template.tsx +49 -0
- package/templates/saas/i18n/email/resources/applicationApiKeys/deactivate.application-administrator/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applicationApiKeys/deactivate.application-administrator/template.tsx +49 -0
- package/templates/saas/i18n/email/resources/applicationApiKeys/reactivate.application-administrator/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applicationApiKeys/reactivate.application-administrator/template.tsx +49 -0
- package/templates/saas/i18n/email/resources/applicationApiKeys/regenerate.application-administrator/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applicationApiKeys/regenerate.application-administrator/template.tsx +49 -0
- package/templates/saas/i18n/email/resources/applicationApiKeys/rotate.application-administrator/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applicationApiKeys/rotate.application-administrator/template.tsx +49 -0
- package/templates/saas/i18n/email/resources/applicationOAuthClients/create.application-administrator/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applicationOAuthClients/create.application-administrator/template.tsx +53 -0
- package/templates/saas/i18n/email/resources/applicationOAuthClients/regenerate.application-administrator/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applicationOAuthClients/regenerate.application-administrator/template.tsx +53 -0
- package/templates/saas/i18n/email/resources/applicationOAuthClients/rotate.application-administrator/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applicationOAuthClients/rotate.application-administrator/template.tsx +53 -0
- package/templates/saas/i18n/email/resources/applicationVersions/create.organization-administrative/labels.en.ts +16 -0
- package/templates/saas/i18n/email/resources/applicationVersions/create.organization-administrative/template.tsx +60 -0
- package/templates/saas/i18n/email/resources/applicationVersions/delete.organization-administrative/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/applicationVersions/delete.organization-administrative/template.tsx +48 -0
- package/templates/saas/i18n/email/resources/applicationVersions/deprecate.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applicationVersions/deprecate.organization-administrative/template.tsx +51 -0
- package/templates/saas/i18n/email/resources/applicationVersions/promote.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applicationVersions/promote.organization-administrative/template.tsx +51 -0
- package/templates/saas/i18n/email/resources/applicationVersions/rollback.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applicationVersions/rollback.organization-administrative/template.tsx +51 -0
- package/templates/saas/i18n/email/resources/applications/create.admin.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applications/create.admin.organization-administrative/template.tsx +51 -0
- package/templates/saas/i18n/email/resources/applications/create.organization-administrative/labels.en.ts +16 -0
- package/templates/saas/i18n/email/resources/applications/create.organization-administrative/template.tsx +61 -0
- package/templates/saas/i18n/email/resources/applications/delete.admin.organization-administrative/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/applications/delete.admin.organization-administrative/template.tsx +48 -0
- package/templates/saas/i18n/email/resources/applications/delete.organization-administrative/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/applications/delete.organization-administrative/template.tsx +48 -0
- package/templates/saas/i18n/email/resources/applications/transfer.admin.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applications/transfer.admin.organization-administrative/template.tsx +51 -0
- package/templates/saas/i18n/email/resources/applications/transfer.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applications/transfer.organization-administrative/template.tsx +51 -0
- package/templates/saas/i18n/email/resources/applications/update.admin.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applications/update.admin.organization-administrative/template.tsx +51 -0
- package/templates/saas/i18n/email/resources/applications/update.organization-administrative/labels.en.ts +16 -0
- package/templates/saas/i18n/email/resources/applications/update.organization-administrative/template.tsx +61 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/create.admin.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/create.admin.organization-administrative/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/create.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/create.organization-administrative/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/deactivate.admin.organization-administrative/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/deactivate.admin.organization-administrative/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/deactivate.organization-administrative/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/deactivate.organization-administrative/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/delete.admin.organization-administrative/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/delete.admin.organization-administrative/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/delete.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/delete.organization-administrative/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/reactivate.admin.organization-administrative/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/reactivate.admin.organization-administrative/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/reactivate.organization-administrative/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/reactivate.organization-administrative/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/regenerate.admin.organization-administrative/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/regenerate.admin.organization-administrative/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/regenerate.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/regenerate.organization-administrative/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/rotate.admin.organization-administrative/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/rotate.admin.organization-administrative/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/rotate.organization-administrative/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/rotate.organization-administrative/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/organizationFeatures/disable_feature.organization-users/labels.en.ts +22 -0
- package/templates/saas/i18n/email/resources/organizationFeatures/disable_feature.organization-users/template.tsx +80 -0
- package/templates/saas/i18n/email/resources/organizationFeatures/enable_feature.organization-users/labels.en.ts +22 -0
- package/templates/saas/i18n/email/resources/organizationFeatures/enable_feature.organization-users/template.tsx +80 -0
- package/templates/saas/i18n/email/resources/organizationFeatures/reset_features.organization-administrative/labels.en.ts +16 -0
- package/templates/saas/i18n/email/resources/organizationFeatures/reset_features.organization-administrative/template.tsx +48 -0
- package/templates/saas/i18n/email/resources/organizationFeatures/update.organization-users/labels.en.ts +22 -0
- package/templates/saas/i18n/email/resources/organizationFeatures/update.organization-users/template.tsx +80 -0
- package/templates/saas/i18n/email/resources/organizationMembers/create.user-self/labels.en.ts +30 -0
- package/templates/saas/i18n/email/resources/organizationMembers/create.user-self/template.tsx +84 -0
- package/templates/saas/i18n/email/resources/organizationMembers/delete.organization-users/labels.en.ts +20 -0
- package/templates/saas/i18n/email/resources/organizationMembers/delete.organization-users/template.tsx +77 -0
- package/templates/saas/i18n/email/resources/organizationMembers/grantOwnership.organization-users/labels.en.ts +22 -0
- package/templates/saas/i18n/email/resources/organizationMembers/grantOwnership.organization-users/template.tsx +73 -0
- package/templates/saas/i18n/email/resources/organizationMembers/reactivate.organization-users/labels.en.ts +20 -0
- package/templates/saas/i18n/email/resources/organizationMembers/reactivate.organization-users/template.tsx +77 -0
- package/templates/saas/i18n/email/resources/organizationMembers/reactivate.user-self/labels.en.ts +19 -0
- package/templates/saas/i18n/email/resources/organizationMembers/reactivate.user-self/template.tsx +53 -0
- package/templates/saas/i18n/email/resources/organizationMembers/resend.user-self/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/organizationMembers/resend.user-self/template.tsx +63 -0
- package/templates/saas/i18n/email/resources/organizationMembers/revoke.user-self_admin/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/organizationMembers/revoke.user-self_admin/template.tsx +49 -0
- package/templates/saas/i18n/email/resources/organizationMembers/revoke.user-self_invitee/labels.en.ts +17 -0
- package/templates/saas/i18n/email/resources/organizationMembers/revoke.user-self_invitee/template.tsx +49 -0
- package/templates/saas/i18n/email/resources/organizationMembers/suspend.organization-users/labels.en.ts +20 -0
- package/templates/saas/i18n/email/resources/organizationMembers/suspend.organization-users/template.tsx +77 -0
- package/templates/saas/i18n/email/resources/organizationMembers/suspend.user-self/labels.en.ts +17 -0
- package/templates/saas/i18n/email/resources/organizationMembers/suspend.user-self/template.tsx +43 -0
- package/templates/saas/i18n/email/resources/organizationMembers/update.organization-users/labels.en.ts +20 -0
- package/templates/saas/i18n/email/resources/organizationMembers/update.organization-users/template.tsx +77 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/create.admin.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/create.admin.organization-administrative/template.tsx +53 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/create.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/create.organization-administrative/template.tsx +53 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/delete.admin.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/delete.admin.organization-administrative/template.tsx +53 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/delete.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/delete.organization-administrative/template.tsx +53 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/regenerate.admin.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/regenerate.admin.organization-administrative/template.tsx +53 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/regenerate.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/regenerate.organization-administrative/template.tsx +53 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/rotate.admin.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/rotate.admin.organization-administrative/template.tsx +53 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/rotate.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/rotate.organization-administrative/template.tsx +53 -0
- package/templates/saas/i18n/email/resources/organizationUnits/archive.organization-administrative/labels.en.ts +16 -0
- package/templates/saas/i18n/email/resources/organizationUnits/archive.organization-administrative/template.tsx +61 -0
- package/templates/saas/i18n/email/resources/organizationUnits/create.organization-administrative/labels.en.ts +16 -0
- package/templates/saas/i18n/email/resources/organizationUnits/create.organization-administrative/template.tsx +61 -0
- package/templates/saas/i18n/email/resources/organizationUnits/delete.organization-administrative/labels.en.ts +15 -0
- package/templates/saas/i18n/email/resources/organizationUnits/delete.organization-administrative/template.tsx +58 -0
- package/templates/saas/i18n/email/resources/organizationUnits/move.organization-administrative/labels.en.ts +16 -0
- package/templates/saas/i18n/email/resources/organizationUnits/move.organization-administrative/template.tsx +61 -0
- package/templates/saas/i18n/email/resources/organizationUnits/restore.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/organizationUnits/restore.organization-administrative/template.tsx +51 -0
- package/templates/saas/i18n/email/resources/organizationUnits/update.organization-administrative/labels.en.ts +16 -0
- package/templates/saas/i18n/email/resources/organizationUnits/update.organization-administrative/template.tsx +61 -0
- package/templates/saas/i18n/email/resources/organizations/activate.organization-administrative/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/organizations/activate.organization-administrative/template.tsx +49 -0
- package/templates/saas/i18n/email/resources/organizations/create.admin.user-self/labels.en.ts +15 -0
- package/templates/saas/i18n/email/resources/organizations/create.admin.user-self/template.tsx +54 -0
- package/templates/saas/i18n/email/resources/organizations/create.user-self/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/organizations/create.user-self/template.tsx +52 -0
- package/templates/saas/i18n/email/resources/organizations/request_deletion.admin.organization-users/labels.en.ts +16 -0
- package/templates/saas/i18n/email/resources/organizations/request_deletion.admin.organization-users/template.tsx +48 -0
- package/templates/saas/i18n/email/resources/organizations/request_deletion.organization-users/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/organizations/request_deletion.organization-users/template.tsx +48 -0
- package/templates/saas/i18n/email/resources/organizations/restore.organization-users/labels.en.ts +11 -0
- package/templates/saas/i18n/email/resources/organizations/restore.organization-users/template.tsx +39 -0
- package/templates/saas/i18n/email/resources/organizations/suspend.organization-users/labels.en.ts +11 -0
- package/templates/saas/i18n/email/resources/organizations/suspend.organization-users/template.tsx +37 -0
- package/templates/saas/i18n/email/resources/organizations/update.admin.organization-administrative/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/organizations/update.admin.organization-administrative/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/organizations/update.organization-administrative/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/organizations/update.organization-administrative/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/platformAccessGrants/requestAccess.organization-users/labels.en.ts +39 -0
- package/templates/saas/i18n/email/resources/platformAccessGrants/requestAccess.organization-users/template.tsx +102 -0
- package/templates/saas/i18n/email/resources/user_self/deactivate_account.user-self/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/user_self/deactivate_account.user-self/template.tsx +46 -0
- package/templates/saas/i18n/email/resources/user_self/reactivate_account.user-self/labels.en.ts +12 -0
- package/templates/saas/i18n/email/resources/user_self/reactivate_account.user-self/template.tsx +46 -0
- package/templates/saas/i18n/email/resources/users/assign_roles.application-administrator/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/users/assign_roles.application-administrator/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/users/create.application-administrator/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/users/create.application-administrator/template.tsx +56 -0
- package/templates/saas/i18n/email/resources/users/delete.application-administrator/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/users/delete.application-administrator/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/users/force_password_reset.application-administrator/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/users/force_password_reset.application-administrator/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/users/revoke_roles.application-administrator/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/users/revoke_roles.application-administrator/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/users/send_invitation.application-administrator/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/users/send_invitation.application-administrator/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/users/suspend_user.application-administrator/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/users/suspend_user.application-administrator/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/users/unsuspend_user.application-administrator/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/users/unsuspend_user.application-administrator/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/users/update.application-administrator/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/users/update.application-administrator/template.tsx +50 -0
- package/templates/saas/i18n/email/system/email-otp/labels.en.ts +10 -0
- package/templates/saas/i18n/email/system/email-otp/template.tsx +44 -0
- package/templates/saas/i18n/email/system/email-verification/labels.en.ts +11 -0
- package/templates/saas/i18n/email/system/email-verification/template.tsx +39 -0
- package/templates/saas/i18n/email/system/magic-link/labels.en.ts +10 -0
- package/templates/saas/i18n/email/system/magic-link/template.tsx +44 -0
- package/templates/saas/i18n/email/system/new-device-login/labels.en.ts +18 -0
- package/templates/saas/i18n/email/system/new-device-login/template.tsx +62 -0
- package/templates/saas/i18n/email/system/organization-invitation/labels.en.ts +15 -0
- package/templates/saas/i18n/email/system/organization-invitation/template.tsx +65 -0
- package/templates/saas/i18n/email/system/organization-member-removed/labels.en.ts +14 -0
- package/templates/saas/i18n/email/system/organization-member-removed/template.tsx +54 -0
- package/templates/saas/i18n/email/system/password-reset/labels.en.ts +10 -0
- package/templates/saas/i18n/email/system/password-reset/template.tsx +42 -0
- package/templates/saas/i18n/email/system/payment-failed/labels.en.ts +16 -0
- package/templates/saas/i18n/email/system/payment-failed/template.tsx +59 -0
- package/templates/saas/i18n/email/system/security-alert/labels.en.ts +16 -0
- package/templates/saas/i18n/email/system/security-alert/template.tsx +71 -0
- package/templates/saas/i18n/email/system/subscription-cancelled/labels.en.ts +15 -0
- package/templates/saas/i18n/email/system/subscription-cancelled/template.tsx +56 -0
- package/templates/saas/i18n/email/system/subscription-confirmation/labels.en.ts +14 -0
- package/templates/saas/i18n/email/system/subscription-confirmation/template.tsx +59 -0
- package/templates/saas/i18n/email/system/welcome-email/labels.en.ts +15 -0
- package/templates/saas/i18n/email/system/welcome-email/template.tsx +42 -0
- package/templates/saas/scenarios/add-backend-provider/scenario.json +17 -0
- package/templates/saas/scenarios/add-custom-operation/files/backend-api/src/modules/__moduleDir__/resources/__resourceDir__/__resourceDir__.__operationIdentifier__.default.operation.ts.hbs +36 -0
- package/templates/saas/scenarios/add-custom-operation/scenario.json +61 -0
- package/templates/saas/scenarios/add-environment/files/infrastructure/__envName__/wildo.infra.remote.config.ts.hbs +73 -0
- package/templates/saas/scenarios/add-environment/scenario.json +53 -0
- package/templates/saas/scenarios/add-file-picker-provider/files/frontend/src/engine/providers/__providerRef__.frontend-app.module.ts.hbs +27 -0
- package/templates/saas/scenarios/add-file-picker-provider/scenario.json +27 -0
- package/templates/saas/scenarios/add-locale/files/website/src/i18n/__localePath__.json.hbs +18 -0
- package/templates/saas/scenarios/add-locale/files/website/src/pages/__localePath__/index.astro +52 -0
- package/templates/saas/scenarios/add-locale/scenario.json +19 -0
- package/templates/saas/scenarios/add-marketing-page/files/website/src/pages/__pageRef__.astro.hbs +52 -0
- package/templates/saas/scenarios/add-marketing-page/files/website/src/pages-impl/__pageRef__.bridge.tsx.hbs +22 -0
- package/templates/saas/scenarios/add-marketing-page/files/website/src/pages-impl/__pageRef__.page.tsx.hbs +49 -0
- package/templates/saas/scenarios/add-marketing-page/files/website/src/sections/__pageRef__.sections.tsx.hbs +59 -0
- package/templates/saas/scenarios/add-marketing-page/scenario.json +38 -0
- package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/Dockerfile.hbs +20 -0
- package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/package.json.hbs +42 -0
- package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/src/application-initialization.ts.hbs +81 -0
- package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/src/companion-exports.ts.hbs +15 -0
- package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/src/index.ts.hbs +135 -0
- package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/src/minion-init.ts.hbs +39 -0
- package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/tsconfig.build.json +12 -0
- package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/tsconfig.json +16 -0
- package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/wildo.minion.config.ts.hbs +33 -0
- package/templates/saas/scenarios/add-minion/scenario.json +27 -0
- package/templates/saas/scenarios/add-module/files/backend-api/src/modules/__moduleId__/addons/container.ts.hbs +9 -0
- package/templates/saas/scenarios/add-module/files/backend-api/src/modules/__moduleId__/addons/container.types.ts.hbs +2 -0
- package/templates/saas/scenarios/add-module/files/backend-api/src/modules/__moduleId__/addons/controllers/index.ts.hbs +12 -0
- package/templates/saas/scenarios/add-module/files/backend-api/src/modules/__moduleId__/addons/services/index.ts.hbs +8 -0
- package/templates/saas/scenarios/add-module/files/backend-api/src/modules/__moduleId__/index.ts.hbs +17 -0
- package/templates/saas/scenarios/add-module/files/backend-api/src/modules/__moduleId__/resources/index.ts +9 -0
- package/templates/saas/scenarios/add-module/files/frontend/src/modules/__moduleId__/app-level-views/index.ts.hbs +11 -0
- package/templates/saas/scenarios/add-module/files/frontend/src/modules/__moduleId__/app-level-views/view-refs.frontend.ts.hbs +6 -0
- package/templates/saas/scenarios/add-module/files/frontend/src/modules/__moduleId__/app-shell.module.frontend.ts.hbs +33 -0
- package/templates/saas/scenarios/add-module/files/frontend/src/modules/__moduleId__/index.ts.hbs +14 -0
- package/templates/saas/scenarios/add-module/files/frontend/src/modules/__moduleId__/resources/index.ts.hbs +11 -0
- package/templates/saas/scenarios/add-module/files/shared-lib/src/modules/__moduleId__/index.ts.hbs +16 -0
- package/templates/saas/scenarios/add-module/files/shared-lib/src/modules/__moduleId__/resources/__moduleId__.relationships.ts.hbs +27 -0
- package/templates/saas/scenarios/add-module/files/shared-lib/src/modules/__moduleId__/resources/__moduleId__.resource-configs.ts.hbs +17 -0
- package/templates/saas/scenarios/add-module/files/shared-lib/src/modules/__moduleId__/resources/__moduleId__.resources-types.ts.hbs +10 -0
- package/templates/saas/scenarios/add-module/files/shared-lib/src/modules/__moduleId__/resources/index.ts.hbs +7 -0
- package/templates/saas/scenarios/add-module/files/specifications/src/modules/__moduleId__/chart-view-specifications.ts.hbs +12 -0
- package/templates/saas/scenarios/add-module/files/specifications/src/modules/__moduleId__/composite-views/index.ts.hbs +4 -0
- package/templates/saas/scenarios/add-module/files/specifications/src/modules/__moduleId__/execution-view-specifications.ts.hbs +11 -0
- package/templates/saas/scenarios/add-module/files/specifications/src/modules/__moduleId__/index.ts.hbs +31 -0
- package/templates/saas/scenarios/add-module/files/specifications/src/modules/__moduleId__/resources/index.ts.hbs +10 -0
- package/templates/saas/scenarios/add-module/scenario.json +69 -0
- package/templates/saas/scenarios/add-resource/files/shared-lib/src/modules/__moduleId__/resources/__resourceDir__/__resourceDir__.resources-config.ts.hbs +86 -0
- package/templates/saas/scenarios/add-resource/files/shared-lib/src/modules/__moduleId__/resources/__resourceDir__/__resourceDir__.schemas.ts.hbs +26 -0
- package/templates/saas/scenarios/add-resource/files/specifications/src/modules/__moduleId__/resources/__resourceDir__.resource.specification.ts.hbs +126 -0
- package/templates/saas/scenarios/add-resource/scenario.json +149 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/docusaurus.config.ts.hbs +288 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/nginx-config/README.md +195 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/nginx-config/basic.conf +20 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/nginx-config/directive-only/cross-domain-insecure.conf +12 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/nginx-config/location/cross-domain-fonts.conf.hbs +40 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/nginx-config/location/protect-system-files.conf +20 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/nginx-config/mime.types +108 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/nginx-config/nginx.conf +91 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/nginx-config/sites-enabled/default.hbs +112 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/package.json.hbs +56 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/scripts/verify-api-reference-conservation.ts +110 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/scripts/wait-for-publication.mjs +54 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/companion-exports.ts +16 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/components/VerifiedApiReference.tsx +72 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/csp.config.ts +89 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/css/custom.css +951 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/generated/csp.generated.json.hbs +13 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/generated-consumer-documentation.ts +41 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/pages/api/application-administration.tsx +5 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/pages/api/index.tsx +5 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/pages/index.tsx +12 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/pages/search.tsx.hbs +83 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/theme/Root.tsx +10 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/theme/SearchBar/index.tsx +38 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/favicon.png +0 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/favicon.svg +11 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/logo.png +0 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/logo.svg +11 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/tsconfig.json +27 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/wildo.tech-doc.config.ts.hbs +87 -0
- package/templates/saas/scenarios/add-technical-doc/scenario.json +27 -0
- package/templates/saas/scenarios/add-website/files/website/astro.config.ts.hbs +103 -0
- package/templates/saas/scenarios/add-website/files/website/nginx-config/default.conf.hbs +15 -0
- package/templates/saas/scenarios/add-website/files/website/package.json.hbs +32 -0
- package/templates/saas/scenarios/add-website/files/website/src/api-origin.ts.hbs +25 -0
- package/templates/saas/scenarios/add-website/files/website/src/app-origin.ts.hbs +21 -0
- package/templates/saas/scenarios/add-website/files/website/src/companion-exports.ts +7 -0
- package/templates/saas/scenarios/add-website/files/website/src/components/FooterComponent.tsx.hbs +63 -0
- package/templates/saas/scenarios/add-website/files/website/src/components/HeaderComponent.tsx +119 -0
- package/templates/saas/scenarios/add-website/files/website/src/components/index.ts +20 -0
- package/templates/saas/scenarios/add-website/files/website/src/csp.config.ts +40 -0
- package/templates/saas/scenarios/add-website/files/website/src/env.d.ts +1 -0
- package/templates/saas/scenarios/add-website/files/website/src/generated/csp.generated.json.hbs +11 -0
- package/templates/saas/scenarios/add-website/files/website/src/head-assets.ts +22 -0
- package/templates/saas/scenarios/add-website/files/website/src/i18n/en.json.hbs +18 -0
- package/templates/saas/scenarios/add-website/files/website/src/pages/index.astro +52 -0
- package/templates/saas/scenarios/add-website/files/website/src/pages/robots.txt.ts +30 -0
- package/templates/saas/scenarios/add-website/files/website/src/pages-impl/landing.bridge.tsx +34 -0
- package/templates/saas/scenarios/add-website/files/website/src/pages-impl/landing.page.tsx +50 -0
- package/templates/saas/scenarios/add-website/files/website/src/provider-contributions.ts +10 -0
- package/templates/saas/scenarios/add-website/files/website/src/sections/index.ts +59 -0
- package/templates/saas/scenarios/add-website/files/website/src/sections/landing.sections.tsx +76 -0
- package/templates/saas/scenarios/add-website/files/website/src/site.constants.ts.hbs +15 -0
- package/templates/saas/scenarios/add-website/files/website/src/styles/website.css +441 -0
- package/templates/saas/scenarios/add-website/files/website/src/website-root.config.ts.hbs +126 -0
- package/templates/saas/scenarios/add-website/files/website/src/website-site-context.ts +81 -0
- package/templates/saas/scenarios/add-website/files/website/tsconfig.json +12 -0
- package/templates/saas/scenarios/add-website/files/website/wildo.website.config.ts.hbs +32 -0
- package/templates/saas/scenarios/add-website/scenario.json +25 -0
- package/templates/saas/scenarios/add-website-section/scenario.json +43 -0
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/Dockerfile.hbs +19 -0
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/package.json.hbs +40 -0
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/src/companion-exports.ts.hbs +17 -0
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/src/index.ts.hbs +180 -0
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/tsconfig.build.json +12 -0
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/tsconfig.json +16 -0
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/wildo.worker.config.ts.hbs +38 -0
- package/templates/saas/scenarios/add-worker-node/scenario.json +24 -0
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/Cargo.toml.hbs +21 -0
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/Dockerfile.hbs +21 -0
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/src/main.rs.hbs +408 -0
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/wildo.worker.config.ts.hbs +41 -0
- package/templates/saas/scenarios/add-worker-rust/scenario.json +22 -0
- package/templates/saas/skeleton/.wildo-saas/application-creation-workbench/package.json.hbs +10 -0
- package/templates/saas/skeleton/.wildo-saas/application-creation-workbench/scripts/dev-supervised.sh.hbs +161 -0
- package/templates/saas/skeleton/.wildo-saas/dev-framework-scripts/resolve-home-path.mts +62 -0
- package/templates/saas/skeleton/.wildo-saas/dev-framework-scripts/sync-engine.sh +552 -0
- package/templates/saas/skeleton/.wildo-saas/wildo-dev-companion/scripts/dev-supervised.sh +75 -0
- package/templates/saas/skeleton/CLAUDE.md.hbs +82 -0
- package/templates/saas/skeleton/backend-api/package.json.hbs +50 -0
- package/templates/saas/skeleton/backend-api/scripts/dev-supervised.sh.hbs +116 -0
- package/templates/saas/skeleton/backend-api/src/backend-owned-module.ts +8 -0
- package/templates/saas/skeleton/backend-api/src/bootstrap-config.ts +51 -0
- package/templates/saas/skeleton/backend-api/src/companion-exports.ts +37 -0
- package/templates/saas/skeleton/backend-api/src/engine/email/email-template-definitions.ts +46 -0
- package/templates/saas/skeleton/backend-api/src/engine/email/index.ts +2 -0
- package/templates/saas/skeleton/backend-api/src/engine/i18n/index.ts +30 -0
- package/templates/saas/skeleton/backend-api/src/engine/index.ts +16 -0
- package/templates/saas/skeleton/backend-api/src/engine/resources/index.ts +8 -0
- package/templates/saas/skeleton/backend-api/src/index.ts +99 -0
- package/templates/saas/skeleton/backend-api/src/modules/index.ts +21 -0
- package/templates/saas/skeleton/backend-api/src/modules-registry.backend.ts.hbs +71 -0
- package/templates/saas/skeleton/backend-api/src/provider-contributions.ts +44 -0
- package/templates/saas/skeleton/backend-api/src/saas-config.backend.ts.hbs +165 -0
- package/templates/saas/skeleton/backend-api/tsconfig.build.json +14 -0
- package/templates/saas/skeleton/backend-api/tsconfig.json.hbs +24 -0
- package/templates/saas/skeleton/backend-api/tsconfig.runtime.json.hbs +12 -0
- package/templates/saas/skeleton/frontend/Dockerfile +25 -0
- package/templates/saas/skeleton/frontend/index.html.hbs +57 -0
- package/templates/saas/skeleton/frontend/nginx-config/default.conf.hbs +15 -0
- package/templates/saas/skeleton/frontend/package.json.hbs +83 -0
- package/templates/saas/skeleton/frontend/scripts/dev-supervised.sh +129 -0
- package/templates/saas/skeleton/frontend/src/__tests__/setup.ts.hbs +156 -0
- package/templates/saas/skeleton/frontend/src/__tests__/vitest-jsdom-globals-setup.mjs +120 -0
- package/templates/saas/skeleton/frontend/src/browser-bootstrap/__tests__/first-paint-ownership.test.ts +41 -0
- package/templates/saas/skeleton/frontend/src/browser-bootstrap/app-shell-bootstrap.ts +46 -0
- package/templates/saas/skeleton/frontend/src/companion-exports.ts.hbs +60 -0
- package/templates/saas/skeleton/frontend/src/config/app-shell.config.ts +184 -0
- package/templates/saas/skeleton/frontend/src/config/design-system.config.ts +169 -0
- package/templates/saas/skeleton/frontend/src/config/global-views.config.ts +91 -0
- package/templates/saas/skeleton/frontend/src/config/index.ts +5 -0
- package/templates/saas/skeleton/frontend/src/config/navigation.config.ts +100 -0
- package/templates/saas/skeleton/frontend/src/config/settings-hub.config.ts +49 -0
- package/templates/saas/skeleton/frontend/src/csp.config.ts +37 -0
- package/templates/saas/skeleton/frontend/src/engine/app-level-views/app-level-views.definitions.module.frontend.ts +133 -0
- package/templates/saas/skeleton/frontend/src/engine/app-shell.module.frontend.ts +17 -0
- package/templates/saas/skeleton/frontend/src/engine/component-registrations.frontend.ts +42 -0
- package/templates/saas/skeleton/frontend/src/engine/index.ts +15 -0
- package/templates/saas/skeleton/frontend/src/engine/providers/index.ts +10 -0
- package/templates/saas/skeleton/frontend/src/engine/resources/resource-ui-behavior.frontend.ts +14 -0
- package/templates/saas/skeleton/frontend/src/generated/csp.generated.json.hbs +13 -0
- package/templates/saas/skeleton/frontend/src/index.css.hbs +714 -0
- package/templates/saas/skeleton/frontend/src/main.tsx +13 -0
- package/templates/saas/skeleton/frontend/src/modules/index.ts +17 -0
- package/templates/saas/skeleton/frontend/src/modules-registry.frontend.ts.hbs +76 -0
- package/templates/saas/skeleton/frontend/src/provider-contributions.ts.hbs +17 -0
- package/templates/saas/skeleton/frontend/src/vite-env.d.ts +1 -0
- package/templates/saas/skeleton/frontend/tsconfig.json.hbs +49 -0
- package/templates/saas/skeleton/frontend/tsconfig.library.json +39 -0
- package/templates/saas/skeleton/frontend/tsconfig.node.json +11 -0
- package/templates/saas/skeleton/frontend/vite.config.ts.hbs +439 -0
- package/templates/saas/skeleton/gitignore +75 -0
- package/templates/saas/skeleton/infrastructure/local/wildo.infra.local.config.ts.hbs +49 -0
- package/templates/saas/skeleton/shared-lib/package.json.hbs +48 -0
- package/templates/saas/skeleton/shared-lib/src/companion-exports.ts +19 -0
- package/templates/saas/skeleton/shared-lib/src/engine/features.ts +82 -0
- package/templates/saas/skeleton/shared-lib/src/engine/index.ts +27 -0
- package/templates/saas/skeleton/shared-lib/src/engine/milestones.ts +16 -0
- package/templates/saas/skeleton/shared-lib/src/engine/product.ts +18 -0
- package/templates/saas/skeleton/shared-lib/src/engine/roles.ts +8 -0
- package/templates/saas/skeleton/shared-lib/src/index.ts +11 -0
- package/templates/saas/skeleton/shared-lib/src/modules-registry.shared.ts +29 -0
- package/templates/saas/skeleton/shared-lib/tsconfig.build.json.hbs +24 -0
- package/templates/saas/skeleton/shared-lib/tsconfig.json.hbs +19 -0
- package/templates/saas/skeleton/specifications/package.json.hbs +43 -0
- package/templates/saas/skeleton/specifications/src/companion-exports.ts +37 -0
- package/templates/saas/skeleton/specifications/src/engine/engine.all-modules.specifications.ts +7 -0
- package/templates/saas/skeleton/specifications/src/index.ts +12 -0
- package/templates/saas/skeleton/specifications/src/module-registry.specification.ts.hbs +28 -0
- package/templates/saas/skeleton/specifications/tsconfig.build.json +11 -0
- package/templates/saas/skeleton/specifications/tsconfig.json +12 -0
- package/templates/saas/skeleton/tsconfig-saas.json +20 -0
- package/templates/saas/skeleton/tsconfig.common.json +60 -0
- package/templates/saas/skeleton/turbo.json +17 -0
- package/templates/saas/skeleton/wildo.saas.config.ts.init.hbs +135 -0
- package/wildo-framework.info.json +5 -0
|
@@ -0,0 +1,1794 @@
|
|
|
1
|
+
import { existsSync, cpSync, lstatSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, writeFileSync } from 'node:fs';
|
|
2
|
+
import { dirname, extname, isAbsolute, join, normalize, relative, resolve } from 'node:path';
|
|
3
|
+
import { globSync } from 'glob';
|
|
4
|
+
import ts from 'typescript';
|
|
5
|
+
import { resolveFrameworkLayout } from '@wildo-ai/platform-config-lib';
|
|
6
|
+
import { FrameworkKnowledgePlaybookSourceFormat } from '@wildo-ai/framework-knowledge';
|
|
7
|
+
import { canonicalizeMetaWorkflowJson, compileMetaWorkflowEvaluationTreatmentDefinition, compileMetaWorkflowStructuredArtifactActionDefinition, computeMetaWorkflowRawByteDigest, createStandardMetaWorkflowEvaluationCompilationDependencies, } from '@wildo-ai/saas-backend-lib';
|
|
8
|
+
import { createApplicationCreationStructuredArtifactActionCompilationDependencies, } from '@wildo-ai/application-creation-runtime';
|
|
9
|
+
/*
|
|
10
|
+
* Namespace imports, not named ones: the vocabularies a playbook may import are DERIVED from each
|
|
11
|
+
* module's own exports (see `PLAYBOOK_AUTHORING_RUNTIME_VALUES`) rather than restated here, so an enum
|
|
12
|
+
* added beside a playbook that uses it is admitted the moment it is exported.
|
|
13
|
+
*/
|
|
14
|
+
import * as SaasModelsRuntimeNamespace from '@wildo-ai/saas-models';
|
|
15
|
+
import * as MetaWorkflowRuntimeNamespace from '@wildo-ai/saas-models/meta-workflows';
|
|
16
|
+
import * as ApplicationCreationRuntimeNamespace from '@wildo-ai/saas-specifications/application-creation';
|
|
17
|
+
import * as ApplicationCreationPlaybookRuntimeNamespace from '@wildo-ai/saas-specifications/application-creation-playbook-runtime';
|
|
18
|
+
import { MetaWorkflow_ContextSource, MetaWorkflowPlaybookSchema } from '@wildo-ai/saas-specifications/application-creation';
|
|
19
|
+
import { AssuranceProgramAuthorityBasisSchema, AssuranceProgramSourceRevisionArtifactSchema, assertAssuranceProgramAuthorityBasisIsCoherent, createAssuranceProgramSourceRevision, createInitialAssuranceProgramAuthorityBasis, deriveAssuranceExternalFrameworkMapping, } from '@wildo-ai/saas-specifications/assurance';
|
|
20
|
+
import { readVersion } from '../../kernel/bootstrap.js';
|
|
21
|
+
import { FrameworkVersionService } from '../../services/framework/framework-version.service.js';
|
|
22
|
+
import { FrameworkKnowledgeApplicationGuidanceValidator } from '../../services/framework/framework-knowledge-application-guidance.validator.js';
|
|
23
|
+
import { FRAMEWORK_KNOWLEDGE_SCAN_IGNORE_GLOBS } from '../../services/framework/framework-knowledge-scan.constants.js';
|
|
24
|
+
import { ErrorUtils } from '../../infrastructure/errors/error.utils.js';
|
|
25
|
+
const PACKAGE_NAME = '@wildo-ai/framework-knowledge';
|
|
26
|
+
const compareCanonicalText = (left, right) => (left < right ? -1 : left > right ? 1 : 0);
|
|
27
|
+
const REFERENCE_DIRECTORY_NAME = 'references';
|
|
28
|
+
const SKILL_DIRECTORY_NAME = 'skills';
|
|
29
|
+
/**
|
|
30
|
+
* Compiled always-on rules.
|
|
31
|
+
*
|
|
32
|
+
* A rule is policy the application's coding agent should have at its elbow WITHOUT routing to a
|
|
33
|
+
* skill first, which is the one thing the skills router cannot deliver: a router match requires the
|
|
34
|
+
* agent to already suspect the topic. Authored under `src/rules/*.md`, emitted here (issue #98,
|
|
35
|
+
* where a rule had been authored, documented as delivered, and compiled by nothing).
|
|
36
|
+
*/
|
|
37
|
+
const RULE_DIRECTORY_NAME = 'rules';
|
|
38
|
+
const PLAYBOOK_DIRECTORY_NAME = 'playbooks';
|
|
39
|
+
const ASSURANCE_AUTHORITY_BASIS_DIRECTORY_NAME = 'assurance-authority-bases';
|
|
40
|
+
const REGISTRY_DIRECTORY_NAME = 'registries';
|
|
41
|
+
const TOPIC_INDEX_FILE_NAME = 'topic-index.json';
|
|
42
|
+
const MANIFEST_FILE_NAME = 'manifest.json';
|
|
43
|
+
const SKILLS_INDEX_FILE_NAME = 'INDEX.md';
|
|
44
|
+
const PLAYBOOK_JSON_FILE_NAME = 'playbook.json';
|
|
45
|
+
const PLAYBOOK_DEFINITION_FILE_NAME = 'playbook.definition.ts';
|
|
46
|
+
const PLAYBOOK_METHOD_FILE_NAME = 'method.md';
|
|
47
|
+
const EVALUATION_PROTOCOL_FILE_NAME = 'evaluation-protocol.json';
|
|
48
|
+
const EVALUATION_TREATMENT_FILE_NAME = 'evaluation-treatment.json';
|
|
49
|
+
const STRUCTURED_ARTIFACT_ACTION_FILE_NAME = 'structured-artifact-action.json';
|
|
50
|
+
const SOURCE_TAGS_REGISTRY_NAME = 'source-tags';
|
|
51
|
+
const FRAMEWORK_TOPICS_REGISTRY_NAME = 'framework-topics';
|
|
52
|
+
const PLAYBOOKS_REGISTRY_NAME = 'playbooks';
|
|
53
|
+
const ASSURANCE_AUTHORITY_BASES_REGISTRY_NAME = 'assurance-authority-bases';
|
|
54
|
+
const ASSURANCE_AUTHORITY_BASIS_FILE_NAME = 'authority-basis.json';
|
|
55
|
+
/**
|
|
56
|
+
* The rights-classified objective → external-source mapping, beside the basis it is derived FROM (#266).
|
|
57
|
+
*
|
|
58
|
+
* `scripts/assurance/emit-external-framework-mapping.mjs` remains for an ad-hoc emit; what it could
|
|
59
|
+
* not do is put the artifact anywhere a reader finds it — its default target is `dist/`, which is
|
|
60
|
+
* gitignored, and nothing called it. Deriving it HERE carries it on the release channel that already
|
|
61
|
+
* ships the basis, and does so from the value the generator just built rather than from a re-read of
|
|
62
|
+
* an emitted `dist` that could be older.
|
|
63
|
+
*
|
|
64
|
+
* NOT a file authored under `framework-knowledge/src/`. That would be the second copy the
|
|
65
|
+
* emit-on-demand design exists to avoid, and it would rot silently the first time an objective was
|
|
66
|
+
* bound or a source requirement reviewed.
|
|
67
|
+
*/
|
|
68
|
+
const ASSURANCE_EXTERNAL_FRAMEWORK_MAPPING_FILE_NAME = 'external-framework-mapping.json';
|
|
69
|
+
const INITIAL_ASSURANCE_AUTHORITY_BASIS_DEFINITION_REF = 'assurance-authority-basis-definition:wildo-safe-baseline-v1';
|
|
70
|
+
const ASSURANCE_IMPLEMENTATION_CLOSURE_DIGEST_DOMAIN = 'wildo:assurance-implementation-build-closure:v1';
|
|
71
|
+
const ASSURANCE_KEY_SEPARATOR = String.fromCharCode(0);
|
|
72
|
+
/** The exact permitted key sets for an authored `implementationClosure`, sorted, with and without the optional narrowing. */
|
|
73
|
+
const ASSURANCE_IMPLEMENTATION_CLOSURE_KEY_SETS = [
|
|
74
|
+
['artifactRef', 'rootInputPaths', 'rootPackageNames'].join(ASSURANCE_KEY_SEPARATOR),
|
|
75
|
+
['artifactRef', 'rootInputPaths', 'rootPackageNames', 'sourcePathPrefixes'].join(ASSURANCE_KEY_SEPARATOR),
|
|
76
|
+
];
|
|
77
|
+
/**
|
|
78
|
+
* Authored-playbook discovery uses the same generated-tree exclusions as
|
|
79
|
+
* source-anchor discovery. The shared contract keeps generation and audit on
|
|
80
|
+
* the exact artifact universe that the generator materializes.
|
|
81
|
+
*/
|
|
82
|
+
const PLAYBOOK_SCAN_IGNORE_GLOBS = FRAMEWORK_KNOWLEDGE_SCAN_IGNORE_GLOBS;
|
|
83
|
+
const PARTIAL_INCLUDE_REGEX = /\{\{PARTIAL:([^}]+)\}\}/gu;
|
|
84
|
+
const REFERENCE_INCLUDE_REGEX = /\{\{REFERENCE:([^}]+)\}\}/gu;
|
|
85
|
+
const USAGE_EXAMPLE_FACET = 'kind:usage-example';
|
|
86
|
+
const SKILL_SUPPORTING_DIRS = ['references', 'examples', 'scripts'];
|
|
87
|
+
const COMMENT_DIRECTIVE_PREFIX = String.raw `^\s*(?:\/\*+\s*|\*\s*|\/\/\s*|<!--\s*)`;
|
|
88
|
+
const COMMENT_DIRECTIVE_SUFFIX = String.raw `(?:\s*\*\/|\s*-->)?\s*$`;
|
|
89
|
+
function buildCommentDirectiveRegex(directive) {
|
|
90
|
+
return new RegExp(`${COMMENT_DIRECTIVE_PREFIX}${directive}\\s+(.+?)${COMMENT_DIRECTIVE_SUFFIX}`);
|
|
91
|
+
}
|
|
92
|
+
const FILE_DIRECTIVE_REGEX = buildCommentDirectiveRegex('@wildo_source:file');
|
|
93
|
+
const PART_START_DIRECTIVE_REGEX = buildCommentDirectiveRegex('@wildo_source:part:start');
|
|
94
|
+
const PART_END_DIRECTIVE_REGEX = buildCommentDirectiveRegex('@wildo_source:part:end');
|
|
95
|
+
const LEGACY_INLINE_DIRECTIVE_REGEX = new RegExp(`${COMMENT_DIRECTIVE_PREFIX}@wildo_source\\(([^)]+)\\)${COMMENT_DIRECTIVE_SUFFIX}`);
|
|
96
|
+
/**
|
|
97
|
+
* A runtime value a playbook definition may import: an INERT closed vocabulary and nothing else.
|
|
98
|
+
*
|
|
99
|
+
* `readEffectFreePlaybookModule` evaluates a `playbook.definition.ts` by walking its AST and resolving
|
|
100
|
+
* `Enum.MEMBER` reads against the imported module's real runtime value. That is only safe while every
|
|
101
|
+
* importable value is pure data — a function, a Zod schema, a class instance or an accessor would put
|
|
102
|
+
* BEHAVIOUR inside an evaluation whose whole contract is that it has none. This predicate is therefore
|
|
103
|
+
* the effect-free boundary, and it is deliberately exact rather than convenient:
|
|
104
|
+
*
|
|
105
|
+
* - the prototype must be `Object.prototype` or `null`, which excludes every class instance (a Zod
|
|
106
|
+
* schema is one) while admitting the object a TypeScript `enum` compiles to;
|
|
107
|
+
* - every own member must hold a `string` or a `number`, so nothing nested can carry behaviour, and no
|
|
108
|
+
* accessor survives either — an accessor descriptor carries no `value` at all, so its `typeof` is
|
|
109
|
+
* `undefined` and it is refused without ever being read. A separate `'value' in descriptor` clause
|
|
110
|
+
* was written first and deleted: it never fired alone, and a guard that cannot fire alone is an
|
|
111
|
+
* untested claim rather than defence in depth;
|
|
112
|
+
* - arrays, functions and symbol-keyed members are refused outright;
|
|
113
|
+
* - an empty object is refused: a vocabulary with no members is not a vocabulary.
|
|
114
|
+
*
|
|
115
|
+
* Const objects of string constants pass, which is intended — they are as inert as an enum, and the
|
|
116
|
+
* boundary is behaviour, not the `enum` keyword.
|
|
117
|
+
*
|
|
118
|
+
* Exported for its boundary pins, because an unisolated clause is an unpinned one and several clauses
|
|
119
|
+
* cannot be isolated through the generator seam. Measured across the four admitted modules
|
|
120
|
+
* (2026-08-29): they export 61 plain objects with NESTED values — `CONCERNS_BY_DOCUMENT` is one — so
|
|
121
|
+
* that clause is reachable from a playbook fixture and is pinned there. None exports a plain object
|
|
122
|
+
* carrying an ACCESSOR, a symbol member, or no members at all, and a class instance whose own members
|
|
123
|
+
* are all scalars is likewise unavailable — so those clauses are reachable only here. The trap this
|
|
124
|
+
* closes: dropping the prototype clause leaves every through-the-seam pin green, since a Zod schema is
|
|
125
|
+
* already refused for holding functions.
|
|
126
|
+
*/
|
|
127
|
+
export const isInertClosedVocabularyRuntimeValue = (candidate) => {
|
|
128
|
+
if (typeof candidate !== 'object' || candidate === null || Array.isArray(candidate)) {
|
|
129
|
+
return false;
|
|
130
|
+
}
|
|
131
|
+
const prototype = Object.getPrototypeOf(candidate);
|
|
132
|
+
if (prototype !== Object.prototype && prototype !== null) {
|
|
133
|
+
return false;
|
|
134
|
+
}
|
|
135
|
+
if (Object.getOwnPropertySymbols(candidate).length > 0) {
|
|
136
|
+
return false;
|
|
137
|
+
}
|
|
138
|
+
const memberDescriptors = Object.getOwnPropertyDescriptors(candidate);
|
|
139
|
+
const memberNames = Object.keys(memberDescriptors);
|
|
140
|
+
if (memberNames.length === 0) {
|
|
141
|
+
return false;
|
|
142
|
+
}
|
|
143
|
+
return memberNames.every((memberName) => {
|
|
144
|
+
const memberValue = memberDescriptors[memberName]?.value;
|
|
145
|
+
return typeof memberValue === 'string' || typeof memberValue === 'number';
|
|
146
|
+
});
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* Derives the runtime values importable from one module by FILTERING that module's own exports.
|
|
150
|
+
*
|
|
151
|
+
* This replaces two hand-maintained maps that restated the same vocabularies the modules already
|
|
152
|
+
* publish, with no mechanical link back to them — so an enum added beside a playbook that used it was
|
|
153
|
+
* unrepresentable as an error until someone ran `wildo fwk generate-docs`, and the generator then
|
|
154
|
+
* failed closed on `imports unsupported runtime value X`. That happened twice in two days
|
|
155
|
+
* (`MetaWorkflow_ArtifactIntent`, 2026-08-28; `MetaWorkflow_ContextSource`, 2026-08-29), which is
|
|
156
|
+
* exactly `.claude/rules/invariant-call-site-enumeration.md` #21: the list that restates someone
|
|
157
|
+
* else's population is the one that drifts, and the one least likely to carry a guard.
|
|
158
|
+
*
|
|
159
|
+
* Deriving does NOT widen the effect-free boundary — `isInertClosedVocabularyRuntimeValue` still
|
|
160
|
+
* refuses everything with behaviour, and the modules below export plenty of it (Zod schemas,
|
|
161
|
+
* validators, factories), none of which becomes importable.
|
|
162
|
+
*/
|
|
163
|
+
function collectInertClosedVocabularyModuleValues(moduleNamespace) {
|
|
164
|
+
const collected = {};
|
|
165
|
+
for (const [exportedName, exportedValue] of Object.entries(moduleNamespace)) {
|
|
166
|
+
if (isInertClosedVocabularyRuntimeValue(exportedValue)) {
|
|
167
|
+
collected[exportedName] = exportedValue;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
return Object.freeze(collected);
|
|
171
|
+
}
|
|
172
|
+
/*
|
|
173
|
+
* Each specifier resolves to the vocabularies THAT module publishes, so the map cannot claim a symbol
|
|
174
|
+
* its module does not export. The previous hand-maintained version did: it served the
|
|
175
|
+
* `@wildo-ai/saas-models` ROOT specifier from the meta-workflows map, and the root exports none of
|
|
176
|
+
* those enums — dead only because no playbook imports from the root.
|
|
177
|
+
*/
|
|
178
|
+
const PLAYBOOK_AUTHORING_RUNTIME_VALUES = {
|
|
179
|
+
'@wildo-ai/saas-models': collectInertClosedVocabularyModuleValues(SaasModelsRuntimeNamespace),
|
|
180
|
+
'@wildo-ai/saas-models/meta-workflows': collectInertClosedVocabularyModuleValues(MetaWorkflowRuntimeNamespace),
|
|
181
|
+
'@wildo-ai/saas-specifications/application-creation': collectInertClosedVocabularyModuleValues(ApplicationCreationRuntimeNamespace),
|
|
182
|
+
'@wildo-ai/saas-specifications/application-creation-playbook-runtime': collectInertClosedVocabularyModuleValues(ApplicationCreationPlaybookRuntimeNamespace),
|
|
183
|
+
};
|
|
184
|
+
function unwrapPlaybookAuthoringExpression(expression) {
|
|
185
|
+
if (ts.isAsExpression(expression)
|
|
186
|
+
|| ts.isSatisfiesExpression(expression)
|
|
187
|
+
|| ts.isParenthesizedExpression(expression)) {
|
|
188
|
+
return unwrapPlaybookAuthoringExpression(expression.expression);
|
|
189
|
+
}
|
|
190
|
+
return expression;
|
|
191
|
+
}
|
|
192
|
+
function readEffectFreePlaybookModule(sourcePath) {
|
|
193
|
+
const sourceFile = ts.createSourceFile(sourcePath, readFileSync(sourcePath, 'utf8'), ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);
|
|
194
|
+
const importedValues = new Map();
|
|
195
|
+
const exportedInitializers = new Map();
|
|
196
|
+
for (const statement of sourceFile.statements) {
|
|
197
|
+
if (ts.isImportDeclaration(statement)) {
|
|
198
|
+
const moduleRef = ts.isStringLiteral(statement.moduleSpecifier) ? statement.moduleSpecifier.text : '';
|
|
199
|
+
const moduleValues = PLAYBOOK_AUTHORING_RUNTIME_VALUES[moduleRef];
|
|
200
|
+
const importClause = statement.importClause;
|
|
201
|
+
if (importClause?.isTypeOnly || importClause === undefined) {
|
|
202
|
+
continue;
|
|
203
|
+
}
|
|
204
|
+
if (moduleValues === undefined || importClause.name !== undefined || !importClause.namedBindings || !ts.isNamedImports(importClause.namedBindings)) {
|
|
205
|
+
throw new Error(`Effect-free playbook source "${sourcePath}" has an unsupported runtime import from "${moduleRef}".`);
|
|
206
|
+
}
|
|
207
|
+
for (const element of importClause.namedBindings.elements) {
|
|
208
|
+
if (element.isTypeOnly) {
|
|
209
|
+
continue;
|
|
210
|
+
}
|
|
211
|
+
const importedName = element.propertyName?.text ?? element.name.text;
|
|
212
|
+
if (!(importedName in moduleValues)) {
|
|
213
|
+
throw new Error(`Effect-free playbook source "${sourcePath}" imports unsupported runtime value "${importedName}".`);
|
|
214
|
+
}
|
|
215
|
+
importedValues.set(element.name.text, moduleValues[importedName]);
|
|
216
|
+
}
|
|
217
|
+
continue;
|
|
218
|
+
}
|
|
219
|
+
if (ts.isInterfaceDeclaration(statement) || ts.isTypeAliasDeclaration(statement)) {
|
|
220
|
+
continue;
|
|
221
|
+
}
|
|
222
|
+
if (!ts.isVariableStatement(statement)) {
|
|
223
|
+
throw new Error(`Effect-free playbook source "${sourcePath}" may contain only imports, type declarations, and exported const data.`);
|
|
224
|
+
}
|
|
225
|
+
const isExported = statement.modifiers?.some((modifier) => modifier.kind === ts.SyntaxKind.ExportKeyword) ?? false;
|
|
226
|
+
const isConst = (statement.declarationList.flags & ts.NodeFlags.Const) !== 0;
|
|
227
|
+
if (!isExported || !isConst) {
|
|
228
|
+
throw new Error(`Effect-free playbook source "${sourcePath}" may contain only exported const runtime declarations.`);
|
|
229
|
+
}
|
|
230
|
+
for (const declaration of statement.declarationList.declarations) {
|
|
231
|
+
if (!ts.isIdentifier(declaration.name) || declaration.initializer === undefined) {
|
|
232
|
+
throw new Error(`Effect-free playbook source "${sourcePath}" has an unsupported const declaration.`);
|
|
233
|
+
}
|
|
234
|
+
exportedInitializers.set(declaration.name.text, declaration.initializer);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
const evaluatePropertyName = (name) => {
|
|
238
|
+
if (ts.isIdentifier(name) || ts.isStringLiteral(name) || ts.isNumericLiteral(name)) {
|
|
239
|
+
return name.text;
|
|
240
|
+
}
|
|
241
|
+
if (ts.isComputedPropertyName(name)) {
|
|
242
|
+
const value = evaluateExpression(name.expression);
|
|
243
|
+
if (typeof value === 'string' || typeof value === 'number') {
|
|
244
|
+
return String(value);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
throw new Error(`Effect-free playbook source "${sourcePath}" has an unsupported object property name.`);
|
|
248
|
+
};
|
|
249
|
+
const evaluateExpression = (rawExpression) => {
|
|
250
|
+
const expression = unwrapPlaybookAuthoringExpression(rawExpression);
|
|
251
|
+
if (ts.isStringLiteral(expression) || ts.isNoSubstitutionTemplateLiteral(expression)) {
|
|
252
|
+
return expression.text;
|
|
253
|
+
}
|
|
254
|
+
if (ts.isNumericLiteral(expression)) {
|
|
255
|
+
return Number(expression.text);
|
|
256
|
+
}
|
|
257
|
+
if (expression.kind === ts.SyntaxKind.TrueKeyword) {
|
|
258
|
+
return true;
|
|
259
|
+
}
|
|
260
|
+
if (expression.kind === ts.SyntaxKind.FalseKeyword) {
|
|
261
|
+
return false;
|
|
262
|
+
}
|
|
263
|
+
if (expression.kind === ts.SyntaxKind.NullKeyword) {
|
|
264
|
+
return null;
|
|
265
|
+
}
|
|
266
|
+
if (ts.isArrayLiteralExpression(expression)) {
|
|
267
|
+
return expression.elements.map((element) => evaluateExpression(element));
|
|
268
|
+
}
|
|
269
|
+
if (ts.isObjectLiteralExpression(expression)) {
|
|
270
|
+
const object = {};
|
|
271
|
+
for (const property of expression.properties) {
|
|
272
|
+
if (!ts.isPropertyAssignment(property)) {
|
|
273
|
+
throw new Error(`Effect-free playbook source "${sourcePath}" may use only explicit object property assignments.`);
|
|
274
|
+
}
|
|
275
|
+
object[evaluatePropertyName(property.name)] = evaluateExpression(property.initializer);
|
|
276
|
+
}
|
|
277
|
+
return object;
|
|
278
|
+
}
|
|
279
|
+
if (ts.isPropertyAccessExpression(expression) && ts.isIdentifier(expression.expression)) {
|
|
280
|
+
const owner = importedValues.get(expression.expression.text);
|
|
281
|
+
if (owner !== null && typeof owner === 'object' && expression.name.text in owner) {
|
|
282
|
+
return owner[expression.name.text];
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
throw new Error(`Effect-free playbook source "${sourcePath}" contains unsupported expression ${ts.SyntaxKind[expression.kind]}.`);
|
|
286
|
+
};
|
|
287
|
+
const playbookInitializer = exportedInitializers.get('playbookDefinition');
|
|
288
|
+
const treatmentInitializer = exportedInitializers.get('evaluationTreatmentSource');
|
|
289
|
+
const structuredArtifactActionInitializer = exportedInitializers.get('structuredArtifactActionSource');
|
|
290
|
+
if (exportedInitializers.size < 1
|
|
291
|
+
|| exportedInitializers.size > 3
|
|
292
|
+
|| playbookInitializer === undefined
|
|
293
|
+
|| [...exportedInitializers.keys()].some((exportName) => (exportName !== 'playbookDefinition'
|
|
294
|
+
&& exportName !== 'evaluationTreatmentSource'
|
|
295
|
+
&& exportName !== 'structuredArtifactActionSource'))) {
|
|
296
|
+
throw new Error(`Effect-free playbook source "${sourcePath}" must export "playbookDefinition", plus optional "evaluationTreatmentSource" and "structuredArtifactActionSource" data.`);
|
|
297
|
+
}
|
|
298
|
+
const playbookDefinition = evaluateExpression(playbookInitializer);
|
|
299
|
+
const evaluationTreatmentSource = treatmentInitializer === undefined
|
|
300
|
+
? null
|
|
301
|
+
: evaluateExpression(treatmentInitializer);
|
|
302
|
+
const structuredArtifactActionSource = structuredArtifactActionInitializer === undefined
|
|
303
|
+
? null
|
|
304
|
+
: evaluateExpression(structuredArtifactActionInitializer);
|
|
305
|
+
if (playbookDefinition === null
|
|
306
|
+
|| typeof playbookDefinition !== 'object'
|
|
307
|
+
|| Array.isArray(playbookDefinition)
|
|
308
|
+
|| (evaluationTreatmentSource !== null
|
|
309
|
+
&& (typeof evaluationTreatmentSource !== 'object'
|
|
310
|
+
|| Array.isArray(evaluationTreatmentSource)))
|
|
311
|
+
|| (structuredArtifactActionSource !== null
|
|
312
|
+
&& (typeof structuredArtifactActionSource !== 'object'
|
|
313
|
+
|| Array.isArray(structuredArtifactActionSource)))) {
|
|
314
|
+
throw new Error(`Effect-free playbook source "${sourcePath}" exports must evaluate to plain objects.`);
|
|
315
|
+
}
|
|
316
|
+
return {
|
|
317
|
+
playbookDefinition: playbookDefinition,
|
|
318
|
+
evaluationTreatmentSource: evaluationTreatmentSource,
|
|
319
|
+
structuredArtifactActionSource: structuredArtifactActionSource,
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* Owns generation of the publishable framework-knowledge payload.
|
|
324
|
+
*
|
|
325
|
+
* The generator intentionally writes into the package `dist/knowledge` seam so
|
|
326
|
+
* local package-preview and future npm publication read the same artifact.
|
|
327
|
+
*/
|
|
328
|
+
export class FrameworkKnowledgeGenerationService {
|
|
329
|
+
static async generate(frameworkRoot) {
|
|
330
|
+
const frameworkLayout = resolveFrameworkLayout(frameworkRoot);
|
|
331
|
+
const frameworkState = await FrameworkVersionService.loadFrameworkVersionState(frameworkRoot);
|
|
332
|
+
const generatorVersion = readVersion();
|
|
333
|
+
const generatedAt = new Date().toISOString();
|
|
334
|
+
const outputPackageDirectory = frameworkLayout.frameworkKnowledgePackageHome;
|
|
335
|
+
if (!existsSync(outputPackageDirectory)) {
|
|
336
|
+
throw new Error(`Framework-knowledge package root not found at ${outputPackageDirectory}. Scaffold ${PACKAGE_NAME} before generating its payload.`);
|
|
337
|
+
}
|
|
338
|
+
const discoveredFilePaths = FrameworkKnowledgeGenerationService.discoverSourceFiles(frameworkRoot);
|
|
339
|
+
const sectionsByTag = new Map();
|
|
340
|
+
const warnings = [];
|
|
341
|
+
for (const filePath of discoveredFilePaths) {
|
|
342
|
+
const extractedSections = FrameworkKnowledgeGenerationService.extractSectionsFromFile(frameworkRoot, filePath, warnings);
|
|
343
|
+
for (const section of extractedSections) {
|
|
344
|
+
const existingSections = sectionsByTag.get(section.tagName);
|
|
345
|
+
if (existingSections) {
|
|
346
|
+
existingSections.push(section);
|
|
347
|
+
}
|
|
348
|
+
else {
|
|
349
|
+
sectionsByTag.set(section.tagName, [section]);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
const sortedTopicIds = Array.from(sectionsByTag.keys()).sort((left, right) => left.localeCompare(right));
|
|
354
|
+
if (sortedTopicIds.length === 0) {
|
|
355
|
+
warnings.push('No @wildo_source anchors were extracted. The framework-knowledge payload was generated with empty registries.');
|
|
356
|
+
}
|
|
357
|
+
const outputDirectory = frameworkLayout.frameworkKnowledgeOutputHome;
|
|
358
|
+
mkdirSync(dirname(outputDirectory), { recursive: true });
|
|
359
|
+
const stagingDirectory = mkdtempSync(join(dirname(outputDirectory), '.knowledge-staging-'));
|
|
360
|
+
const referencesDirectory = join(stagingDirectory, REFERENCE_DIRECTORY_NAME);
|
|
361
|
+
const skillsDirectory = join(stagingDirectory, SKILL_DIRECTORY_NAME);
|
|
362
|
+
const registriesDirectory = join(stagingDirectory, REGISTRY_DIRECTORY_NAME);
|
|
363
|
+
const playbooksDirectory = join(stagingDirectory, PLAYBOOK_DIRECTORY_NAME);
|
|
364
|
+
const rulesDirectory = join(stagingDirectory, RULE_DIRECTORY_NAME);
|
|
365
|
+
const assuranceAuthorityBasesDirectory = join(stagingDirectory, ASSURANCE_AUTHORITY_BASIS_DIRECTORY_NAME);
|
|
366
|
+
// Build the complete candidate beside the live payload. A generation or
|
|
367
|
+
// validation failure therefore cannot destroy the last loadable artifact.
|
|
368
|
+
mkdirSync(referencesDirectory, { recursive: true });
|
|
369
|
+
mkdirSync(skillsDirectory, { recursive: true });
|
|
370
|
+
mkdirSync(registriesDirectory, { recursive: true });
|
|
371
|
+
mkdirSync(playbooksDirectory, { recursive: true });
|
|
372
|
+
mkdirSync(rulesDirectory, { recursive: true });
|
|
373
|
+
mkdirSync(assuranceAuthorityBasesDirectory, { recursive: true });
|
|
374
|
+
try {
|
|
375
|
+
const topicEntries = [];
|
|
376
|
+
const sourceTagRegistryEntries = {};
|
|
377
|
+
const frameworkTopicRegistryEntries = {};
|
|
378
|
+
const referenceMarkdownByTopic = new Map();
|
|
379
|
+
let sectionCount = 0;
|
|
380
|
+
for (const topicId of sortedTopicIds) {
|
|
381
|
+
const sortedSections = FrameworkKnowledgeGenerationService.sortSections(sectionsByTag.get(topicId) ?? []);
|
|
382
|
+
sectionCount += sortedSections.length;
|
|
383
|
+
const safeFileStem = FrameworkKnowledgeGenerationService.buildSafeReferenceFileStem(topicId);
|
|
384
|
+
const referenceFileName = `${safeFileStem}.md`;
|
|
385
|
+
const referenceRelativePath = `${REFERENCE_DIRECTORY_NAME}/${referenceFileName}`;
|
|
386
|
+
const referenceMarkdown = FrameworkKnowledgeGenerationService.buildReferenceMarkdown(frameworkRoot, topicId, sortedSections);
|
|
387
|
+
referenceMarkdownByTopic.set(topicId, referenceMarkdown);
|
|
388
|
+
writeFileSync(join(referencesDirectory, referenceFileName), referenceMarkdown, 'utf8');
|
|
389
|
+
const sourceReferences = sortedSections.map((section) => ({
|
|
390
|
+
kind: section.kind,
|
|
391
|
+
tagName: section.tagName,
|
|
392
|
+
filePath: section.filePath,
|
|
393
|
+
startLine: section.startLine,
|
|
394
|
+
endLine: section.endLine,
|
|
395
|
+
}));
|
|
396
|
+
const topicEntry = {
|
|
397
|
+
topicId,
|
|
398
|
+
title: FrameworkKnowledgeGenerationService.buildTitleFromTopicId(topicId),
|
|
399
|
+
tags: FrameworkKnowledgeGenerationService.buildTopicTags(topicId),
|
|
400
|
+
facets: FrameworkKnowledgeGenerationService.buildTopicFacets(sortedSections),
|
|
401
|
+
categories: FrameworkKnowledgeGenerationService.buildTopicCategories(topicId),
|
|
402
|
+
sourceReferences,
|
|
403
|
+
referenceFiles: [referenceFileName],
|
|
404
|
+
skillFiles: [],
|
|
405
|
+
registryKeys: [SOURCE_TAGS_REGISTRY_NAME, FRAMEWORK_TOPICS_REGISTRY_NAME],
|
|
406
|
+
};
|
|
407
|
+
topicEntries.push(topicEntry);
|
|
408
|
+
sourceTagRegistryEntries[topicId] = {
|
|
409
|
+
referenceFilePath: referenceRelativePath,
|
|
410
|
+
extractedAt: generatedAt,
|
|
411
|
+
facets: topicEntry.facets,
|
|
412
|
+
sourceReferences,
|
|
413
|
+
};
|
|
414
|
+
frameworkTopicRegistryEntries[topicId] = {
|
|
415
|
+
topicId,
|
|
416
|
+
title: topicEntry.title,
|
|
417
|
+
categories: topicEntry.categories,
|
|
418
|
+
referenceFilePath: referenceRelativePath,
|
|
419
|
+
sourceReferenceCount: sourceReferences.length,
|
|
420
|
+
};
|
|
421
|
+
}
|
|
422
|
+
const authoredSkillFolders = FrameworkKnowledgeGenerationService.discoverAuthoredSkillFolders(frameworkRoot);
|
|
423
|
+
for (const skillFolder of authoredSkillFolders) {
|
|
424
|
+
const sections = sectionsByTag.get(skillFolder.skillId) ?? [];
|
|
425
|
+
const sortedSections = FrameworkKnowledgeGenerationService.sortSections(sections);
|
|
426
|
+
const safeFileStem = FrameworkKnowledgeGenerationService.buildSafeReferenceFileStem(skillFolder.skillId);
|
|
427
|
+
const referenceRelativePath = `${REFERENCE_DIRECTORY_NAME}/${safeFileStem}.md`;
|
|
428
|
+
const templateReplacements = FrameworkKnowledgeGenerationService.buildTopicTemplateReplacements({
|
|
429
|
+
frameworkRoot,
|
|
430
|
+
topicId: skillFolder.skillId,
|
|
431
|
+
sections: sortedSections,
|
|
432
|
+
referenceRelativePath,
|
|
433
|
+
});
|
|
434
|
+
const skillOutputFiles = FrameworkKnowledgeGenerationService.materializeSkillFolder({
|
|
435
|
+
frameworkRoot,
|
|
436
|
+
skillFolder,
|
|
437
|
+
skillsDirectory,
|
|
438
|
+
replacements: templateReplacements,
|
|
439
|
+
referenceMarkdownByTopic,
|
|
440
|
+
});
|
|
441
|
+
const existingEntry = topicEntries.find((entry) => entry.topicId === skillFolder.skillId);
|
|
442
|
+
if (existingEntry) {
|
|
443
|
+
existingEntry.skillFiles = skillOutputFiles;
|
|
444
|
+
const existingTagEntry = sourceTagRegistryEntries[skillFolder.skillId];
|
|
445
|
+
if (existingTagEntry) {
|
|
446
|
+
existingTagEntry.skillFilePath = skillOutputFiles[0]
|
|
447
|
+
? `${SKILL_DIRECTORY_NAME}/${skillOutputFiles[0]}`
|
|
448
|
+
: undefined;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
else {
|
|
452
|
+
topicEntries.push({
|
|
453
|
+
topicId: skillFolder.skillId,
|
|
454
|
+
title: FrameworkKnowledgeGenerationService.buildTitleFromTopicId(skillFolder.skillId),
|
|
455
|
+
tags: FrameworkKnowledgeGenerationService.buildTopicTags(skillFolder.skillId),
|
|
456
|
+
facets: [],
|
|
457
|
+
categories: FrameworkKnowledgeGenerationService.buildTopicCategories(skillFolder.skillId),
|
|
458
|
+
sourceReferences: [],
|
|
459
|
+
referenceFiles: [],
|
|
460
|
+
skillFiles: skillOutputFiles,
|
|
461
|
+
registryKeys: [FRAMEWORK_TOPICS_REGISTRY_NAME],
|
|
462
|
+
});
|
|
463
|
+
frameworkTopicRegistryEntries[skillFolder.skillId] = {
|
|
464
|
+
topicId: skillFolder.skillId,
|
|
465
|
+
title: FrameworkKnowledgeGenerationService.buildTitleFromTopicId(skillFolder.skillId),
|
|
466
|
+
categories: FrameworkKnowledgeGenerationService.buildTopicCategories(skillFolder.skillId),
|
|
467
|
+
referenceFilePath: undefined,
|
|
468
|
+
sourceReferenceCount: 0,
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
topicEntries.sort((left, right) => left.topicId.localeCompare(right.topicId));
|
|
473
|
+
/**
|
|
474
|
+
* Ship the authored skills router (`src/skills/INDEX.md`) into the
|
|
475
|
+
* payload. The skill-folder glob only matches `SKILL.md` files one level
|
|
476
|
+
* below the skills root, so without this explicit step the compiled
|
|
477
|
+
* payload has no router at all. The authored INDEX stays the single router truth
|
|
478
|
+
* (audit Rule 8 parity model); it is rendered — not copied — so partials
|
|
479
|
+
* and `{{REFERENCE:…}}` placeholders behave exactly as in skill bodies,
|
|
480
|
+
* and it is deliberately NOT attached to any topic entry (it is
|
|
481
|
+
* cross-topic; `getFrameworkKnowledgeTopic` would misfile it).
|
|
482
|
+
*/
|
|
483
|
+
const authoredSkillsIndexPath = join(frameworkLayout.frameworkKnowledgeAuthoredSkillsHome, SKILLS_INDEX_FILE_NAME);
|
|
484
|
+
let skillsIndexPath;
|
|
485
|
+
if (existsSync(authoredSkillsIndexPath)) {
|
|
486
|
+
const renderedSkillsIndex = FrameworkKnowledgeGenerationService.renderAuthoredMarkdownFile({
|
|
487
|
+
frameworkRoot,
|
|
488
|
+
templateFilePath: authoredSkillsIndexPath,
|
|
489
|
+
templateContent: readFileSync(authoredSkillsIndexPath, 'utf8'),
|
|
490
|
+
replacements: {},
|
|
491
|
+
referenceMarkdownByTopic,
|
|
492
|
+
});
|
|
493
|
+
writeFileSync(join(skillsDirectory, SKILLS_INDEX_FILE_NAME), renderedSkillsIndex, 'utf8');
|
|
494
|
+
skillsIndexPath = `${SKILL_DIRECTORY_NAME}/${SKILLS_INDEX_FILE_NAME}`;
|
|
495
|
+
}
|
|
496
|
+
/*
|
|
497
|
+
* Compile authored rules (issue #98).
|
|
498
|
+
*
|
|
499
|
+
* Rendered through the SAME `{{PARTIAL:…}}` / `{{REFERENCE:…}}` pipeline as a skill body and a
|
|
500
|
+
* playbook's method.md, so a rule can cite an anchored source surface and stay in step with the
|
|
501
|
+
* code it describes — the whole reason authored knowledge is compiled rather than copied.
|
|
502
|
+
*
|
|
503
|
+
* Flat, not folder-per-rule: a rule is one always-on policy file with no references/, examples/
|
|
504
|
+
* or scripts/ beside it. Giving it a folder would invent structure no author has asked for.
|
|
505
|
+
*/
|
|
506
|
+
const authoredRulesHome = frameworkLayout.frameworkKnowledgeAuthoredRulesHome;
|
|
507
|
+
const ruleOutputFiles = [];
|
|
508
|
+
if (existsSync(authoredRulesHome)) {
|
|
509
|
+
const authoredRuleFiles = readdirSync(authoredRulesHome)
|
|
510
|
+
.filter((fileName) => fileName.endsWith('.md'))
|
|
511
|
+
.sort((left, right) => left.localeCompare(right));
|
|
512
|
+
for (const ruleFileName of authoredRuleFiles) {
|
|
513
|
+
const ruleSourcePath = join(authoredRulesHome, ruleFileName);
|
|
514
|
+
const renderedRule = FrameworkKnowledgeGenerationService.renderAuthoredMarkdownFile({
|
|
515
|
+
frameworkRoot,
|
|
516
|
+
templateFilePath: ruleSourcePath,
|
|
517
|
+
templateContent: readFileSync(ruleSourcePath, 'utf8'),
|
|
518
|
+
replacements: {},
|
|
519
|
+
referenceMarkdownByTopic,
|
|
520
|
+
});
|
|
521
|
+
writeFileSync(join(rulesDirectory, ruleFileName), renderedRule, 'utf8');
|
|
522
|
+
ruleOutputFiles.push(ruleFileName);
|
|
523
|
+
}
|
|
524
|
+
/*
|
|
525
|
+
* An authored rule that reaches no output is the defect #98 records, so it cannot be silent.
|
|
526
|
+
* Reported as a warning rather than thrown: generation must still produce a loadable payload
|
|
527
|
+
* for every OTHER artifact kind, and a rules directory that exists but is empty is a
|
|
528
|
+
* legitimate intermediate state while one is being written.
|
|
529
|
+
*/
|
|
530
|
+
if (authoredRuleFiles.length === 0) {
|
|
531
|
+
warnings.push(`The authored rules home ${authoredRulesHome} exists but contains no .md file; no rule was compiled.`);
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
const authoredPlaybookFolders = FrameworkKnowledgeGenerationService.discoverAuthoredPlaybooks(frameworkRoot);
|
|
535
|
+
const playbookRegistryEntries = {};
|
|
536
|
+
for (const playbookFolder of authoredPlaybookFolders) {
|
|
537
|
+
const registryEntry = await FrameworkKnowledgeGenerationService.materializePlaybookFolder({
|
|
538
|
+
frameworkRoot,
|
|
539
|
+
playbookFolder,
|
|
540
|
+
playbooksDirectory,
|
|
541
|
+
referenceMarkdownByTopic,
|
|
542
|
+
warnings,
|
|
543
|
+
});
|
|
544
|
+
playbookRegistryEntries[registryEntry.ref] = registryEntry;
|
|
545
|
+
}
|
|
546
|
+
const assuranceAuthorityBasisRegistryEntries = {};
|
|
547
|
+
for (const basisFile of FrameworkKnowledgeGenerationService.discoverAuthoredAssuranceAuthorityBases(frameworkRoot)) {
|
|
548
|
+
const entry = FrameworkKnowledgeGenerationService.materializeAssuranceAuthorityBasis(basisFile, assuranceAuthorityBasesDirectory, frameworkRoot, generatedAt);
|
|
549
|
+
const identity = `${entry.ref}@${entry.version}`;
|
|
550
|
+
if (assuranceAuthorityBasisRegistryEntries[identity])
|
|
551
|
+
throw new Error(`Duplicate authored assurance-authority basis identity "${identity}".`);
|
|
552
|
+
assuranceAuthorityBasisRegistryEntries[identity] = entry;
|
|
553
|
+
}
|
|
554
|
+
const sourceTagsRegistry = {
|
|
555
|
+
name: SOURCE_TAGS_REGISTRY_NAME,
|
|
556
|
+
metadata: {
|
|
557
|
+
generatedAt,
|
|
558
|
+
description: 'Source-derived tag registry for framework-knowledge references.',
|
|
559
|
+
},
|
|
560
|
+
entries: sourceTagRegistryEntries,
|
|
561
|
+
};
|
|
562
|
+
const frameworkTopicsRegistry = {
|
|
563
|
+
name: FRAMEWORK_TOPICS_REGISTRY_NAME,
|
|
564
|
+
metadata: {
|
|
565
|
+
generatedAt,
|
|
566
|
+
description: 'Topic registry derived from extracted framework-knowledge tags.',
|
|
567
|
+
},
|
|
568
|
+
entries: frameworkTopicRegistryEntries,
|
|
569
|
+
};
|
|
570
|
+
const playbooksRegistry = {
|
|
571
|
+
name: PLAYBOOKS_REGISTRY_NAME,
|
|
572
|
+
metadata: {
|
|
573
|
+
generatedAt,
|
|
574
|
+
description: 'Compiled meta-workflow playbooks (app-creation methodology definitions).',
|
|
575
|
+
},
|
|
576
|
+
entries: playbookRegistryEntries,
|
|
577
|
+
};
|
|
578
|
+
const assuranceAuthorityBasesRegistry = {
|
|
579
|
+
name: ASSURANCE_AUTHORITY_BASES_REGISTRY_NAME,
|
|
580
|
+
metadata: { generatedAt, description: 'Compiled portable assurance-authority bases.' },
|
|
581
|
+
entries: assuranceAuthorityBasisRegistryEntries,
|
|
582
|
+
};
|
|
583
|
+
const registries = [
|
|
584
|
+
{
|
|
585
|
+
registryName: SOURCE_TAGS_REGISTRY_NAME,
|
|
586
|
+
filePath: `${REGISTRY_DIRECTORY_NAME}/${SOURCE_TAGS_REGISTRY_NAME}.json`,
|
|
587
|
+
description: 'Source-derived tag registry for extracted framework references.',
|
|
588
|
+
entryCount: Object.keys(sourceTagRegistryEntries).length,
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
registryName: FRAMEWORK_TOPICS_REGISTRY_NAME,
|
|
592
|
+
filePath: `${REGISTRY_DIRECTORY_NAME}/${FRAMEWORK_TOPICS_REGISTRY_NAME}.json`,
|
|
593
|
+
description: 'Topic registry derived from extracted framework-knowledge tags.',
|
|
594
|
+
entryCount: Object.keys(frameworkTopicRegistryEntries).length,
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
registryName: PLAYBOOKS_REGISTRY_NAME,
|
|
598
|
+
filePath: `${REGISTRY_DIRECTORY_NAME}/${PLAYBOOKS_REGISTRY_NAME}.json`,
|
|
599
|
+
description: 'Compiled meta-workflow playbooks (app-creation methodology definitions).',
|
|
600
|
+
entryCount: Object.keys(playbookRegistryEntries).length,
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
registryName: ASSURANCE_AUTHORITY_BASES_REGISTRY_NAME,
|
|
604
|
+
filePath: `${REGISTRY_DIRECTORY_NAME}/${ASSURANCE_AUTHORITY_BASES_REGISTRY_NAME}.json`,
|
|
605
|
+
description: 'Compiled portable assurance-authority bases.',
|
|
606
|
+
entryCount: Object.keys(assuranceAuthorityBasisRegistryEntries).length,
|
|
607
|
+
},
|
|
608
|
+
];
|
|
609
|
+
const manifest = {
|
|
610
|
+
artifactVersion: '3',
|
|
611
|
+
frameworkVersion: frameworkState.config.frameworkVersion,
|
|
612
|
+
generatorVersion,
|
|
613
|
+
generatedAt,
|
|
614
|
+
packageName: PACKAGE_NAME,
|
|
615
|
+
topicCount: topicEntries.length,
|
|
616
|
+
referenceFileCount: topicEntries.length,
|
|
617
|
+
payload: {
|
|
618
|
+
topicIndexPath: TOPIC_INDEX_FILE_NAME,
|
|
619
|
+
registriesDirectory: REGISTRY_DIRECTORY_NAME,
|
|
620
|
+
referencesDirectory: REFERENCE_DIRECTORY_NAME,
|
|
621
|
+
skillsDirectory: SKILL_DIRECTORY_NAME,
|
|
622
|
+
playbooksDirectory: PLAYBOOK_DIRECTORY_NAME,
|
|
623
|
+
rulesDirectory: RULE_DIRECTORY_NAME,
|
|
624
|
+
assuranceAuthorityBasesDirectory: ASSURANCE_AUTHORITY_BASIS_DIRECTORY_NAME,
|
|
625
|
+
...(skillsIndexPath ? { skillsIndexPath } : {}),
|
|
626
|
+
},
|
|
627
|
+
registries,
|
|
628
|
+
};
|
|
629
|
+
writeFileSync(join(stagingDirectory, MANIFEST_FILE_NAME), `${JSON.stringify(manifest, null, 2)}\n`, 'utf8');
|
|
630
|
+
writeFileSync(join(stagingDirectory, TOPIC_INDEX_FILE_NAME), `${JSON.stringify({ topics: topicEntries }, null, 2)}\n`, 'utf8');
|
|
631
|
+
writeFileSync(join(registriesDirectory, `${SOURCE_TAGS_REGISTRY_NAME}.json`), `${JSON.stringify(sourceTagsRegistry, null, 2)}\n`, 'utf8');
|
|
632
|
+
writeFileSync(join(registriesDirectory, `${FRAMEWORK_TOPICS_REGISTRY_NAME}.json`), `${JSON.stringify(frameworkTopicsRegistry, null, 2)}\n`, 'utf8');
|
|
633
|
+
writeFileSync(join(registriesDirectory, `${PLAYBOOKS_REGISTRY_NAME}.json`), `${JSON.stringify(playbooksRegistry, null, 2)}\n`, 'utf8');
|
|
634
|
+
writeFileSync(join(registriesDirectory, `${ASSURANCE_AUTHORITY_BASES_REGISTRY_NAME}.json`), `${JSON.stringify(assuranceAuthorityBasesRegistry, null, 2)}\n`, 'utf8');
|
|
635
|
+
FrameworkKnowledgeGenerationService.validateStagedPayload(frameworkRoot, stagingDirectory, manifest);
|
|
636
|
+
FrameworkKnowledgeGenerationService.publishStagedPayload(stagingDirectory, outputDirectory);
|
|
637
|
+
return {
|
|
638
|
+
frameworkVersion: frameworkState.config.frameworkVersion,
|
|
639
|
+
generatorVersion,
|
|
640
|
+
generatedAt,
|
|
641
|
+
outputDirectory,
|
|
642
|
+
scannedFileCount: discoveredFilePaths.length,
|
|
643
|
+
topicCount: topicEntries.length,
|
|
644
|
+
sectionCount,
|
|
645
|
+
playbookCount: authoredPlaybookFolders.length,
|
|
646
|
+
assuranceAuthorityBasisCount: Object.keys(assuranceAuthorityBasisRegistryEntries).length,
|
|
647
|
+
warnings,
|
|
648
|
+
registryFiles: registries.map((registry) => registry.filePath),
|
|
649
|
+
};
|
|
650
|
+
}
|
|
651
|
+
catch (error) {
|
|
652
|
+
rmSync(stagingDirectory, { recursive: true, force: true });
|
|
653
|
+
throw error;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
/** Validate the candidate through the same inventory and artifact bytes the loader consumes. */
|
|
657
|
+
static validateStagedPayload(frameworkRoot, stagingDirectory, manifest) {
|
|
658
|
+
if (manifest.artifactVersion !== '3') {
|
|
659
|
+
throw new Error(`Unsupported staged Framework Knowledge artifact version "${manifest.artifactVersion}".`);
|
|
660
|
+
}
|
|
661
|
+
if (manifest.payload.assuranceAuthorityBasesDirectory !== ASSURANCE_AUTHORITY_BASIS_DIRECTORY_NAME) {
|
|
662
|
+
throw new Error('Framework Knowledge artifact version 3 requires the canonical assurance-authority-bases directory.');
|
|
663
|
+
}
|
|
664
|
+
for (const registry of manifest.registries) {
|
|
665
|
+
if (!existsSync(join(stagingDirectory, registry.filePath))) {
|
|
666
|
+
throw new Error(`Staged Framework Knowledge registry "${registry.registryName}" is missing.`);
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
const basisRegistryPath = join(stagingDirectory, REGISTRY_DIRECTORY_NAME, `${ASSURANCE_AUTHORITY_BASES_REGISTRY_NAME}.json`);
|
|
670
|
+
const basisRegistry = JSON.parse(readFileSync(basisRegistryPath, 'utf8'));
|
|
671
|
+
if (basisRegistry.entries === undefined)
|
|
672
|
+
throw new Error('Staged assurance-authority-bases registry has no entries map.');
|
|
673
|
+
for (const [identity, entry] of Object.entries(basisRegistry.entries)) {
|
|
674
|
+
if (identity !== `${entry.ref}@${entry.version}`) {
|
|
675
|
+
throw new Error(`Staged assurance-authority basis registry identity "${identity}" does not match its entry.`);
|
|
676
|
+
}
|
|
677
|
+
const basisPath = join(stagingDirectory, entry.filePath);
|
|
678
|
+
if (!existsSync(basisPath))
|
|
679
|
+
throw new Error(`Staged assurance-authority basis "${identity}" is missing its compiled artifact.`);
|
|
680
|
+
/*
|
|
681
|
+
* The mapping is validated for PRESENCE, not for content (#266).
|
|
682
|
+
*
|
|
683
|
+
* Its content is a pure derivation of the basis bytes validated two lines below, so re-deriving
|
|
684
|
+
* it here to compare would be asserting that a pure function is deterministic. What CAN go
|
|
685
|
+
* wrong is that the registry names a file the payload does not carry, which is exactly what a
|
|
686
|
+
* consumer would meet as a read failure with no explanation.
|
|
687
|
+
*/
|
|
688
|
+
if (entry.externalFrameworkMappingFilePath !== undefined && !existsSync(join(stagingDirectory, entry.externalFrameworkMappingFilePath))) {
|
|
689
|
+
throw new Error(`Staged assurance-authority basis "${identity}" names an external-framework mapping the payload does not carry.`);
|
|
690
|
+
}
|
|
691
|
+
const bytes = readFileSync(basisPath);
|
|
692
|
+
// CONTENT validation of the staged basis (its document-authority catalog must be current and
|
|
693
|
+
// authorized), then the registry-provenance check on the identity that survives: ref@version.
|
|
694
|
+
const basis = assertAssuranceProgramAuthorityBasisIsCoherent(JSON.parse(bytes.toString('utf8')));
|
|
695
|
+
if (basis.basisRef !== entry.ref ||
|
|
696
|
+
basis.basisVersion !== entry.version ||
|
|
697
|
+
basis.implementationRevision.sourceRevisionRef !== entry.sourceRevisionRef) {
|
|
698
|
+
throw new Error(`Staged assurance-authority basis "${identity}" does not match its registry provenance.`);
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
const guidanceFindings = FrameworkKnowledgeApplicationGuidanceValidator.validate({
|
|
702
|
+
frameworkRoot,
|
|
703
|
+
guidanceRoot: stagingDirectory,
|
|
704
|
+
});
|
|
705
|
+
if (guidanceFindings.length > 0) {
|
|
706
|
+
const firstFinding = guidanceFindings[0];
|
|
707
|
+
throw new Error(`Staged Framework Knowledge guidance is not package-only at ${firstFinding.relativePath}:${firstFinding.line} `
|
|
708
|
+
+ `(${firstFinding.kind}): ${firstFinding.offendingValue}. ${firstFinding.remediation}`);
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* Replace the materialized home only after validation. The backup exists
|
|
713
|
+
* solely for rollback during this operation and is removed on success.
|
|
714
|
+
*/
|
|
715
|
+
static publishStagedPayload(stagingDirectory, outputDirectory) {
|
|
716
|
+
const backupDirectory = `${outputDirectory}.publication-backup-${process.pid}-${Date.now()}`;
|
|
717
|
+
const hadPriorPayload = existsSync(outputDirectory);
|
|
718
|
+
try {
|
|
719
|
+
if (hadPriorPayload)
|
|
720
|
+
renameSync(outputDirectory, backupDirectory);
|
|
721
|
+
renameSync(stagingDirectory, outputDirectory);
|
|
722
|
+
if (hadPriorPayload)
|
|
723
|
+
rmSync(backupDirectory, { recursive: true, force: true });
|
|
724
|
+
}
|
|
725
|
+
catch (error) {
|
|
726
|
+
if (!existsSync(outputDirectory) && existsSync(backupDirectory)) {
|
|
727
|
+
renameSync(backupDirectory, outputDirectory);
|
|
728
|
+
}
|
|
729
|
+
throw error;
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
static discoverSourceFiles(frameworkRoot) {
|
|
733
|
+
const sourceScanRoots = FrameworkKnowledgeGenerationService.getSourceScanRoots(frameworkRoot);
|
|
734
|
+
return globSync(`{${sourceScanRoots.map((root) => root.relativePath).join(',')}}/**/*.{ts,tsx,js,jsx,md}`, {
|
|
735
|
+
cwd: resolveFrameworkLayout(frameworkRoot).repositoryRoot,
|
|
736
|
+
absolute: true,
|
|
737
|
+
nodir: true,
|
|
738
|
+
// Companion and other generated app surfaces legitimately live in
|
|
739
|
+
// dot-directories like `examples/*/.wildo-saas/**`; generation must
|
|
740
|
+
// see the same anchor universe as the audit path.
|
|
741
|
+
dot: true,
|
|
742
|
+
ignore: [...FRAMEWORK_KNOWLEDGE_SCAN_IGNORE_GLOBS],
|
|
743
|
+
}).sort((left, right) => left.localeCompare(right));
|
|
744
|
+
}
|
|
745
|
+
static getSourceScanRoots(frameworkRoot) {
|
|
746
|
+
const frameworkLayout = resolveFrameworkLayout(frameworkRoot);
|
|
747
|
+
return [
|
|
748
|
+
frameworkLayout.engineHome,
|
|
749
|
+
frameworkLayout.platformHome,
|
|
750
|
+
frameworkLayout.docsHome,
|
|
751
|
+
frameworkLayout.examplesHome,
|
|
752
|
+
].map((absolutePath) => ({
|
|
753
|
+
relativePath: relative(frameworkLayout.repositoryRoot, absolutePath),
|
|
754
|
+
absolutePath,
|
|
755
|
+
}));
|
|
756
|
+
}
|
|
757
|
+
static extractSectionsFromFile(frameworkRoot, filePath, warnings) {
|
|
758
|
+
const content = readFileSync(filePath, 'utf8');
|
|
759
|
+
const lines = content.split('\n');
|
|
760
|
+
const relativeFilePath = relative(frameworkRoot, filePath);
|
|
761
|
+
const language = FrameworkKnowledgeGenerationService.resolveCodeFenceLanguage(filePath);
|
|
762
|
+
const sections = [];
|
|
763
|
+
const openRangesByTag = new Map();
|
|
764
|
+
for (let lineIndex = 0; lineIndex < lines.length; lineIndex += 1) {
|
|
765
|
+
const lineNumber = lineIndex + 1;
|
|
766
|
+
const line = lines[lineIndex];
|
|
767
|
+
const fileDirectiveArguments = FrameworkKnowledgeGenerationService.extractDirectiveArguments(line, FILE_DIRECTIVE_REGEX);
|
|
768
|
+
if (fileDirectiveArguments.topicIds.length > 0) {
|
|
769
|
+
if (lineNumber > 10) {
|
|
770
|
+
warnings.push(`Ignored file-level @wildo_source anchor in ${relativeFilePath}:${lineNumber} because file anchors must stay within the first 10 lines.`);
|
|
771
|
+
}
|
|
772
|
+
else {
|
|
773
|
+
for (const tagName of fileDirectiveArguments.topicIds) {
|
|
774
|
+
sections.push({
|
|
775
|
+
tagName,
|
|
776
|
+
kind: 'full-file',
|
|
777
|
+
filePath: relativeFilePath,
|
|
778
|
+
startLine: 1,
|
|
779
|
+
endLine: lines.length,
|
|
780
|
+
content,
|
|
781
|
+
language,
|
|
782
|
+
facets: fileDirectiveArguments.facets,
|
|
783
|
+
});
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
const partStartArguments = FrameworkKnowledgeGenerationService.extractDirectiveArguments(line, PART_START_DIRECTIVE_REGEX);
|
|
788
|
+
for (const tagName of partStartArguments.topicIds) {
|
|
789
|
+
const openRanges = openRangesByTag.get(tagName) ?? [];
|
|
790
|
+
openRanges.push({ startLine: lineNumber, facets: partStartArguments.facets });
|
|
791
|
+
openRangesByTag.set(tagName, openRanges);
|
|
792
|
+
}
|
|
793
|
+
const partEndArguments = FrameworkKnowledgeGenerationService.extractDirectiveArguments(line, PART_END_DIRECTIVE_REGEX);
|
|
794
|
+
for (const tagName of partEndArguments.topicIds) {
|
|
795
|
+
const openRanges = openRangesByTag.get(tagName);
|
|
796
|
+
const openRange = openRanges?.pop();
|
|
797
|
+
const startLine = openRange?.startLine;
|
|
798
|
+
if (!startLine) {
|
|
799
|
+
warnings.push(`Found @wildo_source:part:end for "${tagName}" in ${relativeFilePath}:${lineNumber} without a matching start anchor.`);
|
|
800
|
+
continue;
|
|
801
|
+
}
|
|
802
|
+
sections.push({
|
|
803
|
+
tagName,
|
|
804
|
+
kind: 'part-range',
|
|
805
|
+
filePath: relativeFilePath,
|
|
806
|
+
startLine,
|
|
807
|
+
endLine: lineNumber,
|
|
808
|
+
content: lines.slice(startLine - 1, lineNumber).join('\n'),
|
|
809
|
+
language,
|
|
810
|
+
facets: openRange?.facets ?? [],
|
|
811
|
+
});
|
|
812
|
+
if (openRanges.length === 0) {
|
|
813
|
+
openRangesByTag.delete(tagName);
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
const legacyInlineTags = FrameworkKnowledgeGenerationService.extractDirectiveTags(line, LEGACY_INLINE_DIRECTIVE_REGEX);
|
|
817
|
+
if (legacyInlineTags.length > 0) {
|
|
818
|
+
warnings.push(`Legacy inline @wildo_source(...) syntax is no longer supported in ${relativeFilePath}:${lineNumber}. Use @wildo_source:file or @wildo_source:part:start/end instead.`);
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
/**
|
|
822
|
+
* Keep extraction fail-closed but helpful: unfinished ranges are still
|
|
823
|
+
* materialized to EOF so the generated artifact remains reviewable, while a
|
|
824
|
+
* warning keeps the anchor authoring defect visible.
|
|
825
|
+
*/
|
|
826
|
+
for (const [tagName, openRanges] of openRangesByTag.entries()) {
|
|
827
|
+
for (const openRange of openRanges) {
|
|
828
|
+
warnings.push(`Unclosed @wildo_source:part:start for "${tagName}" in ${relativeFilePath}:${openRange.startLine}; extracted through end-of-file.`);
|
|
829
|
+
sections.push({
|
|
830
|
+
tagName,
|
|
831
|
+
kind: 'part-range',
|
|
832
|
+
filePath: relativeFilePath,
|
|
833
|
+
startLine: openRange.startLine,
|
|
834
|
+
endLine: lines.length,
|
|
835
|
+
content: lines.slice(openRange.startLine - 1).join('\n'),
|
|
836
|
+
language,
|
|
837
|
+
facets: openRange.facets,
|
|
838
|
+
});
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
return sections;
|
|
842
|
+
}
|
|
843
|
+
static extractDirectiveTags(line, regex) {
|
|
844
|
+
return FrameworkKnowledgeGenerationService.extractDirectiveArguments(line, regex).topicIds;
|
|
845
|
+
}
|
|
846
|
+
static extractDirectiveArguments(line, regex) {
|
|
847
|
+
const match = regex.exec(line);
|
|
848
|
+
if (!match) {
|
|
849
|
+
return { topicIds: [], facets: [] };
|
|
850
|
+
}
|
|
851
|
+
return FrameworkKnowledgeGenerationService.parseAnchorTags(match[1]);
|
|
852
|
+
}
|
|
853
|
+
static parseAnchorTags(raw) {
|
|
854
|
+
const topicIds = [];
|
|
855
|
+
const facets = new Set();
|
|
856
|
+
const tokens = raw
|
|
857
|
+
.replaceAll('*/', ' ')
|
|
858
|
+
.replaceAll('-->', ' ')
|
|
859
|
+
.replaceAll('"', ' ')
|
|
860
|
+
.replaceAll('\'', ' ')
|
|
861
|
+
.split(/[\s,]+/)
|
|
862
|
+
.map((entry) => entry.trim())
|
|
863
|
+
.filter((entry) => entry.length > 0);
|
|
864
|
+
for (const token of tokens) {
|
|
865
|
+
if (token.startsWith('facet:')) {
|
|
866
|
+
const facetValue = token.slice('facet:'.length).trim();
|
|
867
|
+
if (facetValue.length > 0) {
|
|
868
|
+
facets.add(facetValue);
|
|
869
|
+
}
|
|
870
|
+
continue;
|
|
871
|
+
}
|
|
872
|
+
if (token.startsWith('tag:')) {
|
|
873
|
+
const facetValue = token.slice('tag:'.length).trim();
|
|
874
|
+
if (facetValue.length > 0) {
|
|
875
|
+
facets.add(facetValue);
|
|
876
|
+
}
|
|
877
|
+
continue;
|
|
878
|
+
}
|
|
879
|
+
topicIds.push(token);
|
|
880
|
+
}
|
|
881
|
+
return {
|
|
882
|
+
topicIds,
|
|
883
|
+
facets: Array.from(facets).sort((left, right) => left.localeCompare(right)),
|
|
884
|
+
};
|
|
885
|
+
}
|
|
886
|
+
static sortSections(sections) {
|
|
887
|
+
return [...sections].sort((left, right) => {
|
|
888
|
+
const fileComparison = left.filePath.localeCompare(right.filePath);
|
|
889
|
+
if (fileComparison !== 0) {
|
|
890
|
+
return fileComparison;
|
|
891
|
+
}
|
|
892
|
+
if (left.startLine !== right.startLine) {
|
|
893
|
+
return left.startLine - right.startLine;
|
|
894
|
+
}
|
|
895
|
+
return left.endLine - right.endLine;
|
|
896
|
+
});
|
|
897
|
+
}
|
|
898
|
+
static buildSafeReferenceFileStem(topicId) {
|
|
899
|
+
return topicId.replace(/[^a-zA-Z0-9._-]/g, '_');
|
|
900
|
+
}
|
|
901
|
+
static buildTitleFromTopicId(topicId) {
|
|
902
|
+
return topicId
|
|
903
|
+
.split('.')
|
|
904
|
+
.flatMap((segment) => segment.split(/[_-]+/))
|
|
905
|
+
.filter((segment) => segment.length > 0)
|
|
906
|
+
.map((segment) => segment[0].toUpperCase() + segment.slice(1))
|
|
907
|
+
.join(' ');
|
|
908
|
+
}
|
|
909
|
+
static buildTopicTags(topicId) {
|
|
910
|
+
return topicId
|
|
911
|
+
.split('.')
|
|
912
|
+
.map((segment) => segment.trim())
|
|
913
|
+
.filter((segment) => segment.length > 0);
|
|
914
|
+
}
|
|
915
|
+
static buildTopicCategories(topicId) {
|
|
916
|
+
const segments = FrameworkKnowledgeGenerationService.buildTopicTags(topicId);
|
|
917
|
+
return segments
|
|
918
|
+
.slice(0, -1)
|
|
919
|
+
.map((_, index) => segments.slice(0, index + 1).join('.'));
|
|
920
|
+
}
|
|
921
|
+
static buildTopicFacets(sections) {
|
|
922
|
+
return Array.from(new Set(sections.flatMap((section) => section.facets))).sort((left, right) => left.localeCompare(right));
|
|
923
|
+
}
|
|
924
|
+
static resolveCodeFenceLanguage(filePath) {
|
|
925
|
+
switch (extname(filePath)) {
|
|
926
|
+
case '.ts':
|
|
927
|
+
return 'typescript';
|
|
928
|
+
case '.tsx':
|
|
929
|
+
return 'tsx';
|
|
930
|
+
case '.js':
|
|
931
|
+
return 'javascript';
|
|
932
|
+
case '.jsx':
|
|
933
|
+
return 'jsx';
|
|
934
|
+
case '.md':
|
|
935
|
+
return 'markdown';
|
|
936
|
+
default:
|
|
937
|
+
return 'text';
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
/**
|
|
941
|
+
* Discovers all authored skill folders under `src/skills/`.
|
|
942
|
+
*
|
|
943
|
+
* Each immediate subdirectory that contains a `SKILL.md` entry point is a
|
|
944
|
+
* distinct skill. The caller-facing path is the authored-source home
|
|
945
|
+
* ({@link FrameworkLayoutPaths.frameworkKnowledgeAuthoredSkillsHome}),
|
|
946
|
+
* which is intentionally separate from the materialized output home
|
|
947
|
+
* ({@link FrameworkLayoutPaths.frameworkKnowledgeSkillsHome}) to keep
|
|
948
|
+
* "authored input" and "generated artifact" semantically distinct.
|
|
949
|
+
*/
|
|
950
|
+
static discoverAuthoredSkillFolders(frameworkRoot) {
|
|
951
|
+
const authoredSkillsHome = resolveFrameworkLayout(frameworkRoot).frameworkKnowledgeAuthoredSkillsHome;
|
|
952
|
+
if (!existsSync(authoredSkillsHome)) {
|
|
953
|
+
return [];
|
|
954
|
+
}
|
|
955
|
+
const skillEntryPaths = globSync('*/SKILL.md', {
|
|
956
|
+
cwd: authoredSkillsHome,
|
|
957
|
+
nodir: true,
|
|
958
|
+
absolute: false,
|
|
959
|
+
}).sort((left, right) => left.localeCompare(right));
|
|
960
|
+
return skillEntryPaths.map((entryRelativePath) => {
|
|
961
|
+
const skillId = entryRelativePath.split('/')[0] ?? '';
|
|
962
|
+
const skillEntryPath = join(authoredSkillsHome, entryRelativePath);
|
|
963
|
+
const skillFolderPath = join(authoredSkillsHome, skillId);
|
|
964
|
+
const supportingDirectories = SKILL_SUPPORTING_DIRS
|
|
965
|
+
.map((dirName) => join(skillFolderPath, dirName))
|
|
966
|
+
.filter((dirPath) => existsSync(dirPath));
|
|
967
|
+
return {
|
|
968
|
+
skillId,
|
|
969
|
+
skillEntryPath,
|
|
970
|
+
skillEntryContent: readFileSync(skillEntryPath, 'utf8'),
|
|
971
|
+
supportingDirectories,
|
|
972
|
+
};
|
|
973
|
+
});
|
|
974
|
+
}
|
|
975
|
+
/**
|
|
976
|
+
* Discovers all authored playbook folders under `src/playbooks/`.
|
|
977
|
+
*
|
|
978
|
+
* Mirrors {@link discoverAuthoredSkillFolders} (folder name = ref, one
|
|
979
|
+
* required entry file per folder) but scans with the audit-superset ignore
|
|
980
|
+
* globs ({@link PLAYBOOK_SCAN_IGNORE_GLOBS}) so generator and audit agree
|
|
981
|
+
* on the playbook universe.
|
|
982
|
+
*/
|
|
983
|
+
static discoverAuthoredPlaybooks(frameworkRoot) {
|
|
984
|
+
const authoredPlaybooksHome = resolveFrameworkLayout(frameworkRoot).frameworkKnowledgeAuthoredPlaybooksHome;
|
|
985
|
+
if (!existsSync(authoredPlaybooksHome)) {
|
|
986
|
+
return [];
|
|
987
|
+
}
|
|
988
|
+
const playbookSourcePaths = globSync(`*/{${PLAYBOOK_JSON_FILE_NAME},${PLAYBOOK_DEFINITION_FILE_NAME}}`, {
|
|
989
|
+
cwd: authoredPlaybooksHome,
|
|
990
|
+
nodir: true,
|
|
991
|
+
absolute: false,
|
|
992
|
+
ignore: [...PLAYBOOK_SCAN_IGNORE_GLOBS],
|
|
993
|
+
}).sort((left, right) => left.localeCompare(right));
|
|
994
|
+
const foldersByRef = new Map();
|
|
995
|
+
for (const entryRelativePath of playbookSourcePaths) {
|
|
996
|
+
const playbookRef = entryRelativePath.split('/')[0] ?? '';
|
|
997
|
+
const playbookFolderPath = join(authoredPlaybooksHome, playbookRef);
|
|
998
|
+
// The JSON-v1 authoring format was retired at the first-activation hard
|
|
999
|
+
// cut. A leftover playbook.json is a dormant legacy source, not a valid
|
|
1000
|
+
// alternative — refuse it whether or not a native definition sits beside it.
|
|
1001
|
+
if (!entryRelativePath.endsWith(PLAYBOOK_DEFINITION_FILE_NAME)) {
|
|
1002
|
+
throw new Error(`Authored playbook "${playbookRef}" carries a retired ${PLAYBOOK_JSON_FILE_NAME} source. The JSON-v1 authoring format was deleted at the first-activation hard cut — author ${PLAYBOOK_DEFINITION_FILE_NAME} instead.`);
|
|
1003
|
+
}
|
|
1004
|
+
if (foldersByRef.has(playbookRef)) {
|
|
1005
|
+
throw new Error(`Authored playbook "${playbookRef}" declares more than one structured source. Exactly one canonical ${PLAYBOOK_DEFINITION_FILE_NAME} is allowed.`);
|
|
1006
|
+
}
|
|
1007
|
+
foldersByRef.set(playbookRef, {
|
|
1008
|
+
playbookRef,
|
|
1009
|
+
playbookFolderPath,
|
|
1010
|
+
playbookSourcePath: join(authoredPlaybooksHome, entryRelativePath),
|
|
1011
|
+
sourceFormat: FrameworkKnowledgePlaybookSourceFormat.EFFECT_FREE_TYPESCRIPT_MODULE_V1,
|
|
1012
|
+
methodMarkdownPath: join(playbookFolderPath, PLAYBOOK_METHOD_FILE_NAME),
|
|
1013
|
+
});
|
|
1014
|
+
}
|
|
1015
|
+
return [...foldersByRef.values()].sort((left, right) => left.playbookRef.localeCompare(right.playbookRef));
|
|
1016
|
+
}
|
|
1017
|
+
static discoverAuthoredAssuranceAuthorityBases(frameworkRoot) {
|
|
1018
|
+
const authoredHome = join(resolveFrameworkLayout(frameworkRoot).frameworkKnowledgePackageHome, 'src', ASSURANCE_AUTHORITY_BASIS_DIRECTORY_NAME);
|
|
1019
|
+
if (!existsSync(authoredHome))
|
|
1020
|
+
return [];
|
|
1021
|
+
const authoredBasisFiles = globSync(`*/${ASSURANCE_AUTHORITY_BASIS_FILE_NAME}`, {
|
|
1022
|
+
cwd: authoredHome,
|
|
1023
|
+
nodir: true,
|
|
1024
|
+
absolute: false,
|
|
1025
|
+
ignore: [...PLAYBOOK_SCAN_IGNORE_GLOBS],
|
|
1026
|
+
});
|
|
1027
|
+
if (authoredBasisFiles.length === 0) {
|
|
1028
|
+
throw new Error(`Authored assurance-authority basis directory ${authoredHome} exists but contains no ${ASSURANCE_AUTHORITY_BASIS_FILE_NAME} files.`);
|
|
1029
|
+
}
|
|
1030
|
+
return authoredBasisFiles
|
|
1031
|
+
.sort((left, right) => left.localeCompare(right))
|
|
1032
|
+
.map((relativePath) => ({
|
|
1033
|
+
folderRef: relativePath.split('/')[0] ?? '',
|
|
1034
|
+
sourcePath: join(authoredHome, relativePath),
|
|
1035
|
+
}));
|
|
1036
|
+
}
|
|
1037
|
+
static computeStringDigest(material) {
|
|
1038
|
+
return computeMetaWorkflowRawByteDigest(new TextEncoder().encode(material));
|
|
1039
|
+
}
|
|
1040
|
+
/**
|
|
1041
|
+
* Resolve repository-owned implementation inputs while the framework package is built,
|
|
1042
|
+
* then publish only semantic artifact refs and digests. Generated applications therefore
|
|
1043
|
+
* never need the Wildo monorepo, source paths or workspace lockfile.
|
|
1044
|
+
*/
|
|
1045
|
+
static materializeAssuranceAuthorityBasis(basisFile, assuranceAuthorityBasesDirectory, frameworkRoot,
|
|
1046
|
+
/**
|
|
1047
|
+
* The instant the mapping's rights authorizations are evaluated AT, and it is the generation's
|
|
1048
|
+
* own instant rather than a fresh clock read.
|
|
1049
|
+
*
|
|
1050
|
+
* Rights expire — `deriveAssuranceExternalFrameworkMapping` compares each record's `validUntil`
|
|
1051
|
+
* against this — so the artifact must say which moment it was true at, and it must be the same
|
|
1052
|
+
* moment the manifest claims or the payload would carry two answers to "when was this generated".
|
|
1053
|
+
*/
|
|
1054
|
+
generatedAt) {
|
|
1055
|
+
const sourceRelativePath = relative(frameworkRoot, basisFile.sourcePath);
|
|
1056
|
+
let source;
|
|
1057
|
+
try {
|
|
1058
|
+
source = JSON.parse(readFileSync(basisFile.sourcePath, 'utf8'));
|
|
1059
|
+
}
|
|
1060
|
+
catch (error) {
|
|
1061
|
+
throw new Error(`Authored assurance-authority basis ${sourceRelativePath} is not valid JSON: ${ErrorUtils.extractErrorMessage(error)}`);
|
|
1062
|
+
}
|
|
1063
|
+
if (source === null || typeof source !== 'object' || Array.isArray(source)) {
|
|
1064
|
+
throw new Error(`Authored assurance-authority basis ${sourceRelativePath} must be one JSON object.`);
|
|
1065
|
+
}
|
|
1066
|
+
const candidate = source;
|
|
1067
|
+
const keys = Object.keys(candidate).sort();
|
|
1068
|
+
if (keys.join('\0') !== ['artifacts', 'basisDefinitionRef', 'implementationClosure', 'sourceRevisionRef'].join('\0')) {
|
|
1069
|
+
throw new Error(`Authored assurance-authority basis ${sourceRelativePath} has unsupported fields.`);
|
|
1070
|
+
}
|
|
1071
|
+
if (candidate.basisDefinitionRef !== INITIAL_ASSURANCE_AUTHORITY_BASIS_DEFINITION_REF) {
|
|
1072
|
+
throw new Error(`Authored assurance-authority basis ${sourceRelativePath} references an unsupported engine basis definition.`);
|
|
1073
|
+
}
|
|
1074
|
+
if (typeof candidate.sourceRevisionRef !== 'string'
|
|
1075
|
+
|| !Array.isArray(candidate.artifacts)
|
|
1076
|
+
|| candidate.artifacts.length === 0
|
|
1077
|
+
|| candidate.implementationClosure === null
|
|
1078
|
+
|| typeof candidate.implementationClosure !== 'object'
|
|
1079
|
+
|| Array.isArray(candidate.implementationClosure)) {
|
|
1080
|
+
throw new Error(`Authored assurance-authority basis ${sourceRelativePath} requires a sourceRevisionRef, non-empty artifacts and one implementationClosure.`);
|
|
1081
|
+
}
|
|
1082
|
+
const artifactRefs = new Set();
|
|
1083
|
+
const artifacts = candidate.artifacts.map((artifact, index) => {
|
|
1084
|
+
if (artifact === null ||
|
|
1085
|
+
typeof artifact !== 'object' ||
|
|
1086
|
+
Array.isArray(artifact) ||
|
|
1087
|
+
Object.keys(artifact).sort().join('\0') !== ['artifactRef', 'sourcePath'].join('\0') ||
|
|
1088
|
+
typeof artifact.artifactRef !== 'string' ||
|
|
1089
|
+
typeof artifact.sourcePath !== 'string') {
|
|
1090
|
+
throw new Error(`Authored assurance-authority basis ${sourceRelativePath} has an invalid artifacts[${index}] entry.`);
|
|
1091
|
+
}
|
|
1092
|
+
if (artifactRefs.has(artifact.artifactRef)) {
|
|
1093
|
+
throw new Error(`Authored assurance-authority basis ${sourceRelativePath} repeats artifactRef "${artifact.artifactRef}".`);
|
|
1094
|
+
}
|
|
1095
|
+
artifactRefs.add(artifact.artifactRef);
|
|
1096
|
+
const normalizedSourcePath = normalize(artifact.sourcePath).replaceAll('\\', '/');
|
|
1097
|
+
if (isAbsolute(normalizedSourcePath) || normalizedSourcePath === '..' || normalizedSourcePath.startsWith('../')) {
|
|
1098
|
+
throw new Error(`Authored assurance implementation source path must stay inside the framework repository: "${artifact.sourcePath}".`);
|
|
1099
|
+
}
|
|
1100
|
+
const absoluteSourcePath = resolve(frameworkRoot, normalizedSourcePath);
|
|
1101
|
+
const sourcePathFromRoot = relative(frameworkRoot, absoluteSourcePath).replaceAll('\\', '/');
|
|
1102
|
+
if (sourcePathFromRoot === '..' || sourcePathFromRoot.startsWith('../') || !existsSync(absoluteSourcePath)) {
|
|
1103
|
+
throw new Error(`Assurance implementation source "${artifact.sourcePath}" does not resolve to a repository file.`);
|
|
1104
|
+
}
|
|
1105
|
+
const realFrameworkRoot = realpathSync(frameworkRoot);
|
|
1106
|
+
const realSourcePath = realpathSync(absoluteSourcePath);
|
|
1107
|
+
const realSourcePathFromRoot = relative(realFrameworkRoot, realSourcePath).replaceAll('\\', '/');
|
|
1108
|
+
if (realSourcePathFromRoot === '..' || realSourcePathFromRoot.startsWith('../')) {
|
|
1109
|
+
throw new Error(`Assurance implementation source "${artifact.sourcePath}" resolves outside the framework repository.`);
|
|
1110
|
+
}
|
|
1111
|
+
const sourceStats = lstatSync(absoluteSourcePath);
|
|
1112
|
+
if (sourceStats.isSymbolicLink() || !sourceStats.isFile()) {
|
|
1113
|
+
throw new Error(`Assurance implementation source "${artifact.sourcePath}" must be one regular, non-symlink file.`);
|
|
1114
|
+
}
|
|
1115
|
+
// The path checks above are the whole contribution now: the artifact must
|
|
1116
|
+
// exist, be a regular non-symlink file, and live inside the framework
|
|
1117
|
+
// repository. It used to also carry a byte digest, and the digest
|
|
1118
|
+
// mechanism was removed from this schema — identity is `ref@version` and
|
|
1119
|
+
// acceptance is a commit — but the PRODUCER kept emitting the key, so
|
|
1120
|
+
// every `generate-docs` failed on a strict-object rejection.
|
|
1121
|
+
return AssuranceProgramSourceRevisionArtifactSchema.parse({
|
|
1122
|
+
artifactRef: artifact.artifactRef,
|
|
1123
|
+
});
|
|
1124
|
+
});
|
|
1125
|
+
const implementationClosure = candidate.implementationClosure;
|
|
1126
|
+
if (!ASSURANCE_IMPLEMENTATION_CLOSURE_KEY_SETS.some((permitted) => Object.keys(implementationClosure).sort().join(ASSURANCE_KEY_SEPARATOR) === permitted)
|
|
1127
|
+
|| typeof implementationClosure.artifactRef !== 'string'
|
|
1128
|
+
|| !Array.isArray(implementationClosure.rootPackageNames)
|
|
1129
|
+
|| implementationClosure.rootPackageNames.length === 0
|
|
1130
|
+
|| implementationClosure.rootPackageNames.some((value) => typeof value !== 'string' || value.length === 0)
|
|
1131
|
+
|| !Array.isArray(implementationClosure.rootInputPaths)
|
|
1132
|
+
|| implementationClosure.rootInputPaths.some((value) => typeof value !== 'string' || value.length === 0)
|
|
1133
|
+
|| (implementationClosure.sourcePathPrefixes !== undefined
|
|
1134
|
+
&& (!Array.isArray(implementationClosure.sourcePathPrefixes)
|
|
1135
|
+
|| implementationClosure.sourcePathPrefixes.length === 0
|
|
1136
|
+
|| implementationClosure.sourcePathPrefixes.some((value) => typeof value !== 'string' || value.length === 0)))) {
|
|
1137
|
+
throw new Error(`Authored assurance-authority basis ${sourceRelativePath} has an invalid implementationClosure.`);
|
|
1138
|
+
}
|
|
1139
|
+
if (artifactRefs.has(implementationClosure.artifactRef)) {
|
|
1140
|
+
throw new Error(`Authored assurance-authority basis ${sourceRelativePath} repeats artifactRef "${implementationClosure.artifactRef}".`);
|
|
1141
|
+
}
|
|
1142
|
+
artifactRefs.add(implementationClosure.artifactRef);
|
|
1143
|
+
const packageManifestPaths = globSync('**/package.json', {
|
|
1144
|
+
cwd: frameworkRoot,
|
|
1145
|
+
absolute: true,
|
|
1146
|
+
nodir: true,
|
|
1147
|
+
ignore: ['**/node_modules/**', '**/dist/**', '**/coverage/**', '**/.turbo/**'],
|
|
1148
|
+
});
|
|
1149
|
+
const packagesByName = new Map();
|
|
1150
|
+
for (const manifestPath of packageManifestPaths) {
|
|
1151
|
+
const manifest = JSON.parse(readFileSync(manifestPath, 'utf8'));
|
|
1152
|
+
if (typeof manifest.name !== 'string')
|
|
1153
|
+
continue;
|
|
1154
|
+
const packages = packagesByName.get(manifest.name) ?? [];
|
|
1155
|
+
packages.push({ packageRoot: dirname(manifestPath), manifest });
|
|
1156
|
+
packagesByName.set(manifest.name, packages);
|
|
1157
|
+
}
|
|
1158
|
+
const selectedPackageNames = new Set();
|
|
1159
|
+
const visitPackage = (packageName) => {
|
|
1160
|
+
if (selectedPackageNames.has(packageName))
|
|
1161
|
+
return;
|
|
1162
|
+
const candidates = packagesByName.get(packageName);
|
|
1163
|
+
if (!candidates)
|
|
1164
|
+
throw new Error(`Assurance implementation closure cannot resolve workspace package "${packageName}".`);
|
|
1165
|
+
if (candidates.length !== 1) {
|
|
1166
|
+
throw new Error(`Assurance implementation closure found duplicate workspace package name "${packageName}" at ${candidates
|
|
1167
|
+
.map(({ packageRoot }) => `"${relative(frameworkRoot, packageRoot)}"`)
|
|
1168
|
+
.sort()
|
|
1169
|
+
.join(' and ')}.`);
|
|
1170
|
+
}
|
|
1171
|
+
const selected = candidates[0];
|
|
1172
|
+
selectedPackageNames.add(packageName);
|
|
1173
|
+
for (const dependencyField of ['dependencies', 'optionalDependencies', 'peerDependencies']) {
|
|
1174
|
+
const dependencies = selected.manifest[dependencyField];
|
|
1175
|
+
if (!dependencies || typeof dependencies !== 'object' || Array.isArray(dependencies))
|
|
1176
|
+
continue;
|
|
1177
|
+
for (const dependencyName of Object.keys(dependencies))
|
|
1178
|
+
if (packagesByName.has(dependencyName))
|
|
1179
|
+
visitPackage(dependencyName);
|
|
1180
|
+
}
|
|
1181
|
+
};
|
|
1182
|
+
[...new Set(implementationClosure.rootPackageNames)].sort().forEach(visitPackage);
|
|
1183
|
+
/*
|
|
1184
|
+
* Optional narrowing of the attested SOURCE surface.
|
|
1185
|
+
*
|
|
1186
|
+
* Without it the closure hashes every `src/**` file of every transitively selected workspace package, which for
|
|
1187
|
+
* the Wildo baseline was ~1049 files across 9 packages to attest two controls whose named contracts are 8 files.
|
|
1188
|
+
* Measured: 43 of 45 consecutive commits moved that digest, so the acceptance it protects invalidated on almost
|
|
1189
|
+
* every commit and therefore carried no information.
|
|
1190
|
+
*
|
|
1191
|
+
* Prefixes narrow ONLY the `src/**` sweep. Package manifests, the tsconfig inheritance chain, build scripts and
|
|
1192
|
+
* the authored `rootInputPaths` (lockfile, root tsconfig) stay in unconditionally: they are few, they change
|
|
1193
|
+
* rarely, and they determine how the attested source compiles — dropping them would attest source without
|
|
1194
|
+
* attesting the build that produced it.
|
|
1195
|
+
*
|
|
1196
|
+
* A prefix matching nothing is a hard error rather than a silent no-op. A typo would otherwise shrink the
|
|
1197
|
+
* attested surface without shrinking the claim, which is the one failure mode narrowing must not introduce.
|
|
1198
|
+
*/
|
|
1199
|
+
const sourcePathPrefixes = implementationClosure.sourcePathPrefixes?.map((prefix) => normalize(prefix).replaceAll('\\', '/'));
|
|
1200
|
+
for (const prefix of sourcePathPrefixes ?? []) {
|
|
1201
|
+
if (isAbsolute(prefix) || prefix === '..' || prefix.startsWith('../')) {
|
|
1202
|
+
throw new Error(`Assurance implementation closure source prefix must stay inside the framework repository: "${prefix}".`);
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
const matchedSourcePrefixes = new Set();
|
|
1206
|
+
const admitsSourceFile = (pathFromRoot) => {
|
|
1207
|
+
if (!sourcePathPrefixes)
|
|
1208
|
+
return true;
|
|
1209
|
+
const matched = sourcePathPrefixes.find((prefix) => pathFromRoot === prefix || pathFromRoot.startsWith(prefix.endsWith('/') ? prefix : `${prefix}/`));
|
|
1210
|
+
if (matched === undefined)
|
|
1211
|
+
return false;
|
|
1212
|
+
matchedSourcePrefixes.add(matched);
|
|
1213
|
+
return true;
|
|
1214
|
+
};
|
|
1215
|
+
const closureFiles = new Set();
|
|
1216
|
+
for (const packageName of [...selectedPackageNames].sort()) {
|
|
1217
|
+
const selected = packagesByName.get(packageName)[0];
|
|
1218
|
+
for (const absolutePath of globSync(['package.json', 'tsconfig.json', 'tsconfig.build.json', 'src/**/*'], {
|
|
1219
|
+
cwd: selected.packageRoot,
|
|
1220
|
+
absolute: true,
|
|
1221
|
+
nodir: true,
|
|
1222
|
+
ignore: ['**/__tests__/**', '**/*.test.*', '**/*.spec.*', '**/dist/**', '**/node_modules/**'],
|
|
1223
|
+
})) {
|
|
1224
|
+
const pathFromRoot = relative(frameworkRoot, absolutePath).replaceAll('\\', '/');
|
|
1225
|
+
const isPackageSource = pathFromRoot.startsWith(`${relative(frameworkRoot, selected.packageRoot).replaceAll('\\', '/')}/src/`);
|
|
1226
|
+
if (isPackageSource && !admitsSourceFile(pathFromRoot))
|
|
1227
|
+
continue;
|
|
1228
|
+
closureFiles.add(absolutePath);
|
|
1229
|
+
}
|
|
1230
|
+
const buildScript = selected.manifest.scripts && typeof selected.manifest.scripts === 'object' && !Array.isArray(selected.manifest.scripts)
|
|
1231
|
+
? selected.manifest.scripts.build
|
|
1232
|
+
: undefined;
|
|
1233
|
+
if (typeof buildScript === 'string') {
|
|
1234
|
+
const relativeScriptPattern = /(?:^|[\s"'])(\.\.?\/[^\s"'&|;]+\.(?:mjs|cjs|js))/gu;
|
|
1235
|
+
for (let match = relativeScriptPattern.exec(buildScript); match !== null; match = relativeScriptPattern.exec(buildScript)) {
|
|
1236
|
+
closureFiles.add(resolve(selected.packageRoot, match[1]));
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
for (const rootInputPath of implementationClosure.rootInputPaths) {
|
|
1241
|
+
const normalizedInputPath = normalize(rootInputPath).replaceAll('\\', '/');
|
|
1242
|
+
if (isAbsolute(normalizedInputPath) || normalizedInputPath === '..' || normalizedInputPath.startsWith('../')) {
|
|
1243
|
+
throw new Error(`Assurance implementation closure input must stay inside the framework repository: "${rootInputPath}".`);
|
|
1244
|
+
}
|
|
1245
|
+
closureFiles.add(resolve(frameworkRoot, normalizedInputPath));
|
|
1246
|
+
}
|
|
1247
|
+
// TypeScript configuration and build-finalization behavior are executable build inputs, not
|
|
1248
|
+
// incidental metadata. Expand local `extends` chains and relative script imports recursively so
|
|
1249
|
+
// a shared compiler option or declaration/publication helper cannot change accepted output
|
|
1250
|
+
// without changing the implementation revision.
|
|
1251
|
+
const expandedBuildInputs = new Set();
|
|
1252
|
+
const visitTsconfigInheritance = (configPath) => {
|
|
1253
|
+
if (expandedBuildInputs.has(configPath))
|
|
1254
|
+
return;
|
|
1255
|
+
expandedBuildInputs.add(configPath);
|
|
1256
|
+
closureFiles.add(configPath);
|
|
1257
|
+
const result = ts.readConfigFile(configPath, ts.sys.readFile);
|
|
1258
|
+
if (result.error || !result.config || typeof result.config !== 'object')
|
|
1259
|
+
return;
|
|
1260
|
+
const extensions = Array.isArray(result.config.extends) ? result.config.extends : [result.config.extends];
|
|
1261
|
+
for (const extension of extensions) {
|
|
1262
|
+
if (typeof extension !== 'string' || (!extension.startsWith('.') && !isAbsolute(extension)))
|
|
1263
|
+
continue;
|
|
1264
|
+
const candidate = resolve(dirname(configPath), extension.endsWith('.json') ? extension : `${extension}.json`);
|
|
1265
|
+
visitTsconfigInheritance(candidate);
|
|
1266
|
+
}
|
|
1267
|
+
};
|
|
1268
|
+
const visitBuildScriptImports = (scriptPath) => {
|
|
1269
|
+
if (expandedBuildInputs.has(scriptPath))
|
|
1270
|
+
return;
|
|
1271
|
+
expandedBuildInputs.add(scriptPath);
|
|
1272
|
+
closureFiles.add(scriptPath);
|
|
1273
|
+
if (!existsSync(scriptPath))
|
|
1274
|
+
return;
|
|
1275
|
+
const source = readFileSync(scriptPath, 'utf8');
|
|
1276
|
+
for (const imported of ts.preProcessFile(source, true, true).importedFiles) {
|
|
1277
|
+
if (!imported.fileName.startsWith('.'))
|
|
1278
|
+
continue;
|
|
1279
|
+
const unresolved = resolve(dirname(scriptPath), imported.fileName);
|
|
1280
|
+
const candidates = extname(unresolved) ? [unresolved] : [`${unresolved}.mjs`, `${unresolved}.js`, `${unresolved}.cjs`];
|
|
1281
|
+
const resolvedImport = candidates.find((candidate) => existsSync(candidate));
|
|
1282
|
+
if (resolvedImport)
|
|
1283
|
+
visitBuildScriptImports(resolvedImport);
|
|
1284
|
+
}
|
|
1285
|
+
};
|
|
1286
|
+
for (const closureFile of [...closureFiles]) {
|
|
1287
|
+
if (/\/tsconfig(?:\.[^/]+)?\.json$/u.test(closureFile))
|
|
1288
|
+
visitTsconfigInheritance(closureFile);
|
|
1289
|
+
else if (/\.(?:mjs|cjs|js)$/u.test(closureFile))
|
|
1290
|
+
visitBuildScriptImports(closureFile);
|
|
1291
|
+
}
|
|
1292
|
+
const unmatchedSourcePrefixes = (sourcePathPrefixes ?? []).filter((prefix) => !matchedSourcePrefixes.has(prefix));
|
|
1293
|
+
if (unmatchedSourcePrefixes.length > 0) {
|
|
1294
|
+
throw new Error(`Assurance implementation closure source prefixes match no file in the selected packages: ${unmatchedSourcePrefixes
|
|
1295
|
+
.map((prefix) => `"${prefix}"`)
|
|
1296
|
+
.sort()
|
|
1297
|
+
.join(', ')}.`);
|
|
1298
|
+
}
|
|
1299
|
+
const realFrameworkRoot = realpathSync(frameworkRoot);
|
|
1300
|
+
const closureInventory = [...closureFiles].map((absolutePath) => {
|
|
1301
|
+
if (!existsSync(absolutePath))
|
|
1302
|
+
throw new Error(`Assurance implementation closure input does not resolve to a repository file: "${relative(frameworkRoot, absolutePath)}".`);
|
|
1303
|
+
const realPath = realpathSync(absolutePath);
|
|
1304
|
+
const realPathFromRoot = relative(realFrameworkRoot, realPath).replaceAll('\\', '/');
|
|
1305
|
+
if (realPathFromRoot === '..' || realPathFromRoot.startsWith('../')) {
|
|
1306
|
+
throw new Error(`Assurance implementation closure input resolves outside the framework repository: "${relative(frameworkRoot, absolutePath)}".`);
|
|
1307
|
+
}
|
|
1308
|
+
const sourceStats = lstatSync(absolutePath);
|
|
1309
|
+
if (sourceStats.isSymbolicLink() || !sourceStats.isFile()) {
|
|
1310
|
+
throw new Error(`Assurance implementation closure input must be one regular, non-symlink file: "${relative(frameworkRoot, absolutePath)}".`);
|
|
1311
|
+
}
|
|
1312
|
+
return {
|
|
1313
|
+
path: relative(frameworkRoot, absolutePath).replaceAll('\\', '/'),
|
|
1314
|
+
digest: computeMetaWorkflowRawByteDigest(readFileSync(absolutePath)),
|
|
1315
|
+
};
|
|
1316
|
+
}).sort((left, right) => compareCanonicalText(left.path, right.path));
|
|
1317
|
+
// The attested surface is named by `artifactRef`; WHICH BYTES it covered is the engine's
|
|
1318
|
+
// committed git revision at generation time, not a hash recorded beside the claim (2026-08-27).
|
|
1319
|
+
void closureInventory;
|
|
1320
|
+
void sourcePathPrefixes;
|
|
1321
|
+
void selectedPackageNames;
|
|
1322
|
+
artifacts.push(AssuranceProgramSourceRevisionArtifactSchema.parse({
|
|
1323
|
+
artifactRef: implementationClosure.artifactRef,
|
|
1324
|
+
}));
|
|
1325
|
+
artifacts.sort((left, right) => compareCanonicalText(left.artifactRef, right.artifactRef));
|
|
1326
|
+
const implementationRevision = createAssuranceProgramSourceRevision({
|
|
1327
|
+
sourceRevisionRef: candidate.sourceRevisionRef,
|
|
1328
|
+
artifacts,
|
|
1329
|
+
});
|
|
1330
|
+
const basis = createInitialAssuranceProgramAuthorityBasis({ implementationRevision });
|
|
1331
|
+
const parsedBasis = AssuranceProgramAuthorityBasisSchema.parse(basis);
|
|
1332
|
+
const bytes = new TextEncoder().encode(canonicalizeMetaWorkflowJson(parsedBasis));
|
|
1333
|
+
const outputDirectory = join(assuranceAuthorityBasesDirectory, basisFile.folderRef);
|
|
1334
|
+
mkdirSync(outputDirectory, { recursive: true });
|
|
1335
|
+
writeFileSync(join(outputDirectory, ASSURANCE_AUTHORITY_BASIS_FILE_NAME), bytes);
|
|
1336
|
+
/*
|
|
1337
|
+
* The mapping, derived from THIS basis in the same pass (#266).
|
|
1338
|
+
*
|
|
1339
|
+
* `deriveAssuranceExternalFrameworkMapping` THROWS when the basis cites a source whose rights
|
|
1340
|
+
* record does not authorize even a metadata citation, and that refusal is deliberately allowed to
|
|
1341
|
+
* fail the whole generation. Catching it would ship a knowledge payload whose mapping is silently
|
|
1342
|
+
* absent — and an absent mapping is indistinguishable from an application that binds no external
|
|
1343
|
+
* source, which is the direction that reads as good news.
|
|
1344
|
+
*/
|
|
1345
|
+
const externalFrameworkMapping = deriveAssuranceExternalFrameworkMapping(parsedBasis, generatedAt);
|
|
1346
|
+
writeFileSync(join(outputDirectory, ASSURANCE_EXTERNAL_FRAMEWORK_MAPPING_FILE_NAME), new TextEncoder().encode(canonicalizeMetaWorkflowJson({ ...externalFrameworkMapping, evaluatedAt: generatedAt })));
|
|
1347
|
+
return {
|
|
1348
|
+
ref: parsedBasis.basisRef,
|
|
1349
|
+
version: parsedBasis.basisVersion,
|
|
1350
|
+
sourceRevisionRef: parsedBasis.implementationRevision.sourceRevisionRef,
|
|
1351
|
+
filePath: `${ASSURANCE_AUTHORITY_BASIS_DIRECTORY_NAME}/${basisFile.folderRef}/${ASSURANCE_AUTHORITY_BASIS_FILE_NAME}`,
|
|
1352
|
+
externalFrameworkMappingFilePath: `${ASSURANCE_AUTHORITY_BASIS_DIRECTORY_NAME}/${basisFile.folderRef}/${ASSURANCE_EXTERNAL_FRAMEWORK_MAPPING_FILE_NAME}`,
|
|
1353
|
+
};
|
|
1354
|
+
}
|
|
1355
|
+
/**
|
|
1356
|
+
* Materializes one authored playbook folder into
|
|
1357
|
+
* `dist/knowledge/playbooks/<ref>/`.
|
|
1358
|
+
*
|
|
1359
|
+
* Assembly contract (single source of truth for the method prose):
|
|
1360
|
+
*
|
|
1361
|
+
* - exactly one canonical structured source is accepted: the effect-free
|
|
1362
|
+
* `playbook.definition.ts` native declarative entry (the JSON-v1 format
|
|
1363
|
+
* was retired at the first-activation hard cut);
|
|
1364
|
+
* - the structured source carries every playbook field EXCEPT
|
|
1365
|
+
* `method.guidance`, whose single source is `method.md`;
|
|
1366
|
+
* - `method.md` is rendered through the same partial/`{{REFERENCE:…}}`
|
|
1367
|
+
* expansion as skill bodies and injected as `method.guidance`.
|
|
1368
|
+
* Topic-implicit placeholders (`{{SOURCE_EXCERPTS_*}}`, `{{TITLE}}`, …)
|
|
1369
|
+
* have no topic to resolve against here — they render VERBATIM, and the
|
|
1370
|
+
* audit (rule 15) fails them at PR time; the generator passes empty
|
|
1371
|
+
* replacements on purpose rather than inventing per-playbook topics;
|
|
1372
|
+
* - native TypeScript is statically evaluated as a constrained data AST; no
|
|
1373
|
+
* authored module code executes during generation. A native definition may
|
|
1374
|
+
* omit `evaluationTreatmentSource`: that is the intentional canonical
|
|
1375
|
+
* source form for a methodology that the generic assessment loop will compose.
|
|
1376
|
+
* When present, the optional source still compiles a portable legacy
|
|
1377
|
+
* treatment during the bounded migration interval;
|
|
1378
|
+
* - the ASSEMBLED playbook is Zod-validated against
|
|
1379
|
+
* `MetaWorkflowPlaybookSchema` (the CLI legitimately depends on
|
|
1380
|
+
* the semantic `@wildo-ai/saas-specifications/application-creation`
|
|
1381
|
+
* contract surface; the buildless constraint applies to the
|
|
1382
|
+
* audit, not the generator), so the shipped `playbook.json` is always
|
|
1383
|
+
* schema-valid with defaults materialized;
|
|
1384
|
+
* - the folder name is the loader's address (`playbooks/<ref>/…`), so a
|
|
1385
|
+
* folder-name/`ref` mismatch is a hard error, not a warning.
|
|
1386
|
+
*/
|
|
1387
|
+
/**
|
|
1388
|
+
* Expand `{{CONTEXT_SOURCE:<member>}}` in a rendered playbook method — the compile-time JOIN
|
|
1389
|
+
* between a method's promise of a brief section and the declaration that makes the runtime
|
|
1390
|
+
* compose it (issue #259's structural fix; audit rule 28 is the PR-time copy of this predicate).
|
|
1391
|
+
*
|
|
1392
|
+
* FAIL-CLOSED on an unknown member and on an undeclared one: a placeholder that compiled while
|
|
1393
|
+
* undeclared would be exactly the silent promise-without-delivery this family of defects is —
|
|
1394
|
+
* six recorded instances, each written by a careful author, none caught by anything mechanical.
|
|
1395
|
+
* The expansion text derives from the member itself rather than copying the runtime's section
|
|
1396
|
+
* headers, so it cannot drift from a string another package owns.
|
|
1397
|
+
*/
|
|
1398
|
+
static expandContextSourcePlaceholders(params) {
|
|
1399
|
+
const validMembers = new Set(Object.values(MetaWorkflow_ContextSource));
|
|
1400
|
+
const declared = new Set(params.declaredContextSources);
|
|
1401
|
+
return params.markdown.replace(/\{\{CONTEXT_SOURCE:([a-z0-9_]+)\}\}/gu, (_match, member) => {
|
|
1402
|
+
if (!validMembers.has(member)) {
|
|
1403
|
+
throw new Error(`Playbook "${params.playbookRef}" uses {{CONTEXT_SOURCE:${member}}}, and "${member}" is no `
|
|
1404
|
+
+ `MetaWorkflow_ContextSource member. Valid members: ${[...validMembers].sort().join(', ')}.`);
|
|
1405
|
+
}
|
|
1406
|
+
if (!declared.has(member)) {
|
|
1407
|
+
throw new Error(`Playbook "${params.playbookRef}" uses {{CONTEXT_SOURCE:${member}}} without declaring "${member}" in `
|
|
1408
|
+
+ 'method.contextSources. The prose would promise a brief section the runtime never composes — '
|
|
1409
|
+
+ 'declare the source or remove the reference.');
|
|
1410
|
+
}
|
|
1411
|
+
return `the declared \`${member}\` context section of your brief`;
|
|
1412
|
+
});
|
|
1413
|
+
}
|
|
1414
|
+
static async materializePlaybookFolder(params) {
|
|
1415
|
+
const { playbookFolder } = params;
|
|
1416
|
+
const authoredRelativePath = relative(params.frameworkRoot, playbookFolder.playbookSourcePath);
|
|
1417
|
+
const authoredModule = readEffectFreePlaybookModule(playbookFolder.playbookSourcePath);
|
|
1418
|
+
const authoredPlaybook = authoredModule.playbookDefinition;
|
|
1419
|
+
const evaluationTreatmentSource = authoredModule.evaluationTreatmentSource;
|
|
1420
|
+
const structuredArtifactActionSource = authoredModule.structuredArtifactActionSource;
|
|
1421
|
+
const authoredMethod = (authoredPlaybook.method ?? {});
|
|
1422
|
+
if (authoredMethod.guidance !== undefined) {
|
|
1423
|
+
throw new Error(`Authored playbook ${authoredRelativePath} declares method.guidance inline. The method prose lives in method.md (single source of truth) — remove the JSON field.`);
|
|
1424
|
+
}
|
|
1425
|
+
if (authoredPlaybook.ref !== playbookFolder.playbookRef) {
|
|
1426
|
+
throw new Error(`Authored playbook ${authoredRelativePath} declares ref "${String(authoredPlaybook.ref)}" but lives in folder "${playbookFolder.playbookRef}". The folder name is the loader address — they must match.`);
|
|
1427
|
+
}
|
|
1428
|
+
if (!existsSync(playbookFolder.methodMarkdownPath)) {
|
|
1429
|
+
throw new Error(`Authored playbook "${playbookFolder.playbookRef}" is missing its ${PLAYBOOK_METHOD_FILE_NAME}.`);
|
|
1430
|
+
}
|
|
1431
|
+
const renderedMethodMarkdown = FrameworkKnowledgeGenerationService.expandContextSourcePlaceholders({
|
|
1432
|
+
playbookRef: playbookFolder.playbookRef,
|
|
1433
|
+
declaredContextSources: Array.isArray(authoredMethod.contextSources)
|
|
1434
|
+
? authoredMethod.contextSources.filter((entry) => typeof entry === 'string')
|
|
1435
|
+
: [],
|
|
1436
|
+
markdown: FrameworkKnowledgeGenerationService.renderAuthoredMarkdownFile({
|
|
1437
|
+
frameworkRoot: params.frameworkRoot,
|
|
1438
|
+
templateFilePath: playbookFolder.methodMarkdownPath,
|
|
1439
|
+
templateContent: readFileSync(playbookFolder.methodMarkdownPath, 'utf8'),
|
|
1440
|
+
replacements: {},
|
|
1441
|
+
referenceMarkdownByTopic: params.referenceMarkdownByTopic,
|
|
1442
|
+
}),
|
|
1443
|
+
});
|
|
1444
|
+
const assembledPlaybook = {
|
|
1445
|
+
...authoredPlaybook,
|
|
1446
|
+
method: {
|
|
1447
|
+
...authoredMethod,
|
|
1448
|
+
guidance: renderedMethodMarkdown,
|
|
1449
|
+
},
|
|
1450
|
+
};
|
|
1451
|
+
const parseResult = MetaWorkflowPlaybookSchema.safeParse(assembledPlaybook);
|
|
1452
|
+
if (!parseResult.success) {
|
|
1453
|
+
throw new Error(`Authored playbook ${authoredRelativePath} failed MetaWorkflowPlaybookSchema validation: ${parseResult.error.message}`);
|
|
1454
|
+
}
|
|
1455
|
+
const compiledPlaybook = parseResult.data;
|
|
1456
|
+
const unexpectedFiles = readdirSync(playbookFolder.playbookFolderPath).filter((fileName) => fileName !== PLAYBOOK_JSON_FILE_NAME && fileName !== PLAYBOOK_DEFINITION_FILE_NAME && fileName !== PLAYBOOK_METHOD_FILE_NAME);
|
|
1457
|
+
if (unexpectedFiles.length > 0) {
|
|
1458
|
+
params.warnings.push(`Playbook folder "${playbookFolder.playbookRef}" contains unsupported extra file(s) that were NOT materialized: ${unexpectedFiles.join(', ')}.`);
|
|
1459
|
+
}
|
|
1460
|
+
const outputPlaybookDirectory = join(params.playbooksDirectory, playbookFolder.playbookRef);
|
|
1461
|
+
mkdirSync(outputPlaybookDirectory, { recursive: true });
|
|
1462
|
+
writeFileSync(join(outputPlaybookDirectory, PLAYBOOK_JSON_FILE_NAME), `${JSON.stringify(compiledPlaybook, null, 2)}\n`, 'utf8');
|
|
1463
|
+
writeFileSync(join(outputPlaybookDirectory, PLAYBOOK_METHOD_FILE_NAME), renderedMethodMarkdown, 'utf8');
|
|
1464
|
+
let evaluationArtifacts = {};
|
|
1465
|
+
if (evaluationTreatmentSource !== null) {
|
|
1466
|
+
const treatment = compileMetaWorkflowEvaluationTreatmentDefinition(evaluationTreatmentSource, {
|
|
1467
|
+
sourcePlaybookRef: `playbook:${compiledPlaybook.ref}`,
|
|
1468
|
+
compilerRef: 'meta-workflow:compiler/evaluation-treatment',
|
|
1469
|
+
compilerVersion: 1,
|
|
1470
|
+
}, createStandardMetaWorkflowEvaluationCompilationDependencies());
|
|
1471
|
+
const protocolBytes = new TextEncoder().encode(canonicalizeMetaWorkflowJson(treatment.evaluationProtocol));
|
|
1472
|
+
const treatmentBytes = new TextEncoder().encode(canonicalizeMetaWorkflowJson(treatment));
|
|
1473
|
+
writeFileSync(join(outputPlaybookDirectory, EVALUATION_PROTOCOL_FILE_NAME), protocolBytes);
|
|
1474
|
+
writeFileSync(join(outputPlaybookDirectory, EVALUATION_TREATMENT_FILE_NAME), treatmentBytes);
|
|
1475
|
+
evaluationArtifacts = {
|
|
1476
|
+
evaluationProtocol: {
|
|
1477
|
+
protocolRef: treatment.evaluationProtocol.protocolRef,
|
|
1478
|
+
protocolVersion: treatment.evaluationProtocol.protocolVersion,
|
|
1479
|
+
filePath: `${PLAYBOOK_DIRECTORY_NAME}/${playbookFolder.playbookRef}/${EVALUATION_PROTOCOL_FILE_NAME}`,
|
|
1480
|
+
},
|
|
1481
|
+
evaluationTreatment: {
|
|
1482
|
+
definitionRef: treatment.definitionRef,
|
|
1483
|
+
definitionVersion: treatment.definitionVersion,
|
|
1484
|
+
filePath: `${PLAYBOOK_DIRECTORY_NAME}/${playbookFolder.playbookRef}/${EVALUATION_TREATMENT_FILE_NAME}`,
|
|
1485
|
+
},
|
|
1486
|
+
};
|
|
1487
|
+
}
|
|
1488
|
+
let structuredArtifactActionArtifact = {};
|
|
1489
|
+
if (structuredArtifactActionSource !== null) {
|
|
1490
|
+
const definition = compileMetaWorkflowStructuredArtifactActionDefinition(structuredArtifactActionSource, createApplicationCreationStructuredArtifactActionCompilationDependencies());
|
|
1491
|
+
const definitionBytes = new TextEncoder().encode(canonicalizeMetaWorkflowJson(definition));
|
|
1492
|
+
writeFileSync(join(outputPlaybookDirectory, STRUCTURED_ARTIFACT_ACTION_FILE_NAME), definitionBytes);
|
|
1493
|
+
structuredArtifactActionArtifact = {
|
|
1494
|
+
structuredArtifactAction: {
|
|
1495
|
+
definitionRef: definition.definitionRef,
|
|
1496
|
+
definitionVersion: definition.definitionVersion,
|
|
1497
|
+
filePath: `${PLAYBOOK_DIRECTORY_NAME}/${playbookFolder.playbookRef}/${STRUCTURED_ARTIFACT_ACTION_FILE_NAME}`,
|
|
1498
|
+
},
|
|
1499
|
+
};
|
|
1500
|
+
}
|
|
1501
|
+
return {
|
|
1502
|
+
ref: compiledPlaybook.ref,
|
|
1503
|
+
version: compiledPlaybook.version,
|
|
1504
|
+
phase: compiledPlaybook.phase,
|
|
1505
|
+
...(compiledPlaybook.executor !== undefined ? { executor: compiledPlaybook.executor } : {}),
|
|
1506
|
+
intent: compiledPlaybook.intent,
|
|
1507
|
+
functionalTopics: compiledPlaybook.functionalTopics,
|
|
1508
|
+
skillRefs: compiledPlaybook.method.skillRefs,
|
|
1509
|
+
playbookFilePath: `${PLAYBOOK_DIRECTORY_NAME}/${playbookFolder.playbookRef}/${PLAYBOOK_JSON_FILE_NAME}`,
|
|
1510
|
+
methodFilePath: `${PLAYBOOK_DIRECTORY_NAME}/${playbookFolder.playbookRef}/${PLAYBOOK_METHOD_FILE_NAME}`,
|
|
1511
|
+
sourceFormat: playbookFolder.sourceFormat,
|
|
1512
|
+
...evaluationArtifacts,
|
|
1513
|
+
...structuredArtifactActionArtifact,
|
|
1514
|
+
};
|
|
1515
|
+
}
|
|
1516
|
+
/**
|
|
1517
|
+
* Materializes a skill folder into the output directory.
|
|
1518
|
+
* SKILL.md gets partial expansion + placeholder substitution.
|
|
1519
|
+
* Supporting markdown files are rendered with the same partial/reference
|
|
1520
|
+
* expansion as SKILL.md; non-markdown files are copied verbatim.
|
|
1521
|
+
*/
|
|
1522
|
+
static materializeSkillFolder(params) {
|
|
1523
|
+
const outputSkillDirectory = join(params.skillsDirectory, params.skillFolder.skillId);
|
|
1524
|
+
mkdirSync(outputSkillDirectory, { recursive: true });
|
|
1525
|
+
const renderedSkill = FrameworkKnowledgeGenerationService.renderAuthoredMarkdownFile({
|
|
1526
|
+
frameworkRoot: params.frameworkRoot,
|
|
1527
|
+
templateFilePath: params.skillFolder.skillEntryPath,
|
|
1528
|
+
templateContent: params.skillFolder.skillEntryContent,
|
|
1529
|
+
replacements: params.replacements,
|
|
1530
|
+
referenceMarkdownByTopic: params.referenceMarkdownByTopic,
|
|
1531
|
+
});
|
|
1532
|
+
writeFileSync(join(outputSkillDirectory, 'SKILL.md'), renderedSkill, 'utf8');
|
|
1533
|
+
const skillFiles = [`${params.skillFolder.skillId}/SKILL.md`];
|
|
1534
|
+
for (const supportingDirPath of params.skillFolder.supportingDirectories) {
|
|
1535
|
+
skillFiles.push(...FrameworkKnowledgeGenerationService.materializeSupportingDirectory({
|
|
1536
|
+
frameworkRoot: params.frameworkRoot,
|
|
1537
|
+
supportingDirectoryPath: supportingDirPath,
|
|
1538
|
+
outputSkillDirectory,
|
|
1539
|
+
skillsDirectory: params.skillsDirectory,
|
|
1540
|
+
replacements: params.replacements,
|
|
1541
|
+
referenceMarkdownByTopic: params.referenceMarkdownByTopic,
|
|
1542
|
+
}));
|
|
1543
|
+
}
|
|
1544
|
+
return skillFiles;
|
|
1545
|
+
}
|
|
1546
|
+
static materializeSupportingDirectory(params) {
|
|
1547
|
+
const dirName = params.supportingDirectoryPath.split('/').pop() ?? '';
|
|
1548
|
+
const outputSupportingDir = join(params.outputSkillDirectory, dirName);
|
|
1549
|
+
mkdirSync(outputSupportingDir, { recursive: true });
|
|
1550
|
+
const supportingFilePaths = globSync('**/*', {
|
|
1551
|
+
cwd: params.supportingDirectoryPath,
|
|
1552
|
+
nodir: true,
|
|
1553
|
+
absolute: false,
|
|
1554
|
+
dot: true,
|
|
1555
|
+
}).sort((left, right) => left.localeCompare(right));
|
|
1556
|
+
const materializedFiles = [];
|
|
1557
|
+
for (const relativeFilePath of supportingFilePaths) {
|
|
1558
|
+
const sourceFilePath = join(params.supportingDirectoryPath, relativeFilePath);
|
|
1559
|
+
const outputFilePath = join(outputSupportingDir, relativeFilePath);
|
|
1560
|
+
mkdirSync(dirname(outputFilePath), { recursive: true });
|
|
1561
|
+
if (extname(sourceFilePath).toLowerCase() === '.md') {
|
|
1562
|
+
const renderedMarkdown = FrameworkKnowledgeGenerationService.renderAuthoredMarkdownFile({
|
|
1563
|
+
frameworkRoot: params.frameworkRoot,
|
|
1564
|
+
templateFilePath: sourceFilePath,
|
|
1565
|
+
templateContent: readFileSync(sourceFilePath, 'utf8'),
|
|
1566
|
+
replacements: params.replacements,
|
|
1567
|
+
referenceMarkdownByTopic: params.referenceMarkdownByTopic,
|
|
1568
|
+
});
|
|
1569
|
+
writeFileSync(outputFilePath, renderedMarkdown, 'utf8');
|
|
1570
|
+
}
|
|
1571
|
+
else {
|
|
1572
|
+
cpSync(sourceFilePath, outputFilePath);
|
|
1573
|
+
}
|
|
1574
|
+
materializedFiles.push(relative(params.skillsDirectory, outputFilePath).replaceAll('\\', '/'));
|
|
1575
|
+
}
|
|
1576
|
+
return materializedFiles;
|
|
1577
|
+
}
|
|
1578
|
+
static buildTopicTemplateReplacements(params) {
|
|
1579
|
+
return {
|
|
1580
|
+
TITLE: FrameworkKnowledgeGenerationService.buildTitleFromTopicId(params.topicId),
|
|
1581
|
+
TOPIC_ID: params.topicId,
|
|
1582
|
+
REFERENCE_RELATIVE_PATH: params.referenceRelativePath,
|
|
1583
|
+
SOURCE_EXCERPTS_LEVEL2: FrameworkKnowledgeGenerationService.buildSourceExcerptsMarkdown(params.frameworkRoot, params.sections, 2),
|
|
1584
|
+
SOURCE_EXCERPTS_LEVEL3: FrameworkKnowledgeGenerationService.buildSourceExcerptsMarkdown(params.frameworkRoot, params.sections, 3),
|
|
1585
|
+
USAGE_EXAMPLES_LEVEL2: FrameworkKnowledgeGenerationService.buildUsageExamplesMarkdown(params.frameworkRoot, params.sections, 2),
|
|
1586
|
+
USAGE_EXAMPLES_LEVEL3: FrameworkKnowledgeGenerationService.buildUsageExamplesMarkdown(params.frameworkRoot, params.sections, 3),
|
|
1587
|
+
};
|
|
1588
|
+
}
|
|
1589
|
+
static buildReferenceMarkdown(frameworkRoot, topicId, sections) {
|
|
1590
|
+
const sourceSections = FrameworkKnowledgeGenerationService.getNonUsageExampleSections(sections);
|
|
1591
|
+
const usageSections = FrameworkKnowledgeGenerationService.getUsageExampleSections(sections);
|
|
1592
|
+
const sourceExcerptsMarkdown = FrameworkKnowledgeGenerationService.buildSourceExcerptsMarkdown(frameworkRoot, sections, 3);
|
|
1593
|
+
const usageExamplesMarkdown = FrameworkKnowledgeGenerationService.buildUsageExamplesMarkdown(frameworkRoot, sections, 2);
|
|
1594
|
+
const importOriginsMarkdown = FrameworkKnowledgeGenerationService.buildImportOriginsMarkdown(frameworkRoot, sourceSections);
|
|
1595
|
+
const lines = [
|
|
1596
|
+
`# ${topicId}`,
|
|
1597
|
+
'',
|
|
1598
|
+
];
|
|
1599
|
+
if (importOriginsMarkdown.length > 0) {
|
|
1600
|
+
lines.push('## Import Origins');
|
|
1601
|
+
lines.push('');
|
|
1602
|
+
lines.push(importOriginsMarkdown);
|
|
1603
|
+
lines.push('');
|
|
1604
|
+
}
|
|
1605
|
+
if (sourceSections.length > 0 && sourceExcerptsMarkdown.length > 0) {
|
|
1606
|
+
lines.push('## Source Excerpts');
|
|
1607
|
+
lines.push('');
|
|
1608
|
+
lines.push(sourceExcerptsMarkdown);
|
|
1609
|
+
}
|
|
1610
|
+
if (usageSections.length > 0 && usageExamplesMarkdown.length > 0) {
|
|
1611
|
+
lines.push('');
|
|
1612
|
+
lines.push(usageExamplesMarkdown);
|
|
1613
|
+
}
|
|
1614
|
+
return `${lines.join('\n').trimEnd()}\n`;
|
|
1615
|
+
}
|
|
1616
|
+
static buildSourceExcerptsMarkdown(frameworkRoot, sections, headingLevel = 3) {
|
|
1617
|
+
return FrameworkKnowledgeGenerationService.buildSectionCollectionMarkdown({
|
|
1618
|
+
frameworkRoot,
|
|
1619
|
+
sections: FrameworkKnowledgeGenerationService.getNonUsageExampleSections(sections),
|
|
1620
|
+
headingLevel,
|
|
1621
|
+
entryKind: 'source',
|
|
1622
|
+
});
|
|
1623
|
+
}
|
|
1624
|
+
static buildUsageExamplesMarkdown(frameworkRoot, sections, headingLevel = 3) {
|
|
1625
|
+
return FrameworkKnowledgeGenerationService.buildSectionCollectionMarkdown({
|
|
1626
|
+
frameworkRoot,
|
|
1627
|
+
sections: FrameworkKnowledgeGenerationService.getUsageExampleSections(sections),
|
|
1628
|
+
headingLevel,
|
|
1629
|
+
entryKind: 'usage-example',
|
|
1630
|
+
});
|
|
1631
|
+
}
|
|
1632
|
+
static buildSectionCollectionMarkdown(params) {
|
|
1633
|
+
const lines = [];
|
|
1634
|
+
const headingPrefix = '#'.repeat(params.headingLevel);
|
|
1635
|
+
params.sections.forEach((section) => {
|
|
1636
|
+
const packageName = FrameworkKnowledgeGenerationService.resolveOwningPackageName(params.frameworkRoot, section.filePath);
|
|
1637
|
+
const headingLabel = params.entryKind === 'usage-example' ? 'Usage Example' : 'Origin Package';
|
|
1638
|
+
const headingValue = packageName ?? 'Framework Source';
|
|
1639
|
+
if (params.entryKind === 'source') {
|
|
1640
|
+
lines.push(`${headingPrefix} ${headingLabel}: \`${headingValue}\``);
|
|
1641
|
+
lines.push('');
|
|
1642
|
+
}
|
|
1643
|
+
else {
|
|
1644
|
+
lines.push(`${headingPrefix} ${headingLabel}`);
|
|
1645
|
+
lines.push('');
|
|
1646
|
+
}
|
|
1647
|
+
lines.push(`\`\`\`${section.language}`);
|
|
1648
|
+
lines.push(FrameworkKnowledgeGenerationService.sanitizeSectionContent(section.content));
|
|
1649
|
+
lines.push('```');
|
|
1650
|
+
lines.push('');
|
|
1651
|
+
});
|
|
1652
|
+
return lines.join('\n').trimEnd();
|
|
1653
|
+
}
|
|
1654
|
+
static getUsageExampleSections(sections) {
|
|
1655
|
+
return sections.filter((section) => section.facets.includes(USAGE_EXAMPLE_FACET));
|
|
1656
|
+
}
|
|
1657
|
+
static getNonUsageExampleSections(sections) {
|
|
1658
|
+
return sections.filter((section) => !section.facets.includes(USAGE_EXAMPLE_FACET));
|
|
1659
|
+
}
|
|
1660
|
+
static buildImportOriginsMarkdown(frameworkRoot, sections) {
|
|
1661
|
+
const packageNames = Array.from(new Set(sections.map((section) => FrameworkKnowledgeGenerationService.resolveOwningPackageName(frameworkRoot, section.filePath))
|
|
1662
|
+
.filter((packageName) => packageName !== null))).sort((left, right) => left.localeCompare(right));
|
|
1663
|
+
if (packageNames.length === 0) {
|
|
1664
|
+
return '';
|
|
1665
|
+
}
|
|
1666
|
+
return packageNames.map((packageName) => `- \`${packageName}\``).join('\n');
|
|
1667
|
+
}
|
|
1668
|
+
static sanitizeSectionContent(content) {
|
|
1669
|
+
// Usage examples are intentionally allowed to originate in a real
|
|
1670
|
+
// dogfooding application. Their implementation identity is not portable,
|
|
1671
|
+
// though: an installed application builder must read the example as a
|
|
1672
|
+
// pattern to adapt, never as instructions to recreate or import Wonder.
|
|
1673
|
+
// Keep domain structure, checks and rationale intact while translating
|
|
1674
|
+
// only the application-identity tokens at this delivery boundary.
|
|
1675
|
+
const sanitizedLines = content
|
|
1676
|
+
.split('\n')
|
|
1677
|
+
.filter((line) => !FrameworkKnowledgeGenerationService.isInternalDirectiveLine(line));
|
|
1678
|
+
while (sanitizedLines[0]?.trim() === '') {
|
|
1679
|
+
sanitizedLines.shift();
|
|
1680
|
+
}
|
|
1681
|
+
while (sanitizedLines[sanitizedLines.length - 1]?.trim() === '') {
|
|
1682
|
+
sanitizedLines.pop();
|
|
1683
|
+
}
|
|
1684
|
+
return sanitizedLines
|
|
1685
|
+
.join('\n')
|
|
1686
|
+
.replaceAll('@wonder-todos/main-app', '@your-app/main-app')
|
|
1687
|
+
.replaceAll('@wonder-todos/shared-lib', '@your-app/shared-lib')
|
|
1688
|
+
.replaceAll('@wonder-todos/specifications', '@your-app/specifications')
|
|
1689
|
+
.replaceAll('@wonder-todos/backend-api', '@your-app/backend-api')
|
|
1690
|
+
.replaceAll('@wonder-todos/root', '@your-app/root')
|
|
1691
|
+
.replaceAll('examples/wonder-todos/', '')
|
|
1692
|
+
.replaceAll('Wonder Todos', 'Your Application')
|
|
1693
|
+
.replaceAll('Wonder-Todos', 'Your Application')
|
|
1694
|
+
.replaceAll('wonder-todos', 'your-app');
|
|
1695
|
+
}
|
|
1696
|
+
static isInternalDirectiveLine(line) {
|
|
1697
|
+
return line.includes('@wildo_source:') || line.includes('@wildo_source(');
|
|
1698
|
+
}
|
|
1699
|
+
static resolveOwningPackageName(frameworkRoot, relativeFilePath) {
|
|
1700
|
+
const frameworkLayout = resolveFrameworkLayout(frameworkRoot);
|
|
1701
|
+
let currentDirectory = join(frameworkLayout.repositoryRoot, dirname(relativeFilePath));
|
|
1702
|
+
while (currentDirectory.startsWith(frameworkLayout.repositoryRoot)
|
|
1703
|
+
&& currentDirectory !== frameworkLayout.repositoryRoot) {
|
|
1704
|
+
const packageJsonPath = join(currentDirectory, 'package.json');
|
|
1705
|
+
if (existsSync(packageJsonPath)) {
|
|
1706
|
+
const parsedPackageJson = JSON.parse(readFileSync(packageJsonPath, 'utf8'));
|
|
1707
|
+
if (typeof parsedPackageJson.name === 'string' && parsedPackageJson.name.length > 0) {
|
|
1708
|
+
return parsedPackageJson.name;
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
const parentDirectory = dirname(currentDirectory);
|
|
1712
|
+
if (parentDirectory === currentDirectory) {
|
|
1713
|
+
break;
|
|
1714
|
+
}
|
|
1715
|
+
currentDirectory = parentDirectory;
|
|
1716
|
+
}
|
|
1717
|
+
return null;
|
|
1718
|
+
}
|
|
1719
|
+
/**
|
|
1720
|
+
* `replacements` is intentionally the loose `Record<string, string>`
|
|
1721
|
+
* rather than {@link TopicTemplateReplacements}: skill bodies pass the
|
|
1722
|
+
* full topic-implicit set, while topic-less artifacts (playbook method
|
|
1723
|
+
* bodies, the skills INDEX) pass `{}` — unknown placeholders then render
|
|
1724
|
+
* verbatim and the audit forbids them where they cannot resolve.
|
|
1725
|
+
*/
|
|
1726
|
+
static renderAuthoredMarkdownFile(params) {
|
|
1727
|
+
const contentWithExpandedPartials = FrameworkKnowledgeGenerationService.expandTemplatePartials({
|
|
1728
|
+
frameworkRoot: params.frameworkRoot,
|
|
1729
|
+
templateFilePath: params.templateFilePath,
|
|
1730
|
+
templateContent: params.templateContent,
|
|
1731
|
+
activeFilePaths: new Set(),
|
|
1732
|
+
});
|
|
1733
|
+
const contentWithExpandedReferences = FrameworkKnowledgeGenerationService.expandTemplateReferences({
|
|
1734
|
+
templateContent: contentWithExpandedPartials,
|
|
1735
|
+
templateFilePath: params.templateFilePath,
|
|
1736
|
+
referenceMarkdownByTopic: params.referenceMarkdownByTopic,
|
|
1737
|
+
});
|
|
1738
|
+
return FrameworkKnowledgeGenerationService.renderTemplate(contentWithExpandedReferences, params.replacements);
|
|
1739
|
+
}
|
|
1740
|
+
static expandTemplatePartials(params) {
|
|
1741
|
+
if (params.activeFilePaths.has(params.templateFilePath)) {
|
|
1742
|
+
throw new Error(`Circular framework-knowledge partial include detected at ${params.templateFilePath}.`);
|
|
1743
|
+
}
|
|
1744
|
+
params.activeFilePaths.add(params.templateFilePath);
|
|
1745
|
+
const expandedContent = params.templateContent.replaceAll(PARTIAL_INCLUDE_REGEX, (_match, requestedPath) => {
|
|
1746
|
+
const partialFilePath = FrameworkKnowledgeGenerationService.resolvePartialFilePath(params.frameworkRoot, params.templateFilePath, requestedPath.trim());
|
|
1747
|
+
if (!existsSync(partialFilePath)) {
|
|
1748
|
+
throw new Error(`Framework-knowledge partial "${requestedPath}" referenced from ${params.templateFilePath} was not found at ${partialFilePath}.`);
|
|
1749
|
+
}
|
|
1750
|
+
return FrameworkKnowledgeGenerationService.expandTemplatePartials({
|
|
1751
|
+
frameworkRoot: params.frameworkRoot,
|
|
1752
|
+
templateFilePath: partialFilePath,
|
|
1753
|
+
templateContent: readFileSync(partialFilePath, 'utf8'),
|
|
1754
|
+
activeFilePaths: new Set(params.activeFilePaths),
|
|
1755
|
+
});
|
|
1756
|
+
});
|
|
1757
|
+
params.activeFilePaths.delete(params.templateFilePath);
|
|
1758
|
+
return expandedContent;
|
|
1759
|
+
}
|
|
1760
|
+
static resolvePartialFilePath(frameworkRoot, templateFilePath, requestedPath) {
|
|
1761
|
+
if (requestedPath.startsWith('./') || requestedPath.startsWith('../')) {
|
|
1762
|
+
return join(dirname(templateFilePath), requestedPath);
|
|
1763
|
+
}
|
|
1764
|
+
return join(resolveFrameworkLayout(frameworkRoot).frameworkKnowledgeSourceHome, requestedPath);
|
|
1765
|
+
}
|
|
1766
|
+
static expandTemplateReferences(params) {
|
|
1767
|
+
return params.templateContent.replaceAll(REFERENCE_INCLUDE_REGEX, (_match, requestedTopicId) => {
|
|
1768
|
+
const topicId = requestedTopicId.trim();
|
|
1769
|
+
const referenceMarkdown = params.referenceMarkdownByTopic.get(topicId);
|
|
1770
|
+
if (referenceMarkdown === undefined) {
|
|
1771
|
+
throw new Error(`Framework-knowledge reference "${topicId}" referenced from ${params.templateFilePath} was not found.`);
|
|
1772
|
+
}
|
|
1773
|
+
return FrameworkKnowledgeGenerationService.stripTopLevelReferenceHeading(referenceMarkdown);
|
|
1774
|
+
});
|
|
1775
|
+
}
|
|
1776
|
+
static stripTopLevelReferenceHeading(referenceMarkdown) {
|
|
1777
|
+
const lines = referenceMarkdown.trimEnd().split('\n');
|
|
1778
|
+
if (lines[0]?.startsWith('# ')) {
|
|
1779
|
+
lines.shift();
|
|
1780
|
+
if (lines[0]?.trim() === '') {
|
|
1781
|
+
lines.shift();
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
return lines.join('\n').trimEnd();
|
|
1785
|
+
}
|
|
1786
|
+
static renderTemplate(templateContent, replacements) {
|
|
1787
|
+
let renderedContent = templateContent;
|
|
1788
|
+
for (const [placeholder, value] of Object.entries(replacements)) {
|
|
1789
|
+
renderedContent = renderedContent.replaceAll(`{{${placeholder}}}`, value);
|
|
1790
|
+
}
|
|
1791
|
+
return `${renderedContent.trimEnd()}\n`;
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1794
|
+
//# sourceMappingURL=framework-knowledge-generation.service.js.map
|