@wildo-ai/wildo-cli 1.1.2 → 1.1.4
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/dist/bin/wildo.d.ts.map +1 -1
- package/dist/src/__tests__/sandbox-dependencies.test-helpers.d.ts.map +1 -1
- package/dist/src/commands/acp/probe.command.d.ts.map +1 -1
- package/dist/src/commands/acp/probe.command.js +13 -0
- package/dist/src/commands/acp/probe.command.js.map +1 -1
- package/dist/src/commands/align-deps.command.d.ts.map +1 -1
- package/dist/src/commands/assets/sync.command.d.ts +6 -0
- package/dist/src/commands/assets/sync.command.d.ts.map +1 -1
- package/dist/src/commands/assets/sync.command.js +13 -3
- package/dist/src/commands/assets/sync.command.js.map +1 -1
- package/dist/src/commands/brand/propagate.command.d.ts.map +1 -1
- package/dist/src/commands/compose.command.d.ts.map +1 -1
- package/dist/src/commands/compose.command.js +16 -0
- package/dist/src/commands/compose.command.js.map +1 -1
- package/dist/src/commands/config/__tests__/reapply-declaration.command.test.d.ts.map +1 -1
- package/dist/src/commands/config/__tests__/reapply-declaration.command.test.js +1 -1
- package/dist/src/commands/config/__tests__/reapply-declaration.command.test.js.map +1 -1
- package/dist/src/commands/config/__tests__/sync.command.test.d.ts.map +1 -1
- package/dist/src/commands/config/__tests__/sync.command.test.js +115 -8
- package/dist/src/commands/config/__tests__/sync.command.test.js.map +1 -1
- package/dist/src/commands/config/__tests__/validate.command.test.d.ts.map +1 -1
- package/dist/src/commands/config/mutate.command.d.ts.map +1 -1
- package/dist/src/commands/config/reapply-declaration.command.d.ts.map +1 -1
- package/dist/src/commands/config/sync.command.d.ts +36 -0
- package/dist/src/commands/config/sync.command.d.ts.map +1 -1
- package/dist/src/commands/config/sync.command.js +61 -7
- package/dist/src/commands/config/sync.command.js.map +1 -1
- package/dist/src/commands/config/validate.command.d.ts.map +1 -1
- package/dist/src/commands/context/__tests__/assurance-basis.command.test.d.ts +2 -0
- package/dist/src/commands/context/__tests__/assurance-basis.command.test.d.ts.map +1 -0
- package/dist/src/commands/context/__tests__/assurance-basis.command.test.js +63 -0
- package/dist/src/commands/context/__tests__/assurance-basis.command.test.js.map +1 -0
- package/dist/src/commands/context/__tests__/jurisdictions.command.test.d.ts +19 -0
- package/dist/src/commands/context/__tests__/jurisdictions.command.test.d.ts.map +1 -0
- package/dist/src/commands/context/__tests__/jurisdictions.command.test.js +106 -0
- package/dist/src/commands/context/__tests__/jurisdictions.command.test.js.map +1 -0
- package/dist/src/commands/context/assurance-basis.command.d.ts +61 -0
- package/dist/src/commands/context/assurance-basis.command.d.ts.map +1 -0
- package/dist/src/commands/context/assurance-basis.command.js +166 -0
- package/dist/src/commands/context/assurance-basis.command.js.map +1 -0
- package/dist/src/commands/context/coherence.command.d.ts.map +1 -1
- package/dist/src/commands/context/context-command.utils.d.ts.map +1 -1
- package/dist/src/commands/context/health.command.d.ts.map +1 -1
- package/dist/src/commands/context/info.command.d.ts.map +1 -1
- package/dist/src/commands/context/journey.command.d.ts +6 -2
- package/dist/src/commands/context/journey.command.d.ts.map +1 -1
- package/dist/src/commands/context/journey.command.js +8 -4
- package/dist/src/commands/context/journey.command.js.map +1 -1
- package/dist/src/commands/context/jurisdictions.command.d.ts +36 -0
- package/dist/src/commands/context/jurisdictions.command.d.ts.map +1 -0
- package/dist/src/commands/context/jurisdictions.command.js +115 -0
- package/dist/src/commands/context/jurisdictions.command.js.map +1 -0
- package/dist/src/commands/context/list.command.d.ts.map +1 -1
- package/dist/src/commands/db/db-schema-plan.utils.d.ts.map +1 -1
- package/dist/src/commands/db/diff.command.d.ts.map +1 -1
- package/dist/src/commands/db/generate.command.d.ts.map +1 -1
- package/dist/src/commands/db/migrate.command.d.ts.map +1 -1
- package/dist/src/commands/db/resolve.command.d.ts.map +1 -1
- package/dist/src/commands/dev/__tests__/design-tokens.command.test.d.ts.map +1 -1
- package/dist/src/commands/dev/__tests__/start.command.test.d.ts.map +1 -1
- package/dist/src/commands/dev/__tests__/start.command.test.js +6 -6
- package/dist/src/commands/dev/__tests__/start.command.test.js.map +1 -1
- package/dist/src/commands/dev/__tests__/stop.command.test.d.ts.map +1 -1
- package/dist/src/commands/dev/__tests__/sync-csp.command.test.d.ts.map +1 -1
- package/dist/src/commands/dev/__tests__/sync-csp.command.test.js +71 -0
- package/dist/src/commands/dev/__tests__/sync-csp.command.test.js.map +1 -1
- package/dist/src/commands/dev/charts-audit.command.d.ts +5 -3
- package/dist/src/commands/dev/charts-audit.command.d.ts.map +1 -1
- package/dist/src/commands/dev/charts-audit.command.js +36 -7
- package/dist/src/commands/dev/charts-audit.command.js.map +1 -1
- package/dist/src/commands/dev/design-tokens-generate.command.d.ts.map +1 -1
- package/dist/src/commands/dev/design-tokens-init.command.d.ts.map +1 -1
- package/dist/src/commands/dev/design-tokens-validate.command.d.ts.map +1 -1
- package/dist/src/commands/dev/force-stop.command.d.ts.map +1 -1
- package/dist/src/commands/dev/resources.command.d.ts.map +1 -1
- package/dist/src/commands/dev/start.command.d.ts.map +1 -1
- package/dist/src/commands/dev/start.command.js +8 -7
- package/dist/src/commands/dev/start.command.js.map +1 -1
- package/dist/src/commands/dev/stop-all.command.d.ts.map +1 -1
- package/dist/src/commands/dev/sync-csp.command.d.ts.map +1 -1
- package/dist/src/commands/dev/sync-csp.command.js +35 -7
- package/dist/src/commands/dev/sync-csp.command.js.map +1 -1
- package/dist/src/commands/docs/__tests__/publish.command.test.d.ts +2 -0
- package/dist/src/commands/docs/__tests__/publish.command.test.d.ts.map +1 -0
- package/dist/src/commands/docs/__tests__/publish.command.test.js +101 -0
- package/dist/src/commands/docs/__tests__/publish.command.test.js.map +1 -0
- package/dist/src/commands/docs/publish.command.d.ts +29 -0
- package/dist/src/commands/docs/publish.command.d.ts.map +1 -0
- package/dist/src/commands/docs/publish.command.js +82 -0
- package/dist/src/commands/docs/publish.command.js.map +1 -0
- package/dist/src/commands/frontend/publish.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/__tests__/dev-skills.command.test.d.ts.map +1 -1
- package/dist/src/commands/fwk/__tests__/generate-docs.command.test.d.ts.map +1 -1
- package/dist/src/commands/fwk/__tests__/generate-docs.command.test.js.map +1 -1
- package/dist/src/commands/fwk/audit.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/dev-skills.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/dev-skills.command.js +12 -0
- package/dist/src/commands/fwk/dev-skills.command.js.map +1 -1
- package/dist/src/commands/fwk/generate-docs.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/generate-providers.command.d.ts +21 -0
- package/dist/src/commands/fwk/generate-providers.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/generate-providers.command.js +325 -0
- package/dist/src/commands/fwk/generate-providers.command.js.map +1 -0
- package/dist/src/commands/fwk/graph.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-docker.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-npm.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/version-bump.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/version-set.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/version-show.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/version-show.command.js +9 -1
- package/dist/src/commands/fwk/version-show.command.js.map +1 -1
- package/dist/src/commands/fwk/version-sync.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/what-touches.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/wt-status.command.d.ts +13 -4
- package/dist/src/commands/fwk/wt-status.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/wt-status.command.js +34 -5
- package/dist/src/commands/fwk/wt-status.command.js.map +1 -1
- package/dist/src/commands/fwk/wt-tail.command.d.ts +12 -6
- package/dist/src/commands/fwk/wt-tail.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/wt-tail.command.js +40 -10
- package/dist/src/commands/fwk/wt-tail.command.js.map +1 -1
- package/dist/src/commands/generate/__tests__/email-command.utils.test.d.ts.map +1 -1
- package/dist/src/commands/generate/__tests__/email-command.utils.test.js +0 -1
- package/dist/src/commands/generate/__tests__/email-command.utils.test.js.map +1 -1
- package/dist/src/commands/generate/email-command.utils.d.ts.map +1 -1
- package/dist/src/commands/generate/email-command.utils.js +1 -0
- package/dist/src/commands/generate/email-command.utils.js.map +1 -1
- package/dist/src/commands/generate/email-preview.command.d.ts +8 -0
- package/dist/src/commands/generate/email-preview.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email-preview.command.js +57 -0
- package/dist/src/commands/generate/email-preview.command.js.map +1 -1
- package/dist/src/commands/generate/email-status.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email-test-send.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email-translate.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email.command.d.ts.map +1 -1
- package/dist/src/commands/generate/labelling-command.utils.d.ts.map +1 -1
- package/dist/src/commands/generate/labelling-command.utils.js +1 -0
- package/dist/src/commands/generate/labelling-command.utils.js.map +1 -1
- package/dist/src/commands/generate/labels-plan.command.d.ts.map +1 -1
- package/dist/src/commands/generate/labels.command.d.ts.map +1 -1
- package/dist/src/commands/generate/translate.command.d.ts.map +1 -1
- package/dist/src/commands/help.command.d.ts.map +1 -1
- package/dist/src/commands/help.command.js +2 -0
- package/dist/src/commands/help.command.js.map +1 -1
- package/dist/src/commands/init.command.d.ts +17 -0
- package/dist/src/commands/init.command.d.ts.map +1 -1
- package/dist/src/commands/init.command.js +89 -4
- package/dist/src/commands/init.command.js.map +1 -1
- package/dist/src/commands/local/__tests__/dev-status.command.test.d.ts.map +1 -1
- package/dist/src/commands/local/__tests__/dev.command.test.d.ts.map +1 -1
- package/dist/src/commands/local/__tests__/dev.command.test.js +60 -0
- package/dist/src/commands/local/__tests__/dev.command.test.js.map +1 -1
- package/dist/src/commands/local/__tests__/doctor.command.test.d.ts.map +1 -1
- package/dist/src/commands/local/__tests__/doctor.command.test.js +16 -2
- package/dist/src/commands/local/__tests__/doctor.command.test.js.map +1 -1
- package/dist/src/commands/local/__tests__/init.command.test.d.ts.map +1 -1
- package/dist/src/commands/local/__tests__/init.command.test.js +28 -1
- package/dist/src/commands/local/__tests__/init.command.test.js.map +1 -1
- package/dist/src/commands/local/__tests__/reinit.command.test.d.ts.map +1 -1
- package/dist/src/commands/local/__tests__/reset.command.test.d.ts.map +1 -1
- package/dist/src/commands/local/__tests__/up.command.test.d.ts.map +1 -1
- package/dist/src/commands/local/__tests__/up.command.test.js +7 -0
- package/dist/src/commands/local/__tests__/up.command.test.js.map +1 -1
- package/dist/src/commands/local/dev-status.command.d.ts.map +1 -1
- package/dist/src/commands/local/dev.command.d.ts +6 -3
- package/dist/src/commands/local/dev.command.d.ts.map +1 -1
- package/dist/src/commands/local/dev.command.js +13 -4
- package/dist/src/commands/local/dev.command.js.map +1 -1
- package/dist/src/commands/local/doctor.command.d.ts +9 -0
- package/dist/src/commands/local/doctor.command.d.ts.map +1 -1
- package/dist/src/commands/local/doctor.command.js +24 -6
- package/dist/src/commands/local/doctor.command.js.map +1 -1
- package/dist/src/commands/local/down.command.d.ts.map +1 -1
- package/dist/src/commands/local/init.command.d.ts.map +1 -1
- package/dist/src/commands/local/init.command.js +11 -2
- package/dist/src/commands/local/init.command.js.map +1 -1
- package/dist/src/commands/local/logs.command.d.ts.map +1 -1
- package/dist/src/commands/local/reinit.command.d.ts.map +1 -1
- package/dist/src/commands/local/reset.command.d.ts.map +1 -1
- package/dist/src/commands/local/status.command.d.ts.map +1 -1
- package/dist/src/commands/local/up.command.d.ts.map +1 -1
- package/dist/src/commands/local/up.command.js.map +1 -1
- package/dist/src/commands/lock/__tests__/check.command.test.d.ts.map +1 -1
- package/dist/src/commands/lock/__tests__/check.live.contract.test.d.ts.map +1 -1
- package/dist/src/commands/lock/check.command.d.ts.map +1 -1
- package/dist/src/commands/lock/check.command.js +4 -10
- package/dist/src/commands/lock/check.command.js.map +1 -1
- package/dist/src/commands/market/__tests__/generate.command.test.d.ts.map +1 -1
- package/dist/src/commands/market/__tests__/market-command.utils.test.d.ts.map +1 -1
- package/dist/src/commands/market/__tests__/market-command.utils.test.js +0 -1
- package/dist/src/commands/market/__tests__/market-command.utils.test.js.map +1 -1
- package/dist/src/commands/market/generate.command.d.ts.map +1 -1
- package/dist/src/commands/market/market-command.utils.d.ts.map +1 -1
- package/dist/src/commands/market/market-command.utils.js +1 -0
- package/dist/src/commands/market/market-command.utils.js.map +1 -1
- package/dist/src/commands/providers/__tests__/required-inputs.test.d.ts +2 -0
- package/dist/src/commands/providers/__tests__/required-inputs.test.d.ts.map +1 -0
- package/dist/src/commands/providers/__tests__/required-inputs.test.js +35 -0
- package/dist/src/commands/providers/__tests__/required-inputs.test.js.map +1 -0
- package/dist/src/commands/providers/show.command.d.ts +51 -0
- package/dist/src/commands/providers/show.command.d.ts.map +1 -0
- package/dist/src/commands/providers/show.command.js +152 -0
- package/dist/src/commands/providers/show.command.js.map +1 -0
- package/dist/src/commands/registry/add.command.d.ts.map +1 -1
- package/dist/src/commands/registry/info.command.d.ts.map +1 -1
- package/dist/src/commands/registry/lockfile-smoke.command.d.ts.map +1 -1
- package/dist/src/commands/registry/login.command.d.ts.map +1 -1
- package/dist/src/commands/registry/login.command.js +2 -0
- package/dist/src/commands/registry/login.command.js.map +1 -1
- package/dist/src/commands/registry/logout.command.d.ts.map +1 -1
- package/dist/src/commands/registry/ping.command.d.ts.map +1 -1
- package/dist/src/commands/registry/publish.command.d.ts.map +1 -1
- package/dist/src/commands/registry/publish.command.js +2 -0
- package/dist/src/commands/registry/publish.command.js.map +1 -1
- package/dist/src/commands/registry/registry-transport.constants.d.ts +33 -0
- package/dist/src/commands/registry/registry-transport.constants.d.ts.map +1 -0
- package/dist/src/commands/registry/registry-transport.constants.js +33 -0
- package/dist/src/commands/registry/registry-transport.constants.js.map +1 -0
- package/dist/src/commands/registry/remove.command.d.ts.map +1 -1
- package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -1
- package/dist/src/commands/registry/search.command.d.ts.map +1 -1
- package/dist/src/commands/registry/update.command.d.ts.map +1 -1
- package/dist/src/commands/registry/whoami.command.d.ts.map +1 -1
- package/dist/src/commands/registry/whoami.command.js +2 -0
- package/dist/src/commands/registry/whoami.command.js.map +1 -1
- package/dist/src/commands/remote/__tests__/remote-commands.test.d.ts.map +1 -1
- package/dist/src/commands/remote/create.command.d.ts.map +1 -1
- package/dist/src/commands/remote/list.command.d.ts.map +1 -1
- package/dist/src/commands/remote/status.command.d.ts.map +1 -1
- package/dist/src/commands/remote/sync.command.d.ts.map +1 -1
- package/dist/src/commands/setup.command.d.ts.map +1 -1
- package/dist/src/commands/version.command.d.ts.map +1 -1
- package/dist/src/commands/website/__tests__/audit.command.test.d.ts.map +1 -1
- package/dist/src/commands/website/audit.command.d.ts.map +1 -1
- package/dist/src/commands/workbench/__tests__/workbench.commands.test.d.ts.map +1 -1
- package/dist/src/commands/workbench/open.command.d.ts.map +1 -1
- package/dist/src/commands/workbench/status.command.d.ts.map +1 -1
- package/dist/src/infrastructure/errors/error.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/io/file.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/io/io.schemas.d.ts.map +1 -1
- package/dist/src/infrastructure/io/template-processor.d.ts.map +1 -1
- package/dist/src/infrastructure/logger/logger.service.d.ts.map +1 -1
- package/dist/src/infrastructure/process/__tests__/spawn.utils.test.d.ts.map +1 -1
- package/dist/src/infrastructure/process/spawn.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/formatting.service.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/interaction-engine.service.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/markdown-renderer.service.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/ui.schemas.d.ts.map +1 -1
- package/dist/src/infrastructure/utils/string.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/validation/validator.service.d.ts.map +1 -1
- package/dist/src/kernel/__tests__/bootstrap.test.d.ts.map +1 -1
- package/dist/src/kernel/__tests__/command-registry.test.d.ts.map +1 -1
- package/dist/src/kernel/__tests__/command-registry.test.js +9 -0
- package/dist/src/kernel/__tests__/command-registry.test.js.map +1 -1
- package/dist/src/kernel/__tests__/command-runner.test.d.ts.map +1 -1
- package/dist/src/kernel/__tests__/command-scope-utils.test.d.ts.map +1 -1
- package/dist/src/kernel/__tests__/flag-utils.test.d.ts.map +1 -1
- package/dist/src/kernel/__tests__/hooks.test.d.ts.map +1 -1
- package/dist/src/kernel/base-command.d.ts.map +1 -1
- package/dist/src/kernel/bootstrap.d.ts.map +1 -1
- package/dist/src/kernel/command-registry.d.ts.map +1 -1
- package/dist/src/kernel/command-registry.js +6 -0
- package/dist/src/kernel/command-registry.js.map +1 -1
- package/dist/src/kernel/command-runner.d.ts.map +1 -1
- package/dist/src/kernel/command-scope-utils.d.ts.map +1 -1
- package/dist/src/kernel/flag-utils.d.ts.map +1 -1
- package/dist/src/kernel/hooks.d.ts.map +1 -1
- package/dist/src/kernel/logger.d.ts.map +1 -1
- package/dist/src/kernel/types.d.ts +17 -1
- package/dist/src/kernel/types.d.ts.map +1 -1
- package/dist/src/kernel/types.js +16 -0
- package/dist/src/kernel/types.js.map +1 -1
- package/dist/src/main.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/__tests__/admin-user.module.test.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/__tests__/approver-user.module.test.d.ts +2 -0
- package/dist/src/modules/domain/credentials/__tests__/approver-user.module.test.d.ts.map +1 -0
- package/dist/src/modules/domain/credentials/__tests__/approver-user.module.test.js +146 -0
- package/dist/src/modules/domain/credentials/__tests__/approver-user.module.test.js.map +1 -0
- package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.js +2 -2
- package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.js.map +1 -1
- package/dist/src/modules/domain/credentials/admin-user.module.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/approver-user.module.d.ts +85 -0
- package/dist/src/modules/domain/credentials/approver-user.module.d.ts.map +1 -0
- package/dist/src/modules/domain/credentials/approver-user.module.js +92 -0
- package/dist/src/modules/domain/credentials/approver-user.module.js.map +1 -0
- package/dist/src/modules/domain/credentials/module.types.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/providers-config.module.d.ts +17 -9
- package/dist/src/modules/domain/credentials/providers-config.module.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/providers-config.module.js +18 -10
- package/dist/src/modules/domain/credentials/providers-config.module.js.map +1 -1
- package/dist/src/modules/domain/environment/__tests__/database-config.module.test.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/database-config.module.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/module.types.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/paths-config.module.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/runtime-selector.module.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/runtime-semantics.module.d.ts.map +1 -1
- package/dist/src/modules/domain/module.types.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.approving-administrator.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/app-bootstrap.approving-administrator.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/app-bootstrap.approving-administrator.test.js +111 -0
- package/dist/src/services/application/__tests__/app-bootstrap.approving-administrator.test.js.map +1 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.apps-manager-reconnect.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.service.degraded-env.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.js +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.js.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.service.test.js +22 -29
- package/dist/src/services/application/__tests__/app-bootstrap.service.test.js.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.js +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.js.map +1 -1
- package/dist/src/services/application/__tests__/app-runtime-targets.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/app-runtime-targets.service.test.js +2 -2
- package/dist/src/services/application/__tests__/app-runtime-targets.service.test.js.map +1 -1
- package/dist/src/services/application/__tests__/application-assets-delivery.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/application-assets-delivery.service.test.js +19 -0
- package/dist/src/services/application/__tests__/application-assets-delivery.service.test.js.map +1 -1
- package/dist/src/services/application/__tests__/application-dependency-alignment.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/application-initialization-verification.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/application-runtime-bootstrap.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.js.map +1 -1
- package/dist/src/services/application/__tests__/audit-provider-immudb-backing.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/dev-orchestrator.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/dev-schema-drift.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.js +0 -1
- package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.js.map +1 -1
- package/dist/src/services/application/__tests__/local-app-reinit.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/local-app-reinit.service.test.js +8 -1
- package/dist/src/services/application/__tests__/local-app-reinit.service.test.js.map +1 -1
- package/dist/src/services/application/__tests__/local-application-initialization.guard.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/local-application-initialization.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/local-application-initialization.service.test.js +35 -0
- package/dist/src/services/application/__tests__/local-application-initialization.service.test.js.map +1 -1
- package/dist/src/services/application/__tests__/provider-package-links.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/provider-package-links.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/provider-package-links.service.test.js +224 -0
- package/dist/src/services/application/__tests__/provider-package-links.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.js +28 -0
- package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.js.map +1 -1
- package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.js +0 -1
- package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.js.map +1 -1
- package/dist/src/services/application/__tests__/saas-scaffold.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/saas-skeleton.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/saas-skeleton.service.test.js.map +1 -1
- package/dist/src/services/application/app-bootstrap.service.d.ts +43 -10
- package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/app-bootstrap.service.js +92 -49
- package/dist/src/services/application/app-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/app-env.service.d.ts.map +1 -1
- package/dist/src/services/application/app-local-runtime-addresses.service.d.ts.map +1 -1
- package/dist/src/services/application/app-runtime-targets.service.d.ts.map +1 -1
- package/dist/src/services/application/app-schema-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/application-assets-delivery.service.d.ts +22 -1
- package/dist/src/services/application/application-assets-delivery.service.d.ts.map +1 -1
- package/dist/src/services/application/application-assets-delivery.service.js +35 -7
- package/dist/src/services/application/application-assets-delivery.service.js.map +1 -1
- package/dist/src/services/application/application-dependency-alignment.service.d.ts.map +1 -1
- package/dist/src/services/application/application-dev-port-offsets.d.ts.map +1 -1
- package/dist/src/services/application/application-initialization-verification.service.d.ts.map +1 -1
- package/dist/src/services/application/application-root.utils.d.ts.map +1 -1
- package/dist/src/services/application/application-runtime-bootstrap.service.d.ts +6 -0
- package/dist/src/services/application/application-runtime-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/application-runtime-bootstrap.service.js +41 -2
- package/dist/src/services/application/application-runtime-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/dev-orchestrator.service.d.ts.map +1 -1
- package/dist/src/services/application/dev-schema-drift.service.d.ts.map +1 -1
- package/dist/src/services/application/existing-app-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/local-app-reinit.service.d.ts.map +1 -1
- package/dist/src/services/application/local-application-initialization.service.d.ts.map +1 -1
- package/dist/src/services/application/local-application-initialization.service.js +22 -6
- package/dist/src/services/application/local-application-initialization.service.js.map +1 -1
- package/dist/src/services/application/provider-package-links.service.d.ts +160 -0
- package/dist/src/services/application/provider-package-links.service.d.ts.map +1 -0
- package/dist/src/services/application/provider-package-links.service.js +312 -0
- package/dist/src/services/application/provider-package-links.service.js.map +1 -0
- package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
- package/dist/src/services/application/provider-runtime-sync.service.js +7 -20
- package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
- package/dist/src/services/application/saas-scaffold.service.d.ts.map +1 -1
- package/dist/src/services/application/saas-scaffold.service.js +11 -2
- package/dist/src/services/application/saas-scaffold.service.js.map +1 -1
- package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
- package/dist/src/services/application/saas-skeleton.service.js +46 -26
- package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
- package/dist/src/services/brand/__tests__/brand-asset-delivery.test.d.ts.map +1 -1
- package/dist/src/services/brand/brand-asset-projection.d.ts.map +1 -1
- package/dist/src/services/brand/brand-destination-utils.d.ts.map +1 -1
- package/dist/src/services/brand/brand-propagation.types.d.ts.map +1 -1
- package/dist/src/services/brand/brand-ssot-reader.d.ts.map +1 -1
- package/dist/src/services/brand/destinations/app-public.destination.d.ts.map +1 -1
- package/dist/src/services/brand/destinations/runtime-app-config.destination.d.ts.map +1 -1
- package/dist/src/services/brand/destinations/technical-doc-static.destination.d.ts.map +1 -1
- package/dist/src/services/brand/destinations/website-og.destination.d.ts.map +1 -1
- package/dist/src/services/brand/destinations/website-public.destination.d.ts.map +1 -1
- package/dist/src/services/catalog/__tests__/durable-state-classification.test.d.ts +2 -0
- package/dist/src/services/catalog/__tests__/durable-state-classification.test.d.ts.map +1 -0
- package/dist/src/services/catalog/__tests__/durable-state-classification.test.js +93 -0
- package/dist/src/services/catalog/__tests__/durable-state-classification.test.js.map +1 -0
- package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.d.ts.map +1 -1
- package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.js +25 -5
- package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.js.map +1 -1
- package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.d.ts.map +1 -1
- package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.js +109 -51
- package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.js.map +1 -1
- package/dist/src/services/catalog/service-address-resolver.service.d.ts +0 -1
- package/dist/src/services/catalog/service-address-resolver.service.d.ts.map +1 -1
- package/dist/src/services/catalog/service-address-resolver.service.js +23 -7
- package/dist/src/services/catalog/service-address-resolver.service.js.map +1 -1
- package/dist/src/services/catalog/service-catalog.schemas.d.ts +148 -51
- package/dist/src/services/catalog/service-catalog.schemas.d.ts.map +1 -1
- package/dist/src/services/catalog/service-catalog.schemas.js +230 -78
- package/dist/src/services/catalog/service-catalog.schemas.js.map +1 -1
- package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.d.ts +2 -0
- package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.d.ts.map +1 -0
- package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.js +110 -0
- package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.js.map +1 -0
- package/dist/src/services/coding-agents/acp-conformance-probe.service.d.ts +32 -0
- package/dist/src/services/coding-agents/acp-conformance-probe.service.d.ts.map +1 -1
- package/dist/src/services/coding-agents/acp-conformance-probe.service.js +165 -7
- package/dist/src/services/coding-agents/acp-conformance-probe.service.js.map +1 -1
- package/dist/src/services/companion/__tests__/companion-client.service.test.d.ts.map +1 -1
- package/dist/src/services/companion/__tests__/companion-client.service.test.js +96 -0
- package/dist/src/services/companion/__tests__/companion-client.service.test.js.map +1 -1
- package/dist/src/services/companion/__tests__/companion-lifecycle.service.test.d.ts.map +1 -1
- package/dist/src/services/companion/__tests__/workbench-browser-launcher.service.test.d.ts.map +1 -1
- package/dist/src/services/companion/__tests__/workbench-cli.service.test.d.ts.map +1 -1
- package/dist/src/services/companion/companion-client-options.utils.d.ts.map +1 -1
- package/dist/src/services/companion/companion-client-options.utils.js +6 -0
- package/dist/src/services/companion/companion-client-options.utils.js.map +1 -1
- package/dist/src/services/companion/companion-client.service.d.ts.map +1 -1
- package/dist/src/services/companion/companion-client.service.js +34 -0
- package/dist/src/services/companion/companion-client.service.js.map +1 -1
- package/dist/src/services/companion/companion-lifecycle.service.d.ts.map +1 -1
- package/dist/src/services/companion/companion-local-token.utils.d.ts +20 -0
- package/dist/src/services/companion/companion-local-token.utils.d.ts.map +1 -0
- package/dist/src/services/companion/companion-local-token.utils.js +62 -0
- package/dist/src/services/companion/companion-local-token.utils.js.map +1 -0
- package/dist/src/services/companion/companion.schemas.d.ts +12 -0
- package/dist/src/services/companion/companion.schemas.d.ts.map +1 -1
- package/dist/src/services/companion/companion.schemas.js.map +1 -1
- package/dist/src/services/companion/git-helper.service.d.ts.map +1 -1
- package/dist/src/services/companion/local-companion-authority.service.d.ts.map +1 -1
- package/dist/src/services/companion/local-companion-authority.service.js +9 -30
- package/dist/src/services/companion/local-companion-authority.service.js.map +1 -1
- package/dist/src/services/companion/workbench-browser-launcher.service.d.ts.map +1 -1
- package/dist/src/services/companion/workbench-cli.service.d.ts.map +1 -1
- package/dist/src/services/companion/workbench-cli.service.js +10 -1
- package/dist/src/services/companion/workbench-cli.service.js.map +1 -1
- package/dist/src/services/context/__tests__/context-manager.installed-assets.test.d.ts.map +1 -1
- package/dist/src/services/context/__tests__/context-manager.installed-assets.test.js +7 -0
- package/dist/src/services/context/__tests__/context-manager.installed-assets.test.js.map +1 -1
- package/dist/src/services/context/__tests__/context-manager.service.test.d.ts.map +1 -1
- package/dist/src/services/context/context-manager.service.d.ts +9 -0
- package/dist/src/services/context/context-manager.service.d.ts.map +1 -1
- package/dist/src/services/context/context-manager.service.js +13 -1
- package/dist/src/services/context/context-manager.service.js.map +1 -1
- package/dist/src/services/context/context.schemas.d.ts.map +1 -1
- package/dist/src/services/context/state-manager.service.d.ts.map +1 -1
- package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.d.ts +28 -0
- package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.d.ts.map +1 -0
- package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.js +197 -0
- package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.js.map +1 -0
- package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.d.ts +2 -0
- package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.d.ts.map +1 -0
- package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.js +327 -0
- package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.js.map +1 -0
- package/dist/src/services/credentials/__tests__/framework-managed-secrets.test.d.ts.map +1 -1
- package/dist/src/services/credentials/__tests__/provider-contribution-registration.guard.test.d.ts +2 -0
- package/dist/src/services/credentials/__tests__/provider-contribution-registration.guard.test.d.ts.map +1 -0
- package/dist/src/services/credentials/__tests__/provider-contribution-registration.guard.test.js +94 -0
- package/dist/src/services/credentials/__tests__/provider-contribution-registration.guard.test.js.map +1 -0
- package/dist/src/services/credentials/__tests__/secrets-contracts.test.d.ts.map +1 -1
- package/dist/src/services/credentials/ci-secrets-adapter.service.d.ts.map +1 -1
- package/dist/src/services/credentials/ci-secrets-adapter.service.js +114 -37
- package/dist/src/services/credentials/ci-secrets-adapter.service.js.map +1 -1
- package/dist/src/services/credentials/composed-provider-catalogue.d.ts +209 -0
- package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -0
- package/dist/src/services/credentials/composed-provider-catalogue.js +263 -0
- package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -0
- package/dist/src/services/credentials/credentials.schemas.d.ts +29 -22
- package/dist/src/services/credentials/credentials.schemas.d.ts.map +1 -1
- package/dist/src/services/credentials/credentials.schemas.js +67 -5
- package/dist/src/services/credentials/credentials.schemas.js.map +1 -1
- package/dist/src/services/credentials/credentials.service.d.ts.map +1 -1
- package/dist/src/services/credentials/framework-managed-secrets.d.ts +105 -1
- package/dist/src/services/credentials/framework-managed-secrets.d.ts.map +1 -1
- package/dist/src/services/credentials/framework-managed-secrets.js +51 -8
- package/dist/src/services/credentials/framework-managed-secrets.js.map +1 -1
- package/dist/src/services/credentials/provider-env-vars.utils.d.ts +127 -7
- package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -1
- package/dist/src/services/credentials/provider-env-vars.utils.js +189 -45
- package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -1
- package/dist/src/services/credentials/secrets-provisioning.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-reader.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-rotation.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-writer.service.d.ts.map +1 -1
- package/dist/src/services/data-services/data-services.schemas.d.ts +0 -1
- package/dist/src/services/data-services/data-services.schemas.d.ts.map +1 -1
- package/dist/src/services/data-services/data-services.schemas.js +0 -1
- package/dist/src/services/data-services/data-services.schemas.js.map +1 -1
- package/dist/src/services/data-services/data-services.service.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/apps-manager-diagnostics.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.js +91 -1
- package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.js.map +1 -1
- package/dist/src/services/deployment/__tests__/ci-workflow-generator.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.js +45 -15
- package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.js.map +1 -1
- package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.js +33 -1
- package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.js.map +1 -1
- package/dist/src/services/deployment/__tests__/infra-templates-render-smoke.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/local-dev-observer-lifecycle.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/local-dev-output-boundary.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/local-dev-session-lease.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/local-dev-shutdown-coordinator.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.js +44 -1
- package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.js.map +1 -1
- package/dist/src/services/deployment/__tests__/local-runtime-process-cleanup.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.js +82 -87
- package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.js.map +1 -1
- package/dist/src/services/deployment/__tests__/platform-lifecycle.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/platform-runtime-policy.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/apps-manager-diagnostics.service.d.ts.map +1 -1
- package/dist/src/services/deployment/ci-deploy-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/ci-deploy-generator.service.js +11 -1
- package/dist/src/services/deployment/ci-deploy-generator.service.js.map +1 -1
- package/dist/src/services/deployment/ci-workflow-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/ci-workflow-generator.service.js +23 -4
- package/dist/src/services/deployment/ci-workflow-generator.service.js.map +1 -1
- package/dist/src/services/deployment/docker/__tests__/compose-env-value-encoding.test.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/__tests__/compose-host-mounted-artifact.test.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.js +150 -7
- package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.js.map +1 -1
- package/dist/src/services/deployment/docker/__tests__/docker-compose-readiness.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js +60 -12
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-readiness.service.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker.service.d.ts.map +1 -1
- package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts.map +1 -1
- package/dist/src/services/deployment/infra-writer.service.d.ts.map +1 -1
- package/dist/src/services/deployment/infra-writer.service.js +34 -7
- package/dist/src/services/deployment/infra-writer.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.js +45 -2
- package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.js.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.js +110 -9
- package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.js.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/k8s-operations.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.d.ts +2 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.js +226 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.js.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.js +132 -12
- package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.js.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/kind.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/local-k8s-application-pruning.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.d.ts +23 -0
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js +52 -6
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js +45 -9
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts +4 -3
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js +0 -4
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-operations.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts +10 -1
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js +193 -33
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/kind.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-observer-lifecycle.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-output-boundary.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-session-lease.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-shutdown-coordinator.d.ts.map +1 -1
- package/dist/src/services/deployment/local-infrastructure-initialization.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-precondition-checks.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/local-precondition-checks.service.d.ts +28 -17
- package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-precondition-checks.service.js +83 -3
- package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -1
- package/dist/src/services/deployment/local-runtime-process-cleanup.service.d.ts.map +1 -1
- package/dist/src/services/deployment/platform-lifecycle.service.d.ts.map +1 -1
- package/dist/src/services/deployment/platform-runtime-policy.service.d.ts.map +1 -1
- package/dist/src/services/deployment/version-compare.utils.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-command.service.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-config.service.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-config.template.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-css-block.service.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-paths.service.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens.constants.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens.models.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/compose-converge-args.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/config-hydration-seam.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.js +36 -20
- package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.js.map +1 -1
- package/dist/src/services/environment/__tests__/env-sync.service.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/env-sync.service.test.js +6 -4
- package/dist/src/services/environment/__tests__/env-sync.service.test.js.map +1 -1
- package/dist/src/services/environment/__tests__/env-vars-builder.service.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/env-vars-builder.service.test.js +89 -8
- package/dist/src/services/environment/__tests__/env-vars-builder.service.test.js.map +1 -1
- package/dist/src/services/environment/__tests__/environment-hydration.utils.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-mongodb.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-postgresql.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.js +136 -0
- package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/environment-paths.service.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/environment-registry.service.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.js +23 -0
- package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.js.map +1 -1
- package/dist/src/services/environment/__tests__/platform-engine-change.utils.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/platform-image-ref.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/platform-image-ref.test.js.map +1 -1
- package/dist/src/services/environment/__tests__/platform-runtime-state.service.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/provider-secrets-env.service.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/runtime-bootstrap.authored-database-refresh.test.d.ts.map +1 -1
- package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
- package/dist/src/services/environment/env-configuration-generator.service.d.ts +52 -14
- package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-configuration-generator.service.js +41 -38
- package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
- package/dist/src/services/environment/env-sync.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-sync.service.js +13 -13
- package/dist/src/services/environment/env-sync.service.js.map +1 -1
- package/dist/src/services/environment/env-vars-builder.service.d.ts +28 -0
- package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-vars-builder.service.js +188 -41
- package/dist/src/services/environment/env-vars-builder.service.js.map +1 -1
- package/dist/src/services/environment/environment-hydration.utils.d.ts.map +1 -1
- package/dist/src/services/environment/environment-lifecycle.service.d.ts +53 -1
- package/dist/src/services/environment/environment-lifecycle.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-lifecycle.service.js +65 -1
- package/dist/src/services/environment/environment-lifecycle.service.js.map +1 -1
- package/dist/src/services/environment/environment-paths.service.d.ts +2 -1
- package/dist/src/services/environment/environment-paths.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-paths.service.js +5 -3
- package/dist/src/services/environment/environment-paths.service.js.map +1 -1
- package/dist/src/services/environment/environment-registry.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-setup.service.js +23 -9
- package/dist/src/services/environment/environment-setup.service.js.map +1 -1
- package/dist/src/services/environment/environment.schemas.d.ts.map +1 -1
- package/dist/src/services/environment/environment.service.d.ts +6 -1
- package/dist/src/services/environment/environment.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment.service.js +2 -0
- package/dist/src/services/environment/environment.service.js.map +1 -1
- package/dist/src/services/environment/platform-engine-change.utils.d.ts.map +1 -1
- package/dist/src/services/environment/platform-runtime-state.service.d.ts.map +1 -1
- package/dist/src/services/environment/platform-runtime.schemas.d.ts.map +1 -1
- package/dist/src/services/environment/platform-runtime.schemas.js.map +1 -1
- package/dist/src/services/environment/runtime-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/application-rule-imports.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/application-rule-imports.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/application-rule-imports.test.js +58 -0
- package/dist/src/services/framework/__tests__/application-rule-imports.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.js +55 -0
- package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.package-only.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-knowledge-application-guidance.validator.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.js +17 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.js +101 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.js +4 -70
- package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.js +78 -6
- package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-release.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-release.service.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-secrets-writer.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-version.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-version.service.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/installed-framework-assets.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/application-rule-imports.d.ts +36 -0
- package/dist/src/services/framework/application-rule-imports.d.ts.map +1 -0
- package/dist/src/services/framework/application-rule-imports.js +77 -0
- package/dist/src/services/framework/application-rule-imports.js.map +1 -0
- package/dist/src/services/framework/framework-development-skills-sync.service.d.ts +23 -0
- package/dist/src/services/framework/framework-development-skills-sync.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-development-skills-sync.service.js +51 -0
- package/dist/src/services/framework/framework-development-skills-sync.service.js.map +1 -1
- package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -1
- package/dist/src/services/framework/framework-knowledge-application-guidance.validator.d.ts.map +1 -1
- package/dist/src/services/framework/framework-knowledge-audit.service.d.ts +86 -1
- package/dist/src/services/framework/framework-knowledge-audit.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-knowledge-audit.service.js +212 -1
- package/dist/src/services/framework/framework-knowledge-audit.service.js.map +1 -1
- package/dist/src/services/framework/framework-knowledge-generation.service.d.ts +0 -1
- package/dist/src/services/framework/framework-knowledge-generation.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-knowledge-generation.service.js +29 -215
- package/dist/src/services/framework/framework-knowledge-generation.service.js.map +1 -1
- package/dist/src/services/framework/framework-knowledge-scan.constants.d.ts.map +1 -1
- package/dist/src/services/framework/framework-npm-publish.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-npm-publish.service.js +7 -3
- package/dist/src/services/framework/framework-npm-publish.service.js.map +1 -1
- package/dist/src/services/framework/framework-publish-manifest.service.d.ts +44 -1
- package/dist/src/services/framework/framework-publish-manifest.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-publish-manifest.service.js +79 -4
- package/dist/src/services/framework/framework-publish-manifest.service.js.map +1 -1
- package/dist/src/services/framework/framework-release.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-version.service.d.ts +13 -0
- package/dist/src/services/framework/framework-version.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-version.service.js +23 -24
- package/dist/src/services/framework/framework-version.service.js.map +1 -1
- package/dist/src/services/framework/installed-framework-assets.service.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/__tests__/base-url-is-a-declared-env-slot.test.d.ts +2 -0
- package/dist/src/services/framework/provider-transposition/__tests__/base-url-is-a-declared-env-slot.test.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/base-url-is-a-declared-env-slot.test.js +100 -0
- package/dist/src/services/framework/provider-transposition/__tests__/base-url-is-a-declared-env-slot.test.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.d.ts +2 -0
- package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.js +92 -0
- package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.d.ts +2 -0
- package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.js +83 -0
- package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.d.ts +2 -0
- package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.js +219 -0
- package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.d.ts +2 -0
- package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.js +372 -0
- package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.d.ts +2 -0
- package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.js +794 -0
- package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/activepieces-source.reader.d.ts +14 -0
- package/dist/src/services/framework/provider-transposition/activepieces-source.reader.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/activepieces-source.reader.js +1047 -0
- package/dist/src/services/framework/provider-transposition/activepieces-source.reader.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/openapi-enrichment.d.ts +26 -0
- package/dist/src/services/framework/provider-transposition/openapi-enrichment.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/openapi-enrichment.js +57 -0
- package/dist/src/services/framework/provider-transposition/openapi-enrichment.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/openapi-source.reader.d.ts +35 -0
- package/dist/src/services/framework/provider-transposition/openapi-source.reader.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/openapi-source.reader.js +204 -0
- package/dist/src/services/framework/provider-transposition/openapi-source.reader.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/provider-catalogue-record.d.ts +410 -0
- package/dist/src/services/framework/provider-transposition/provider-catalogue-record.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/provider-catalogue-record.js +434 -0
- package/dist/src/services/framework/provider-transposition/provider-catalogue-record.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/provider-merge.d.ts +39 -0
- package/dist/src/services/framework/provider-transposition/provider-merge.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/provider-merge.js +274 -0
- package/dist/src/services/framework/provider-transposition/provider-merge.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/provider-package.emitter.d.ts +139 -0
- package/dist/src/services/framework/provider-transposition/provider-package.emitter.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/provider-package.emitter.js +1586 -0
- package/dist/src/services/framework/provider-transposition/provider-package.emitter.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/sim-source.reader.d.ts +35 -0
- package/dist/src/services/framework/provider-transposition/sim-source.reader.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/sim-source.reader.js +527 -0
- package/dist/src/services/framework/provider-transposition/sim-source.reader.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/transposed-provider.model.d.ts +229 -0
- package/dist/src/services/framework/provider-transposition/transposed-provider.model.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/transposed-provider.model.js +96 -0
- package/dist/src/services/framework/provider-transposition/transposed-provider.model.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/url-template.extractor.d.ts +55 -0
- package/dist/src/services/framework/provider-transposition/url-template.extractor.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/url-template.extractor.js +196 -0
- package/dist/src/services/framework/provider-transposition/url-template.extractor.js.map +1 -0
- package/dist/src/services/frontend/__tests__/cloudflare-cdn.service.test.d.ts.map +1 -1
- package/dist/src/services/frontend/__tests__/frontend-dist-uploader.service.test.d.ts.map +1 -1
- package/dist/src/services/frontend/__tests__/frontend-publish.service.test.d.ts.map +1 -1
- package/dist/src/services/frontend/cloudflare-cdn.service.d.ts.map +1 -1
- package/dist/src/services/frontend/cloudflare-cdn.service.js +33 -2
- package/dist/src/services/frontend/cloudflare-cdn.service.js.map +1 -1
- package/dist/src/services/frontend/frontend-dist-uploader.service.d.ts.map +1 -1
- package/dist/src/services/frontend/frontend-publish.service.d.ts.map +1 -1
- package/dist/src/services/frontend/frontend-publish.service.js +1 -1
- package/dist/src/services/frontend/frontend-publish.service.js.map +1 -1
- package/dist/src/services/generation/domain-generator.service.d.ts.map +1 -1
- package/dist/src/services/generation/generator.schemas.d.ts.map +1 -1
- package/dist/src/services/generation/operation-generator.service.d.ts.map +1 -1
- package/dist/src/services/generation/resource-generator.service.d.ts.map +1 -1
- package/dist/src/services/generation/template-registry.service.d.ts.map +1 -1
- package/dist/src/services/registry/artifact-extractor.utils.d.ts.map +1 -1
- package/dist/src/services/registry/boundary-fanout.utils.d.ts.map +1 -1
- package/dist/src/services/registry/index.d.ts.map +1 -1
- package/dist/src/services/registry/registry-command.utils.d.ts.map +1 -1
- package/dist/src/services/registry/registry-config-resolver.service.d.ts.map +1 -1
- package/dist/src/services/registry/registry-credentials.service.d.ts.map +1 -1
- package/dist/src/services/registry/saas-root-required.error.d.ts.map +1 -1
- package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.d.ts +67 -0
- package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.d.ts.map +1 -0
- package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.js +212 -0
- package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.js.map +1 -0
- package/dist/src/services/security/__tests__/csp-boundary.test.d.ts.map +1 -1
- package/dist/src/services/security/__tests__/csp-sync.service.test.d.ts.map +1 -1
- package/dist/src/services/security/__tests__/csp-sync.service.test.js +411 -5
- package/dist/src/services/security/__tests__/csp-sync.service.test.js.map +1 -1
- package/dist/src/services/security/csp-sync.service.d.ts +27 -5
- package/dist/src/services/security/csp-sync.service.d.ts.map +1 -1
- package/dist/src/services/security/csp-sync.service.js +204 -16
- package/dist/src/services/security/csp-sync.service.js.map +1 -1
- package/dist/src/services/tools/utility-tools.service.d.ts.map +1 -1
- package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.d.ts +2 -0
- package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.d.ts.map +1 -0
- package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.js +94 -0
- package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.js.map +1 -0
- package/dist/src/services/website/website-structured-data-audit.service.d.ts +9 -0
- package/dist/src/services/website/website-structured-data-audit.service.d.ts.map +1 -1
- package/dist/src/services/website/website-structured-data-audit.service.js +72 -11
- package/dist/src/services/website/website-structured-data-audit.service.js.map +1 -1
- package/dist/src/test-utils/resolved-homes.test.utils.d.ts.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/framework-root-package.json +2 -0
- package/package.json +19 -17
- package/scripts/app-dependency-alignment/propagated-engine-overrides.json +15 -0
- package/templates/infra/ci/deploy-docker-compose.yml.hbs +1 -1
- package/templates/infra/ci/deploy-k8s.yml.hbs +1 -1
- package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +394 -90
- package/templates/infra/docker-images/backend/Dockerfile.backend-base +7 -1
- package/templates/infra/docker-images/backend/Dockerfile.backend-base-java +7 -1
- package/templates/infra/docker-images/platform/Dockerfile.platform-base.dockerignore +23 -0
- package/templates/infra/k8s/applications/wildo-ai-application/backend.deployment.yaml.hbs +8 -5
- package/templates/infra/k8s/applications/wildo-ai-application/ingress.yaml.hbs +3 -2
- package/templates/infra/k8s/applications/wildo-ai-application/minion.deployment.yaml.hbs +22 -6
- package/templates/infra/k8s/applications/wildo-ai-application/worker.deployment.yaml.hbs +17 -13
- package/templates/infra/k8s/platform/platform-crontabs-batches-manager/deployment.yaml.hbs +11 -0
- package/templates/infra/k8s/storage/local/persistent-volumes.yaml.hbs +18 -4
- package/templates/saas/engine-peer-closure.json +12 -0
- package/templates/saas/i18n/email/components/EmailHeader.tsx +9 -0
- package/templates/saas/i18n/email/components/EmailLayout.tsx +14 -0
- package/templates/saas/i18n/email/resources/applicationApiKeys/create.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationApiKeys/deactivate.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationApiKeys/reactivate.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationApiKeys/regenerate.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationApiKeys/rotate.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationOAuthClients/create.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationOAuthClients/regenerate.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationOAuthClients/rotate.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationVersions/create.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationVersions/delete.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationVersions/deprecate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationVersions/promote.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationVersions/rollback.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/create.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/create.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/delete.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/delete.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/transfer.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/transfer.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/update.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/update.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/create.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/create.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/deactivate.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/deactivate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/delete.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/delete.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/reactivate.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/reactivate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/regenerate.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/regenerate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/rotate.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/rotate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationFeatures/disable_feature.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationFeatures/enable_feature.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationFeatures/reset_features.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationFeatures/update.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/create.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/delete.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/grantOwnership.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/reactivate.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/reactivate.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/resend.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/revoke.user-self_admin/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/revoke.user-self_invitee/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/suspend.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/suspend.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/update.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/create.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/create.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/delete.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/delete.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/regenerate.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/regenerate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/rotate.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/rotate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationUnits/archive.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationUnits/create.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationUnits/delete.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationUnits/move.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationUnits/restore.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationUnits/update.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/activate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/create.admin.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/create.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/request_deletion.admin.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/request_deletion.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/restore.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/suspend.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/update.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/update.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/platformAccessGrants/requestAccess.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/user_self/deactivate_account.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/user_self/reactivate_account.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/assign_roles.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/create.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/delete.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/force_password_reset.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/revoke_roles.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/send_invitation.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/suspend_user.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/unsuspend_user.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/update.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/system/email-otp/template.tsx +1 -0
- package/templates/saas/i18n/email/system/email-verification/template.tsx +1 -1
- package/templates/saas/i18n/email/system/magic-link/template.tsx +1 -1
- package/templates/saas/i18n/email/system/new-device-login/template.tsx +1 -1
- package/templates/saas/i18n/email/system/organization-invitation/template.tsx +1 -0
- package/templates/saas/i18n/email/system/organization-member-removed/template.tsx +1 -0
- package/templates/saas/i18n/email/system/password-reset/template.tsx +1 -1
- package/templates/saas/i18n/email/system/payment-failed/template.tsx +1 -1
- package/templates/saas/i18n/email/system/security-alert/template.tsx +1 -0
- package/templates/saas/i18n/email/system/subscription-cancelled/template.tsx +1 -1
- package/templates/saas/i18n/email/system/subscription-confirmation/template.tsx +1 -0
- package/templates/saas/i18n/email/system/welcome-email/template.tsx +1 -1
- package/templates/saas/scenarios/add-file-picker-provider/files/frontend/src/engine/providers/__providerRef__.frontend-app.module.ts.hbs +10 -4
- package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/src/index.ts.hbs +9 -5
- package/templates/saas/scenarios/add-module/scenario.json +3 -3
- package/templates/saas/scenarios/add-provider/scenario.json +36 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/docusaurus.config.ts.hbs +52 -2
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/csp.config.ts +20 -3
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/pages/auth/exchange.tsx +75 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/pages/search.tsx.hbs +47 -3
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/theme/Root.tsx +46 -4
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/favicon.svg +5 -4
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/logo.svg +11 -5
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/wildo.tech-doc.config.ts.hbs +18 -7
- package/templates/saas/scenarios/add-website/files/website/src/app-origin.ts.hbs +32 -16
- package/templates/saas/scenarios/add-website/files/website/src/components/HeaderComponent.tsx +2 -2
- package/templates/saas/scenarios/add-website/files/website/src/pages/index.astro +1 -0
- package/templates/saas/scenarios/add-website/files/website/src/sections/landing.sections.tsx +2 -2
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/src/index.ts.hbs +9 -5
- package/templates/saas/skeleton/.wildo-saas/dev-framework-scripts/sync-engine.sh +46 -14
- package/templates/saas/skeleton/CLAUDE.md.hbs +12 -0
- package/templates/saas/skeleton/backend-api/package.json.hbs +1 -1
- package/templates/saas/skeleton/backend-api/src/companion-exports.ts +13 -2
- package/templates/saas/skeleton/backend-api/src/index.ts +16 -0
- package/templates/saas/skeleton/frontend/src/config/settings-hub.config.ts +11 -5
- package/templates/saas/skeleton/frontend/src/engine/app-level-views/app-level-views.definitions.module.frontend.ts +1 -1
- package/templates/saas/skeleton/frontend/src/generated/csp.generated.json.hbs +17 -0
- package/templates/saas/skeleton/infrastructure/local/wildo.infra.local.config.ts.hbs +19 -0
- package/templates/saas/skeleton/wildo.saas.config.ts.init.hbs +59 -2
- package/wildo-framework.info.json +1 -1
- package/templates/infra/k8s/internal/gotenberg/deployment.yaml.hbs +0 -46
- package/templates/infra/k8s/internal/gotenberg/service.yaml.hbs +0 -19
- package/templates/infra/k8s/middleware.yaml.hbs +0 -101
- package/templates/saas/scenarios/add-backend-provider/scenario.json +0 -17
- 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/logo.png +0 -0
- package/templates/saas/skeleton/backend-api/src/provider-contributions.ts +0 -44
package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.js
ADDED
|
@@ -0,0 +1,794 @@
|
|
|
1
|
+
import { existsSync } from 'node:fs';
|
|
2
|
+
import { join } from 'node:path';
|
|
3
|
+
import { describe, expect, it } from 'vitest';
|
|
4
|
+
import { mkdtempSync, readFileSync } from 'node:fs';
|
|
5
|
+
import { tmpdir } from 'node:os';
|
|
6
|
+
import { ProviderCompanionContributionSchema } from '@wildo-ai/saas-models/companion';
|
|
7
|
+
import { readActivepiecesPiece } from '../activepieces-source.reader.js';
|
|
8
|
+
import { emitProvidersPackage, planProvidersPackage } from '../provider-package.emitter.js';
|
|
9
|
+
import { readSimToolFamily } from '../sim-source.reader.js';
|
|
10
|
+
import { mergeTransposedProviders } from '../provider-merge.js';
|
|
11
|
+
import { TransposedAuthKind, TransposedInputKind, TransposedOperationResolution, TransposedParameterLocation, } from '../transposed-provider.model.js';
|
|
12
|
+
/**
|
|
13
|
+
* What the transposer PROMISES about its output, pinned against the real source catalogues.
|
|
14
|
+
*
|
|
15
|
+
* These are contract pins, not coverage: each one fails if a specific extraction guarantee breaks,
|
|
16
|
+
* and each cites the source shape it exists for. The alternative — asserting counts — would redden
|
|
17
|
+
* on every upstream refresh and teach the next reader to update the number rather than read the
|
|
18
|
+
* failure.
|
|
19
|
+
*
|
|
20
|
+
* ## Why this is here and not in the engine
|
|
21
|
+
*
|
|
22
|
+
* The other half of the proof — that a catalogue of this shape actually executes — already exists in
|
|
23
|
+
* `saas-backend-lib`'s `provider-operations.end-to-end.test.ts`, against a real `node:http` server.
|
|
24
|
+
* Joining the two halves (a GENERATED catalogue executing over the wire) needs the providers package
|
|
25
|
+
* installed in a process that also has the executor, and the engine must not depend on the packages
|
|
26
|
+
* it generates. That join belongs in an application or in `platform/testing`, and is recorded as
|
|
27
|
+
* owed rather than faked here.
|
|
28
|
+
*
|
|
29
|
+
* ## Skipped, not failed, without the catalogues
|
|
30
|
+
*
|
|
31
|
+
* The sources are a SIBLING checkout (`../connector-scrapping-sources/`), deliberately outside this
|
|
32
|
+
* repository. A machine without them should report these as skipped; making them fail would turn a
|
|
33
|
+
* missing optional input into a red suite for everyone.
|
|
34
|
+
*/
|
|
35
|
+
const CATALOGUE_ROOT = join(process.cwd(), '..', '..', '..', '..', 'connector-scrapping-sources');
|
|
36
|
+
const ACTIVEPIECES = join(CATALOGUE_ROOT, 'activepieces', 'packages', 'pieces', 'community');
|
|
37
|
+
const SIM = join(CATALOGUE_ROOT, 'sim', 'apps', 'sim', 'tools');
|
|
38
|
+
const haveSources = existsSync(ACTIVEPIECES) && existsSync(SIM);
|
|
39
|
+
const withSources = haveSources ? describe : describe.skip;
|
|
40
|
+
withSources('Activepieces reader', () => {
|
|
41
|
+
it('recovers a path template and its PATH parameters from a call written positionally', () => {
|
|
42
|
+
// `clockify` writes `clockifyApiCall({ method: HttpMethod.GET, resourceUri: `/workspaces/${x}/…` })`
|
|
43
|
+
// — the per-piece client shape a quarter of the catalogue uses. The pin is the TEMPLATE, because
|
|
44
|
+
// an extractor that dropped the interpolation would still produce a plausible-looking path.
|
|
45
|
+
const { provider } = readActivepiecesPiece({ pieceDirectory: join(ACTIVEPIECES, 'clockify'), sourceVersion: 'test' });
|
|
46
|
+
const operation = provider.operations.find((o) => o.operationId === 'find-task');
|
|
47
|
+
expect(operation?.resolution).toBe(TransposedOperationResolution.RESOLVED);
|
|
48
|
+
expect(operation?.method).toBe('GET');
|
|
49
|
+
expect(operation?.pathTemplate).toBe('/workspaces/{workspaceId}/projects/{projectId}/tasks');
|
|
50
|
+
expect(operation?.parameters.filter((p) => p.in === TransposedParameterLocation.PATH).map((p) => p.name))
|
|
51
|
+
.toEqual(['workspaceId', 'projectId']);
|
|
52
|
+
});
|
|
53
|
+
it('records an SDK-backed action as PENDING with the vendor operation it named, never as executable', () => {
|
|
54
|
+
// Slack's actions call `client.conversations.create(…)`: the operation identity is in the source
|
|
55
|
+
// and the endpoint is not. Emitting it with a guessed path is the one thing the transposer must
|
|
56
|
+
// never do, so the pin is on the RESOLUTION as much as on the name.
|
|
57
|
+
const { provider } = readActivepiecesPiece({ pieceDirectory: join(ACTIVEPIECES, 'slack'), sourceVersion: 'test' });
|
|
58
|
+
const pending = provider.operations.filter((o) => o.resolution === TransposedOperationResolution.PENDING_ENDPOINT);
|
|
59
|
+
expect(pending.length).toBeGreaterThan(0);
|
|
60
|
+
expect(pending.every((o) => o.pathTemplate === undefined && o.method === undefined)).toBe(true);
|
|
61
|
+
expect(pending.map((o) => o.vendorOperationName)).toContain('conversations.create');
|
|
62
|
+
});
|
|
63
|
+
it('does not mistake the piece-authoring API for a vendor SDK call', () => {
|
|
64
|
+
// `props: { x: Property.ShortText({…}) }` is structurally identical to `client.a.b(…)`. Scanning
|
|
65
|
+
// the whole action once made 48 of Slack's actions report `ShortText` as their vendor operation.
|
|
66
|
+
const { provider } = readActivepiecesPiece({ pieceDirectory: join(ACTIVEPIECES, 'slack'), sourceVersion: 'test' });
|
|
67
|
+
const names = provider.operations.map((o) => o.vendorOperationName).filter((n) => n !== undefined);
|
|
68
|
+
expect(names).not.toContain('ShortText');
|
|
69
|
+
expect(names).not.toContain('Checkbox');
|
|
70
|
+
expect(names.some((n) => n === 'push' || n === 'map')).toBe(false);
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
withSources('paths that are not written where the call is', () => {
|
|
74
|
+
it('finds a path passed BEFORE the method, and declares the holes the string itself carries', () => {
|
|
75
|
+
// `makeAmpecoApiCall(auth, url, HttpMethod.GET, body, query)` puts the path first; argument order
|
|
76
|
+
// is a per-wrapper convention and the catalogue uses both. And the path it resolves to is
|
|
77
|
+
// `processPathParameters('/public-api/notifications/v2.0', props)` — a template whose holes, when
|
|
78
|
+
// it has them, are written LITERALLY as `{token}` rather than interpolated, so they need a
|
|
79
|
+
// declared parameter or the emitter refuses the operation as incoherent.
|
|
80
|
+
const { provider } = readActivepiecesPiece({ pieceDirectory: join(ACTIVEPIECES, 'ampeco'), sourceVersion: 'test' });
|
|
81
|
+
const resolved = provider.operations.filter((o) => o.resolution === TransposedOperationResolution.RESOLVED);
|
|
82
|
+
expect(resolved.length).toBeGreaterThan(0);
|
|
83
|
+
for (const operation of resolved) {
|
|
84
|
+
const declared = new Set(operation.parameters.filter((p) => p.in === TransposedParameterLocation.PATH).map((p) => p.name));
|
|
85
|
+
for (const hole of [...(operation.pathTemplate ?? '').matchAll(/\{([^}]+)\}/g)].map((m) => m[1])) {
|
|
86
|
+
expect(declared.has(hole)).toBe(true);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
it('follows a positional call whose path is a local const, and drops an optional query suffix', () => {
|
|
91
|
+
// `makeRequest(auth, HttpMethod.GET, path)` with `path` built a few lines above as
|
|
92
|
+
// `` `/calls/search${queryString ? `?${queryString}` : ''}` ``. The suffix's whole job is "append
|
|
93
|
+
// a query string if there is one", so the PATH is the branch without it. Naming it as a hole
|
|
94
|
+
// would invent a `{queryString}` path segment the vendor has never heard of — the pin is that the
|
|
95
|
+
// template is clean AND that no parameter was fabricated.
|
|
96
|
+
const { provider } = readActivepiecesPiece({ pieceDirectory: join(ACTIVEPIECES, 'aircall'), sourceVersion: 'test' });
|
|
97
|
+
const find = provider.operations.find((o) => o.operationId === 'findCalls');
|
|
98
|
+
expect(find?.resolution).toBe(TransposedOperationResolution.RESOLVED);
|
|
99
|
+
expect(find?.method).toBe('GET');
|
|
100
|
+
expect(find?.pathTemplate).toBe('/calls/search');
|
|
101
|
+
expect(find?.parameters).toHaveLength(0);
|
|
102
|
+
});
|
|
103
|
+
it('refuses rather than collapsing a conditional that picks between two different paths', () => {
|
|
104
|
+
// Only a suffix whose other branch is an empty string collapses. A genuine either/or between two
|
|
105
|
+
// endpoints has no single answer, and guessing one puts an operation somewhere nobody asked for.
|
|
106
|
+
const { provider } = readActivepiecesPiece({ pieceDirectory: join(ACTIVEPIECES, 'deepl'), sourceVersion: 'test' });
|
|
107
|
+
const resolved = provider.operations.filter((o) => o.resolution === TransposedOperationResolution.RESOLVED);
|
|
108
|
+
expect(resolved.every((o) => !(o.pathTemplate ?? '').includes('?'))).toBe(true);
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
withSources('a declared parameter names the input that feeds it', () => {
|
|
112
|
+
it('reads a prop declared as a shared const, not only as a `Property.*` call', () => {
|
|
113
|
+
// `contactId: activecampaignCommon.contactId` is an input the caller must supply. Skipping it
|
|
114
|
+
// because it is a reference rather than a call was the single largest cause of operations whose
|
|
115
|
+
// own path hole nothing could fill. Kind and requiredness live in the const, so both are recorded
|
|
116
|
+
// honestly — UNKNOWN, not required — rather than guessed.
|
|
117
|
+
const { provider } = readActivepiecesPiece({ pieceDirectory: join(ACTIVEPIECES, 'activecampaign'), sourceVersion: 'test' });
|
|
118
|
+
const update = provider.operations.find((o) => o.operationId === 'activecampaign_update_contact');
|
|
119
|
+
expect(update?.inputFields.map((f) => f.name)).toContain('contactId');
|
|
120
|
+
});
|
|
121
|
+
it('records the rename a source WROTE, and never one it did not', () => {
|
|
122
|
+
// `const { faq_id: faqId } = context.propsValue` then `/knowledge/${faqId}`: the mapping is in the
|
|
123
|
+
// destructuring, so `from` is read rather than guessed. The contract's JSDoc insists on that —
|
|
124
|
+
// `faqId` → `faq_id` looks like a camel/snake rule until `userId` → `user` and `base` → `baseId`
|
|
125
|
+
// turn up in the same catalogue.
|
|
126
|
+
// `webflow` carries the most of them (14); `aidbase` reads its rename a way this does not cover.
|
|
127
|
+
const { provider } = readActivepiecesPiece({ pieceDirectory: join(ACTIVEPIECES, 'webflow'), sourceVersion: 'test' });
|
|
128
|
+
const withFrom = provider.operations.flatMap((o) => o.parameters).filter((p) => p.from !== undefined);
|
|
129
|
+
expect(withFrom.length).toBeGreaterThan(0);
|
|
130
|
+
// Every `from` names a field the operation actually declares — a mapping onto nothing is worse
|
|
131
|
+
// than none, because it looks resolved.
|
|
132
|
+
for (const operation of provider.operations) {
|
|
133
|
+
const declared = new Set(operation.inputFields.map((f) => f.name));
|
|
134
|
+
for (const parameter of operation.parameters) {
|
|
135
|
+
if (parameter.from !== undefined)
|
|
136
|
+
expect(declared.has(parameter.from)).toBe(true);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
withSources('trigger transposition', () => {
|
|
142
|
+
it('turns a POLLING trigger into a READ operation carrying its dedupe strategy', () => {
|
|
143
|
+
const { provider } = readActivepiecesPiece({ pieceDirectory: join(ACTIVEPIECES, 'hunter'), sourceVersion: 'test' });
|
|
144
|
+
const poll = provider.operations.find((o) => o.operationId === 'trigger.new-lead.poll');
|
|
145
|
+
expect(poll?.resolution).toBe(TransposedOperationResolution.RESOLVED);
|
|
146
|
+
expect(poll?.method).toBe('GET');
|
|
147
|
+
expect(poll?.pathTemplate).toBe('/leads');
|
|
148
|
+
expect(poll?.classification).toBe('READ');
|
|
149
|
+
// What a scheduler needs and all it needs: HOW to tell a new item from one already seen.
|
|
150
|
+
expect(poll?.summary).toContain('TIMEBASED');
|
|
151
|
+
});
|
|
152
|
+
it('turns a WEBHOOK trigger into subscribe and unsubscribe operations', () => {
|
|
153
|
+
const { provider } = readActivepiecesPiece({ pieceDirectory: join(ACTIVEPIECES, 'clickup'), sourceVersion: 'test' });
|
|
154
|
+
const subscribe = provider.operations.find((o) => o.operationId === 'trigger.task_tag_updated.subscribe');
|
|
155
|
+
const unsubscribe = provider.operations.find((o) => o.operationId === 'trigger.task_tag_updated.unsubscribe');
|
|
156
|
+
expect(subscribe?.method).toBe('POST');
|
|
157
|
+
expect(subscribe?.pathTemplate).toBe('/api/v2/team/{workspace_id}/webhook');
|
|
158
|
+
expect(subscribe?.classification).toBe('WRITE');
|
|
159
|
+
expect(unsubscribe?.method).toBe('DELETE');
|
|
160
|
+
expect(unsubscribe?.pathTemplate).toBe('/api/v2/webhook/{id}');
|
|
161
|
+
});
|
|
162
|
+
it('gives each polling trigger in a piece its OWN endpoint', () => {
|
|
163
|
+
// A piece-wide lookup for the polling contract's `items` would hand every trigger in the piece
|
|
164
|
+
// the endpoint of whichever was indexed first — a wrong endpoint on a real trigger, which is the
|
|
165
|
+
// one failure this transposer must never produce. The pin is that distinct triggers disagree.
|
|
166
|
+
// `meistertask` has NINE polling triggers on nine distinct endpoints — chosen because a
|
|
167
|
+
// conditional pin on a piece with one trigger is decoration that can never fail.
|
|
168
|
+
const { provider } = readActivepiecesPiece({ pieceDirectory: join(ACTIVEPIECES, 'meistertask'), sourceVersion: 'test' });
|
|
169
|
+
const polls = provider.operations.filter((o) => o.operationId.endsWith('.poll'));
|
|
170
|
+
expect(polls.length).toBeGreaterThan(1);
|
|
171
|
+
expect(new Set(polls.map((o) => o.pathTemplate)).size).toBe(polls.length);
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
withSources('Sim reader', () => {
|
|
175
|
+
it('peels an arrow-returned template into a path template', () => {
|
|
176
|
+
const { provider } = readSimToolFamily({ toolDirectory: join(SIM, 'slack'), sourceVersion: 'test' });
|
|
177
|
+
const archive = provider.operations.find((o) => o.operationId === 'slack_archive_conversation');
|
|
178
|
+
expect(archive?.resolution).toBe(TransposedOperationResolution.RESOLVED);
|
|
179
|
+
expect(archive?.method).toBe('POST');
|
|
180
|
+
expect(archive?.pathTemplate).toBe('/api/conversations.archive');
|
|
181
|
+
expect(provider.baseUrl).toBe('https://slack.com');
|
|
182
|
+
});
|
|
183
|
+
it('reads the vendor host, not Sim’s own server', () => {
|
|
184
|
+
// On a nine-month-stale checkout many tools posted to `/api/tools/<vendor>/…`, Sim's own route,
|
|
185
|
+
// with the vendor call in a handler the reader cannot see. Emitting those would point providers
|
|
186
|
+
// at a server nobody runs, so the pin is that every resolved operation is vendor-shaped.
|
|
187
|
+
const { provider } = readSimToolFamily({ toolDirectory: join(SIM, 'slack'), sourceVersion: 'test' });
|
|
188
|
+
const resolved = provider.operations.filter((o) => o.resolution === TransposedOperationResolution.RESOLVED);
|
|
189
|
+
expect(resolved.length).toBeGreaterThan(0);
|
|
190
|
+
expect(resolved.every((o) => !(o.pathTemplate ?? '').startsWith('/api/tools/'))).toBe(true);
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
withSources('the DTO — what a caller passes and what the operation answers', () => {
|
|
194
|
+
it('reads the declared INPUT out of an Activepieces props block, kinds and requiredness alike', () => {
|
|
195
|
+
const { provider } = readActivepiecesPiece({ pieceDirectory: join(ACTIVEPIECES, 'clockify'), sourceVersion: 'test' });
|
|
196
|
+
const find = provider.operations.find((o) => o.operationId === 'find-task');
|
|
197
|
+
const byName = new Map(find?.inputFields.map((f) => [f.name, f]) ?? []);
|
|
198
|
+
// `Property.ShortText({ required: true })` → a required string.
|
|
199
|
+
expect(byName.get('name')).toMatchObject({ kind: TransposedInputKind.STRING, required: true });
|
|
200
|
+
// `Property.Checkbox({ required: false })` → an optional boolean.
|
|
201
|
+
expect(byName.get('exactMatch')).toMatchObject({ kind: TransposedInputKind.BOOLEAN, required: false });
|
|
202
|
+
// A piece's OWN prop factory: the kind cannot be read without following it, and the requiredness
|
|
203
|
+
// is at the call site. UNKNOWN is the honest answer — typing it `string` because most things are
|
|
204
|
+
// strings is exactly how a schema comes to lie about the one that is not.
|
|
205
|
+
expect(byName.get('workspaceId')).toMatchObject({ kind: TransposedInputKind.UNKNOWN, required: true });
|
|
206
|
+
});
|
|
207
|
+
it('reads a Sim `outputs` block as a RECURSIVE response shape ONLY when the tool passes the body through', () => {
|
|
208
|
+
// Rewritten 2026-09-07, and the reason is a measurement rather than a preference. A Sim tool with
|
|
209
|
+
// a `transformResponse` renames the vendor's body before declaring its outputs, and this
|
|
210
|
+
// transposer deliberately does not read `transformResponse` — so for such a tool the `outputs`
|
|
211
|
+
// block describes a result WILDO NEVER PRODUCES. Slack's `conversations.info` answers
|
|
212
|
+
// `{ ok, channel }`; its transform renames `data.channel` to `channelInfo`; its `outputs`
|
|
213
|
+
// declares `channelInfo`. A schema built from that names a field a caller can never see, and the
|
|
214
|
+
// engine contract is explicit that an output schema's value is "naming the fields a caller may
|
|
215
|
+
// rely on".
|
|
216
|
+
//
|
|
217
|
+
// Making every member optional stops it REJECTING a real response, which was the right fix for
|
|
218
|
+
// the symptom. It does not stop it being about the wrong object.
|
|
219
|
+
//
|
|
220
|
+
// Measured over the catalogue: 4,175 of 4,181 `ToolConfig` modules carry a `transformResponse` or
|
|
221
|
+
// `postProcess`, and the six that do not are infrastructure files rather than tools. So this is
|
|
222
|
+
// not a corner — it is the whole Sim response surface, and the honest answer is `unknown`.
|
|
223
|
+
const { provider } = readSimToolFamily({ toolDirectory: join(SIM, 'slack'), sourceVersion: 'test' });
|
|
224
|
+
const transforming = provider.operations.filter((o) => o.outputShape !== undefined);
|
|
225
|
+
expect(transforming).toHaveLength(0);
|
|
226
|
+
});
|
|
227
|
+
it('still reads a RECURSIVE shape, from the source that describes the WIRE — Activepieces `sampleData`', () => {
|
|
228
|
+
// The recursion, the nesting and the array-element shape all still matter; what changed is which
|
|
229
|
+
// source is allowed to describe a response. `sampleData` is a literal example of the real answer,
|
|
230
|
+
// so it names wire keys. A pin that accepts "nested somehow" would pass with the element shape
|
|
231
|
+
// dropped, which is exactly what a caller reading a list needs, so the assertion is on an ARRAY
|
|
232
|
+
// whose ELEMENT survived.
|
|
233
|
+
const { provider } = readActivepiecesPiece({ pieceDirectory: join(ACTIVEPIECES, 'hunter'), sourceVersion: 'test' });
|
|
234
|
+
const withOutput = provider.operations.filter((o) => o.outputShape !== undefined);
|
|
235
|
+
expect(withOutput.length).toBeGreaterThan(0);
|
|
236
|
+
});
|
|
237
|
+
it('infers an Activepieces response from `sampleData`, and marks every member OPTIONAL', () => {
|
|
238
|
+
// One example proves a field CAN appear, never that it always does. A schema inferred from a
|
|
239
|
+
// sample and then enforced strictly rejects the vendor for omitting something the example
|
|
240
|
+
// happened to include.
|
|
241
|
+
const { provider } = readActivepiecesPiece({ pieceDirectory: join(ACTIVEPIECES, 'hunter'), sourceVersion: 'test' });
|
|
242
|
+
const poll = provider.operations.find((o) => o.operationId === 'trigger.new-lead.poll');
|
|
243
|
+
expect(poll?.outputShape?.kind).toBe(TransposedInputKind.OBJECT);
|
|
244
|
+
const fields = poll?.outputShape?.fields ?? {};
|
|
245
|
+
expect(fields['email']).toMatchObject({ kind: TransposedInputKind.STRING, optional: true });
|
|
246
|
+
expect(fields['id']).toMatchObject({ kind: TransposedInputKind.NUMBER, optional: true });
|
|
247
|
+
expect(Object.values(fields).every((f) => f.optional === true)).toBe(true);
|
|
248
|
+
});
|
|
249
|
+
});
|
|
250
|
+
withSources('vendor merge', () => {
|
|
251
|
+
it('produces ONE provider per vendor and completes a pending operation from the other catalogue', () => {
|
|
252
|
+
const activepieces = readActivepiecesPiece({ pieceDirectory: join(ACTIVEPIECES, 'slack'), sourceVersion: 'ap' }).provider;
|
|
253
|
+
const sim = readSimToolFamily({ toolDirectory: join(SIM, 'slack'), sourceVersion: 'sim' }).provider;
|
|
254
|
+
const { providers, reports } = mergeTransposedProviders([activepieces, sim]);
|
|
255
|
+
expect(providers).toHaveLength(1);
|
|
256
|
+
expect(providers[0].ref).toBe('slack');
|
|
257
|
+
// Both catalogues contributed, and the merge kept the richer auth and the base URL only one of
|
|
258
|
+
// them stated.
|
|
259
|
+
expect(providers[0].provenances.map((p) => p.source).sort()).toEqual(['ACTIVEPIECES', 'SIM']);
|
|
260
|
+
expect(providers[0].auth.kind).toBe(TransposedAuthKind.OAUTH2);
|
|
261
|
+
expect(providers[0].baseUrl).toBe('https://slack.com');
|
|
262
|
+
// The point of merging: an action that named its operation meets the catalogue that knows the URL.
|
|
263
|
+
expect(reports[0].completed).toBeGreaterThan(0);
|
|
264
|
+
const completed = providers[0].operations.filter((o) => o.endpointFrom !== undefined);
|
|
265
|
+
expect(completed.length).toBeGreaterThan(0);
|
|
266
|
+
expect(completed.every((o) => o.resolution === TransposedOperationResolution.RESOLVED && o.pathTemplate !== undefined)).toBe(true);
|
|
267
|
+
// Provenance stays split: who DESCRIBED it, and who told us where it lives.
|
|
268
|
+
expect(completed.every((o) => o.provenance.source === 'ACTIVEPIECES' && o.endpointFrom?.source === 'SIM')).toBe(true);
|
|
269
|
+
});
|
|
270
|
+
it('gives every operation a unique id, because the catalogue is keyed by it', () => {
|
|
271
|
+
// Two different endpoints can arrive under one name — each catalogue names operations only within
|
|
272
|
+
// its own scope. In a record keyed by operationId that is a repeated object key, where the later
|
|
273
|
+
// entry silently replaces the earlier and an operation visible in the source vanishes at runtime.
|
|
274
|
+
const activepieces = readActivepiecesPiece({ pieceDirectory: join(ACTIVEPIECES, 'discord'), sourceVersion: 'ap' }).provider;
|
|
275
|
+
const sim = existsSync(join(SIM, 'discord'))
|
|
276
|
+
? [readSimToolFamily({ toolDirectory: join(SIM, 'discord'), sourceVersion: 'sim' }).provider]
|
|
277
|
+
: [];
|
|
278
|
+
const { providers } = mergeTransposedProviders([activepieces, ...sim]);
|
|
279
|
+
const ids = providers[0].operations.map((o) => o.operationId);
|
|
280
|
+
expect(new Set(ids).size).toBe(ids.length);
|
|
281
|
+
});
|
|
282
|
+
});
|
|
283
|
+
withSources('an emitted operation agrees with its own path', () => {
|
|
284
|
+
it('EMITS an input for a wire parameter the source never declared, rather than refusing the operation', () => {
|
|
285
|
+
// A parameter with no feeding input field is a gap in the DOCUMENTATION, not proof the operation
|
|
286
|
+
// is impossible: the value is one the vendor's URL asks for, the name comes from that URL, and the
|
|
287
|
+
// schema is loose so a caller who knows already can pass it. Refusing withheld a capability to
|
|
288
|
+
// punish a missing sentence, so the sentence is written instead — required for a PATH position,
|
|
289
|
+
// since a path cannot have a hole.
|
|
290
|
+
const sim = readSimToolFamily({ toolDirectory: join(SIM, 'affinity'), sourceVersion: 'test' });
|
|
291
|
+
const root = mkdtempSync(join(tmpdir(), 'wildo-providers-'));
|
|
292
|
+
emitProvidersPackage({ packageRoot: root, providers: [sim.provider], unreadableByVendor: new Map(), fullBatch: false });
|
|
293
|
+
const emitted = readFileSync(join(root, 'src', 'affinity', 'operations.generated.ts'), 'utf8');
|
|
294
|
+
// An operation that SURVIVES only because the input was declared. Without the assertion that it
|
|
295
|
+
// is still here, the pin passes when the operation is refused instead — the coherence guard and
|
|
296
|
+
// this declaration are two nets in series, and a pin that accepts either proves neither.
|
|
297
|
+
// `optionId` is a path hole `affinity`'s own params never mention.
|
|
298
|
+
expect(emitted).toContain('"affinity_get_list_field_dropdown_option"');
|
|
299
|
+
// The union, not `z.string()`, and the difference is not cosmetic: this field's kind was never
|
|
300
|
+
// declared by anyone, so narrowing it to a string makes the emitted schema REJECT a value the
|
|
301
|
+
// wire encodes perfectly well. Measured — a `z.string()` on a repaired boolean query parameter
|
|
302
|
+
// turned a call that executed over a real socket into INPUT_REJECTED.
|
|
303
|
+
expect(emitted).toContain('"optionId": z.union([z.string(), z.number(), z.boolean()])');
|
|
304
|
+
for (const block of emitted.split(/\n "/).slice(1)) {
|
|
305
|
+
const schema = /inputSchema: z\.looseObject<z\.ZodRawShape>\(\{([\s\S]*?)\n \}\)/.exec(block)?.[1];
|
|
306
|
+
if (schema === undefined)
|
|
307
|
+
continue;
|
|
308
|
+
const fields = new Set([...schema.matchAll(/"([^"]+)":/g)].map((m) => m[1]));
|
|
309
|
+
for (const [, name, , from] of block.matchAll(/name: "([^"]+)", in: ProviderRestParameterLocation\.(PATH|QUERY), required: (?:true|false)(?:, from: "([^"]+)")?/g)) {
|
|
310
|
+
// What the compiler will look for is `from ?? name`, so that is what must be declared.
|
|
311
|
+
expect(fields.has(from ?? name)).toBe(true);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
});
|
|
315
|
+
it('drops path parameters that lived in the ORIGIN the split removed', () => {
|
|
316
|
+
// `https://${applicationId}.algolia.net/1/indexes/${indexName}/batch` keeps one hole and loses
|
|
317
|
+
// one. Leaving `applicationId` declared tells the executor to bind a path parameter the path no
|
|
318
|
+
// longer has — 116 operations were emitted that way before the filter existed.
|
|
319
|
+
// The case lives in SIM, whose algolia tools build `https://${applicationId}-dsn.algolia.net/...`.
|
|
320
|
+
// Pointed at the Activepieces piece this pin passed while proving nothing — the piece has no
|
|
321
|
+
// origin hole at all, so the filter it exists for was never exercised.
|
|
322
|
+
const { provider } = readSimToolFamily({ toolDirectory: join(SIM, 'algolia'), sourceVersion: 'test' });
|
|
323
|
+
expect(provider.operations.length).toBeGreaterThan(0);
|
|
324
|
+
for (const operation of provider.operations.filter((o) => o.resolution === TransposedOperationResolution.RESOLVED)) {
|
|
325
|
+
const holes = [...(operation.pathTemplate ?? '').matchAll(/\{([^}]+)\}/g)].map((m) => m[1]);
|
|
326
|
+
const declared = operation.parameters.filter((p) => p.in === TransposedParameterLocation.PATH).map((p) => p.name);
|
|
327
|
+
expect(declared.every((name) => holes.includes(name))).toBe(true);
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
it('never EMITS an operation whose path has a hole nothing binds', () => {
|
|
331
|
+
// The executor binds a `{token}` from a declared PATH parameter. A hole with no parameter goes
|
|
332
|
+
// out as a literal `{token}` in the URL — a broken call that typechecks perfectly, because the
|
|
333
|
+
// shape is right and the content disagrees with itself. Emission refuses instead.
|
|
334
|
+
const sim = readSimToolFamily({ toolDirectory: join(SIM, 'algolia'), sourceVersion: 'test' });
|
|
335
|
+
const root = mkdtempSync(join(tmpdir(), 'wildo-providers-'));
|
|
336
|
+
emitProvidersPackage({ packageRoot: root, providers: [sim.provider], unreadableByVendor: new Map(), fullBatch: false });
|
|
337
|
+
const emitted = readFileSync(join(root, 'src', 'algolia', 'operations.generated.ts'), 'utf8');
|
|
338
|
+
for (const block of emitted.split(/\n "/).slice(1)) {
|
|
339
|
+
const template = /pathTemplate: "([^"]*)"/.exec(block)?.[1];
|
|
340
|
+
if (template === undefined)
|
|
341
|
+
continue;
|
|
342
|
+
const declared = [...block.matchAll(/name: "([^"]+)", in: ProviderRestParameterLocation\.PATH/g)].map((m) => m[1]);
|
|
343
|
+
for (const hole of [...template.matchAll(/\{([^}]+)\}/g)].map((m) => m[1])) {
|
|
344
|
+
expect(declared).toContain(hole);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
});
|
|
348
|
+
});
|
|
349
|
+
withSources('the companion barrel — how discovery learns 699 vendors exist without loading one', () => {
|
|
350
|
+
it('emits a contribution per vendor that the LIVE discovery schema accepts', () => {
|
|
351
|
+
// The schema is the wire contract the CLI, the companion and the generated artifacts all read.
|
|
352
|
+
// Typechecking proves the fields exist; only parsing proves the superRefine rules hold — sorted,
|
|
353
|
+
// unique secret slugs, a non-empty description, a runtime target. A barrel that typechecks and
|
|
354
|
+
// fails to parse would be discovered by an application's boot, not by us.
|
|
355
|
+
const activepieces = readActivepiecesPiece({ pieceDirectory: join(ACTIVEPIECES, 'clockify'), sourceVersion: 'test' });
|
|
356
|
+
const root = mkdtempSync(join(tmpdir(), 'wildo-providers-'));
|
|
357
|
+
emitProvidersPackage({
|
|
358
|
+
fullBatch: false,
|
|
359
|
+
packageRoot: root,
|
|
360
|
+
providers: [activepieces.provider],
|
|
361
|
+
unreadableByVendor: new Map([[activepieces.provider.ref, activepieces.unreadable]]),
|
|
362
|
+
});
|
|
363
|
+
// The barrel is TypeScript, so it is read as text and its literal contributions are reconstructed
|
|
364
|
+
// through the emitted JSON-ish shape. Importing it would need the package installed, which is a
|
|
365
|
+
// different question from whether what it declares is valid.
|
|
366
|
+
const barrel = readFileSync(join(root, 'src', 'companion-exports.ts'), 'utf8');
|
|
367
|
+
expect(barrel).toContain(`ref: "clockify"`);
|
|
368
|
+
expect(barrel).toContain(`runtimeImportPath: "@wildo-ai/providers/clockify"`);
|
|
369
|
+
// Parse the shape the emitter promises, built the way the emitter builds it.
|
|
370
|
+
const contribution = {
|
|
371
|
+
ref: 'clockify',
|
|
372
|
+
identity: {
|
|
373
|
+
packageName: '@wildo-ai/providers',
|
|
374
|
+
tier: 'CATALOGUE',
|
|
375
|
+
vendor: 'clockify',
|
|
376
|
+
origin: { kind: 'GENERATED', catalogue: { source: 'ACTIVEPIECES', sourceRef: 'clockify', sourceVersion: 'test' } },
|
|
377
|
+
},
|
|
378
|
+
runtimeImportPath: '@wildo-ai/providers/clockify',
|
|
379
|
+
runtimeTargets: [{ kind: 'backend' }],
|
|
380
|
+
engineCapabilities: [],
|
|
381
|
+
providerCapabilities: [],
|
|
382
|
+
protocols: ['REST_API'],
|
|
383
|
+
secretsContractShape: [
|
|
384
|
+
{ slug: 'apiKey', envVarName: 'CLOCKIFY_API_KEY', required: true, description: 'Credential for clockify, transposed as SECRET_TEXT.' },
|
|
385
|
+
],
|
|
386
|
+
};
|
|
387
|
+
const parsed = ProviderCompanionContributionSchema.safeParse(contribution);
|
|
388
|
+
expect(parsed.success).toBe(true);
|
|
389
|
+
});
|
|
390
|
+
it('declares the ./companion subpath, which nothing imports by name and everything needs', () => {
|
|
391
|
+
// `resolvePackageCompanionEntryPath` reads this subpath from the manifest and hands the resolved
|
|
392
|
+
// PATH to the loader. No application ever writes the specifier, so a missing entry is invisible
|
|
393
|
+
// to every search for it and fatal to discovery.
|
|
394
|
+
const activepieces = readActivepiecesPiece({ pieceDirectory: join(ACTIVEPIECES, 'clockify'), sourceVersion: 'test' });
|
|
395
|
+
const root = mkdtempSync(join(tmpdir(), 'wildo-providers-'));
|
|
396
|
+
emitProvidersPackage({ packageRoot: root, providers: [activepieces.provider], unreadableByVendor: new Map(), fullBatch: false });
|
|
397
|
+
const manifest = JSON.parse(readFileSync(join(root, 'package.json'), 'utf8'));
|
|
398
|
+
expect(manifest.exports['./companion']).toBeDefined();
|
|
399
|
+
expect(manifest.exports['./clockify']).toBeDefined();
|
|
400
|
+
// And still no root barrel: one careless import must not be able to load every vendor.
|
|
401
|
+
expect(manifest.exports['.']).toBeUndefined();
|
|
402
|
+
});
|
|
403
|
+
});
|
|
404
|
+
withSources('OAuth2 is carried as DATA, and no vendor advertises a credential it does not have', () => {
|
|
405
|
+
it('emits the authorize URL, token URL and scopes on the runtime contract', () => {
|
|
406
|
+
// Merged, because Activepieces alone yields Slack no executable operation — its actions are all
|
|
407
|
+
// SDK-backed — and a vendor with nothing executable is deliberately not emitted at all.
|
|
408
|
+
const activepieces = readActivepiecesPiece({ pieceDirectory: join(ACTIVEPIECES, 'slack'), sourceVersion: 'test' }).provider;
|
|
409
|
+
const sim = readSimToolFamily({ toolDirectory: join(SIM, 'slack'), sourceVersion: 'test' }).provider;
|
|
410
|
+
const { providers } = mergeTransposedProviders([activepieces, sim]);
|
|
411
|
+
const root = mkdtempSync(join(tmpdir(), 'wildo-providers-'));
|
|
412
|
+
emitProvidersPackage({ packageRoot: root, providers, unreadableByVendor: new Map(), fullBatch: false });
|
|
413
|
+
const module = readFileSync(join(root, 'src', 'slack', 'backend.exports.ts'), 'utf8');
|
|
414
|
+
// Not a comment. The endpoints exist nowhere in this repository except the catalogue that was
|
|
415
|
+
// read, so keeping them in prose meant the delegated-authorization lane re-derived them by hand.
|
|
416
|
+
expect(module).toContain('oauth2: {');
|
|
417
|
+
expect(module).toContain('authorizeUrl: "https://slack.com/oauth/v2/authorize');
|
|
418
|
+
expect(module).toContain('tokenUrl: "https://slack.com/api/oauth.v2.access"');
|
|
419
|
+
expect(module).toContain('clientIdSecretRef: "SLACK_CLIENT_ID"');
|
|
420
|
+
// ABSENT rather than empty for a vendor whose endpoints are plain. An empty array would read as
|
|
421
|
+
// "somebody looked and found none", which is the same sentence as "nobody has looked" — and the
|
|
422
|
+
// consuming flow branches on whether it must ask a connecting person for anything at all.
|
|
423
|
+
expect(module).not.toContain('connectionParameters:');
|
|
424
|
+
});
|
|
425
|
+
it('declares the placeholders a templated endpoint carries, so a connection can be asked for them', () => {
|
|
426
|
+
// Microsoft Teams' authorize URL is `https://{cloud}/{tenantId}/oauth2/v2.0/authorize`. Which
|
|
427
|
+
// Azure cloud and which directory are facts about the ACCOUNT BEING CONNECTED — no application
|
|
428
|
+
// configuration supplies them, and only the person connecting knows.
|
|
429
|
+
//
|
|
430
|
+
// Without this the flow builds a URL containing braces, sends somebody to a hostname that is not
|
|
431
|
+
// a hostname, and fails in their browser rather than at the point where the missing input could
|
|
432
|
+
// have been asked for. 21 of the 96 vendors that recovered both endpoints are in this
|
|
433
|
+
// population, so it is not an edge case — it is Microsoft, and everything regional.
|
|
434
|
+
// Merged, for Slack's reason: Activepieces alone yields Teams no executable operation — its
|
|
435
|
+
// actions are SDK-backed — and a vendor with nothing executable is deliberately not emitted.
|
|
436
|
+
const activepieces = readActivepiecesPiece({ pieceDirectory: join(ACTIVEPIECES, 'microsoft-teams'), sourceVersion: 'test' }).provider;
|
|
437
|
+
const sim = readSimToolFamily({ toolDirectory: join(SIM, 'microsoft_teams'), sourceVersion: 'test' }).provider;
|
|
438
|
+
const { providers } = mergeTransposedProviders([activepieces, sim]);
|
|
439
|
+
const root = mkdtempSync(join(tmpdir(), 'wildo-providers-'));
|
|
440
|
+
emitProvidersPackage({ packageRoot: root, providers, unreadableByVendor: new Map(), fullBatch: false });
|
|
441
|
+
const module = readFileSync(join(root, 'src', 'microsoft-teams', 'backend.exports.ts'), 'utf8');
|
|
442
|
+
expect(module).toContain('connectionParameters: ["cloud", "tenantId"]');
|
|
443
|
+
// First-appearance order, not sorted: it is the order the vendor writes them in and therefore
|
|
444
|
+
// the order they read to a person filling in a form. Sorting would put `cloud` first by luck.
|
|
445
|
+
expect(module.indexOf('"cloud"')).toBeLessThan(module.indexOf('"tenantId"'));
|
|
446
|
+
});
|
|
447
|
+
it('declares the application registration as required and the access token as not', () => {
|
|
448
|
+
// The two values an operator genuinely pastes are the client id and secret. The access token is
|
|
449
|
+
// MINTED, so demanding it at boot would make every OAuth2 provider un-deployable, and declaring
|
|
450
|
+
// it as a required API key — which is what this emitted before 2026-09-07 — advertises a
|
|
451
|
+
// credential model the vendor does not offer while quietly working if someone pastes a token.
|
|
452
|
+
// Merged, because Activepieces alone yields Slack no executable operation — its actions are all
|
|
453
|
+
// SDK-backed — and a vendor with nothing executable is deliberately not emitted at all.
|
|
454
|
+
const activepieces = readActivepiecesPiece({ pieceDirectory: join(ACTIVEPIECES, 'slack'), sourceVersion: 'test' }).provider;
|
|
455
|
+
const sim = readSimToolFamily({ toolDirectory: join(SIM, 'slack'), sourceVersion: 'test' }).provider;
|
|
456
|
+
const { providers } = mergeTransposedProviders([activepieces, sim]);
|
|
457
|
+
const root = mkdtempSync(join(tmpdir(), 'wildo-providers-'));
|
|
458
|
+
emitProvidersPackage({ packageRoot: root, providers, unreadableByVendor: new Map(), fullBatch: false });
|
|
459
|
+
const module = readFileSync(join(root, 'src', 'slack', 'backend.exports.ts'), 'utf8');
|
|
460
|
+
expect(module).toContain('envVarName: "SLACK_CLIENT_ID"');
|
|
461
|
+
expect(module).toContain('envVarName: "SLACK_CLIENT_SECRET"');
|
|
462
|
+
expect(module).toMatch(/accessToken: \{[\s\S]*?required: false/);
|
|
463
|
+
// and the old claim is gone
|
|
464
|
+
expect(module).not.toMatch(/apiKey: \{[\s\S]*?envVarName: "SLACK_API_KEY",[\s\S]*?required: true/);
|
|
465
|
+
});
|
|
466
|
+
it('keeps the discovery contribution in step with the module it describes', () => {
|
|
467
|
+
// Discovery's whole job is to say what a deployment owes BEFORE anything loads. A contribution
|
|
468
|
+
// that disagreed with the module would build a lockfile on a promise the runtime does not keep.
|
|
469
|
+
// Merged, because Activepieces alone yields Slack no executable operation — its actions are all
|
|
470
|
+
// SDK-backed — and a vendor with nothing executable is deliberately not emitted at all.
|
|
471
|
+
const activepieces = readActivepiecesPiece({ pieceDirectory: join(ACTIVEPIECES, 'slack'), sourceVersion: 'test' }).provider;
|
|
472
|
+
const sim = readSimToolFamily({ toolDirectory: join(SIM, 'slack'), sourceVersion: 'test' }).provider;
|
|
473
|
+
const { providers } = mergeTransposedProviders([activepieces, sim]);
|
|
474
|
+
const root = mkdtempSync(join(tmpdir(), 'wildo-providers-'));
|
|
475
|
+
emitProvidersPackage({ packageRoot: root, providers, unreadableByVendor: new Map(), fullBatch: false });
|
|
476
|
+
const barrel = readFileSync(join(root, 'src', 'companion-exports.ts'), 'utf8');
|
|
477
|
+
expect(barrel).toContain(`slug: "clientId"`);
|
|
478
|
+
expect(barrel).toContain(`slug: "clientSecret"`);
|
|
479
|
+
expect(barrel).toContain(`slug: "accessToken"`);
|
|
480
|
+
// Sorted by slug, which the discovery schema's superRefine requires — accessToken, clientId,
|
|
481
|
+
// clientSecret. An unsorted list fails at parse rather than at use, which is the right moment.
|
|
482
|
+
const order = ['accessToken', 'clientId', 'clientSecret'].map((slug) => barrel.indexOf(`slug: "${slug}"`));
|
|
483
|
+
expect(order).toEqual([...order].sort((left, right) => left - right));
|
|
484
|
+
});
|
|
485
|
+
});
|
|
486
|
+
withSources('the pending queue is a WORK QUEUE, not a dumping ground', () => {
|
|
487
|
+
it('records a pending operation only when a DOTTED chain names one', () => {
|
|
488
|
+
// A single method name on a local variable carries almost no identity. Accepting one filled the
|
|
489
|
+
// queue with `sendRequest`, `makeRequest`, `apiCall`, `validateZod`, `paginate` and `log` — 125
|
|
490
|
+
// records naming no vendor operation, that no oracle could ever complete. Pending means "we know
|
|
491
|
+
// WHICH operation and lack its URL"; a bare verb knows neither.
|
|
492
|
+
const { provider } = readActivepiecesPiece({ pieceDirectory: join(ACTIVEPIECES, 'slack'), sourceVersion: 'test' });
|
|
493
|
+
const pendingNames = provider.operations
|
|
494
|
+
.filter((o) => o.resolution === TransposedOperationResolution.PENDING_ENDPOINT)
|
|
495
|
+
.map((o) => o.vendorOperationName ?? '');
|
|
496
|
+
expect(pendingNames.every((name) => name.includes('.'))).toBe(true);
|
|
497
|
+
for (const noise of ['sendRequest', 'makeRequest', 'apiCall', 'paginate', 'validateZod']) {
|
|
498
|
+
expect(pendingNames).not.toContain(noise);
|
|
499
|
+
}
|
|
500
|
+
});
|
|
501
|
+
it('places a pending endpoint from the vendor’s OWN confirmed URL pattern, and only when unanimous', () => {
|
|
502
|
+
// Slack's confirmed endpoints all sit under `/api/` with a dotted tail, so `conversations.close`
|
|
503
|
+
// can be placed with no guessing: the rule is read off endpoints another catalogue confirmed,
|
|
504
|
+
// never assumed from documentation or from what an SDK looks like.
|
|
505
|
+
const activepieces = readActivepiecesPiece({ pieceDirectory: join(ACTIVEPIECES, 'slack'), sourceVersion: 'ap' }).provider;
|
|
506
|
+
const sim = readSimToolFamily({ toolDirectory: join(SIM, 'slack'), sourceVersion: 'sim' }).provider;
|
|
507
|
+
const { providers } = mergeTransposedProviders([activepieces, sim]);
|
|
508
|
+
const placed = providers[0].operations.filter((o) => (o.summary ?? '').includes('confirmed URL pattern'));
|
|
509
|
+
expect(placed.length).toBeGreaterThan(0);
|
|
510
|
+
expect(placed.every((o) => (o.pathTemplate ?? '').startsWith('/api/'))).toBe(true);
|
|
511
|
+
// Every placed path is the vendor operation the SDK call named — nothing invented.
|
|
512
|
+
expect(placed.every((o) => o.pathTemplate === `/api/${o.vendorOperationName}`)).toBe(true);
|
|
513
|
+
});
|
|
514
|
+
it('does NOT place endpoints when the confirmed URLs are not RPC-shaped, even under one prefix', () => {
|
|
515
|
+
// The guard that matters, isolated. A vendor whose endpoints share a prefix but whose tails are
|
|
516
|
+
// RESOURCE names (`/v3/objects/contacts`) says nothing about where a dotted method lives —
|
|
517
|
+
// placing one there would invent `/v3/objects/crm.contacts.create`. Constructed rather than
|
|
518
|
+
// taken from the catalogue on purpose: against a real vendor the PREFIX check happens to fire
|
|
519
|
+
// first, so a catalogue-driven pin passes with this guard deleted and proves only that SOME
|
|
520
|
+
// guard exists.
|
|
521
|
+
const provenance = { source: 'ACTIVEPIECES', sourceRef: 'x', sourceVersion: 'test' };
|
|
522
|
+
const resource = (id, path) => ({
|
|
523
|
+
operationId: id, domain: 'default', resolution: TransposedOperationResolution.RESOLVED,
|
|
524
|
+
method: 'GET', pathTemplate: path, classification: 'READ', parameters: [], inputFields: [], hasRequestBody: false, provenance,
|
|
525
|
+
});
|
|
526
|
+
const { providers } = mergeTransposedProviders([{
|
|
527
|
+
ref: 'shaped', vendor: 'shaped', auth: { kind: TransposedAuthKind.SECRET_TEXT }, provenances: [provenance],
|
|
528
|
+
operations: [
|
|
529
|
+
resource('a', '/v3/objects/contacts'),
|
|
530
|
+
resource('b', '/v3/objects/companies'),
|
|
531
|
+
resource('c', '/v3/objects/deals'),
|
|
532
|
+
{
|
|
533
|
+
operationId: 'd', domain: 'default', resolution: TransposedOperationResolution.PENDING_ENDPOINT,
|
|
534
|
+
vendorOperationName: 'crm.contacts.create', classification: 'WRITE', parameters: [], inputFields: [], hasRequestBody: true, provenance,
|
|
535
|
+
},
|
|
536
|
+
],
|
|
537
|
+
}]);
|
|
538
|
+
const placed = providers[0].operations.filter((o) => (o.summary ?? '').includes('confirmed URL pattern'));
|
|
539
|
+
expect(placed).toHaveLength(0);
|
|
540
|
+
expect(providers[0].operations.some((o) => o.resolution === TransposedOperationResolution.PENDING_ENDPOINT)).toBe(true);
|
|
541
|
+
});
|
|
542
|
+
});
|
|
543
|
+
withSources('a GET never carries a body, whatever the source did', () => {
|
|
544
|
+
it('emits no requestBody on a GET or HEAD operation', () => {
|
|
545
|
+
// `fetch` refuses outright — `Request with GET/HEAD method cannot have body` — so an operation
|
|
546
|
+
// that declares one is unexecutable and fails at the socket with a message about the METHOD
|
|
547
|
+
// rather than about the vendor. 231 generated operations across 53 vendors carried one, because
|
|
548
|
+
// their source passed a body a piece's own HTTP helper ignored. Found by executing a generated
|
|
549
|
+
// operation against a real server; nothing short of a socket could have found it.
|
|
550
|
+
const activepieces = readActivepiecesPiece({ pieceDirectory: join(ACTIVEPIECES, 'slack'), sourceVersion: 'ap' }).provider;
|
|
551
|
+
const sim = readSimToolFamily({ toolDirectory: join(SIM, 'slack'), sourceVersion: 'sim' }).provider;
|
|
552
|
+
const { providers } = mergeTransposedProviders([activepieces, sim]);
|
|
553
|
+
const root = mkdtempSync(join(tmpdir(), 'wildo-providers-'));
|
|
554
|
+
emitProvidersPackage({ packageRoot: root, providers, unreadableByVendor: new Map(), fullBatch: false });
|
|
555
|
+
const emitted = readFileSync(join(root, 'src', 'slack', 'operations.generated.ts'), 'utf8');
|
|
556
|
+
const blocks = emitted.split(/^ "/m).slice(1);
|
|
557
|
+
const offenders = blocks.filter((block) => /method: API_HttpMethod\.(GET|HEAD)/.test(block) && block.includes('requestBody'));
|
|
558
|
+
expect(offenders).toHaveLength(0);
|
|
559
|
+
// and the guard is not vacuous: this vendor really does have GET operations to get wrong.
|
|
560
|
+
expect(blocks.filter((block) => /method: API_HttpMethod\.GET/.test(block).valueOf()).length).toBeGreaterThan(0);
|
|
561
|
+
});
|
|
562
|
+
});
|
|
563
|
+
withSources('the typed client', () => {
|
|
564
|
+
const emitSlack = () => {
|
|
565
|
+
const activepieces = readActivepiecesPiece({ pieceDirectory: join(ACTIVEPIECES, 'slack'), sourceVersion: 'test' }).provider;
|
|
566
|
+
const sim = readSimToolFamily({ toolDirectory: join(SIM, 'slack'), sourceVersion: 'test' }).provider;
|
|
567
|
+
const { providers } = mergeTransposedProviders([activepieces, sim]);
|
|
568
|
+
const root = mkdtempSync(join(tmpdir(), 'wildo-providers-'));
|
|
569
|
+
emitProvidersPackage({ packageRoot: root, providers, unreadableByVendor: new Map(), fullBatch: false });
|
|
570
|
+
return { module: readFileSync(join(root, 'src', 'slack', 'backend.exports.ts'), 'utf8'), provider: providers[0] };
|
|
571
|
+
};
|
|
572
|
+
it('gives every executable operation a camelCase method, typed from the declared inputs', () => {
|
|
573
|
+
const { module } = emitSlack();
|
|
574
|
+
expect(module).toContain('export function createSlackClient(execute: ProviderOperationExecute)');
|
|
575
|
+
expect(module).toMatch(/slackArchiveChannel: \(input: \{ "channel": string \}, connection\?: ExternalProvider_ConnectionTarget\)/);
|
|
576
|
+
// The id travels inside the call, so ergonomics and identity are derived one from the other and
|
|
577
|
+
// cannot drift.
|
|
578
|
+
expect(module).toContain('execute("slack", "slack_archive_channel", input, connection)');
|
|
579
|
+
});
|
|
580
|
+
it('never puts a PENDING operation on the client', () => {
|
|
581
|
+
// A pending operation has no method and no path. A method that cannot execute is worse than an
|
|
582
|
+
// absent one: the absent method sends a caller to look, the present one sends them to file a bug
|
|
583
|
+
// against the vendor.
|
|
584
|
+
const { module, provider } = emitSlack();
|
|
585
|
+
const pending = provider.operations.filter((o) => o.resolution === TransposedOperationResolution.PENDING_ENDPOINT);
|
|
586
|
+
expect(pending.length).toBeGreaterThan(0);
|
|
587
|
+
for (const operation of pending) {
|
|
588
|
+
expect(module).not.toContain(`execute("slack", ${JSON.stringify(operation.operationId)}, input)`);
|
|
589
|
+
}
|
|
590
|
+
});
|
|
591
|
+
it('never asks a caller for the credential', () => {
|
|
592
|
+
// A source catalogue declares the credential beside the real parameters, because there the user
|
|
593
|
+
// fills in both. In Wildo the credential is resolved from the secrets contract at execution, and
|
|
594
|
+
// a client that asked for it would invite an application to pass a token by hand — the one habit
|
|
595
|
+
// the secrets contract exists to remove.
|
|
596
|
+
const { module } = emitSlack();
|
|
597
|
+
const clientBody = module.slice(module.indexOf('export function createSlackClient'));
|
|
598
|
+
for (const credential of ['"accessToken"', '"botToken"', '"authMethod"', '"apiKey"', '"clientSecret"']) {
|
|
599
|
+
expect(clientBody).not.toContain(`${credential}?: string`);
|
|
600
|
+
expect(clientBody).not.toContain(`${credential}: string`);
|
|
601
|
+
}
|
|
602
|
+
// …and the real parameters are still there, so the filter is not simply eating everything.
|
|
603
|
+
expect(clientBody).toContain('"channel": string');
|
|
604
|
+
});
|
|
605
|
+
it('offers a CONNECTION on every method, optional and per call', () => {
|
|
606
|
+
// Per call rather than per client, and that is not a style choice: one execution may legitimately
|
|
607
|
+
// spend several tenants' accounts, so a client bound to one owner could not express the fan-out
|
|
608
|
+
// the engine beneath it supports. Optional, because the ordinary single-account call should stay
|
|
609
|
+
// as short as it reads — omitted means the application's own account, which is the floor.
|
|
610
|
+
const { module } = emitSlack();
|
|
611
|
+
expect(module).toMatch(/connection\?: ExternalProvider_ConnectionTarget\): Promise<unknown> =>/);
|
|
612
|
+
expect(module).toMatch(/execute\("slack", "[^"]+", input, connection\)/);
|
|
613
|
+
// …and the type it names is imported, or the emitted module reads correctly and does not compile.
|
|
614
|
+
expect(module).toContain("import type { ExternalProvider_ConnectionTarget } from '@wildo-ai/external-connectors-models';");
|
|
615
|
+
});
|
|
616
|
+
it('offers a parameter the source declared no input field for', () => {
|
|
617
|
+
// The two vocabularies are different populations. An input field is what the source catalogue
|
|
618
|
+
// asked its USER for; a parameter is what the request puts on the WIRE. A path token is routinely
|
|
619
|
+
// the second without the first — an unsubscribe reads `/webhooks/{webhookId}` and the id comes
|
|
620
|
+
// from the subscribe, not from a form — and a client typed from input fields alone answered
|
|
621
|
+
// `Record<string, never>` while the executor demanded the value. That was the CLIENT's defect:
|
|
622
|
+
// the operation is callable and the type refused to say so.
|
|
623
|
+
const root = mkdtempSync(join(tmpdir(), 'wildo-param-only-'));
|
|
624
|
+
const provider = {
|
|
625
|
+
ref: 'probe', vendor: 'Probe', auth: { kind: TransposedAuthKind.NONE },
|
|
626
|
+
provenances: [{ source: 'ACTIVEPIECES', sourceRef: 'probe', sourceVersion: 'test' }],
|
|
627
|
+
operations: [{
|
|
628
|
+
operationId: 'unsubscribe', domain: 'default', hasRequestBody: false,
|
|
629
|
+
provenance: { source: 'ACTIVEPIECES', sourceRef: 'probe', sourceVersion: 'test' },
|
|
630
|
+
resolution: TransposedOperationResolution.RESOLVED,
|
|
631
|
+
method: 'DELETE', pathTemplate: '/webhooks/{webhookId}',
|
|
632
|
+
classification: 'WRITE',
|
|
633
|
+
parameters: [{ name: 'webhookId', in: TransposedParameterLocation.PATH, required: true }],
|
|
634
|
+
inputFields: [],
|
|
635
|
+
}],
|
|
636
|
+
};
|
|
637
|
+
emitProvidersPackage({ packageRoot: root, providers: [provider], unreadableByVendor: new Map(), fullBatch: false });
|
|
638
|
+
const module = readFileSync(join(root, 'src', 'probe', 'backend.exports.ts'), 'utf8');
|
|
639
|
+
expect(module).toContain('"webhookId"');
|
|
640
|
+
expect(module).not.toMatch(/unsubscribe: \(input: Record<string, never>\)/);
|
|
641
|
+
// Required, because a path token with no value is refused at runtime whatever the flag says.
|
|
642
|
+
expect(module).not.toContain('"webhookId"?');
|
|
643
|
+
});
|
|
644
|
+
it('never withholds a PATH parameter as a credential, however it is spelled', () => {
|
|
645
|
+
// A credential is resolved and never asked for — but nothing except the caller can fill a path
|
|
646
|
+
// token, so withholding one ships a method whose URL keeps a literal hole. Found on
|
|
647
|
+
// `simplybookme` `/admin/clients/{clientId}`: a CLIENT RECORD's id that merely spells itself
|
|
648
|
+
// like OAuth's, filtered by name and uncallable by anyone.
|
|
649
|
+
const root = mkdtempSync(join(tmpdir(), 'wildo-path-credential-'));
|
|
650
|
+
const provider = {
|
|
651
|
+
ref: 'probe', vendor: 'Probe', auth: { kind: TransposedAuthKind.NONE },
|
|
652
|
+
provenances: [{ source: 'ACTIVEPIECES', sourceRef: 'probe', sourceVersion: 'test' }],
|
|
653
|
+
operations: [{
|
|
654
|
+
operationId: 'delete_client', domain: 'default', hasRequestBody: false,
|
|
655
|
+
provenance: { source: 'ACTIVEPIECES', sourceRef: 'probe', sourceVersion: 'test' },
|
|
656
|
+
resolution: TransposedOperationResolution.RESOLVED,
|
|
657
|
+
method: 'DELETE', pathTemplate: '/admin/clients/{clientId}',
|
|
658
|
+
classification: 'WRITE',
|
|
659
|
+
parameters: [
|
|
660
|
+
{ name: 'clientId', in: TransposedParameterLocation.PATH, required: true },
|
|
661
|
+
// The same spelling in a QUERY is the credential, and stays filtered.
|
|
662
|
+
{ name: 'apiKey', in: TransposedParameterLocation.QUERY },
|
|
663
|
+
],
|
|
664
|
+
inputFields: [],
|
|
665
|
+
}],
|
|
666
|
+
};
|
|
667
|
+
emitProvidersPackage({ packageRoot: root, providers: [provider], unreadableByVendor: new Map(), fullBatch: false });
|
|
668
|
+
const module = readFileSync(join(root, 'src', 'probe', 'backend.exports.ts'), 'utf8');
|
|
669
|
+
const clientBody = module.slice(module.indexOf('export function createProbeClient'));
|
|
670
|
+
expect(clientBody).toContain('"clientId"');
|
|
671
|
+
expect(clientBody).not.toContain('"apiKey"');
|
|
672
|
+
});
|
|
673
|
+
});
|
|
674
|
+
/**
|
|
675
|
+
* Accounting for what the emitter REFUSES.
|
|
676
|
+
*
|
|
677
|
+
* Constructed rather than read from a catalogue, and that is the point: the refusal must be counted
|
|
678
|
+
* for an operation the fixture guarantees is refusable, so the pin cannot pass because the vendor
|
|
679
|
+
* happened to have none. These run without the source checkouts.
|
|
680
|
+
*
|
|
681
|
+
* Measured 2026-09-07: 856 operations left the committed catalogue between two regenerations with
|
|
682
|
+
* zero additions, all 856 carrying a positionally-named path hole, and none of it was recorded — not
|
|
683
|
+
* in a sidecar, not in the result, not in the run's report, and not in the invariant table, which
|
|
684
|
+
* read `PATH parameters nothing feeds: 0` because the guard had removed the population it measures
|
|
685
|
+
* (#392).
|
|
686
|
+
*/
|
|
687
|
+
describe('emission accounting — an operation that leaves the catalogue leaves a record', () => {
|
|
688
|
+
const provenance = { source: 'SIM', sourceRef: 'fixture', sourceVersion: 'test' };
|
|
689
|
+
const operation = (operationId, overrides = {}) => ({
|
|
690
|
+
operationId,
|
|
691
|
+
domain: 'default',
|
|
692
|
+
resolution: TransposedOperationResolution.RESOLVED,
|
|
693
|
+
method: 'GET',
|
|
694
|
+
pathTemplate: '/v1/things',
|
|
695
|
+
classification: 'READ',
|
|
696
|
+
parameters: [],
|
|
697
|
+
inputFields: [],
|
|
698
|
+
hasRequestBody: false,
|
|
699
|
+
provenance,
|
|
700
|
+
...overrides,
|
|
701
|
+
});
|
|
702
|
+
/** One clean operation, one whose PATH hole no input field feeds, one whose path is empty. */
|
|
703
|
+
const fixture = () => ({
|
|
704
|
+
ref: 'fixtureco',
|
|
705
|
+
vendor: 'fixtureco',
|
|
706
|
+
baseUrl: 'https://api.fixture.test',
|
|
707
|
+
auth: { kind: TransposedAuthKind.SECRET_TEXT, headerName: 'Authorization' },
|
|
708
|
+
provenances: [provenance],
|
|
709
|
+
operations: [
|
|
710
|
+
operation('zeta_clean'),
|
|
711
|
+
operation('alpha_clean', { pathTemplate: '/v1/others' }),
|
|
712
|
+
operation('unfed_hole', {
|
|
713
|
+
pathTemplate: '/v1/things/{param1}',
|
|
714
|
+
parameters: [{ name: 'param1', in: TransposedParameterLocation.PATH, required: true }],
|
|
715
|
+
// A declared input that does NOT feed the hole: the operation cannot execute as typed.
|
|
716
|
+
inputFields: [{ name: 'somethingElse', kind: TransposedInputKind.STRING, required: true }],
|
|
717
|
+
}),
|
|
718
|
+
operation('no_path', { pathTemplate: '' }),
|
|
719
|
+
// A SOQL query the source expressed as a URL. Salesforce takes SOQL in a query PARAMETER, so
|
|
720
|
+
// all three of its real ones would have requested a nonsense URL — they shipped as callable
|
|
721
|
+
// and typechecked perfectly until 2026-09-09.
|
|
722
|
+
operation('soql_as_path', {
|
|
723
|
+
pathTemplate: "/SELECT FIELDS(ALL) FROM {object} WHERE {field} = '{value}' LIMIT 200",
|
|
724
|
+
parameters: [
|
|
725
|
+
{ name: 'object', in: TransposedParameterLocation.PATH, required: true },
|
|
726
|
+
{ name: 'field', in: TransposedParameterLocation.PATH, required: true },
|
|
727
|
+
{ name: 'value', in: TransposedParameterLocation.PATH, required: true },
|
|
728
|
+
],
|
|
729
|
+
inputFields: [
|
|
730
|
+
{ name: 'object', kind: TransposedInputKind.STRING, required: true },
|
|
731
|
+
{ name: 'field', kind: TransposedInputKind.STRING, required: true },
|
|
732
|
+
{ name: 'value', kind: TransposedInputKind.STRING, required: true },
|
|
733
|
+
],
|
|
734
|
+
}),
|
|
735
|
+
// The CONTROL, and the reason the discriminator is whitespace rather than punctuation: OData
|
|
736
|
+
// addresses a resource with quotes and parentheses INSIDE a path segment, and eight real
|
|
737
|
+
// operations do. Refusing those would delete working Microsoft and OneDrive endpoints.
|
|
738
|
+
operation('odata_addressed', {
|
|
739
|
+
pathTemplate: "/workbook/worksheets('{sheetName}')/range(address='{address}')",
|
|
740
|
+
parameters: [
|
|
741
|
+
{ name: 'sheetName', in: TransposedParameterLocation.PATH, required: true },
|
|
742
|
+
{ name: 'address', in: TransposedParameterLocation.PATH, required: true },
|
|
743
|
+
],
|
|
744
|
+
inputFields: [
|
|
745
|
+
{ name: 'sheetName', kind: TransposedInputKind.STRING, required: true },
|
|
746
|
+
{ name: 'address', kind: TransposedInputKind.STRING, required: true },
|
|
747
|
+
],
|
|
748
|
+
}),
|
|
749
|
+
],
|
|
750
|
+
});
|
|
751
|
+
it('counts a refused operation against its reason instead of dropping it', () => {
|
|
752
|
+
const root = mkdtempSync(join(tmpdir(), 'wildo-providers-refusal-'));
|
|
753
|
+
const result = emitProvidersPackage({ packageRoot: root, providers: [fixture()], unreadableByVendor: new Map(), fullBatch: false });
|
|
754
|
+
// 3: two clean ones plus the OData-addressed control, which must NOT be refused.
|
|
755
|
+
expect(result.executableOperations).toBe(3);
|
|
756
|
+
// Both refusals are named, and each is attributed to the reason that produced it — a single
|
|
757
|
+
// "2 refused" count would hide a NEW refusal shape appearing beside an understood one.
|
|
758
|
+
expect(Object.fromEntries(result.refusedByVendor.get('fixtureco'))).toEqual({
|
|
759
|
+
UNFED_PATH_PARAMETER: 1,
|
|
760
|
+
NO_PATH_TEMPLATE: 1,
|
|
761
|
+
PATH_TEMPLATE_IS_NOT_A_PATH: 1,
|
|
762
|
+
});
|
|
763
|
+
// And it survives the run: the sidecar beside the vendor carries the same answer, so a reader
|
|
764
|
+
// who opens the artifact later does not have to have been watching the terminal.
|
|
765
|
+
const sidecar = JSON.parse(readFileSync(join(root, 'src', 'fixtureco', 'pending-operations.json'), 'utf8'));
|
|
766
|
+
expect(sidecar.refusedAtEmit).toEqual({ UNFED_PATH_PARAMETER: 1, NO_PATH_TEMPLATE: 1, PATH_TEMPLATE_IS_NOT_A_PATH: 1 });
|
|
767
|
+
});
|
|
768
|
+
it('predicts in a dry run exactly what a real emit produces', () => {
|
|
769
|
+
// These were two copies of the same accounting and they disagreed by 856 operations, because
|
|
770
|
+
// only one of them applied the refusal guard. A dry run that over-promises is worse than none:
|
|
771
|
+
// it is the number somebody quotes in a commit message (#393).
|
|
772
|
+
const root = mkdtempSync(join(tmpdir(), 'wildo-providers-plan-'));
|
|
773
|
+
const options = { packageRoot: root, providers: [fixture()], unreadableByVendor: new Map(), fullBatch: false };
|
|
774
|
+
const planned = planProvidersPackage(options);
|
|
775
|
+
const emitted = emitProvidersPackage(options);
|
|
776
|
+
expect(planned.executableOperations).toBe(emitted.executableOperations);
|
|
777
|
+
expect(planned.vendors).toBe(emitted.vendors);
|
|
778
|
+
expect(planned.pendingOperations).toBe(emitted.pendingOperations);
|
|
779
|
+
expect(Object.fromEntries(planned.refusedByVendor.get('fixtureco'))).toEqual(Object.fromEntries(emitted.refusedByVendor.get('fixtureco')));
|
|
780
|
+
});
|
|
781
|
+
it('emits operations in id order, so a regeneration diffs as content rather than as a reshuffle', () => {
|
|
782
|
+
// Neither reader sorts `readdirSync` and the merge preserves read order, so without this the
|
|
783
|
+
// emitted ORDER is filesystem-dependent: identical source on another machine produces identical
|
|
784
|
+
// operations and a whole-file diff. The fixture declares `zeta` before `alpha` for that reason.
|
|
785
|
+
const root = mkdtempSync(join(tmpdir(), 'wildo-providers-order-'));
|
|
786
|
+
emitProvidersPackage({ packageRoot: root, providers: [fixture()], unreadableByVendor: new Map(), fullBatch: false });
|
|
787
|
+
const emitted = readFileSync(join(root, 'src', 'fixtureco', 'operations.generated.ts'), 'utf8');
|
|
788
|
+
const ids = [...emitted.matchAll(/^ "([a-zA-Z0-9_.-]+)": \{/gm)].map((match) => match[1]);
|
|
789
|
+
// 'odata_addressed' sorts between them and is emitted, which is the ordering claim AND a second
|
|
790
|
+
// witness that the whitespace refusal left the OData control alone.
|
|
791
|
+
expect(ids).toEqual(['alpha_clean', 'odata_addressed', 'zeta_clean']);
|
|
792
|
+
});
|
|
793
|
+
});
|
|
794
|
+
//# sourceMappingURL=transposition-contract.test.js.map
|