@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
|
@@ -0,0 +1,1047 @@
|
|
|
1
|
+
import { readFileSync, readdirSync, statSync } from 'node:fs';
|
|
2
|
+
import { basename, join } from 'node:path';
|
|
3
|
+
import ts from 'typescript';
|
|
4
|
+
import { TransposedAuthKind, TransposedInputKind, TransposedOperationResolution, TransposedParameterLocation, } from './transposed-provider.model.js';
|
|
5
|
+
import { extractUrlTemplate, isUrlTemplateRefusal } from './url-template.extractor.js';
|
|
6
|
+
/**
|
|
7
|
+
* Reads ONE Activepieces piece's source into the transposer's intermediate model.
|
|
8
|
+
*
|
|
9
|
+
* The unit is the piece DIRECTORY, never the published npm package. Measured 2026-09-06: a published
|
|
10
|
+
* piece's metadata carries its name, its inputs and its auth but NOT its endpoint — the URL and the
|
|
11
|
+
* method live inside the compiled `run`. So the endpoint is only recoverable from source, and this
|
|
12
|
+
* reader parses it.
|
|
13
|
+
*
|
|
14
|
+
* ## What it recovers, and the three shapes it meets
|
|
15
|
+
*
|
|
16
|
+
* An action's vendor call is written one of three ways, and the reader handles all three with one
|
|
17
|
+
* mechanism plus one hop:
|
|
18
|
+
*
|
|
19
|
+
* - **directly** — `httpClient.sendRequest({ method: HttpMethod.POST, url: `…` })` in the action file;
|
|
20
|
+
* - **through the piece's own client** — `vendorApiCall({ method: HttpMethod.GET, resourceUri: `…` })`,
|
|
21
|
+
* where the wrapper lives in `src/lib/common/`. The reader does not need to follow the call: the
|
|
22
|
+
* method and the path template are written at the CALL SITE, which is why one hop is enough;
|
|
23
|
+
* - **through a vendor SDK** — `client.conversations.create({ … })`. The endpoint is not in the
|
|
24
|
+
* source at all, but the operation IDENTITY is, so the action is recorded PENDING rather than lost.
|
|
25
|
+
*
|
|
26
|
+
* Anything else is recorded UNREADABLE with a reason. Nothing is guessed: a plausible wrong endpoint
|
|
27
|
+
* is found by a customer, not by a test.
|
|
28
|
+
*/
|
|
29
|
+
/** Property names a source uses for the request path. Ordered by how common they are. */
|
|
30
|
+
const PATH_PROPERTY_NAMES = ['url', 'resourceUri', 'path', 'endpoint'];
|
|
31
|
+
/** Property names a source uses for the query bag. `qparams` is the polling helper's spelling. */
|
|
32
|
+
const QUERY_PROPERTY_NAMES = ['query', 'queryParams', 'qparams'];
|
|
33
|
+
export function readActivepiecesPiece(options) {
|
|
34
|
+
const ref = basename(options.pieceDirectory);
|
|
35
|
+
const provenance = {
|
|
36
|
+
source: 'ACTIVEPIECES',
|
|
37
|
+
sourceRef: ref,
|
|
38
|
+
sourceVersion: options.sourceVersion,
|
|
39
|
+
};
|
|
40
|
+
const files = collectTypeScriptFiles(join(options.pieceDirectory, 'src'));
|
|
41
|
+
const operations = [];
|
|
42
|
+
const origins = new Set();
|
|
43
|
+
const clientIndex = indexPieceMethods(files);
|
|
44
|
+
for (const file of files) {
|
|
45
|
+
const text = readFileSync(file, 'utf8');
|
|
46
|
+
if (!text.includes('createAction(') && !text.includes('createTrigger('))
|
|
47
|
+
continue;
|
|
48
|
+
const source = ts.createSourceFile(file, text, ts.ScriptTarget.Latest, true);
|
|
49
|
+
for (const action of findActionObjects(source)) {
|
|
50
|
+
const operation = readAction(action, text, provenance, clientIndex);
|
|
51
|
+
if (operation === undefined)
|
|
52
|
+
continue;
|
|
53
|
+
operations.push(operation);
|
|
54
|
+
if (operation.absoluteOriginSeen !== undefined)
|
|
55
|
+
origins.add(operation.absoluteOriginSeen);
|
|
56
|
+
}
|
|
57
|
+
for (const trigger of findObjectsPassedTo(source, 'createTrigger')) {
|
|
58
|
+
for (const operation of readTrigger(trigger, source, text, provenance, clientIndex)) {
|
|
59
|
+
operations.push(operation);
|
|
60
|
+
if (operation.absoluteOriginSeen !== undefined)
|
|
61
|
+
origins.add(operation.absoluteOriginSeen);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
const auth = readPieceAuth(files);
|
|
66
|
+
const baseUrl = origins.size === 1 ? [...origins][0] : undefined;
|
|
67
|
+
const readable = operations.filter((o) => o.resolution !== TransposedOperationResolution.UNREADABLE);
|
|
68
|
+
const unreadable = operations.filter((o) => o.resolution === TransposedOperationResolution.UNREADABLE);
|
|
69
|
+
return {
|
|
70
|
+
provider: {
|
|
71
|
+
ref,
|
|
72
|
+
vendor: ref,
|
|
73
|
+
auth,
|
|
74
|
+
...(baseUrl === undefined ? {} : { baseUrl }),
|
|
75
|
+
operations: readable.map(stripReaderOnlyFields),
|
|
76
|
+
provenances: [provenance],
|
|
77
|
+
},
|
|
78
|
+
unreadable: unreadable.map(stripReaderOnlyFields),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function stripReaderOnlyFields(operation) {
|
|
82
|
+
const { absoluteOriginSeen: _ignored, ...rest } = operation;
|
|
83
|
+
return rest;
|
|
84
|
+
}
|
|
85
|
+
function collectTypeScriptFiles(root) {
|
|
86
|
+
let entries;
|
|
87
|
+
try {
|
|
88
|
+
entries = readdirSync(root);
|
|
89
|
+
}
|
|
90
|
+
catch {
|
|
91
|
+
return [];
|
|
92
|
+
}
|
|
93
|
+
const files = [];
|
|
94
|
+
for (const entry of entries) {
|
|
95
|
+
const full = join(root, entry);
|
|
96
|
+
if (statSync(full).isDirectory()) {
|
|
97
|
+
files.push(...collectTypeScriptFiles(full));
|
|
98
|
+
}
|
|
99
|
+
else if (entry.endsWith('.ts') && !entry.endsWith('.test.ts')) {
|
|
100
|
+
files.push(full);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return files;
|
|
104
|
+
}
|
|
105
|
+
/** Every object literal passed to `createAction(...)` in one file. */
|
|
106
|
+
function findActionObjects(source) {
|
|
107
|
+
return findObjectsPassedTo(source, 'createAction');
|
|
108
|
+
}
|
|
109
|
+
function findObjectsPassedTo(source, callee) {
|
|
110
|
+
const found = [];
|
|
111
|
+
const visit = (node) => {
|
|
112
|
+
if (ts.isCallExpression(node) &&
|
|
113
|
+
ts.isIdentifier(node.expression) &&
|
|
114
|
+
node.expression.text === callee &&
|
|
115
|
+
node.arguments.length > 0 &&
|
|
116
|
+
ts.isObjectLiteralExpression(node.arguments[0])) {
|
|
117
|
+
found.push(node.arguments[0]);
|
|
118
|
+
}
|
|
119
|
+
ts.forEachChild(node, visit);
|
|
120
|
+
};
|
|
121
|
+
visit(source);
|
|
122
|
+
return found;
|
|
123
|
+
}
|
|
124
|
+
function firstObjectProperty(object, names) {
|
|
125
|
+
for (const name of names) {
|
|
126
|
+
const found = objectProperty(object, name);
|
|
127
|
+
if (found !== undefined)
|
|
128
|
+
return found;
|
|
129
|
+
}
|
|
130
|
+
return undefined;
|
|
131
|
+
}
|
|
132
|
+
function stringProperty(object, name) {
|
|
133
|
+
for (const property of object.properties) {
|
|
134
|
+
if (!ts.isPropertyAssignment(property))
|
|
135
|
+
continue;
|
|
136
|
+
if (propertyName(property) !== name)
|
|
137
|
+
continue;
|
|
138
|
+
if (ts.isStringLiteral(property.initializer) || ts.isNoSubstitutionTemplateLiteral(property.initializer)) {
|
|
139
|
+
return property.initializer.text;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return undefined;
|
|
143
|
+
}
|
|
144
|
+
function propertyName(property) {
|
|
145
|
+
const name = property.name;
|
|
146
|
+
if (name === undefined)
|
|
147
|
+
return undefined;
|
|
148
|
+
if (ts.isIdentifier(name) || ts.isStringLiteral(name))
|
|
149
|
+
return name.text;
|
|
150
|
+
return undefined;
|
|
151
|
+
}
|
|
152
|
+
function objectProperty(object, name) {
|
|
153
|
+
for (const property of object.properties) {
|
|
154
|
+
if (!ts.isPropertyAssignment(property))
|
|
155
|
+
continue;
|
|
156
|
+
if (propertyName(property) !== name)
|
|
157
|
+
continue;
|
|
158
|
+
if (ts.isObjectLiteralExpression(property.initializer))
|
|
159
|
+
return property.initializer;
|
|
160
|
+
}
|
|
161
|
+
return undefined;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Read one action into an operation.
|
|
165
|
+
*
|
|
166
|
+
* The order matters: a request-shaped object literal is looked for FIRST, because a piece that both
|
|
167
|
+
* imports an SDK and makes a direct call for one action should have that action read as resolved.
|
|
168
|
+
*/
|
|
169
|
+
function readAction(action, sourceText, provenance, clientIndex) {
|
|
170
|
+
const name = stringProperty(action, 'name');
|
|
171
|
+
if (name === undefined)
|
|
172
|
+
return undefined;
|
|
173
|
+
const summary = stringProperty(action, 'description');
|
|
174
|
+
const displayName = stringProperty(action, 'displayName');
|
|
175
|
+
const propsObject = objectProperty(action, 'props');
|
|
176
|
+
const inputFields = readInputFields(propsObject);
|
|
177
|
+
const outputShape = inferShapeFromSample(objectProperty(action, 'sampleData'));
|
|
178
|
+
// Search the ACTION BODY only. `props: { name: Property.ShortText({…}) }` is a property-access
|
|
179
|
+
// call on an identifier and is indistinguishable, structurally, from a vendor SDK call — scanning
|
|
180
|
+
// the whole action made 48 of Slack's 61 actions report `ShortText` as their vendor operation.
|
|
181
|
+
// The vendor call is always in `run`, so that is where to look.
|
|
182
|
+
const body = findRunBody(action) ?? action;
|
|
183
|
+
const request = findRequestShape(body) ?? followOneHop(body, clientIndex);
|
|
184
|
+
const extraction = request === undefined
|
|
185
|
+
? undefined
|
|
186
|
+
: extractUrlTemplate(resolveLocalPathBinding(request.pathNode, action), request.sourceText ?? sourceText);
|
|
187
|
+
// A request whose URL cannot be read falls THROUGH to the SDK-name path rather than going straight
|
|
188
|
+
// to UNREADABLE. The two outcomes are not equally useful: PENDING says "this vendor operation
|
|
189
|
+
// exists and its endpoint is missing", which another catalogue or a later pass can complete;
|
|
190
|
+
// UNREADABLE says only "we could not read this". Accepting an identifier path argument (the 729
|
|
191
|
+
// `makeRequest(auth, METHOD, path)` actions) moved a class of actions from one bucket to the other,
|
|
192
|
+
// and without this fall-through it moved 282 of them the WRONG way — from a work queue into a
|
|
193
|
+
// refusal list.
|
|
194
|
+
if (request !== undefined && extraction !== undefined && !isUrlTemplateRefusal(extraction)) {
|
|
195
|
+
const parameters = extraction.pathParameters.map((parameter) => {
|
|
196
|
+
const from = inputFieldBehind(parameter.name, body);
|
|
197
|
+
return {
|
|
198
|
+
name: parameter.name,
|
|
199
|
+
in: TransposedParameterLocation.PATH,
|
|
200
|
+
required: true,
|
|
201
|
+
...(from === undefined || from === parameter.name ? {} : { from }),
|
|
202
|
+
};
|
|
203
|
+
});
|
|
204
|
+
if (request.queryObject !== undefined) {
|
|
205
|
+
for (const property of request.queryObject.properties) {
|
|
206
|
+
const queryName = propertyName(property);
|
|
207
|
+
if (queryName === undefined)
|
|
208
|
+
continue;
|
|
209
|
+
// `query: { user: userId }` states the mapping LITERALLY: the key is the wire name, the value
|
|
210
|
+
// names the input field feeding it. Recording it as `from` is what the contract's own JSDoc
|
|
211
|
+
// asks for — "declared, never camel/snake-guessed" — and `userId` → `user` is not a
|
|
212
|
+
// camel/snake transform, so a guess could never have recovered it.
|
|
213
|
+
const from = inputFieldFeeding(property);
|
|
214
|
+
parameters.push({
|
|
215
|
+
name: queryName,
|
|
216
|
+
in: TransposedParameterLocation.QUERY,
|
|
217
|
+
required: false,
|
|
218
|
+
...(from === undefined || from === queryName ? {} : { from }),
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
return {
|
|
223
|
+
operationId: name,
|
|
224
|
+
domain: 'default',
|
|
225
|
+
resolution: TransposedOperationResolution.RESOLVED,
|
|
226
|
+
method: request.method,
|
|
227
|
+
pathTemplate: extraction.pathTemplate,
|
|
228
|
+
classification: classificationFor(action, request.method),
|
|
229
|
+
parameters,
|
|
230
|
+
inputFields,
|
|
231
|
+
...(outputShape === undefined ? {} : { outputShape }),
|
|
232
|
+
hasRequestBody: request.hasBody,
|
|
233
|
+
provenance,
|
|
234
|
+
...(summary === undefined ? {} : { summary }),
|
|
235
|
+
...(extraction.absoluteOrigin === undefined ? {} : { absoluteOriginSeen: extraction.absoluteOrigin }),
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
const vendorOperationName = findSdkOperationName(body, sourceText);
|
|
239
|
+
if (vendorOperationName !== undefined) {
|
|
240
|
+
return {
|
|
241
|
+
operationId: name,
|
|
242
|
+
domain: 'default',
|
|
243
|
+
resolution: TransposedOperationResolution.PENDING_ENDPOINT,
|
|
244
|
+
vendorOperationName,
|
|
245
|
+
classification: classificationFor(action, undefined),
|
|
246
|
+
parameters: inputFields.map((field) => ({ name: field.name, in: TransposedParameterLocation.BODY, required: field.required })),
|
|
247
|
+
inputFields,
|
|
248
|
+
hasRequestBody: true,
|
|
249
|
+
provenance,
|
|
250
|
+
...(summary === undefined ? {} : { summary }),
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
return unreadableOperation(name, provenance, extraction !== undefined && isUrlTemplateRefusal(extraction)
|
|
254
|
+
? extraction.reason
|
|
255
|
+
: 'no request literal carrying a method and a path, and no SDK call naming a vendor operation', summary, displayName);
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* The action's `run` implementation — `async run(context) { … }` or `run: async (context) => { … }`.
|
|
259
|
+
*
|
|
260
|
+
* Everything a vendor call can be found in lives here; everything above it is declaration. Scoping
|
|
261
|
+
* the search is not an optimisation, it is what keeps the framework's own authoring API
|
|
262
|
+
* (`Property.ShortText`, `Property.Checkbox`) from being read as a vendor's operation.
|
|
263
|
+
*/
|
|
264
|
+
function findRunBody(action) {
|
|
265
|
+
for (const property of action.properties) {
|
|
266
|
+
if (propertyName(property) !== 'run')
|
|
267
|
+
continue;
|
|
268
|
+
if (ts.isMethodDeclaration(property) && property.body !== undefined)
|
|
269
|
+
return property.body;
|
|
270
|
+
if (ts.isPropertyAssignment(property)) {
|
|
271
|
+
const initializer = property.initializer;
|
|
272
|
+
if ((ts.isArrowFunction(initializer) || ts.isFunctionExpression(initializer)))
|
|
273
|
+
return initializer.body;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
return undefined;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* A trigger contributes OPERATIONS, and that is the whole design decision here.
|
|
280
|
+
*
|
|
281
|
+
* A trigger is not a third kind of thing to the engine: everything it does over the wire is an
|
|
282
|
+
* ordinary REST call. A POLLING trigger's `items()` is a READ — the same GET an action would make. A
|
|
283
|
+
* WEBHOOK trigger's `onEnable` and `onDisable` are a subscribe and an unsubscribe, a POST and a
|
|
284
|
+
* DELETE against the vendor's webhook endpoint. So they are transposed onto the same `rest` arm,
|
|
285
|
+
* through the same executor door, and NOTHING new is invented to hold them.
|
|
286
|
+
*
|
|
287
|
+
* The alternative — a `triggers` block on the provider contract — was rejected because nothing would
|
|
288
|
+
* read it. Wildo's own scheduler and inbound endpoint are what will eventually SERVE a trigger, and
|
|
289
|
+
* until they do, a declaration nobody consumes is a record that rots (`application-creation-directive`:
|
|
290
|
+
* if we write a record, something reads it). These operations, by contrast, are executable the day
|
|
291
|
+
* they are emitted: an application can poll a vendor, or register its own webhook, with the
|
|
292
|
+
* credential it already holds.
|
|
293
|
+
*
|
|
294
|
+
* What is deliberately NOT transposed: the dedupe bookkeeping (which item was last seen) and the
|
|
295
|
+
* `scopeBinding` that maps an inbound event to a tenant. The first is runtime state and the second
|
|
296
|
+
* cannot come from a catalogue at all — no source knows which of an application's tenants a vendor
|
|
297
|
+
* event belongs to. The dedupe STRATEGY is recorded in the summary, because it is what a scheduler
|
|
298
|
+
* needs to know and it costs one sentence to keep.
|
|
299
|
+
*/
|
|
300
|
+
function readTrigger(trigger, source, sourceText, provenance, clientIndex) {
|
|
301
|
+
const name = stringProperty(trigger, 'name');
|
|
302
|
+
if (name === undefined)
|
|
303
|
+
return [];
|
|
304
|
+
const displayName = stringProperty(trigger, 'displayName');
|
|
305
|
+
const description = stringProperty(trigger, 'description');
|
|
306
|
+
const kind = triggerStrategy(trigger);
|
|
307
|
+
// A trigger's `sampleData` describes the EVENT it emits, which for a poll is exactly the item the
|
|
308
|
+
// operation answers. 1,476 of them exist and they are literal objects.
|
|
309
|
+
const sampleShape = inferShapeFromSample(objectProperty(trigger, 'sampleData'));
|
|
310
|
+
const emitted = [];
|
|
311
|
+
const add = (suffix, shape, classification, note) => {
|
|
312
|
+
if (shape === undefined)
|
|
313
|
+
return;
|
|
314
|
+
const extraction = extractUrlTemplate(resolveLocalPathBinding(shape.pathNode, trigger), shape.sourceText ?? sourceText);
|
|
315
|
+
if (isUrlTemplateRefusal(extraction))
|
|
316
|
+
return;
|
|
317
|
+
const parameters = extraction.pathParameters.map((parameter) => {
|
|
318
|
+
const from = inputFieldBehind(parameter.name, trigger);
|
|
319
|
+
return {
|
|
320
|
+
name: parameter.name,
|
|
321
|
+
in: TransposedParameterLocation.PATH,
|
|
322
|
+
required: true,
|
|
323
|
+
...(from === undefined || from === parameter.name ? {} : { from }),
|
|
324
|
+
};
|
|
325
|
+
});
|
|
326
|
+
if (shape.queryObject !== undefined) {
|
|
327
|
+
for (const property of shape.queryObject.properties) {
|
|
328
|
+
const queryName = propertyName(property);
|
|
329
|
+
if (queryName !== undefined)
|
|
330
|
+
parameters.push({ name: queryName, in: TransposedParameterLocation.QUERY, required: false });
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
emitted.push({
|
|
334
|
+
// Namespaced, so a trigger's poll can never collide with an action of the same name and a
|
|
335
|
+
// reader can see at a glance which operations exist to serve a trigger.
|
|
336
|
+
operationId: `trigger.${name}.${suffix}`,
|
|
337
|
+
domain: 'default',
|
|
338
|
+
resolution: TransposedOperationResolution.RESOLVED,
|
|
339
|
+
method: shape.method,
|
|
340
|
+
pathTemplate: extraction.pathTemplate,
|
|
341
|
+
classification,
|
|
342
|
+
parameters,
|
|
343
|
+
inputFields: readInputFields(objectProperty(trigger, 'props')),
|
|
344
|
+
...(sampleShape === undefined ? {} : { outputShape: sampleShape }),
|
|
345
|
+
hasRequestBody: shape.hasBody,
|
|
346
|
+
provenance,
|
|
347
|
+
summary: `${displayName ?? name} — ${note}.${description === undefined ? '' : ` ${description}`}`,
|
|
348
|
+
...(extraction.absoluteOrigin === undefined ? {} : { absoluteOriginSeen: extraction.absoluteOrigin }),
|
|
349
|
+
});
|
|
350
|
+
};
|
|
351
|
+
if (kind === 'POLLING') {
|
|
352
|
+
// The polling contract's `items()` is declared as a SIBLING const, outside `createTrigger`, so it
|
|
353
|
+
// is found in THIS FILE rather than in the piece-wide index. Scoping it to the file is not a
|
|
354
|
+
// detail: a piece with five polling triggers has five `items`, and a piece-wide lookup would give
|
|
355
|
+
// all five the endpoint of whichever was indexed first — a wrong endpoint attributed to a real
|
|
356
|
+
// trigger, which is the one failure this transposer must never produce.
|
|
357
|
+
const items = findItemsInFile(source);
|
|
358
|
+
const shape = items === undefined ? undefined : findRequestShape(items) ?? followOneHop(items, clientIndex);
|
|
359
|
+
const dedupe = dedupeStrategy(sourceText);
|
|
360
|
+
add('poll', shape, 'READ', `polls for new items (dedupe: ${dedupe})`);
|
|
361
|
+
}
|
|
362
|
+
else {
|
|
363
|
+
const enable = methodBody(trigger, 'onEnable');
|
|
364
|
+
const disable = methodBody(trigger, 'onDisable');
|
|
365
|
+
// A registration MUTATES, so prefer the first non-GET request in the handler. `onEnable` often
|
|
366
|
+
// begins with a precondition — Slack's checks the token with `auth.test`, others read the
|
|
367
|
+
// account or the project first — and taking the first request literally records that check as
|
|
368
|
+
// the subscription. Measured before this: 7 of 108 subscribe operations pointed at
|
|
369
|
+
// `/api/auth.test`, `/user`, `/spi/v3/accounts` and the like, which would register nothing and
|
|
370
|
+
// report success.
|
|
371
|
+
add('subscribe', enable === undefined ? undefined : mutatingRequestShape(enable, clientIndex), 'WRITE', 'registers the vendor webhook');
|
|
372
|
+
add('unsubscribe', disable === undefined ? undefined : mutatingRequestShape(disable, clientIndex), 'WRITE', 'removes the vendor webhook');
|
|
373
|
+
}
|
|
374
|
+
return emitted;
|
|
375
|
+
}
|
|
376
|
+
/** The `items` method of this file's polling declaration, or nothing. */
|
|
377
|
+
function findItemsInFile(source) {
|
|
378
|
+
let found;
|
|
379
|
+
const visit = (node) => {
|
|
380
|
+
if (found !== undefined)
|
|
381
|
+
return;
|
|
382
|
+
if (ts.isMethodDeclaration(node) && ts.isIdentifier(node.name) && node.name.text === 'items' && node.body !== undefined) {
|
|
383
|
+
found = node.body;
|
|
384
|
+
return;
|
|
385
|
+
}
|
|
386
|
+
if (ts.isPropertyAssignment(node) &&
|
|
387
|
+
ts.isIdentifier(node.name) &&
|
|
388
|
+
node.name.text === 'items' &&
|
|
389
|
+
(ts.isArrowFunction(node.initializer) || ts.isFunctionExpression(node.initializer))) {
|
|
390
|
+
found = node.initializer.body;
|
|
391
|
+
return;
|
|
392
|
+
}
|
|
393
|
+
ts.forEachChild(node, visit);
|
|
394
|
+
};
|
|
395
|
+
visit(source);
|
|
396
|
+
return found;
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* The request in a handler that CHANGES something — the registration, and NOT the check before it.
|
|
400
|
+
*
|
|
401
|
+
* `onEnable` commonly begins with a precondition: Slack's verifies the token with `auth.test`,
|
|
402
|
+
* others read the account, the project or the robot first. Taking the handler's first request
|
|
403
|
+
* literally records that check as the subscription — measured before this, 7 of 108 subscribe
|
|
404
|
+
* operations pointed at `/api/auth.test`, `/user`, `/spi/v3/accounts` and similar, each of which
|
|
405
|
+
* would register nothing and report success.
|
|
406
|
+
*
|
|
407
|
+
* When EVERY request in the handler is a GET, the handler performs no registration at all — Slack's
|
|
408
|
+
* Events API subscriptions are configured in the app's own settings, not through its API — and
|
|
409
|
+
* nothing is emitted. Emitting a read as if it were a subscription is worse than emitting nothing:
|
|
410
|
+
* an application would call it, receive a 200, and believe it had subscribed.
|
|
411
|
+
*/
|
|
412
|
+
function mutatingRequestShape(handler, clientIndex) {
|
|
413
|
+
const collected = collectRequestShapes(handler);
|
|
414
|
+
const mutating = collected.find((shape) => shape.method !== 'GET' && shape.method !== 'HEAD');
|
|
415
|
+
if (mutating !== undefined)
|
|
416
|
+
return mutating;
|
|
417
|
+
if (collected.length > 0)
|
|
418
|
+
return undefined;
|
|
419
|
+
// No request literal at all: the call may be one hop away, through the piece's own client.
|
|
420
|
+
const hopped = followOneHop(handler, clientIndex);
|
|
421
|
+
return hopped !== undefined && hopped.method !== 'GET' && hopped.method !== 'HEAD' ? hopped : undefined;
|
|
422
|
+
}
|
|
423
|
+
/** Every request literal in a handler, in source order. */
|
|
424
|
+
function collectRequestShapes(handler) {
|
|
425
|
+
const found = [];
|
|
426
|
+
const seen = new Set();
|
|
427
|
+
const visit = (node) => {
|
|
428
|
+
if (ts.isObjectLiteralExpression(node) || ts.isCallExpression(node)) {
|
|
429
|
+
if (!seen.has(node)) {
|
|
430
|
+
seen.add(node);
|
|
431
|
+
const shape = findRequestShape(node);
|
|
432
|
+
if (shape !== undefined)
|
|
433
|
+
found.push(shape);
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
ts.forEachChild(node, visit);
|
|
437
|
+
};
|
|
438
|
+
visit(handler);
|
|
439
|
+
return found;
|
|
440
|
+
}
|
|
441
|
+
function triggerStrategy(trigger) {
|
|
442
|
+
for (const property of trigger.properties) {
|
|
443
|
+
if (!ts.isPropertyAssignment(property) || propertyName(property) !== 'type')
|
|
444
|
+
continue;
|
|
445
|
+
const initializer = property.initializer;
|
|
446
|
+
if (ts.isPropertyAccessExpression(initializer))
|
|
447
|
+
return initializer.name.text.toUpperCase();
|
|
448
|
+
if (ts.isStringLiteral(initializer))
|
|
449
|
+
return initializer.text.toUpperCase();
|
|
450
|
+
}
|
|
451
|
+
return 'WEBHOOK';
|
|
452
|
+
}
|
|
453
|
+
/** `DedupeStrategy.TIMEBASED` / `LAST_ITEM` — what a scheduler needs to know, and all it needs. */
|
|
454
|
+
function dedupeStrategy(sourceText) {
|
|
455
|
+
const match = /DedupeStrategy\.([A-Z_]+)/.exec(sourceText);
|
|
456
|
+
return match === null ? 'unspecified' : match[1];
|
|
457
|
+
}
|
|
458
|
+
function methodBody(object, name) {
|
|
459
|
+
for (const property of object.properties) {
|
|
460
|
+
if (propertyName(property) !== name)
|
|
461
|
+
continue;
|
|
462
|
+
if (ts.isMethodDeclaration(property) && property.body !== undefined)
|
|
463
|
+
return property.body;
|
|
464
|
+
if (ts.isPropertyAssignment(property)) {
|
|
465
|
+
const initializer = property.initializer;
|
|
466
|
+
if (ts.isArrowFunction(initializer) || ts.isFunctionExpression(initializer))
|
|
467
|
+
return initializer.body;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
return undefined;
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* The declared input of an action or trigger, read from its `props` block.
|
|
474
|
+
*
|
|
475
|
+
* This is the half of D4's promise the emitter was dropping: "path/query/body parameters AND
|
|
476
|
+
* response shape". The parameters were being read and the INPUT was not, so every generated
|
|
477
|
+
* operation said `requestBody: { encoding: JSON }` — a body exists — and nothing about what goes in
|
|
478
|
+
* it. A typed client cannot type a call from that, and a caller cannot discover one.
|
|
479
|
+
*
|
|
480
|
+
* Activepieces declares it richly: `Property.ShortText({ displayName, required })`. The constructor
|
|
481
|
+
* name gives the kind, `required` gives the obligation, `description` gives the words. A piece's OWN
|
|
482
|
+
* prop factory (`workspaceId({ required: true })`) is common and its kind cannot be read without
|
|
483
|
+
* following it, so the kind is UNKNOWN and the requiredness — which IS at the call site — is kept.
|
|
484
|
+
* Recording an honest unknown beats guessing `string` because most things are strings.
|
|
485
|
+
*/
|
|
486
|
+
function readInputFields(props) {
|
|
487
|
+
if (props === undefined)
|
|
488
|
+
return [];
|
|
489
|
+
const fields = [];
|
|
490
|
+
for (const property of props.properties) {
|
|
491
|
+
const name = propertyName(property);
|
|
492
|
+
if (name === undefined || !ts.isPropertyAssignment(property))
|
|
493
|
+
continue;
|
|
494
|
+
const initializer = property.initializer;
|
|
495
|
+
// A prop declared as a bare REFERENCE to a shared const — `contactId: activecampaignCommon.contactId`
|
|
496
|
+
// — is still an input the caller must supply, and skipping it was the single largest cause of
|
|
497
|
+
// operations whose own declared path could not be filled: 2,088 PATH parameters fed by nothing,
|
|
498
|
+
// and 1,722 operations that `compileProviderOperationRequest` refuses with `INPUT_INCOMPLETE`
|
|
499
|
+
// before a socket opens. The shared-const idiom is everywhere in the catalogue, and the field it
|
|
500
|
+
// declares is usually the identifier the URL template interpolates.
|
|
501
|
+
//
|
|
502
|
+
// Its KIND cannot be read without following the const into another module, and its requiredness
|
|
503
|
+
// is stated there rather than at this site, so both are recorded honestly: UNKNOWN, and not
|
|
504
|
+
// required. A caller under-informed about a field that EXISTS is in a far better position than
|
|
505
|
+
// one whose operation cannot be compiled at all.
|
|
506
|
+
if (!ts.isCallExpression(initializer)) {
|
|
507
|
+
fields.push({ name, kind: TransposedInputKind.UNKNOWN, required: false });
|
|
508
|
+
continue;
|
|
509
|
+
}
|
|
510
|
+
const options = initializer.arguments.find((argument) => ts.isObjectLiteralExpression(argument));
|
|
511
|
+
const optionsObject = options !== undefined && ts.isObjectLiteralExpression(options) ? options : undefined;
|
|
512
|
+
fields.push({
|
|
513
|
+
name,
|
|
514
|
+
kind: inputKindOf(initializer),
|
|
515
|
+
required: optionsObject !== undefined && booleanProperty(optionsObject, 'required') === true,
|
|
516
|
+
...(optionsObject === undefined ? {} : describedBy(optionsObject)),
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
return fields;
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* A response shape inferred from a `sampleData` literal.
|
|
523
|
+
*
|
|
524
|
+
* Activepieces states its output two ways and only one of them is data. `outputSchema` is a
|
|
525
|
+
* REFERENCE to a schema const built with somebody else's schema library, which would have to be
|
|
526
|
+
* interpreted rather than read; `sampleData` is a literal example of the real answer, and a literal
|
|
527
|
+
* can be read exactly.
|
|
528
|
+
*
|
|
529
|
+
* Inferred from an EXAMPLE, so it is deliberately permissive downstream: every member is optional
|
|
530
|
+
* and the object is loose. One example proves a field CAN appear, never that it always does — a
|
|
531
|
+
* response schema built from a sample and then enforced strictly would reject the vendor for
|
|
532
|
+
* omitting something the example happened to include.
|
|
533
|
+
*/
|
|
534
|
+
function inferShapeFromSample(sample) {
|
|
535
|
+
if (sample === undefined)
|
|
536
|
+
return undefined;
|
|
537
|
+
const fields = inferMembers(sample);
|
|
538
|
+
return Object.keys(fields).length === 0 ? undefined : { kind: TransposedInputKind.OBJECT, fields };
|
|
539
|
+
}
|
|
540
|
+
function inferMembers(object) {
|
|
541
|
+
const fields = {};
|
|
542
|
+
for (const property of object.properties) {
|
|
543
|
+
const name = propertyName(property);
|
|
544
|
+
if (name === undefined || !ts.isPropertyAssignment(property))
|
|
545
|
+
continue;
|
|
546
|
+
fields[name] = inferShapeOfValue(property.initializer);
|
|
547
|
+
}
|
|
548
|
+
return fields;
|
|
549
|
+
}
|
|
550
|
+
function inferShapeOfValue(node) {
|
|
551
|
+
if (ts.isStringLiteral(node) || ts.isNoSubstitutionTemplateLiteral(node) || ts.isTemplateExpression(node)) {
|
|
552
|
+
return { kind: TransposedInputKind.STRING, optional: true };
|
|
553
|
+
}
|
|
554
|
+
if (ts.isNumericLiteral(node))
|
|
555
|
+
return { kind: TransposedInputKind.NUMBER, optional: true };
|
|
556
|
+
if (node.kind === ts.SyntaxKind.TrueKeyword || node.kind === ts.SyntaxKind.FalseKeyword) {
|
|
557
|
+
return { kind: TransposedInputKind.BOOLEAN, optional: true };
|
|
558
|
+
}
|
|
559
|
+
if (ts.isArrayLiteralExpression(node)) {
|
|
560
|
+
const first = node.elements[0];
|
|
561
|
+
return {
|
|
562
|
+
kind: TransposedInputKind.ARRAY,
|
|
563
|
+
optional: true,
|
|
564
|
+
...(first === undefined ? {} : { items: inferShapeOfValue(first) }),
|
|
565
|
+
};
|
|
566
|
+
}
|
|
567
|
+
if (ts.isObjectLiteralExpression(node)) {
|
|
568
|
+
return { kind: TransposedInputKind.OBJECT, optional: true, fields: inferMembers(node) };
|
|
569
|
+
}
|
|
570
|
+
// `null`, a computed value, a reference — the example says a member EXISTS and not what it is.
|
|
571
|
+
return { kind: TransposedInputKind.UNKNOWN, optional: true };
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
574
|
+
* The input field a PATH hole is ultimately fed by, when the action renamed it on the way in.
|
|
575
|
+
*
|
|
576
|
+
* A URL template interpolates whatever local the action happens to hold — `/knowledge/${faqId}` —
|
|
577
|
+
* while the prop the caller fills is `faq_id`. The source STATES that mapping, in the destructuring
|
|
578
|
+
* or the assignment two lines above:
|
|
579
|
+
*
|
|
580
|
+
* const { faq_id: faqId } = context.propsValue;
|
|
581
|
+
* const faqId = context.propsValue.faq_id;
|
|
582
|
+
*
|
|
583
|
+
* so it is read rather than guessed. The contract's own JSDoc is explicit that `from` is "declared,
|
|
584
|
+
* never camel/snake-guessed", and it is right to be: `faqId` → `faq_id` looks like a rule until
|
|
585
|
+
* `userId` → `user` and `base` → `baseId` appear in the same catalogue. What makes this safe is that
|
|
586
|
+
* the answer is written down; where it is not, no `from` is emitted and the caller spells the
|
|
587
|
+
* parameter as the wire does.
|
|
588
|
+
*/
|
|
589
|
+
function inputFieldBehind(localName, body) {
|
|
590
|
+
let found;
|
|
591
|
+
const visit = (node) => {
|
|
592
|
+
if (found !== undefined)
|
|
593
|
+
return;
|
|
594
|
+
if (ts.isVariableDeclaration(node)) {
|
|
595
|
+
// `const { faq_id: faqId } = context.propsValue`
|
|
596
|
+
if (ts.isObjectBindingPattern(node.name)) {
|
|
597
|
+
for (const element of node.name.elements) {
|
|
598
|
+
if (!ts.isIdentifier(element.name) || element.name.text !== localName)
|
|
599
|
+
continue;
|
|
600
|
+
if (element.propertyName !== undefined && ts.isIdentifier(element.propertyName)) {
|
|
601
|
+
found = element.propertyName.text;
|
|
602
|
+
return;
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
// `const faqId = context.propsValue.faq_id`
|
|
607
|
+
if (ts.isIdentifier(node.name) && node.name.text === localName && node.initializer !== undefined) {
|
|
608
|
+
const initializer = node.initializer;
|
|
609
|
+
if (ts.isPropertyAccessExpression(initializer)) {
|
|
610
|
+
found = initializer.name.text;
|
|
611
|
+
return;
|
|
612
|
+
}
|
|
613
|
+
if (ts.isElementAccessExpression(initializer) && ts.isStringLiteral(initializer.argumentExpression)) {
|
|
614
|
+
found = initializer.argumentExpression.text;
|
|
615
|
+
return;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
ts.forEachChild(node, visit);
|
|
620
|
+
};
|
|
621
|
+
visit(body);
|
|
622
|
+
return found;
|
|
623
|
+
}
|
|
624
|
+
/**
|
|
625
|
+
* The input field a query property's VALUE names — `{ user: userId }` → `userId`.
|
|
626
|
+
*
|
|
627
|
+
* Only the trailing identifier of a plain reference is taken. A value computed from several inputs,
|
|
628
|
+
* or a literal, feeds no single field and yields nothing, which leaves the parameter with no `from`
|
|
629
|
+
* and the caller spelling it as the wire does.
|
|
630
|
+
*/
|
|
631
|
+
function inputFieldFeeding(property) {
|
|
632
|
+
if (ts.isShorthandPropertyAssignment(property))
|
|
633
|
+
return property.name.text;
|
|
634
|
+
if (!ts.isPropertyAssignment(property))
|
|
635
|
+
return undefined;
|
|
636
|
+
const value = property.initializer;
|
|
637
|
+
if (ts.isIdentifier(value))
|
|
638
|
+
return value.text;
|
|
639
|
+
if (ts.isPropertyAccessExpression(value))
|
|
640
|
+
return value.name.text;
|
|
641
|
+
return undefined;
|
|
642
|
+
}
|
|
643
|
+
/** `Property.ShortText(...)` → STRING. A piece's own factory → UNKNOWN, honestly. */
|
|
644
|
+
function inputKindOf(call) {
|
|
645
|
+
const callee = call.expression;
|
|
646
|
+
if (!ts.isPropertyAccessExpression(callee) || !ts.isIdentifier(callee.expression) || callee.expression.text !== 'Property') {
|
|
647
|
+
return TransposedInputKind.UNKNOWN;
|
|
648
|
+
}
|
|
649
|
+
switch (callee.name.text) {
|
|
650
|
+
case 'ShortText':
|
|
651
|
+
case 'LongText':
|
|
652
|
+
case 'DateTime':
|
|
653
|
+
case 'Dropdown':
|
|
654
|
+
case 'StaticDropdown':
|
|
655
|
+
case 'File':
|
|
656
|
+
case 'Color':
|
|
657
|
+
case 'Secret':
|
|
658
|
+
return TransposedInputKind.STRING;
|
|
659
|
+
case 'Number':
|
|
660
|
+
return TransposedInputKind.NUMBER;
|
|
661
|
+
case 'Checkbox':
|
|
662
|
+
return TransposedInputKind.BOOLEAN;
|
|
663
|
+
case 'Array':
|
|
664
|
+
case 'MultiSelectDropdown':
|
|
665
|
+
case 'StaticMultiSelectDropdown':
|
|
666
|
+
return TransposedInputKind.ARRAY;
|
|
667
|
+
case 'Json':
|
|
668
|
+
case 'Object':
|
|
669
|
+
case 'DynamicProperties':
|
|
670
|
+
return TransposedInputKind.OBJECT;
|
|
671
|
+
default:
|
|
672
|
+
return TransposedInputKind.UNKNOWN;
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
function booleanProperty(object, name) {
|
|
676
|
+
for (const property of object.properties) {
|
|
677
|
+
if (!ts.isPropertyAssignment(property) || propertyName(property) !== name)
|
|
678
|
+
continue;
|
|
679
|
+
if (property.initializer.kind === ts.SyntaxKind.TrueKeyword)
|
|
680
|
+
return true;
|
|
681
|
+
if (property.initializer.kind === ts.SyntaxKind.FalseKeyword)
|
|
682
|
+
return false;
|
|
683
|
+
}
|
|
684
|
+
return undefined;
|
|
685
|
+
}
|
|
686
|
+
function describedBy(object) {
|
|
687
|
+
const description = stringProperty(object, 'description') ?? stringProperty(object, 'displayName');
|
|
688
|
+
return description === undefined ? {} : { description };
|
|
689
|
+
}
|
|
690
|
+
function isString(value) {
|
|
691
|
+
return value !== undefined;
|
|
692
|
+
}
|
|
693
|
+
function hasProperty(object, name) {
|
|
694
|
+
return object.properties.some((property) => propertyName(property) === name);
|
|
695
|
+
}
|
|
696
|
+
function unreadableOperation(operationId, provenance, reason, summary, _displayName) {
|
|
697
|
+
return {
|
|
698
|
+
operationId,
|
|
699
|
+
domain: 'default',
|
|
700
|
+
resolution: TransposedOperationResolution.UNREADABLE,
|
|
701
|
+
unreadableReason: reason,
|
|
702
|
+
classification: 'READ',
|
|
703
|
+
parameters: [],
|
|
704
|
+
inputFields: [],
|
|
705
|
+
hasRequestBody: false,
|
|
706
|
+
provenance,
|
|
707
|
+
...(summary === undefined ? {} : { summary }),
|
|
708
|
+
};
|
|
709
|
+
}
|
|
710
|
+
function findRequestShape(node) {
|
|
711
|
+
let found;
|
|
712
|
+
const visit = (current) => {
|
|
713
|
+
if (found !== undefined)
|
|
714
|
+
return;
|
|
715
|
+
if (ts.isObjectLiteralExpression(current)) {
|
|
716
|
+
const method = readMethod(current);
|
|
717
|
+
const pathNode = findPathNode(current);
|
|
718
|
+
if (method !== undefined && pathNode !== undefined) {
|
|
719
|
+
const queryObject = firstObjectProperty(current, QUERY_PROPERTY_NAMES);
|
|
720
|
+
found = {
|
|
721
|
+
method,
|
|
722
|
+
pathNode,
|
|
723
|
+
hasBody: hasProperty(current, 'body'),
|
|
724
|
+
...(queryObject === undefined ? {} : { queryObject }),
|
|
725
|
+
};
|
|
726
|
+
return;
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
if (ts.isCallExpression(current)) {
|
|
730
|
+
const positional = readPositionalRequest(current);
|
|
731
|
+
if (positional !== undefined) {
|
|
732
|
+
found = positional;
|
|
733
|
+
return;
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
ts.forEachChild(current, visit);
|
|
737
|
+
};
|
|
738
|
+
visit(node);
|
|
739
|
+
return found;
|
|
740
|
+
}
|
|
741
|
+
/**
|
|
742
|
+
* `makeRequest(HttpMethod.POST, '/accountContacts', query, body)`.
|
|
743
|
+
*
|
|
744
|
+
* The METHOD argument anchors the match — an `HttpMethod.X` in an argument list is unambiguous — and
|
|
745
|
+
* the path is the first string-shaped argument after it. Later arguments are counted only as
|
|
746
|
+
* "a body is passed", never interpreted: which of them is the body is a per-wrapper convention, and
|
|
747
|
+
* guessing it would put a query object in a POST body.
|
|
748
|
+
*/
|
|
749
|
+
function readPositionalRequest(call) {
|
|
750
|
+
const args = call.arguments;
|
|
751
|
+
let methodIndex = -1;
|
|
752
|
+
let method;
|
|
753
|
+
for (let index = 0; index < args.length; index += 1) {
|
|
754
|
+
const argument = args[index];
|
|
755
|
+
if (ts.isPropertyAccessExpression(argument) &&
|
|
756
|
+
ts.isIdentifier(argument.expression) &&
|
|
757
|
+
argument.expression.text === 'HttpMethod') {
|
|
758
|
+
methodIndex = index;
|
|
759
|
+
method = argument.name.text.toUpperCase();
|
|
760
|
+
break;
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
if (method === undefined)
|
|
764
|
+
return undefined;
|
|
765
|
+
// Scan AFTER the method first, then BEFORE it. Argument order is a per-wrapper convention and both
|
|
766
|
+
// exist in the catalogue: `makeRequest(auth, HttpMethod.GET, path)` puts the path last, and
|
|
767
|
+
// `makeAmpecoApiCall(auth, url, HttpMethod.GET, body, query)` puts it first. Looking only forward
|
|
768
|
+
// missed 552 actions in one piece family.
|
|
769
|
+
const order = [
|
|
770
|
+
...Array.from({ length: args.length - methodIndex - 1 }, (_, offset) => methodIndex + 1 + offset),
|
|
771
|
+
...Array.from({ length: methodIndex }, (_, index) => index),
|
|
772
|
+
];
|
|
773
|
+
for (const index of order) {
|
|
774
|
+
const argument = args[index];
|
|
775
|
+
if (ts.isStringLiteral(argument) ||
|
|
776
|
+
ts.isNoSubstitutionTemplateLiteral(argument) ||
|
|
777
|
+
ts.isTemplateExpression(argument) ||
|
|
778
|
+
(ts.isBinaryExpression(argument) && argument.operatorToken.kind === ts.SyntaxKind.PlusToken)) {
|
|
779
|
+
return { method, pathNode: argument, hasBody: args.length > index + 1 };
|
|
780
|
+
}
|
|
781
|
+
// `makeRequest(auth, HttpMethod.GET, path)` where `path` is a local const built a few lines
|
|
782
|
+
// above — the single largest refusal class in the catalogue (729 actions). The identifier is
|
|
783
|
+
// handed on rather than resolved here: `resolveLocalPathBinding` already knows how to follow a
|
|
784
|
+
// local binding to the literal it was written as, and if it cannot, the extractor refuses
|
|
785
|
+
// exactly as it does today. Nothing is guessed by accepting the name.
|
|
786
|
+
if (ts.isIdentifier(argument)) {
|
|
787
|
+
return { method, pathNode: argument, hasBody: args.length > index + 1 };
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
return undefined;
|
|
791
|
+
}
|
|
792
|
+
function indexPieceMethods(files) {
|
|
793
|
+
const index = new Map();
|
|
794
|
+
for (const file of files) {
|
|
795
|
+
const text = readFileSync(file, 'utf8');
|
|
796
|
+
const source = ts.createSourceFile(file, text, ts.ScriptTarget.Latest, true);
|
|
797
|
+
const visit = (node) => {
|
|
798
|
+
const name = declaredMethodName(node);
|
|
799
|
+
if (name !== undefined && !index.has(name))
|
|
800
|
+
index.set(name, { node, sourceText: text });
|
|
801
|
+
ts.forEachChild(node, visit);
|
|
802
|
+
};
|
|
803
|
+
visit(source);
|
|
804
|
+
}
|
|
805
|
+
return index;
|
|
806
|
+
}
|
|
807
|
+
function declaredMethodName(node) {
|
|
808
|
+
if (ts.isMethodDeclaration(node) && ts.isIdentifier(node.name))
|
|
809
|
+
return node.name.text;
|
|
810
|
+
if (ts.isFunctionDeclaration(node) && node.name !== undefined)
|
|
811
|
+
return node.name.text;
|
|
812
|
+
if (ts.isPropertyAssignment(node) &&
|
|
813
|
+
ts.isIdentifier(node.name) &&
|
|
814
|
+
(ts.isArrowFunction(node.initializer) || ts.isFunctionExpression(node.initializer))) {
|
|
815
|
+
return node.name.text;
|
|
816
|
+
}
|
|
817
|
+
if (ts.isVariableDeclaration(node) &&
|
|
818
|
+
ts.isIdentifier(node.name) &&
|
|
819
|
+
node.initializer !== undefined &&
|
|
820
|
+
(ts.isArrowFunction(node.initializer) || ts.isFunctionExpression(node.initializer))) {
|
|
821
|
+
return node.name.text;
|
|
822
|
+
}
|
|
823
|
+
return undefined;
|
|
824
|
+
}
|
|
825
|
+
/**
|
|
826
|
+
* Resolve the action's call through the piece's own client, one hop.
|
|
827
|
+
*
|
|
828
|
+
* Every called name in the action is tried against the index, nearest-first as the AST yields them.
|
|
829
|
+
* A hit is used ONLY when the resolved body carries both a method and a path, so a wrong hop cannot
|
|
830
|
+
* manufacture an operation — it fails to produce one, and the action falls through to PENDING or
|
|
831
|
+
* UNREADABLE exactly as it would have.
|
|
832
|
+
*/
|
|
833
|
+
function followOneHop(action, index) {
|
|
834
|
+
const names = [];
|
|
835
|
+
const visit = (node) => {
|
|
836
|
+
if (ts.isCallExpression(node)) {
|
|
837
|
+
const callee = node.expression;
|
|
838
|
+
if (ts.isPropertyAccessExpression(callee))
|
|
839
|
+
names.push(callee.name.text);
|
|
840
|
+
else if (ts.isIdentifier(callee))
|
|
841
|
+
names.push(callee.text);
|
|
842
|
+
}
|
|
843
|
+
ts.forEachChild(node, visit);
|
|
844
|
+
};
|
|
845
|
+
visit(action);
|
|
846
|
+
for (const name of names) {
|
|
847
|
+
const entry = index.get(name);
|
|
848
|
+
if (entry === undefined)
|
|
849
|
+
continue;
|
|
850
|
+
const shape = findRequestShape(entry.node);
|
|
851
|
+
if (shape !== undefined)
|
|
852
|
+
return { ...shape, sourceText: entry.sourceText };
|
|
853
|
+
}
|
|
854
|
+
return undefined;
|
|
855
|
+
}
|
|
856
|
+
/**
|
|
857
|
+
* A path written as a local variable — `const url = processPathParameters('/public-api/x', props)`
|
|
858
|
+
* then `path: url` — resolved to the literal it was built from.
|
|
859
|
+
*
|
|
860
|
+
* Only within the SAME action, and only one step: the declaration's initializer if it is a literal,
|
|
861
|
+
* or the initializer call's first string-shaped ARGUMENT, which is where every helper of this kind
|
|
862
|
+
* puts the path. A name that does not resolve to something literal is returned unchanged and the
|
|
863
|
+
* extractor refuses it, which is the correct outcome — this recovers a spelling, never a value.
|
|
864
|
+
*/
|
|
865
|
+
function resolveLocalPathBinding(pathNode, action) {
|
|
866
|
+
if (!ts.isIdentifier(pathNode))
|
|
867
|
+
return pathNode;
|
|
868
|
+
const wanted = pathNode.text;
|
|
869
|
+
let resolved;
|
|
870
|
+
const visit = (node) => {
|
|
871
|
+
if (resolved !== undefined)
|
|
872
|
+
return;
|
|
873
|
+
if (ts.isVariableDeclaration(node) && ts.isIdentifier(node.name) && node.name.text === wanted && node.initializer !== undefined) {
|
|
874
|
+
const initializer = node.initializer;
|
|
875
|
+
if (ts.isStringLiteral(initializer) || ts.isTemplateExpression(initializer) || ts.isNoSubstitutionTemplateLiteral(initializer)) {
|
|
876
|
+
resolved = initializer;
|
|
877
|
+
return;
|
|
878
|
+
}
|
|
879
|
+
if (ts.isCallExpression(initializer)) {
|
|
880
|
+
for (const argument of initializer.arguments) {
|
|
881
|
+
if (ts.isStringLiteral(argument) || ts.isTemplateExpression(argument) || ts.isNoSubstitutionTemplateLiteral(argument)) {
|
|
882
|
+
resolved = argument;
|
|
883
|
+
return;
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
ts.forEachChild(node, visit);
|
|
889
|
+
};
|
|
890
|
+
visit(action);
|
|
891
|
+
return resolved ?? pathNode;
|
|
892
|
+
}
|
|
893
|
+
/** `method: HttpMethod.POST` or `method: 'POST'`. */
|
|
894
|
+
function readMethod(object) {
|
|
895
|
+
for (const property of object.properties) {
|
|
896
|
+
if (!ts.isPropertyAssignment(property))
|
|
897
|
+
continue;
|
|
898
|
+
if (propertyName(property) !== 'method')
|
|
899
|
+
continue;
|
|
900
|
+
const initializer = property.initializer;
|
|
901
|
+
if (ts.isPropertyAccessExpression(initializer) && ts.isIdentifier(initializer.expression) && initializer.expression.text === 'HttpMethod') {
|
|
902
|
+
return initializer.name.text.toUpperCase();
|
|
903
|
+
}
|
|
904
|
+
if (ts.isStringLiteral(initializer))
|
|
905
|
+
return initializer.text.toUpperCase();
|
|
906
|
+
}
|
|
907
|
+
return undefined;
|
|
908
|
+
}
|
|
909
|
+
function findPathNode(object) {
|
|
910
|
+
for (const property of object.properties) {
|
|
911
|
+
if (!ts.isPropertyAssignment(property))
|
|
912
|
+
continue;
|
|
913
|
+
const name = propertyName(property);
|
|
914
|
+
if (name === undefined)
|
|
915
|
+
continue;
|
|
916
|
+
if (PATH_PROPERTY_NAMES.includes(name))
|
|
917
|
+
return property.initializer;
|
|
918
|
+
}
|
|
919
|
+
return undefined;
|
|
920
|
+
}
|
|
921
|
+
/**
|
|
922
|
+
* The vendor operation an SDK call names — `client.conversations.create` → `conversations.create`.
|
|
923
|
+
*
|
|
924
|
+
* Only the property chain is taken, never the receiver: the receiver is a local variable name
|
|
925
|
+
* (`client`, `notion`, `slack`) and says nothing about the vendor's API, while the chain after it is
|
|
926
|
+
* the vendor's own operation path in every SDK measured.
|
|
927
|
+
*/
|
|
928
|
+
const NON_VENDOR_RECEIVERS = new Set([
|
|
929
|
+
'console', 'JSON', 'Object', 'Array', 'Math', 'Promise', 'String', 'Number', 'Date', 'Boolean',
|
|
930
|
+
'context', 'props', 'propsValue', 'auth', 'z', 'process', 'Buffer', 'fs', 'path', 'crypto',
|
|
931
|
+
'dayjs', 'lodash', 'result', 'response', 'error',
|
|
932
|
+
// The piece-authoring API itself. `Property.ShortText(...)` is structurally a vendor SDK call and
|
|
933
|
+
// is not one; it appears in the props block of nearly every action in the catalogue.
|
|
934
|
+
'Property', 'PieceAuth', 'Validators',
|
|
935
|
+
]);
|
|
936
|
+
/**
|
|
937
|
+
* Method names that are the language, not a vendor.
|
|
938
|
+
*
|
|
939
|
+
* `results.push(x)` and `items.map(f)` are property-access calls on an identifier and match the SDK
|
|
940
|
+
* shape exactly. Left in, they become vendor operations named `push` and `map`, which then fail to
|
|
941
|
+
* match any endpoint and sit in the pending list forever looking like real work.
|
|
942
|
+
*/
|
|
943
|
+
const NON_VENDOR_METHODS = new Set([
|
|
944
|
+
'push', 'pop', 'shift', 'unshift', 'map', 'filter', 'reduce', 'forEach', 'find', 'findIndex',
|
|
945
|
+
'includes', 'indexOf', 'join', 'slice', 'splice', 'concat', 'sort', 'reverse', 'flat', 'flatMap',
|
|
946
|
+
'then', 'catch', 'finally', 'toString', 'valueOf', 'trim', 'split', 'replace', 'match', 'test',
|
|
947
|
+
'toLowerCase', 'toUpperCase', 'startsWith', 'endsWith', 'padStart', 'padEnd', 'keys', 'values',
|
|
948
|
+
'entries', 'has', 'get', 'set', 'add', 'delete', 'append', 'json', 'text', 'stringify', 'parse',
|
|
949
|
+
]);
|
|
950
|
+
function findSdkOperationName(action, _sourceText) {
|
|
951
|
+
let found;
|
|
952
|
+
const visit = (node) => {
|
|
953
|
+
if (found !== undefined)
|
|
954
|
+
return;
|
|
955
|
+
if (ts.isCallExpression(node) && ts.isPropertyAccessExpression(node.expression)) {
|
|
956
|
+
const chain = [];
|
|
957
|
+
let current = node.expression;
|
|
958
|
+
while (ts.isPropertyAccessExpression(current)) {
|
|
959
|
+
chain.unshift(current.name.text);
|
|
960
|
+
current = current.expression;
|
|
961
|
+
}
|
|
962
|
+
// A plain identifier receiver plus at least one name. Two or more names is unambiguously a
|
|
963
|
+
// vendor operation path (`client.conversations.create`); ONE name is still the common SDK
|
|
964
|
+
// shape (`api.getAccounts()`), so it is accepted with the language's own built-ins and the
|
|
965
|
+
// framework's context objects excluded by name — those are the only single-name calls that
|
|
966
|
+
// would otherwise be mistaken for a vendor operation.
|
|
967
|
+
const last = chain[chain.length - 1];
|
|
968
|
+
if (ts.isIdentifier(current) &&
|
|
969
|
+
// A DOTTED chain, always. A single method name on a local variable carries almost no
|
|
970
|
+
// identity, and accepting one is what filled the pending queue with `sendRequest`,
|
|
971
|
+
// `makeRequest`, `apiCall`, `validateZod`, `paginate`, `log` and `build` — 125 records that
|
|
972
|
+
// name no vendor operation and that no oracle could ever complete. PENDING means "we know
|
|
973
|
+
// WHICH operation and lack its URL"; a bare verb knows neither, so it is UNREADABLE, which
|
|
974
|
+
// is the honest answer and keeps the queue workable.
|
|
975
|
+
chain.length >= 2 &&
|
|
976
|
+
!NON_VENDOR_RECEIVERS.has(current.text) &&
|
|
977
|
+
last !== undefined &&
|
|
978
|
+
!NON_VENDOR_METHODS.has(last)) {
|
|
979
|
+
found = chain.join('.');
|
|
980
|
+
return;
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
ts.forEachChild(node, visit);
|
|
984
|
+
};
|
|
985
|
+
visit(action);
|
|
986
|
+
return found;
|
|
987
|
+
}
|
|
988
|
+
/**
|
|
989
|
+
* READ or WRITE. Prefers the piece's own declaration when it has one — several hundred actions carry
|
|
990
|
+
* `classification: 'WRITE'` — and otherwise derives it from the method, which is the only other
|
|
991
|
+
* honest source. An action with neither is READ, because treating an unknown as a mutation would
|
|
992
|
+
* make every unclassified operation require a confirmation nobody can dismiss.
|
|
993
|
+
*/
|
|
994
|
+
function classificationFor(action, method) {
|
|
995
|
+
const declared = stringProperty(action, 'classification');
|
|
996
|
+
if (declared === 'READ' || declared === 'WRITE')
|
|
997
|
+
return declared;
|
|
998
|
+
if (method === undefined)
|
|
999
|
+
return 'WRITE';
|
|
1000
|
+
return method === 'GET' || method === 'HEAD' || method === 'OPTIONS' ? 'READ' : 'WRITE';
|
|
1001
|
+
}
|
|
1002
|
+
/**
|
|
1003
|
+
* The piece's credential shape, read from whichever file declares it.
|
|
1004
|
+
*
|
|
1005
|
+
* The four `PieceAuth` constructors map one-to-one onto the transposer's kinds, and the mapping is
|
|
1006
|
+
* the whole reason OAuth2 costs one implementation rather than 117: every OAuth2 piece states the
|
|
1007
|
+
* same three things — authorization URL, token URL, scopes — and Activepieces' own server performs
|
|
1008
|
+
* the exchange, so nothing vendor-specific is hiding in the dance.
|
|
1009
|
+
*/
|
|
1010
|
+
function readPieceAuth(files) {
|
|
1011
|
+
for (const file of files) {
|
|
1012
|
+
const text = readFileSync(file, 'utf8');
|
|
1013
|
+
if (!text.includes('PieceAuth.'))
|
|
1014
|
+
continue;
|
|
1015
|
+
if (text.includes('PieceAuth.OAuth2')) {
|
|
1016
|
+
return {
|
|
1017
|
+
kind: TransposedAuthKind.OAUTH2,
|
|
1018
|
+
...(matchLiteral(text, /authUrl:\s*['"`]([^'"`]+)/) ?? {}),
|
|
1019
|
+
...(matchTokenUrl(text) ?? {}),
|
|
1020
|
+
scopes: [...text.matchAll(/scope:\s*\[([^\]]*)\]/g)]
|
|
1021
|
+
.flatMap((match) => [...match[1].matchAll(/['"]([^'"]+)['"]/g)].map((s) => s[1])),
|
|
1022
|
+
};
|
|
1023
|
+
}
|
|
1024
|
+
if (text.includes('PieceAuth.BasicAuth'))
|
|
1025
|
+
return { kind: TransposedAuthKind.BASIC };
|
|
1026
|
+
if (text.includes('PieceAuth.CustomAuth')) {
|
|
1027
|
+
return {
|
|
1028
|
+
kind: TransposedAuthKind.CUSTOM,
|
|
1029
|
+
customFields: [...text.matchAll(/^\s{4,}(\w+):\s*Property\./gm)].map((match) => match[1]),
|
|
1030
|
+
};
|
|
1031
|
+
}
|
|
1032
|
+
if (text.includes('PieceAuth.SecretText'))
|
|
1033
|
+
return { kind: TransposedAuthKind.SECRET_TEXT };
|
|
1034
|
+
if (text.includes('PieceAuth.None'))
|
|
1035
|
+
return { kind: TransposedAuthKind.NONE };
|
|
1036
|
+
}
|
|
1037
|
+
return { kind: TransposedAuthKind.NONE };
|
|
1038
|
+
}
|
|
1039
|
+
function matchLiteral(text, pattern) {
|
|
1040
|
+
const match = pattern.exec(text);
|
|
1041
|
+
return match === null ? undefined : { authUrl: match[1] };
|
|
1042
|
+
}
|
|
1043
|
+
function matchTokenUrl(text) {
|
|
1044
|
+
const match = /tokenUrl:\s*['"`]([^'"`]+)/.exec(text);
|
|
1045
|
+
return match === null ? undefined : { tokenUrl: match[1] };
|
|
1046
|
+
}
|
|
1047
|
+
//# sourceMappingURL=activepieces-source.reader.js.map
|