@wildo-ai/dev-companion 1.1.7 → 1.1.8
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/esm/__tests__/asset-noop.d.ts.map +1 -1
- package/dist/esm/__tests__/asset-noop.js.map +1 -1
- package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +1 -1
- package/dist/esm/__tests__/chdir-dogfood-app.setup.js.map +1 -1
- package/dist/esm/__tests__/internal-test-view.d.ts.map +1 -1
- package/dist/esm/__tests__/internal-test-view.js.map +1 -1
- package/dist/esm/brand/models/logo-creative-brief.schemas.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-creative-brief.schemas.js.map +1 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.js.map +1 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
- package/dist/esm/brand/models/logo-judge.schemas.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-judge.schemas.js.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
- package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-propagation.companion.utils.js.map +1 -1
- package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
- package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
- package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
- package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
- package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
- package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
- package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/coding-session-frame-retention.js.map +1 -1
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answer.models.js.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -1
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +1 -1
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js.map +1 -1
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
- package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.d.ts.map +1 -1
- package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.js.map +1 -1
- package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.d.ts.map +1 -1
- package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
- package/dist/esm/companion-api/companion-error-guidance.models.d.ts.map +1 -1
- package/dist/esm/companion-api/companion-error-guidance.models.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts.map +1 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.js.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.models.d.ts.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.models.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
- package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js.map +1 -1
- package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
- package/dist/esm/core/context/companion-context.d.ts.map +1 -1
- package/dist/esm/core/context/companion-context.js.map +1 -1
- package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
- package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
- package/dist/esm/core/context/draft-family-values.companion.d.ts.map +1 -1
- package/dist/esm/core/context/draft-family-values.companion.js.map +1 -1
- package/dist/esm/core/inject/models/container.d.ts.map +1 -1
- package/dist/esm/core/inject/models/container.js.map +1 -1
- package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
- package/dist/esm/core/inject/models/service-types.js.map +1 -1
- package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
- package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
- package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
- package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
- package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/application-secrets.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/translation-placement.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/assertions.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-hooks.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-register.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-register.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-child.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-child.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-context-block.builder.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-context-block.builder.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js.map +1 -1
- package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -1
- package/dist/esm/core/introspection/workspace-elements.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/workspace-elements.companion.js.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.js.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.models.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.models.js.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.schemas.js.map +1 -1
- package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/application-runtime-liveness.companion.js.map +1 -1
- package/dist/esm/core/runtime/companion-endpoint-record.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-endpoint-record.js.map +1 -1
- package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-env-file.js.map +1 -1
- package/dist/esm/core/runtime/companion-startup-assembly.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js.map +1 -1
- package/dist/esm/core/runtime/models/companion-runtime.models.d.ts.map +1 -1
- package/dist/esm/core/runtime/models/companion-runtime.models.js.map +1 -1
- package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/services/file-storage-initialization.companion.js.map +1 -1
- package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
- package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-workbench-topology.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-workbench-topology.js.map +1 -1
- package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.js.map +1 -1
- package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/chart-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/composite-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/cross-registry-rendering.shared.js.map +1 -1
- package/dist/esm/core/specifications/execution-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/execution-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/feature-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/feature-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/frontend-component-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/full-custom-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/guidance-flow-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/milestone-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/milestone-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/non-composite-view-specification-context.shared.js.map +1 -1
- package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/onboarding-element-rendering.shared.js.map +1 -1
- package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/onboarding-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/product-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/product-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/resource-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/role-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/role-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.js.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.models.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.models.js.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.shared.js.map +1 -1
- package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/system-email-template-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
- package/dist/esm/core/specifications/validate-resource-field-completeness.js.map +1 -1
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.models.js.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.service.js.map +1 -1
- package/dist/esm/core/utils/atomic-write.utils.d.ts.map +1 -1
- package/dist/esm/core/utils/atomic-write.utils.js.map +1 -1
- package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/utils/derived-input-signature.companion.utils.js.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -1
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
- package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
- package/dist/esm/deliberations/utils/load-committed-expert-agents.js.map +1 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.js.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
- package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-labels-file-source.utils.js.map +1 -1
- package/dist/esm/email/utils/email-labels-tree.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-labels-tree.utils.js.map +1 -1
- package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-template-fs-discovery.utils.js.map +1 -1
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.js.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
- package/dist/esm/expert-personas/services/persona-source-ownership.d.ts.map +1 -1
- package/dist/esm/expert-personas/services/persona-source-ownership.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_announcement.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_announcement.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_banner.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_card.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_card.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist_item.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_modal.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_modal.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_onboarding_view.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_survey.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_tooltip.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_tooltip.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_tour.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_tour.en.js.map +1 -1
- package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_achievement_badge.en.js.map +1 -1
- package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_milestone_tracker.en.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.domain-model.en.js.map +1 -1
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts.map +1 -1
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.js.map +1 -1
- package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -1
- package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -1
- package/dist/esm/i18n/index.d.ts.map +1 -1
- package/dist/esm/i18n/index.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDomainResources.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/compliance-programme.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/flows-actors.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/flows-actors.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/market.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/risk-register.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-secrets.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -1
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
- package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-file-source.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-file-source.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.js.map +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/market/services/market-generation.companion.service.d.ts.map +1 -1
- package/dist/esm/market/services/market-generation.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-line-catalog.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/human-decision-settler.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js.map +1 -1
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/landed-module-import.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js.map +1 -1
- package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts.map +1 -1
- package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
- package/package.json +17 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-trace-read.companion.service.js","sourceRoot":"","sources":["../../../../src/meta-workflows/services/execution-trace-read.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAE5D,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAEjF,OAAO,EAAE,uBAAuB,EAAE,MAAM,uDAAu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,GAAG,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;QACjF,OAAO,GAAG;aACP,KAAK,CAAC,IAAI,CAAC;aACX,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;aACxC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YAChB,IAAI,CAAC;gBAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAwB,CAAC,CAAC;YAAC,CAAC;YAAC,MAAM,CAAC;gBAAC,OAAO,EAAE,CAAC;YAAC,CAAC;QAChF,CAAC,CAAC,CAAC;IACP,CAAC;IAEO,KAAK,CAAC,SAAS,CAAC,SAAiB;QACvC,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QACpE,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,WAAW,EAAE,EAAE,CAAC,CAAC;YAC9D,WAAW;YACX,SAAS,EAAE,CAAC,MAAM,IAAI,CAAC,kBAAkB,CAAC,SAAS,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,IAAI,EAAE;SACnF,CAAC,CAAC,CAAC,CAAC;IACP,CAAC;CACF,CAAA;AAhPY,kCAAkC;IAD9C,UAAU,EAAE;IAGR,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;;GAFxC,kCAAkC,CAgP9C","sourcesContent":["import { readdir, readFile, realpath, stat } from 'node:fs/promises';\nimport { isAbsolute, join, relative, sep } from 'node:path';\n\nimport { inject, injectable } from 'inversify';\n\nimport { resolveAppLayout } from '@wildo-ai/platform-config-lib';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { CompanionTraceAliasKind } from '../../core/traceability/companion-traceability.models';\nimport { sanitizeTraceName } from '../../core/traceability/companion-traceability.service';\n\nexport interface ExecutionTraceSessionSummary {\n readonly sessionId: string;\n readonly startedAt: string;\n readonly label: string | null;\n readonly eventCount: number;\n readonly stepCount: number;\n}\n\nexport interface ExecutionTraceEvent {\n readonly timestamp: string;\n readonly type: string;\n readonly summary: string;\n readonly stepId?: string;\n readonly payload?: unknown;\n}\n\n/**\n * What a session spent, in TOKENS. Never a currency amount — see `summarizeSessionUsage` for why.\n */\nexport interface ExecutionTraceUsageSummary {\n readonly sessionId: string;\n /** Agent calls found in the session's events. */\n readonly agentCalls: number;\n /** How many of those carried no usage — the reason a total can be a floor rather than the figure. */\n readonly callsWithoutUsage: number;\n readonly promptTokens: number;\n readonly completionTokens: number;\n readonly totalTokens: number;\n}\n\nexport interface ExecutionTraceStep {\n readonly stepDirName: string;\n /** File names only — a listing, not the bodies. One answer artifact can be tens of kilobytes. */\n readonly artifacts: readonly string[];\n}\n\nexport interface ExecutionTraceSession extends ExecutionTraceSessionSummary {\n readonly events: readonly ExecutionTraceEvent[];\n readonly steps: readonly ExecutionTraceStep[];\n}\n\nexport class ExecutionTraceNotFoundError extends Error {}\n\n/**\n * Read what a run recorded — the half that makes a trace a trace.\n *\n * Two write-only journal streams were deleted on 2026-08-24 for having no reader. The events this serves\n * are written by the same kind of code, and the difference is exactly this service: it shipped in the same\n * change as the writer, so \"a person can read it\" was true on day one rather than promised.\n *\n * It is READ-ONLY and takes no session identity from the caller beyond the id it is asked for — resolved\n * against the companion's own logs home, and refusing any id that is not a plain session directory name, so\n * a request cannot walk out of the tree it is allowed to read.\n */\n@injectable()\nexport class ExecutionTraceReadCompanionService {\n public constructor(\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n ) {}\n\n public async listSessions(limit = 50): Promise<readonly ExecutionTraceSessionSummary[]> {\n const names = await this.readTraceDirectory();\n // Session directory names are `dev-<ISO-ish timestamp>-<suffix>`, so lexical DESC is chronological.\n const newestFirst = names.filter((name) => name.startsWith('dev-')).sort().reverse().slice(0, limit);\n const summaries = await Promise.all(newestFirst.map((name) => this.summarize(name)));\n return summaries.filter((entry): entry is ExecutionTraceSessionSummary => entry !== null);\n }\n\n /**\n * Every confined session directory name, unbounded and without per-session summary reads.\n * Directory entries are resolved to enforce the same boundary as addressed reads.\n *\n * Exists for JOIN resolution (a write record's runId → its session by longest-prefix match):\n * bounding that lookup with the display limit made records older than the newest N silently\n * lose their trace link, which is a correctness question the display bound has no business\n * answering (completion-review finding 11a).\n */\n public async listSessionIds(): Promise<readonly string[]> {\n const names = await this.readTraceDirectory();\n return names.filter((name) => name.startsWith('dev-'));\n }\n\n /**\n * ONE session's summary, addressed — for the read of a session the bounded listing no longer holds.\n *\n * `listSessions` is display-bounded to the newest N, and a development companion records a session\n * per request: thousands a day. A run's trace therefore leaves the listing within hours while its\n * write record still links to it. `null` when the id names no session; the id is confined to the\n * sessions root by the same path resolution every addressed read uses.\n */\n public async summarizeSession(sessionId: string): Promise<ExecutionTraceSessionSummary | null> {\n if (!sessionId.startsWith('dev-')) return null;\n return this.summarize(sessionId).catch(() => null);\n }\n\n public async readSession(sessionId: string): Promise<ExecutionTraceSession> {\n const sessionDir = await this.resolveTracePath(sessionId);\n const exists = await stat(sessionDir).then((entry) => entry.isDirectory(), () => false);\n if (!exists) throw new ExecutionTraceNotFoundError(`No trace session \"${sessionId}\".`);\n\n const summary = await this.summarize(sessionId);\n if (!summary) throw new ExecutionTraceNotFoundError(`Trace session \"${sessionId}\" has no readable session record.`);\n return { ...summary, events: await this.readEvents(sessionId), steps: await this.readSteps(sessionId) };\n }\n\n /**\n * What one session SPENT — summed from the agent-call events already on disk (#1274).\n *\n * ## The issue said nothing records this. Something does.\n *\n * `#1274` reported \"no cost, at any layer… nothing in the companion or the creation runtime records\n * what a run spent. A sweep of both trees returns only `maxOutputTokens`.\" That sweep searched\n * SOURCE for a cost field and missed the producer, which is not a field but a SINK:\n * `CompanionAgentCallTraceSink.recordAgentCall` writes `trace.context.usage` into this session's\n * `events.ndjson` on every agent call. Measured on Wonder CRM before writing this: 2,887 event\n * files carry a `usage` object, with real `promptTokens` / `completionTokens` / `totalTokens`.\n *\n * So this is a DERIVATION over data that already exists, not a new producer — which is why it is a\n * read on the trace service rather than a change to how runs execute.\n *\n * ## Why `complete` is carried rather than assumed\n *\n * Two things make a total an understatement, and both are silent:\n *\n * - the sink writes at `DEBUG`, so a session recorded at a lower traceability level has agent\n * calls whose usage was never written;\n * - a provider may answer without usage at all, which the engine marks per call\n * (`tokenUsageComplete`).\n *\n * A number presented as \"what this run cost\" that is quietly a floor is worse than no number, so\n * the caller is told how many calls contributed and whether any lacked usage. `callsWithoutUsage`\n * is the honest half of the answer.\n *\n * No price. Tokens are what the trace records; a currency amount would need a per-model rate card\n * this repository does not have, and inventing one would put a fabricated number where an operator\n * expects a measured one.\n */\n public async summarizeSessionUsage(sessionId: string): Promise<ExecutionTraceUsageSummary> {\n const events = await this.readEvents(sessionId);\n let promptTokens = 0;\n let completionTokens = 0;\n let totalTokens = 0;\n let agentCalls = 0;\n let callsWithoutUsage = 0;\n\n for (const event of events) {\n /* The sink types these `agent-call-<outcome>`; a failed call still spent its prompt. */\n if (!event.type.startsWith('agent-call')) continue;\n agentCalls += 1;\n const usage = (event.payload as { usage?: Record<string, unknown> } | undefined)?.usage;\n if (!usage || typeof usage !== 'object') { callsWithoutUsage += 1; continue; }\n const read = (key: string): number => (typeof usage[key] === 'number' ? usage[key] as number : 0);\n const prompt = read('promptTokens');\n const completion = read('completionTokens');\n /* `totalTokens` is the provider's own figure where it gave one; otherwise the two halves. */\n const total = read('totalTokens') || prompt + completion;\n if (prompt === 0 && completion === 0 && total === 0) { callsWithoutUsage += 1; continue; }\n promptTokens += prompt;\n completionTokens += completion;\n totalTokens += total;\n }\n\n return { sessionId, agentCalls, callsWithoutUsage, promptTokens, completionTokens, totalTokens };\n }\n\n /** One artifact's body, by session and step and file name. The bodies are why the trace is worth keeping. */\n public async readArtifact(sessionId: string, stepDirName: string, fileName: string): Promise<string> {\n return this.readTraceFile(sessionId, 'steps', stepDirName, fileName).catch(() => {\n throw new ExecutionTraceNotFoundError(`No artifact \"${fileName}\" in step \"${stepDirName}\" of session \"${sessionId}\".`);\n });\n }\n\n /**\n * The trace sessions one ACTOR TASK ran in, latest first (#1328).\n *\n * A coding run registers its trace session under an alias keyed by the durable task id\n * (`CompanionTraceAliasKind.ACTOR_TASK`), so the join from a task to what it recorded — its compiled\n * input prompt, the agent's whole output, its change set — already exists on disk. This reads it,\n * rather than stamping a second copy of the session id onto the task row: the alias is what the\n * writer maintains, including for a run that resumed into a second session.\n *\n * An alias nobody wrote is NOT an error — a task the coding lane never ran has none, which is the\n * ordinary case — so it answers the empty list. Every id returned is one this service can itself\n * read: an alias naming a session outside the sessions root, or one that no longer exists, is\n * dropped, so the alias file cannot widen what the trace boundary admits.\n */\n // assurance-control: WILDO.SECURITY.FAIL_CLOSED — the alias is confined to its own root and every session it names is re-checked against the trace boundary.\n public async listActorTaskSessionIds(taskId: string): Promise<readonly string[]> {\n const aliasesRoot = join(resolveAppLayout(this.companionContext.saasRoot).companionLogsHome, 'aliases', CompanionTraceAliasKind.ACTOR_TASK);\n let raw: string;\n try {\n const root = await realpath(aliasesRoot);\n const target = await realpath(join(root, `${sanitizeTraceName(taskId)}.json`));\n const offset = relative(root, target);\n if (isAbsolute(offset) || offset === '..' || offset.startsWith(`..${sep}`)) return [];\n raw = await readFile(target, 'utf8');\n } catch { return []; }\n let record: unknown;\n try { record = JSON.parse(raw); } catch { return []; }\n if (typeof record !== 'object' || record === null) return [];\n const bag = record as Record<string, unknown>;\n /*\n * A single-session alias serializes `latestSession` and `sessions[0]` as the string \"[Circular]\"\n * (they ARE `canonicalSession`), so only entries that are objects carry an id of their own.\n */\n const sessionIdOf = (value: unknown): string | null => (typeof value === 'object' && value !== null && typeof (value as Record<string, unknown>).sessionId === 'string'\n ? (value as Record<string, unknown>).sessionId as string\n : null);\n const named = [sessionIdOf(bag.latestSession), ...(Array.isArray(bag.sessions) ? [...bag.sessions].reverse().map(sessionIdOf) : []), sessionIdOf(bag.canonicalSession)]\n .filter((sessionId): sessionId is string => sessionId !== null);\n const readable: string[] = [];\n for (const sessionId of [...new Set(named)]) {\n if (await this.summarize(sessionId).catch(() => null)) readable.push(sessionId);\n }\n return readable;\n }\n\n /**\n * One boundary for every trace read, including files discovered through directory listings.\n * Names cannot select parent directories. Resolve symbolic links before checking confinement,\n * then read the resolved target. Links inside this application's sessions root are permitted;\n * this is an application-log boundary, not isolation between individual trace sessions.\n */\n // assurance-control: WILDO.SECURITY.FAIL_CLOSED — reject invalid names and unresolved or escaped trace targets before reading.\n private async resolveTracePath(...names: string[]): Promise<string> {\n if (names.some(name => !/^[A-Za-z0-9._-]+$/.test(name) || name === '.' || name === '..')) {\n throw new ExecutionTraceNotFoundError('Invalid trace path component.');\n }\n try {\n const root = await realpath(this.sessionsRoot());\n const target = await realpath(join(root, ...names));\n const offset = relative(root, target);\n if (isAbsolute(offset) || offset === '..' || offset.startsWith(`..${sep}`)) {\n throw new ExecutionTraceNotFoundError('Trace target is outside the application trace root.');\n }\n return target;\n } catch {\n throw new ExecutionTraceNotFoundError('Trace target is unavailable.');\n }\n }\n\n private async readTraceFile(...names: string[]): Promise<string> {\n return readFile(await this.resolveTracePath(...names), 'utf8');\n }\n\n /** Do not advertise escaped links, even when the caller only asks for a directory listing. */\n private async readTraceDirectory(...names: string[]): Promise<string[]> {\n try {\n const entries = await readdir(await this.resolveTracePath(...names));\n const checked = await Promise.all(entries.map(async name => {\n try { await this.resolveTracePath(...names, name); return name; }\n catch { return null; }\n }));\n return checked.filter((name): name is string => name !== null);\n } catch { return []; }\n }\n\n private sessionsRoot(): string {\n return join(resolveAppLayout(this.companionContext.saasRoot).companionLogsHome, 'sessions');\n }\n\n private async summarize(sessionId: string): Promise<ExecutionTraceSessionSummary | null> {\n const record = await this.readTraceFile(sessionId, 'session.json').then(\n (raw) => JSON.parse(raw) as Record<string, unknown>,\n () => null,\n );\n if (!record) return null;\n const events = await this.readEvents(sessionId);\n const steps = await this.readTraceDirectory(sessionId, 'steps');\n return {\n sessionId,\n startedAt: typeof record.startedAt === 'string' ? record.startedAt : '',\n label: typeof record.label === 'string' ? record.label : null,\n eventCount: events.length,\n stepCount: steps.length,\n };\n }\n\n private async readEvents(sessionId: string): Promise<readonly ExecutionTraceEvent[]> {\n const raw = await this.readTraceFile(sessionId, 'events.ndjson').catch(() => '');\n return raw\n .split('\\n')\n .filter((line) => line.trim().length > 0)\n .flatMap((line) => {\n try { return [JSON.parse(line) as ExecutionTraceEvent]; } catch { return []; }\n });\n }\n\n private async readSteps(sessionId: string): Promise<readonly ExecutionTraceStep[]> {\n const stepNames = await this.readTraceDirectory(sessionId, 'steps');\n return Promise.all(stepNames.sort().map(async (stepDirName) => ({\n stepDirName,\n artifacts: (await this.readTraceDirectory(sessionId, 'steps', stepDirName)).sort(),\n })));\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"execution-trace-read.companion.service.js","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/execution-trace-read.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAE5D,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAEjF,OAAO,EAAE,uBAAuB,EAAE,MAAM,uDAAuD,CAAC;AAChG,OAAO,EAAE,iBAAiB,EAAE,MAA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AAS,EAAE,eAAe,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;QACjF,OAAO,GAAG;aACP,KAAK,CAAC,IAAI,CAAC;aACX,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;aACxC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YAChB,IAAI,CAAC;gBAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAwB,CAAC,CAAC;YAAC,CAAC;YAAC,MAAM,CAAC;gBAAC,OAAO,EAAE,CAAC;YAAC,CAAC;QAChF,CAAC,CAAC,CAAC;IACP,CAAC;IAEO,KAAK,CAAC,SAAS,CAAC,SAAiB;QACvC,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QACpE,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,WAAW,EAAE,EAAE,CAAC,CAAC;YAC9D,WAAW;YACX,SAAS,EAAE,CAAC,MAAM,IAAI,CAAC,kBAAkB,CAAC,SAAS,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,IAAI,EAAE;SACnF,CAAC,CAAC,CAAC,CAAC;IACP,CAAC;CACF,CAAA;AAhPY,kCAAkC;IAD9C,UAAU,EAAE;IAGR,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;;GAFxC,kCAAkC,CAgP9C","sourcesContent":["import { readdir, readFile, realpath, stat } from 'node:fs/promises';\nimport { isAbsolute, join, relative, sep } from 'node:path';\n\nimport { inject, injectable } from 'inversify';\n\nimport { resolveAppLayout } from '@wildo-ai/platform-config-lib';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { CompanionTraceAliasKind } from '../../core/traceability/companion-traceability.models';\nimport { sanitizeTraceName } from '../../core/traceability/companion-traceability.service';\n\nexport interface ExecutionTraceSessionSummary {\n readonly sessionId: string;\n readonly startedAt: string;\n readonly label: string | null;\n readonly eventCount: number;\n readonly stepCount: number;\n}\n\nexport interface ExecutionTraceEvent {\n readonly timestamp: string;\n readonly type: string;\n readonly summary: string;\n readonly stepId?: string;\n readonly payload?: unknown;\n}\n\n/**\n * What a session spent, in TOKENS. Never a currency amount — see `summarizeSessionUsage` for why.\n */\nexport interface ExecutionTraceUsageSummary {\n readonly sessionId: string;\n /** Agent calls found in the session's events. */\n readonly agentCalls: number;\n /** How many of those carried no usage — the reason a total can be a floor rather than the figure. */\n readonly callsWithoutUsage: number;\n readonly promptTokens: number;\n readonly completionTokens: number;\n readonly totalTokens: number;\n}\n\nexport interface ExecutionTraceStep {\n readonly stepDirName: string;\n /** File names only — a listing, not the bodies. One answer artifact can be tens of kilobytes. */\n readonly artifacts: readonly string[];\n}\n\nexport interface ExecutionTraceSession extends ExecutionTraceSessionSummary {\n readonly events: readonly ExecutionTraceEvent[];\n readonly steps: readonly ExecutionTraceStep[];\n}\n\nexport class ExecutionTraceNotFoundError extends Error {}\n\n/**\n * Read what a run recorded — the half that makes a trace a trace.\n *\n * Two write-only journal streams were deleted on 2026-08-24 for having no reader. The events this serves\n * are written by the same kind of code, and the difference is exactly this service: it shipped in the same\n * change as the writer, so \"a person can read it\" was true on day one rather than promised.\n *\n * It is READ-ONLY and takes no session identity from the caller beyond the id it is asked for — resolved\n * against the companion's own logs home, and refusing any id that is not a plain session directory name, so\n * a request cannot walk out of the tree it is allowed to read.\n */\n@injectable()\nexport class ExecutionTraceReadCompanionService {\n public constructor(\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n ) {}\n\n public async listSessions(limit = 50): Promise<readonly ExecutionTraceSessionSummary[]> {\n const names = await this.readTraceDirectory();\n // Session directory names are `dev-<ISO-ish timestamp>-<suffix>`, so lexical DESC is chronological.\n const newestFirst = names.filter((name) => name.startsWith('dev-')).sort().reverse().slice(0, limit);\n const summaries = await Promise.all(newestFirst.map((name) => this.summarize(name)));\n return summaries.filter((entry): entry is ExecutionTraceSessionSummary => entry !== null);\n }\n\n /**\n * Every confined session directory name, unbounded and without per-session summary reads.\n * Directory entries are resolved to enforce the same boundary as addressed reads.\n *\n * Exists for JOIN resolution (a write record's runId → its session by longest-prefix match):\n * bounding that lookup with the display limit made records older than the newest N silently\n * lose their trace link, which is a correctness question the display bound has no business\n * answering (completion-review finding 11a).\n */\n public async listSessionIds(): Promise<readonly string[]> {\n const names = await this.readTraceDirectory();\n return names.filter((name) => name.startsWith('dev-'));\n }\n\n /**\n * ONE session's summary, addressed — for the read of a session the bounded listing no longer holds.\n *\n * `listSessions` is display-bounded to the newest N, and a development companion records a session\n * per request: thousands a day. A run's trace therefore leaves the listing within hours while its\n * write record still links to it. `null` when the id names no session; the id is confined to the\n * sessions root by the same path resolution every addressed read uses.\n */\n public async summarizeSession(sessionId: string): Promise<ExecutionTraceSessionSummary | null> {\n if (!sessionId.startsWith('dev-')) return null;\n return this.summarize(sessionId).catch(() => null);\n }\n\n public async readSession(sessionId: string): Promise<ExecutionTraceSession> {\n const sessionDir = await this.resolveTracePath(sessionId);\n const exists = await stat(sessionDir).then((entry) => entry.isDirectory(), () => false);\n if (!exists) throw new ExecutionTraceNotFoundError(`No trace session \"${sessionId}\".`);\n\n const summary = await this.summarize(sessionId);\n if (!summary) throw new ExecutionTraceNotFoundError(`Trace session \"${sessionId}\" has no readable session record.`);\n return { ...summary, events: await this.readEvents(sessionId), steps: await this.readSteps(sessionId) };\n }\n\n /**\n * What one session SPENT — summed from the agent-call events already on disk (#1274).\n *\n * ## The issue said nothing records this. Something does.\n *\n * `#1274` reported \"no cost, at any layer… nothing in the companion or the creation runtime records\n * what a run spent. A sweep of both trees returns only `maxOutputTokens`.\" That sweep searched\n * SOURCE for a cost field and missed the producer, which is not a field but a SINK:\n * `CompanionAgentCallTraceSink.recordAgentCall` writes `trace.context.usage` into this session's\n * `events.ndjson` on every agent call. Measured on Wonder CRM before writing this: 2,887 event\n * files carry a `usage` object, with real `promptTokens` / `completionTokens` / `totalTokens`.\n *\n * So this is a DERIVATION over data that already exists, not a new producer — which is why it is a\n * read on the trace service rather than a change to how runs execute.\n *\n * ## Why `complete` is carried rather than assumed\n *\n * Two things make a total an understatement, and both are silent:\n *\n * - the sink writes at `DEBUG`, so a session recorded at a lower traceability level has agent\n * calls whose usage was never written;\n * - a provider may answer without usage at all, which the engine marks per call\n * (`tokenUsageComplete`).\n *\n * A number presented as \"what this run cost\" that is quietly a floor is worse than no number, so\n * the caller is told how many calls contributed and whether any lacked usage. `callsWithoutUsage`\n * is the honest half of the answer.\n *\n * No price. Tokens are what the trace records; a currency amount would need a per-model rate card\n * this repository does not have, and inventing one would put a fabricated number where an operator\n * expects a measured one.\n */\n public async summarizeSessionUsage(sessionId: string): Promise<ExecutionTraceUsageSummary> {\n const events = await this.readEvents(sessionId);\n let promptTokens = 0;\n let completionTokens = 0;\n let totalTokens = 0;\n let agentCalls = 0;\n let callsWithoutUsage = 0;\n\n for (const event of events) {\n /* The sink types these `agent-call-<outcome>`; a failed call still spent its prompt. */\n if (!event.type.startsWith('agent-call')) continue;\n agentCalls += 1;\n const usage = (event.payload as { usage?: Record<string, unknown> } | undefined)?.usage;\n if (!usage || typeof usage !== 'object') { callsWithoutUsage += 1; continue; }\n const read = (key: string): number => (typeof usage[key] === 'number' ? usage[key] as number : 0);\n const prompt = read('promptTokens');\n const completion = read('completionTokens');\n /* `totalTokens` is the provider's own figure where it gave one; otherwise the two halves. */\n const total = read('totalTokens') || prompt + completion;\n if (prompt === 0 && completion === 0 && total === 0) { callsWithoutUsage += 1; continue; }\n promptTokens += prompt;\n completionTokens += completion;\n totalTokens += total;\n }\n\n return { sessionId, agentCalls, callsWithoutUsage, promptTokens, completionTokens, totalTokens };\n }\n\n /** One artifact's body, by session and step and file name. The bodies are why the trace is worth keeping. */\n public async readArtifact(sessionId: string, stepDirName: string, fileName: string): Promise<string> {\n return this.readTraceFile(sessionId, 'steps', stepDirName, fileName).catch(() => {\n throw new ExecutionTraceNotFoundError(`No artifact \"${fileName}\" in step \"${stepDirName}\" of session \"${sessionId}\".`);\n });\n }\n\n /**\n * The trace sessions one ACTOR TASK ran in, latest first (#1328).\n *\n * A coding run registers its trace session under an alias keyed by the durable task id\n * (`CompanionTraceAliasKind.ACTOR_TASK`), so the join from a task to what it recorded — its compiled\n * input prompt, the agent's whole output, its change set — already exists on disk. This reads it,\n * rather than stamping a second copy of the session id onto the task row: the alias is what the\n * writer maintains, including for a run that resumed into a second session.\n *\n * An alias nobody wrote is NOT an error — a task the coding lane never ran has none, which is the\n * ordinary case — so it answers the empty list. Every id returned is one this service can itself\n * read: an alias naming a session outside the sessions root, or one that no longer exists, is\n * dropped, so the alias file cannot widen what the trace boundary admits.\n */\n // assurance-control: WILDO.SECURITY.FAIL_CLOSED — the alias is confined to its own root and every session it names is re-checked against the trace boundary.\n public async listActorTaskSessionIds(taskId: string): Promise<readonly string[]> {\n const aliasesRoot = join(resolveAppLayout(this.companionContext.saasRoot).companionLogsHome, 'aliases', CompanionTraceAliasKind.ACTOR_TASK);\n let raw: string;\n try {\n const root = await realpath(aliasesRoot);\n const target = await realpath(join(root, `${sanitizeTraceName(taskId)}.json`));\n const offset = relative(root, target);\n if (isAbsolute(offset) || offset === '..' || offset.startsWith(`..${sep}`)) return [];\n raw = await readFile(target, 'utf8');\n } catch { return []; }\n let record: unknown;\n try { record = JSON.parse(raw); } catch { return []; }\n if (typeof record !== 'object' || record === null) return [];\n const bag = record as Record<string, unknown>;\n /*\n * A single-session alias serializes `latestSession` and `sessions[0]` as the string \"[Circular]\"\n * (they ARE `canonicalSession`), so only entries that are objects carry an id of their own.\n */\n const sessionIdOf = (value: unknown): string | null => (typeof value === 'object' && value !== null && typeof (value as Record<string, unknown>).sessionId === 'string'\n ? (value as Record<string, unknown>).sessionId as string\n : null);\n const named = [sessionIdOf(bag.latestSession), ...(Array.isArray(bag.sessions) ? [...bag.sessions].reverse().map(sessionIdOf) : []), sessionIdOf(bag.canonicalSession)]\n .filter((sessionId): sessionId is string => sessionId !== null);\n const readable: string[] = [];\n for (const sessionId of [...new Set(named)]) {\n if (await this.summarize(sessionId).catch(() => null)) readable.push(sessionId);\n }\n return readable;\n }\n\n /**\n * One boundary for every trace read, including files discovered through directory listings.\n * Names cannot select parent directories. Resolve symbolic links before checking confinement,\n * then read the resolved target. Links inside this application's sessions root are permitted;\n * this is an application-log boundary, not isolation between individual trace sessions.\n */\n // assurance-control: WILDO.SECURITY.FAIL_CLOSED — reject invalid names and unresolved or escaped trace targets before reading.\n private async resolveTracePath(...names: string[]): Promise<string> {\n if (names.some(name => !/^[A-Za-z0-9._-]+$/.test(name) || name === '.' || name === '..')) {\n throw new ExecutionTraceNotFoundError('Invalid trace path component.');\n }\n try {\n const root = await realpath(this.sessionsRoot());\n const target = await realpath(join(root, ...names));\n const offset = relative(root, target);\n if (isAbsolute(offset) || offset === '..' || offset.startsWith(`..${sep}`)) {\n throw new ExecutionTraceNotFoundError('Trace target is outside the application trace root.');\n }\n return target;\n } catch {\n throw new ExecutionTraceNotFoundError('Trace target is unavailable.');\n }\n }\n\n private async readTraceFile(...names: string[]): Promise<string> {\n return readFile(await this.resolveTracePath(...names), 'utf8');\n }\n\n /** Do not advertise escaped links, even when the caller only asks for a directory listing. */\n private async readTraceDirectory(...names: string[]): Promise<string[]> {\n try {\n const entries = await readdir(await this.resolveTracePath(...names));\n const checked = await Promise.all(entries.map(async name => {\n try { await this.resolveTracePath(...names, name); return name; }\n catch { return null; }\n }));\n return checked.filter((name): name is string => name !== null);\n } catch { return []; }\n }\n\n private sessionsRoot(): string {\n return join(resolveAppLayout(this.companionContext.saasRoot).companionLogsHome, 'sessions');\n }\n\n private async summarize(sessionId: string): Promise<ExecutionTraceSessionSummary | null> {\n const record = await this.readTraceFile(sessionId, 'session.json').then(\n (raw) => JSON.parse(raw) as Record<string, unknown>,\n () => null,\n );\n if (!record) return null;\n const events = await this.readEvents(sessionId);\n const steps = await this.readTraceDirectory(sessionId, 'steps');\n return {\n sessionId,\n startedAt: typeof record.startedAt === 'string' ? record.startedAt : '',\n label: typeof record.label === 'string' ? record.label : null,\n eventCount: events.length,\n stepCount: steps.length,\n };\n }\n\n private async readEvents(sessionId: string): Promise<readonly ExecutionTraceEvent[]> {\n const raw = await this.readTraceFile(sessionId, 'events.ndjson').catch(() => '');\n return raw\n .split('\\n')\n .filter((line) => line.trim().length > 0)\n .flatMap((line) => {\n try { return [JSON.parse(line) as ExecutionTraceEvent]; } catch { return []; }\n });\n }\n\n private async readSteps(sessionId: string): Promise<readonly ExecutionTraceStep[]> {\n const stepNames = await this.readTraceDirectory(sessionId, 'steps');\n return Promise.all(stepNames.sort().map(async (stepDirName) => ({\n stepDirName,\n artifacts: (await this.readTraceDirectory(sessionId, 'steps', stepDirName)).sort(),\n })));\n }\n}\n"]}
|
package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-authentication-brief.companion.utils.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"external-authentication-brief.companion.utils.d.ts","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/external-authentication-brief.companion.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA0E,KAAK,kBAAkB,EAAE,KAAK,mBAAmB,EAAE,KAAK,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AACzM,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAEjF,0GAA0G;AAC1G,wBAAgB,kCAAkC,CAAC,MAAM,EAAE;IACzD,IAAI,CAAC,EAAE;QAAE,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;QAAC,oBAAoB,CAAC,EAAE,UAAU,EAAE,CAAA;KAAE,CAAC;IAC1F,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,IAAI,CAAC,EAAE,IAAI,CAAC,kBAAkB,EAAE,oBAAoB,GAAG,WAAW,CAAC,CAAA;KAAE,CAAC,CAAC;IACpG,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,aAAa,CAAC,EAAE,oBAAoB,CAAA;KAAE,CAAC,CAAC;CAC9E,GAAG,SAAS,EAAE,SAAS,EAAE,SAAS,IAAI,CAAC,2BAA2B,EAAE,KAAK,GAAG,yBAAyB,CAAC,EAAE,GAAG,MAAM,EAAE,CAwBnH"}
|
package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-authentication-brief.companion.utils.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"external-authentication-brief.companion.utils.js","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/external-authentication-brief.companion.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,4BAA4B,EAAE,qBAAqB,EAAE,iBAAiB,EAAgF,MAAM,uBAAuB,CAAC;AAGzM,0GAA0G;AAC1G,MAAM,UAAU,kCAAkC,CAAC,MAItC,EAAE,SAA0F;IACvG,MAAM,OAAO,GAAG,gEAAgE,CAAC;IACjF,IAAI,CAAC,MAAM,EAAE,SAAS;QAAE,OAAO,CAAC,OAAO,EAAE,uJAAuJ,CAAC,CAAC;IAClM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAE,EAAE;QAC1E,MAAM,OAAO,GAAG,iBAAiB,CAAC,KAAK,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;QAClE,MAAM,MAAM,GAAG,qBAAqB,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EA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Q,CAAC,uBAAuB,EAAE,CAAC,CAAC,CAAC;QACpK,wMAAwM;KACzM,CAAC;AACJ,CAAC","sourcesContent":["import { AuthMethod, ExternalAssuranceEnforcement, MfaPolicyConfigSchema, getEnabledMethods, type UserTypeAuthPolicy, type OrgAuthMethodPolicy, type OrgTypeAuthOverrides } from '@wildo-ai/saas-models';\nimport type { ProviderSpecificationConfig } from '@wildo-ai/saas-specifications';\n\n/** Product facts for drafting terms. Configuration availability never proves an active IdP connection. */\nexport function composeExternalAuthenticationBrief(config: {\n auth?: { orgAuthMethodPolicy?: OrgAuthMethodPolicy; expandableOrgMethods?: AuthMethod[] };\n userTypes?: Record<string, { auth?: Pick<UserTypeAuthPolicy, 'authMethodsEnabled' | 'mfaPolicy'> }>;\n organizationTypes?: Record<string, { authOverrides?: OrgTypeAuthOverrides }>;\n} | undefined, providers: readonly Pick<ProviderSpecificationConfig, 'ref' | 'authenticationAssurance'>[]): string[] {\n const heading = '## External sign-in assurance (declared authentication policy)';\n if (!config?.userTypes) return [heading, 'UNREADABLE: user-type authentication configuration is unavailable. Do not infer that external sign-in is absent or draft a definitive assurance fact.'];\n const policies = Object.entries(config.userTypes).map(([userType, entry]) => {\n const methods = getEnabledMethods(entry.auth?.authMethodsEnabled);\n const policy = MfaPolicyConfigSchema.parse(entry.auth?.mfaPolicy ?? {});\n return { userType, socialLogin: methods.has(AuthMethod.EXTERNAL_OAUTH2), enterpriseOidc: methods.has(AuthMethod.ORG_OPENID_CONNECT),\n requireMFA: policy.requireMFA, requireStrongMFA: policy.requireStrongMFA, acceptableMFAMethods: policy.acceptableMFAMethods,\n missingAssurance: policy.externalAssuranceEnforcement ?? ExternalAssuranceEnforcement.WARN };\n });\n const strictOrganizations = Object.entries(config.organizationTypes ?? {})\n .filter(([, definition]) => definition.authOverrides?.mfaPolicy?.externalAssuranceEnforcement === ExternalAssuranceEnforcement.STRICT).map(([ref]) => ref);\n return [heading,\n 'Source: backend companion exports userTypes.auth and organizationTypes.authOverrides. These declarations describe supported behavior, not proof of an active tenant IdP or MFA in a particular login.',\n JSON.stringify({ policies, strictOrganizationTypes: strictOrganizations, organizationMethodPolicy: config.auth, organizationOverrides: config.organizationTypes }),\n 'Derive document-fact:external-sign-in-assurance from these policies. These are base policies: organization overrides may enable or restrict methods under organizationMethodPolicy. Do not infer external-login absence from a user-type base policy alone; resolve applicable overrides and active connection configuration before making an absence claim.',\n 'Where enterprise OAuth2/OIDC SSO is configured, the customer administers its identity provider and enforces authentication/MFA there. Wildo accepts that delegated assurance, not an assertion that it observed individual factors.',\n 'Wildo retains callback/token validation, identity binding, local account/access checks and session admission. Delegation does not waive these responsibilities.',\n 'For social login, missing/insufficient required MFA warns by default; strict policy refuses session issuance. Organization restrictions can require strict mode and cannot weaken it. Named/strong local methods are not inferred from generic provider MFA.',\n 'A strict refusal can occur after authenticated identity provisioning/linking; it never issues a local authenticated session. Native authentication and SAML have separate policies; do not describe this OAuth2 rule as a universal login rule.',\n 'Provider catalogue research below is capability context, not evidence that every listed provider is enabled or that a login used MFA:',\n JSON.stringify(providers.filter(provider => provider.authenticationAssurance).map(provider => ({ ref: provider.ref, assurance: provider.authenticationAssurance }))),\n 'State the applicable responsibility split in service terms; preserve qualified legal review of liability. Do not invent certification, universal social-provider MFA or active enterprise connections.',\n ];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"foundation-executor.companion.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"foundation-executor.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/foundation-executor.companion.service.ts"],"names":[],"mappings":"AAMA,OAAO,EAEL,sBAAsB,EAIvB,MAAM,oDAAoD,CAAC;AAE5D,OAAO,KAAK,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEzF,OAAO,EAA0B,KAAK,yBAAyB,EAAE,MAAM,wDAAwD,CAAC;AAChI,OAAO,EAA0G,KAAK,gBAAgB,EAA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2B;YAqBrB,qBAAqB;IAcnC,OAAO,CAAC,eAAe;IA6CvB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,wBAAwB;IAWhC;;;OAGG;IACH,OAAO,CAAC,eAAe;IAKvB;;;;;OAKG;IACH,OAAO,CAAC,yBAAyB;CAUlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"foundation-executor.companion.service.js","sourceRoot":"","sources":["../../../../src/meta-workflows/services/foundation-executor.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAEnE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EACL,+BAA+B,EAC/B,sBAAsB,EACtB,yBAAyB,EACzB,iCAAiC,GAElC,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAErF,OAAO,EAAE,2BAA2B,EAAE,MAAM,oDAAoD,CAAC;AACjG,OAAO,EAAE,sBAAsB,EAAkC,MAAM,wDAAwD,CAAC;AAChI,OAAO,EAAE,eAAe,EAAE,8BAA8B,EAAE,kBAAkB,EAAE,iCAAiC,EAAyB,MAAM,uBAAuB,CAAC;AACtK,OAAO,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAE7E,OAAO,EACL,kDAAkD,EAClD,kBAAkB,EAClB,4BAA4B,EAC5B,iCAAiC,EACjC,+BAA+B,EAC/B,wBAAwB,EACxB,sBAAsB,EACtB,kCAAkC,EAClC,uBAAuB,EACvB,uBAAuB,EACvB,mCAAmC,EACnC,0BAA0B,EAC1B,2BAA2B,EAO3B,kCAAkC,EAClC,kCA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C,+CAA+C,YAAY,qCAAqC,CAAC,CAAC;IACvI,CAAC;CACF,CAAA;AA9cY,kCAAkC;IAD9C,UAAU,EAAE;IAKR,WAAA,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;IAChD,WAAA,MAAM,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAA;;GANnC,kCAAkC,CA8c9C","sourcesContent":["import { existsSync, readFileSync } from 'node:fs';\nimport { join } from 'node:path';\n\nimport { loadInfraEnvConfig } from '@wildo-ai/platform-config-lib';\n\nimport { inject, injectable } from 'inversify';\nimport {\n ApplicationLineDeclarationState,\n CompositionScenarioRef,\n DomainPlanOutputSetSchema,\n resolveApplicationLineDeclaration,\n type ApplicationCreatorInputs,\n} from '@wildo-ai/saas-specifications/application-creation';\nimport { SAAS_SERVICE_TYPES, describeCaughtError } from '@wildo-ai/saas-backend-lib';\nimport type { AppConfigurationService, LoggerService } from '@wildo-ai/saas-backend-lib';\nimport { getCompanionServedLanguages } from '../../core/config/primary-language.companion.utils';\nimport { propagateAcceptedBrand, type CompanionBrandPropagation } from '../../brand/services/brand-propagation.companion.utils';\nimport { AppFrontendType, EngineCapabilityResolutionMode, ProviderOriginKind, getEngineCapabilityResolutionMode, type EngineCapability } from '@wildo-ai/saas-models';\nimport { engineProviderSpecifications } from '@wildo-ai/saas-specifications';\n\nimport {\n APPLICATION_SPECIFICATION_SEMANTIC_SCHEMA_BINDINGS,\n addProviderToScope,\n applyCompositionScenarioPlan,\n createCompositionTemplateRenderer,\n deriveFoundationCompositionPlan,\n creatorProviderAnswerFor,\n FoundationPrimaryScope,\n listCompositionScenarioDirectories,\n loadCompositionScenario,\n planCompositionScenario,\n resolveCompositionScenarioVariables,\n setEngineCapabilityEnabled,\n setProviderSelectionPrimary,\n type CompositionTemplateRenderer,\n type FoundationCapabilityBasis,\n type FoundationBackgroundExecutionOutcome,\n type FoundationCompositionScenarioOutcome,\n type FoundationHostFacts,\n type FoundationScenarioInvocation,\n listSaasConfigOrganizationTypeRefs,\n setOrganizationTypeOwnsApplication,\n} from '@wildo-ai/application-creation-runtime';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { loadSpecificationsCompanionExports } from '../../core/context/companion-package-loaders.companion';\n\n/**\n * The foundation playbook's EXECUTOR — the domain-plan → compose bridge, run instead of typed by\n * hand (J-1 stall F: a human read the approved domain plan, decided the `wildo compose` calls and\n * the ORGANIZATIONS flip, derived every scenario variable, and ran them one by one).\n *\n * `bottom_up.foundation` declares `outputs: []` and `executor: \"composite\"`: it lands no\n * specification family — its deliverable is the APPLICATION (config + composed module slices).\n * The generation route therefore cannot run it (J-1 stall E); this service is what does.\n *\n * The derivation is PURE (`deriveFoundationCompositionPlan`, tested against a literal domain\n * plan); this service supplies the host facts (app root, framework root, the shared-lib package\n * name) and executes: the capability mutation through the config-mutation service, and each\n * scenario through the same engine + THE SAME renderer `wildo compose` uses — identical scenario\n * bytes produce identical files regardless of which door applied them.\n *\n * Idempotent by the engine's own contract: a re-run plans byte-identical targets as SKIPS; a\n * target that exists with DIFFERENT bytes is a collision and the whole scenario REFUSES unapplied\n * (ownership transferred to the application; git is the undo). Nothing here commits — GUIDED\n * acceptance stays a human `git commit`.\n */\n\nexport interface FoundationScenarioExecutionRecord {\n readonly scenarioRef: string;\n /** The invocation's addressing variables (moduleId, resourceDir) — enough to identify the unit. */\n readonly subject: string;\n readonly writes: number;\n readonly skippedWrites: number;\n readonly editsApplied: number;\n readonly skippedEdits: number;\n /**\n * DRY-RUN only: this invocation could not be PLANNED because it edits files a preceding\n * invocation of the same run would create (an add-resource whose module is composed by this\n * run's own add-module). A real run applies sequentially and never hits this; a dry run reports\n * the dependency honestly instead of failing on it.\n */\n readonly deferredBehindModuleComposition?: true;\n /**\n * A scenario whose witness directory already exists — a package (the website, a minion), a module or\n * a resource, composed by an earlier run or by the build since — so this run left it alone. Applying it would either skip every\n * byte-identical file (a no-op reported as writes) or refuse on the first authored one, and neither is\n * what a re-run means: the composition says the application HAS a website, and it does.\n */\n readonly alreadyComposed?: true;\n}\n\n/** The composition scenarios that create a surface serving the brand's icons and social image. */\nconst SURFACES_RECEIVING_THE_BRAND: ReadonlySet<string> = new Set<string>([\n CompositionScenarioRef.ADD_WEBSITE,\n CompositionScenarioRef.ADD_TECHNICAL_DOC,\n]);\n\n/** Whether this run composed — actually wrote, not found already composed — a surface that serves the brand. */\nexport function composedASurfaceReceivingTheBrand(scenarios: readonly Pick<FoundationScenarioExecutionRecord, 'scenarioRef' | 'writes' | 'alreadyComposed'>[]): boolean {\n return scenarios.some((record) => SURFACES_RECEIVING_THE_BRAND.has(record.scenarioRef) && record.alreadyComposed !== true && record.writes > 0);\n}\n\nexport interface FoundationExecutionResult {\n readonly playbookRef: 'bottom_up.foundation';\n readonly primaryScope: FoundationPrimaryScope;\n readonly engineCapabilityChanges: ReadonlyArray<{\n readonly capability: string;\n /** WHICH declaration decided it — so the record says why, not merely what (#1272). */\n readonly basis: FoundationCapabilityBasis;\n readonly changed: boolean;\n readonly summary: string;\n /**\n * Set when this run also DECLARED a provider so the capability could be enabled at all.\n *\n * Carried loudly rather than folded into the summary, because a credential-free provider is a\n * DEVELOPMENT SUBSTITUTE by construction — `email-preview` renders mail to a local surface and\n * its own module says to \"wire it as the `EMAIL_TRANSACTIONAL` primary in local environments…\n * with no live API key and no mail actually leaving the machine\". The application is configured\n * and working; replacing it is a deployment decision somebody still owes, and a record that did\n * not say so would let it ship unnoticed.\n *\n * spec-cite: N/A — INTERNAL. The quotation is this repository's own\n * `engine/external-connectors-private/src/providers/email-preview/email-preview.backend.module.ts`\n * module JSDoc, not an external standard. An earlier revision quoted \"never select it as primary\n * in an environment that serves real users\", which appears in no specification anywhere — a\n * paraphrase wearing quotation marks, the exact shape\n * `.claude/rules/external-specification-citations.md` exists to retire.\n */\n readonly servedByDeclaredProvider?: {\n readonly providerRef: string;\n readonly developmentSubstitute: true;\n readonly replaceBeforeRealUsers: string;\n };\n /**\n * The provider the CREATOR chose in the foundation interview (#1488), declared, selected and enabled\n * by this run. `credentialsOwed` names the env vars the provider requires and this process cannot\n * supply: the application boots (the floor reads declaration + selection), and the provider's own\n * calls fail until an operator sets them. Mark, never gate.\n */\n readonly servedByCreatorSelectedProvider?: {\n readonly providerRef: string;\n readonly credentialsOwed: ReadonlyArray<{ readonly envVarName: string; readonly description: string }>;\n readonly remedy: string;\n };\n }>;\n /**\n * Capabilities the application NEEDS and this run deliberately did not enable, because the engine\n * refuses to boot with them on and no provider resolving, and the journey cannot declare one.\n *\n * Reported rather than silently dropped: a derivation whose result nobody can see is a derivation\n * nobody acts on, and the remedy — declare a provider for it — is a sentence an operator can act\n * on today. `application-creation-directive.md`: mark, never gate.\n */\n readonly engineCapabilitiesOwedAProvider: ReadonlyArray<{\n readonly capability: string;\n readonly basis: FoundationCapabilityBasis;\n readonly remedy: string;\n }>;\n readonly scenarios: readonly FoundationScenarioExecutionRecord[];\n /** The accepted brand mark copied into a surface this run composed (a website, a portal). Absent when none was composed. */\n readonly brandPropagation?: CompanionBrandPropagation;\n /**\n * Whether this application is owned by one organization, and what this run declared for it (#1605).\n * `owed` is set when the line requires an owner and the configuration does not name one organization\n * type unambiguously: marked, never gated, since choosing among several types is authoring work.\n */\n readonly applicationOwnership?: {\n readonly required: boolean;\n readonly basis: string;\n readonly organizationTypeRef?: string;\n readonly changed?: boolean;\n readonly summary?: string;\n readonly owed?: string;\n };\n /**\n * What the capability composition decided, scenario by scenario (#1491): every scenario applied and every\n * scenario declined, with the declaration each came from. Empty when no composition has landed yet.\n */\n readonly compositionScenarios: readonly FoundationCompositionScenarioOutcome[];\n /**\n * What the run read about workers and minions (#1544): composed, declared none, or had no readable\n * integration plan to read. The last two used to be one silence.\n */\n readonly backgroundExecution: FoundationBackgroundExecutionOutcome;\n /** The host facts the optional-package scenarios were composed with, and where the public domain came from. */\n readonly hostFacts?: FoundationHostFacts & { readonly publicDomainSource: string };\n}\n\n/**\n * An engine provider this run may declare on the application's behalf, without asking anyone.\n *\n * ## The criterion is an EMPTY SECRETS CONTRACT, and that is the whole of it\n *\n * A capability in `ENGINE_CAPABILITIES_REQUIRING_A_PROVIDER_WHEN_ENABLED` cannot be enabled without\n * a provider — the backend refuses to boot. Choosing one is usually a commercial decision nobody in\n * this process is entitled to take: which payment processor, which mail vendor, on whose account.\n *\n * But a provider that declares NO SECRETS needs no account, so choosing it commits the operator to\n * nothing they can be billed or bound by. Measured across the whole engine catalogue (2026-09-17),\n * exactly two providers qualify, and only one of them serves a boot-floor capability:\n *\n * | provider | secrets | serves |\n * |---|---|---|\n * | `email-preview` | none | EMAIL_TRANSACTIONAL |\n * | `opencode` | none | AI_CODING_AGENT — not in the boot floor, and not derived by the journey |\n *\n * `stripe`, `twilio`, `resend` and every AI vendor carry a secrets contract, so BILLING and SMS stay\n * OWED. That asymmetry is the point rather than a limitation: the journey configures what costs\n * nothing to configure and leaves the commercial choices to the human who owns them.\n *\n * ## It is DERIVED from the specifications, never listed here\n *\n * A hand-kept list of another catalogue's contents is the shape that rots — the same argument the\n * build task's workspace scope makes. A provider that drops its secrets contract tomorrow becomes\n * eligible the day it does, and one that grows a secrets contract stops being, with no edit here.\n */\nexport interface SelfConfiguringProviderChoice {\n readonly providerRef: string;\n readonly providerCapabilities: readonly string[];\n readonly protocols: readonly string[];\n}\n\nexport function resolveCredentialFreeEngineProvider(capability: EngineCapability): SelfConfiguringProviderChoice | undefined {\n const candidates = Object.values(engineProviderSpecifications).filter((specification) => (\n specification.engineCapabilities.includes(capability)\n && specification.secretsContract.length === 0\n && specification.origin.kind === ProviderOriginKind.ENGINE\n // A backend-scope declaration is what the boot floor reads; a frontend-only module cannot serve it.\n && specification.facets.includes('backend')\n ));\n /*\n * Exactly one, or none. Two credential-free providers for one capability would be a CHOICE, and a\n * choice is the thing this function exists not to make on somebody's behalf — so it declines and\n * the capability stays owed, which is the outcome a human can still resolve.\n */\n if (candidates.length !== 1) return undefined;\n const chosen = candidates[0]!;\n return {\n providerRef: chosen.ref,\n providerCapabilities: chosen.providerCapabilities,\n protocols: chosen.protocols,\n };\n}\n\n/** Refusals a creator can act on (missing scope answer, unwired domain plan, collisions). */\n/**\n * The engine providers a creator may be OFFERED for a capability: ENGINE-origin, backend-scoped, serving it\n * (#1488). This is the options vocabulary of the foundation interview's provider questions, and the test\n * beside this file pins the AUTHORED options to it, so a vendor added to the catalogue is offered by being\n * added rather than by somebody remembering the question.\n */\nexport function listEngineProviderRefsServing(capability: EngineCapability): readonly string[] {\n return Object.values(engineProviderSpecifications)\n .filter((specification) => (\n specification.engineCapabilities.includes(capability)\n && specification.origin.kind === ProviderOriginKind.ENGINE\n && specification.facets.includes('backend')\n ))\n .map((specification) => specification.ref)\n .sort();\n}\n\nexport type CreatorSelectedProviderResolution =\n | {\n readonly kind: 'selected';\n readonly providerRef: string;\n readonly providerCapabilities: readonly string[];\n readonly protocols: readonly string[];\n /** The provider's REQUIRED secrets, by env var — what the operator still owes before it answers. */\n readonly credentialsOwed: ReadonlyArray<{ readonly envVarName: string; readonly description: string }>;\n }\n | {\n /** The creator named something the catalogue does not offer for this capability. Reported, never guessed around. */\n readonly kind: 'refused';\n readonly reason: string;\n };\n\n/**\n * The creator's provider choice for a capability, read off the foundation interview (#1488).\n *\n * `undefined` when the question was not answered or answered `none` (`PROVIDER_CHOICE_NONE`) — the honest\n * value: the interview requires an answer to every question, so \"decide later\" is an option, and it leaves\n * the capability OWED exactly as before (#1272). An answer outside the offered set is `refused` with the set\n * named. **That arm is a floor for DIRECT callers, not a run path**: through `runPlaybook` the interview\n * validator (`validateElicitationAnswer`) refuses an out-of-options answer before the executor is called, and\n * the compiled options are pinned to this very derivation, so a run never reaches it. Secrets are not checked\n * here: the boot floor reads declaration and selection, so the chosen provider can be declared and the\n * capability enabled while the credentials stay OWED.\n */\nexport function resolveCreatorSelectedEngineProvider(\n capability: EngineCapability,\n answers: ReadonlyArray<{ readonly questionRef: string; readonly answer: string }>,\n): CreatorSelectedProviderResolution | undefined {\n const answer = creatorProviderAnswerFor(capability, answers);\n if (answer === undefined) return undefined;\n const offered = listEngineProviderRefsServing(capability);\n const chosen = Object.values(engineProviderSpecifications).find((specification) => specification.ref === answer);\n if (!chosen || !offered.includes(answer)) {\n return {\n kind: 'refused',\n reason: `The interview answer \"${answer}\" names no engine provider serving ${capability}. Offered: ${offered.join(', ') || '(none)'}.`,\n };\n }\n return {\n kind: 'selected',\n providerRef: chosen.ref,\n providerCapabilities: chosen.providerCapabilities,\n protocols: chosen.protocols,\n credentialsOwed: chosen.secretsContract\n .filter((secret) => secret.required)\n .map((secret) => ({ envVarName: secret.envVarName, description: secret.description })),\n };\n}\n\nexport class FoundationExecutionError extends Error {}\n\n/**\n * The directory whose presence says a scenario has ALREADY been composed — its WITNESS. Total over the\n * vocabulary; `null` means the scenario has no directory of its own (a custom operation, a provider block,\n * a locale) and is never skipped on that ground.\n *\n * Modules and resources have witnesses too (#1544), and that is what makes the foundation re-runnable\n * once the build has started. With `null` for both, every re-run re-planned `add-module` and\n * `add-resource` from scratch and collided with the files the build's own tasks had written since —\n * seven of them on the first end-to-end run — and a diverged target refuses the whole scenario, so the\n * run never reached the minion it was re-run for. A module whose directory exists was composed; the\n * build owns its bytes from then on, and re-composing it can only overwrite or refuse.\n *\n * A FUNCTION of the invocation's own variables, not a constant, because three of them compose one\n * package PER SURFACE (#1496's review): a worker lands in `workers/<workerDir>` and a minion in\n * `minions/<minionDir>`, so a fixed string cannot say whether THIS minion is already there.\n *\n * Getting that wrong was not cosmetic. `add-minion` appends the deny-all `resourceAccess` whitelist\n * verbatim, and the append REFUSES a key already present with a different value — so once a minion's\n * build task widened the whitelist, as its own design requires, the next foundation run died on that\n * minion and never reached the second one. Measured against the real scenario and apply pipeline.\n */\nconst COMPOSED_WITNESS_DIRECTORY: Readonly<Record<CompositionScenarioRef, ((variables: Readonly<Record<string, string>>) => string) | null>> = {\n [CompositionScenarioRef.ADD_MODULE]: (variables) => `shared-lib/src/modules/${variables['moduleId']}`,\n [CompositionScenarioRef.ADD_RESOURCE]: (variables) => `shared-lib/src/modules/${variables['moduleId']}/resources/${variables['resourceDir']}`,\n [CompositionScenarioRef.ADD_CUSTOM_OPERATION]: null,\n [CompositionScenarioRef.ADD_WEBSITE]: () => 'website',\n [CompositionScenarioRef.ADD_WEBSITE_SECTION]: null,\n [CompositionScenarioRef.ADD_MARKETING_PAGE]: null,\n [CompositionScenarioRef.ADD_TECHNICAL_DOC]: () => 'technical-doc',\n [CompositionScenarioRef.ADD_MINION]: (variables) => `minions/${variables['minionDir']}`,\n [CompositionScenarioRef.ADD_WORKER_NODE]: (variables) => `workers/${variables['workerDir']}`,\n [CompositionScenarioRef.ADD_WORKER_RUST]: (variables) => `workers/${variables['workerDir']}`,\n [CompositionScenarioRef.ADD_PROVIDER]: null,\n [CompositionScenarioRef.ADD_FILE_PICKER_PROVIDER]: null,\n [CompositionScenarioRef.ADD_ENVIRONMENT]: null,\n [CompositionScenarioRef.ADD_LOCALE]: null,\n // No directory of its own: the 3D layout is a dependency and a registration in the existing frontend.\n [CompositionScenarioRef.ADD_3D_LAYOUT]: null,\n};\n\n/**\n * The witness directory of an invocation that is ALREADY composed in this application, or null when it\n * must be applied — the one decision that makes a foundation re-run safe (#1544).\n */\nexport function alreadyComposedWitness(\n invocation: { readonly scenarioRef: CompositionScenarioRef; readonly variables: Readonly<Record<string, string>> },\n applicationRoot: string,\n): string | null {\n const resolveDirectory = COMPOSED_WITNESS_DIRECTORY[invocation.scenarioRef];\n const witnessDirectory = resolveDirectory === null ? null : resolveDirectory(invocation.variables);\n return witnessDirectory !== null && existsSync(join(applicationRoot, witnessDirectory)) ? witnessDirectory : null;\n}\n\n@injectable()\nexport class FoundationExecutorCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n public constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n @inject(SAAS_SERVICE_TYPES.AppConfigService) private readonly appConfigService: AppConfigurationService,\n ) {\n this.logDebug = this.logger.debugByType('FoundationExecutorCompanionService');\n }\n\n public async execute(input: {\n /** The landed domain-plan VALUE (the run service resolves it from artifact state). */\n readonly domainPlan: unknown;\n /**\n * The creator's tenancy answer — the FALLBACK, for a domain plan authored before the plan\n * carried `tenancy` itself. A plan that states it wins, because that is the committed decision.\n */\n readonly elicitationAnswers: ReadonlyArray<{ readonly questionRef: string; readonly answer: string }>;\n /** Compute and report everything, write nothing. */\n readonly dryRun?: boolean;\n }): Promise<FoundationExecutionResult> {\n const primaryScope = this.resolvePrimaryScope(input.domainPlan, input.elicitationAnswers);\n const applicationRoot = this.companionContext.saasRoot;\n const sharedLibPackage = this.readSharedLibPackageName(applicationRoot);\n\n const businessModel = await this.readLandedFamilyValue('business-model');\n const capabilityComposition = await this.readLandedFamilyValue('capability-composition');\n /* What runs beside the backend (#1495) — one scenario per worker and per minion it declares. */\n const integrationPlan = await this.readLandedFamilyValue('integration-plan');\n /* The application's line (#1605) decides whether one organization owns it. */\n const lineDeclaration = resolveApplicationLineDeclaration(await this.readLandedFamilyValue('creator-inputs') as ApplicationCreatorInputs | undefined);\n /*\n * Host facts are needed by an optional PACKAGE scenario, and a worker or a minion is one: its\n * package name derives from the application slug. So they are resolved whenever EITHER family\n * has landed, not only for the composition.\n */\n const hostFacts = capabilityComposition === undefined && integrationPlan === undefined ? undefined : await this.resolveHostFacts(applicationRoot);\n const plan = deriveFoundationCompositionPlan({\n domainPlan: input.domainPlan,\n primaryScope,\n sharedLibPackage,\n ...(businessModel === undefined ? {} : { businessModel }),\n ...(capabilityComposition === undefined ? {} : { capabilityComposition }),\n /*\n * The backend-api name is read only when a MINION will need it. An integration plan declaring\n * workers and no minion refused the whole foundation run over an unreadable manifest that\n * nothing was going to use.\n */\n ...(integrationPlan === undefined ? {} : {\n integrationPlan,\n ...(this.declaresAMinion(integrationPlan) ? { backendApiPackage: this.readBackendApiPackageName(applicationRoot) } : {}),\n }),\n ...(hostFacts === undefined ? {} : { hostFacts }),\n elicitationAnswers: input.elicitationAnswers,\n ...(lineDeclaration.state === ApplicationLineDeclarationState.DECLARED ? { applicationLine: lineDeclaration.line } : {}),\n });\n this.logDebug('Foundation composition plan derived', {\n primaryScope,\n businessModelRead: businessModel !== undefined,\n capabilityCompositionRead: capabilityComposition !== undefined,\n integrationPlanRead: integrationPlan !== undefined,\n capabilityChanges: plan.engineCapabilityChanges.length,\n capabilitiesOwedAProvider: plan.engineCapabilitiesOwedAProvider.length,\n scenarioInvocations: plan.scenarioInvocations.length,\n });\n\n // Capability first: the composed resources' primary-scope posture assumes it.\n const engineCapabilityChanges: FoundationExecutionResult['engineCapabilityChanges'][number][] = plan.engineCapabilityChanges.map((change) => {\n const result = setEngineCapabilityEnabled({\n applicationRoot,\n capability: change.capability,\n enabled: true,\n ...(input.dryRun === true ? { dryRun: true } : {}),\n });\n return { capability: change.capability, basis: change.basis, changed: result.changed, summary: result.summary };\n });\n /*\n * An owed capability is SERVED here when a credential-free engine provider exists for it (#1272)\n * — declared, selected and enabled in one pass — and stays owed otherwise. Three mutations,\n * because two of them are not optional: the boot floor needs a provider in the scope, and a\n * SELECT_ONE capability needs `selection[<capability>].primary` beside it. The capability is\n * enabled LAST, so a failure part-way leaves the application not-yet-configured rather than\n * enabled-and-unbootable.\n */\n const engineCapabilitiesOwedAProvider: FoundationExecutionResult['engineCapabilitiesOwedAProvider'][number][] = [];\n for (const owed of plan.engineCapabilitiesOwedAProvider) {\n /*\n * The creator's own choice comes FIRST (#1488): an answered provider question is a decision, and a\n * credential-free substitute must never override one. A `refused` resolution cannot occur through a\n * run (the interview validator refuses first) and is handled anyway — reported on the owed entry with\n * the offered set — so a direct caller of the executor gets the same honest answer as a run.\n */\n const selected = resolveCreatorSelectedEngineProvider(owed.capability, input.elicitationAnswers);\n if (selected?.kind === 'refused') {\n engineCapabilitiesOwedAProvider.push({ capability: owed.capability, basis: owed.basis, remedy: `${selected.reason} Answer the question again with one of them.` });\n continue;\n }\n if (selected?.kind === 'selected') {\n const writeOptions = input.dryRun === true ? { dryRun: true as const } : {};\n addProviderToScope({\n applicationRoot,\n scope: { kind: 'backend' },\n providerRef: selected.providerRef,\n engineCapabilities: [owed.capability],\n providerCapabilities: selected.providerCapabilities,\n protocols: selected.protocols,\n ...writeOptions,\n });\n if (getEngineCapabilityResolutionMode(owed.capability) === EngineCapabilityResolutionMode.SELECT_ONE) {\n setProviderSelectionPrimary({\n applicationRoot,\n scope: { kind: 'backend' },\n capability: owed.capability,\n primaryProviderRef: selected.providerRef,\n ...writeOptions,\n });\n }\n const enabled = setEngineCapabilityEnabled({ applicationRoot, capability: owed.capability, enabled: true, ...writeOptions });\n engineCapabilityChanges.push({\n capability: owed.capability,\n basis: owed.basis,\n changed: enabled.changed,\n summary: enabled.summary,\n servedByCreatorSelectedProvider: {\n providerRef: selected.providerRef,\n credentialsOwed: selected.credentialsOwed,\n remedy: selected.credentialsOwed.length === 0\n ? `\\`${selected.providerRef}\\` needs no credentials; ${owed.capability} is enabled and serving.`\n : `\\`${selected.providerRef}\\` is declared, selected and ${owed.capability} is enabled — the application boots, and `\n + `${owed.capability} answers once these are set in the environment: ${selected.credentialsOwed.map((secret) => secret.envVarName).join(', ')}.`,\n },\n });\n continue;\n }\n const provider = resolveCredentialFreeEngineProvider(owed.capability);\n if (!provider) {\n engineCapabilitiesOwedAProvider.push({\n capability: owed.capability,\n basis: owed.basis,\n remedy: `This application's own declarations imply ${owed.capability} (${owed.basis}), and it is NOT enabled: `\n + 'the engine refuses to boot with it on and no provider resolving, and every provider that serves it '\n + 'needs an account this process cannot open. Declare one that serves '\n + `${owed.capability} in \\`wildo.saas.config.ts\\` under \\`providers.scopes\\`, then enable the capability beside it.`,\n });\n continue;\n }\n const writeOptions = input.dryRun === true ? { dryRun: true as const } : {};\n addProviderToScope({\n applicationRoot,\n scope: { kind: 'backend' },\n providerRef: provider.providerRef,\n engineCapabilities: [owed.capability],\n providerCapabilities: provider.providerCapabilities,\n protocols: provider.protocols,\n ...writeOptions,\n });\n // FAN_OUT capabilities take every declared provider and carry no `selection` entry; writing\n // one would put the provider into a mechanism nothing consults.\n if (getEngineCapabilityResolutionMode(owed.capability) === EngineCapabilityResolutionMode.SELECT_ONE) {\n setProviderSelectionPrimary({\n applicationRoot,\n scope: { kind: 'backend' },\n capability: owed.capability,\n primaryProviderRef: provider.providerRef,\n ...writeOptions,\n });\n }\n const enabled = setEngineCapabilityEnabled({\n applicationRoot,\n capability: owed.capability,\n enabled: true,\n ...writeOptions,\n });\n engineCapabilityChanges.push({\n capability: owed.capability,\n basis: owed.basis,\n changed: enabled.changed,\n summary: enabled.summary,\n servedByDeclaredProvider: {\n providerRef: provider.providerRef,\n developmentSubstitute: true,\n replaceBeforeRealUsers: `\\`${provider.providerRef}\\` needs no account, which is why this run could declare it — `\n + 'and it is a DEVELOPMENT substitute. Replace it with a provider that really serves '\n + `${owed.capability} before this application faces real users.`,\n },\n });\n }\n\n const frameworkRoot = this.companionContext.resolvedHomes.framework.repositoryRoot ?? null;\n const scenarioDirectoriesByRef = listCompositionScenarioDirectories({ applicationRoot, frameworkRoot });\n const renderer: CompositionTemplateRenderer = createCompositionTemplateRenderer();\n\n const modulesComposedByThisRun = new Set(\n plan.scenarioInvocations\n .filter((invocation) => invocation.scenarioRef === CompositionScenarioRef.ADD_MODULE)\n .map((invocation) => String(invocation.variables['moduleId'])),\n );\n const scenarios: FoundationScenarioExecutionRecord[] = [];\n for (const invocation of plan.scenarioInvocations) {\n // DRY-RUN sequencing honesty: an add-resource edits its module's registry files, which the\n // same run's add-module WRITES. A real run applies sequentially so the files exist by then;\n // a dry run plans against the unmodified tree, where planning the edit would (correctly)\n // refuse on a missing target. Report the dependency instead of failing the whole preview.\n if (\n input.dryRun === true\n && invocation.scenarioRef === CompositionScenarioRef.ADD_RESOURCE\n && modulesComposedByThisRun.has(String(invocation.variables['moduleId']))\n && !existsSync(join(applicationRoot, 'shared-lib', 'src', 'modules', String(invocation.variables['moduleId'])))\n ) {\n scenarios.push({\n scenarioRef: invocation.scenarioRef,\n subject: `${invocation.variables['moduleId']}/${invocation.variables['resourceDir']}`,\n writes: 0, skippedWrites: 0, editsApplied: 0, skippedEdits: 0,\n deferredBehindModuleComposition: true,\n });\n continue;\n }\n const witnessDirectory = alreadyComposedWitness(invocation, applicationRoot);\n if (witnessDirectory !== null) {\n scenarios.push({ scenarioRef: invocation.scenarioRef, subject: witnessDirectory, writes: 0, skippedWrites: 0, editsApplied: 0, skippedEdits: 0, alreadyComposed: true });\n continue;\n }\n scenarios.push(this.applyInvocation({ invocation, applicationRoot, scenarioDirectoriesByRef, renderer, dryRun: input.dryRun === true }));\n }\n /*\n * A surface composed NOW receives the mark accepted EARLIER. The logo step propagates when it runs,\n * but once landed it is never dispatched again, so a website or portal composed after it — a\n * conception re-run that newly decides one — would serve no favicon and no Open Graph image. This is\n * the moment that surface appears, so this is where it is supplied. Nothing accepted: nothing written.\n */\n const brandPropagation = composedASurfaceReceivingTheBrand(scenarios) && input.dryRun !== true\n ? await propagateAcceptedBrand(applicationRoot, this.logger)\n : undefined;\n return {\n playbookRef: 'bottom_up.foundation',\n primaryScope,\n engineCapabilityChanges,\n engineCapabilitiesOwedAProvider,\n scenarios,\n applicationOwnership: this.declareApplicationOwnership(plan.applicationOwnership, applicationRoot, input.dryRun === true),\n compositionScenarios: plan.compositionScenarios,\n backgroundExecution: plan.backgroundExecution,\n ...(hostFacts === undefined ? {} : { hostFacts }),\n ...(brandPropagation === undefined ? {} : { brandPropagation }),\n };\n }\n\n /**\n * The host facts an optional-package scenario needs and no family declares (#1491): the slug and display\n * name from the SaaS config, the port block from the declared services, and the public domain from the\n * application's own infrastructure environments — a REMOTE one first (production, then staging), because\n * that is the apex the website and the portal derive their canonical origins from, and the local one\n * otherwise. `localhost` when no environment declares one, which is the value the framework's own local\n * example uses; the source is recorded on the result so a reader can see which it was.\n */\n private async resolveHostFacts(applicationRoot: string): Promise<FoundationHostFacts & { readonly publicDomainSource: string }> {\n const services = Object.values(this.companionContext.servicesByKey);\n const backendPort = services.find((service) => service.frontendType === undefined)?.defaultPort;\n const appPort = services.find((service) => service.frontendType === AppFrontendType.SAAS_APP)?.defaultPort;\n if (backendPort === undefined || appPort === undefined) {\n throw new FoundationExecutionError(\n 'The optional-package scenarios derive their ports from the backend and app services\\' `defaultPort`, and `wildo.saas.config.ts` declares no such port for '\n + (backendPort === undefined ? 'the backend service' : 'the app service') + '.',\n );\n }\n let publicDomain = 'localhost';\n let publicDomainSource = 'default (no environment declares a public domain)';\n for (const envName of ['production', 'staging', 'local']) {\n try {\n const loaded = await loadInfraEnvConfig(applicationRoot, envName, { freshModuleCache: true });\n const declared = (loaded?.config as { publicDomain?: unknown } | undefined)?.publicDomain;\n if (typeof declared === 'string' && declared.trim().length > 0) {\n publicDomain = declared.trim();\n publicDomainSource = `infrastructure/${envName}`;\n break;\n }\n } catch (error) {\n this.logDebug(`Could not read infrastructure/${envName}; not a source for the public domain`, { error: describeCaughtError(error) });\n }\n }\n return {\n slug: this.companionContext.saasConfig.slug,\n displayName: this.companionContext.saasConfig.displayName,\n publicDomain,\n backendPort,\n appPort,\n publicDomainSource,\n // The same reader the capability composition decided `add-locale` from, so the two cannot disagree.\n servedLanguages: getCompanionServedLanguages(this.appConfigService.config),\n };\n }\n\n /**\n * The landed `business-model` family VALUE, or `undefined` when this application has none.\n *\n * ## Why the executor reads it rather than being handed it\n *\n * The run service resolves every landed family into one `artifactsByFamily` map and passes this\n * executor the domain plan alone. Widening that hand-off is the tidier change and it is NOT the one\n * made here: that file is being actively worked by another lane, and the export field this needs is\n * already named once in the semantic-authority bindings — so reading it through the SAME binding is\n * a second door onto one vocabulary rather than a second copy of it.\n *\n * ## Lenient by design\n *\n * Absent, unloadable or unparseable all answer `undefined`, and the derivation treats that as \"this\n * decides nothing\". `bottom_up.foundation` gates on `domain-plan` and `vision-brief` alone, so an\n * eligible run legitimately has no business model — refusing here would turn one of its OPTIONAL\n * declared inputs into a precondition, which is the shape `application-creation-directive.md`\n * forbids.\n */\n /**\n * Declare the organization type that owns the application when its line requires one (#1605), BEFORE\n * the first initialization: an organization's type is fixed when it is created, so declaring it after\n * boot would need `wildo config reapply-declaration` and the `organizations.promoteToOwnerOrganization`\n * door. With exactly one declared type the answer is unambiguous; with several it is authoring work,\n * so it is marked owed, never guessed.\n */\n private declareApplicationOwnership(\n decision: { readonly required: boolean; readonly basis: string },\n applicationRoot: string,\n dryRun: boolean,\n ): NonNullable<FoundationExecutionResult['applicationOwnership']> {\n if (!decision.required) return decision;\n const organizationTypeRefs = listSaasConfigOrganizationTypeRefs({ applicationRoot });\n if (organizationTypeRefs.length !== 1) {\n return {\n ...decision,\n owed: organizationTypeRefs.length === 0\n ? 'The configuration declares no organization type; declare the one that owns the application, with `ownsApplication: true`.'\n : `The configuration declares ${organizationTypeRefs.length} organization types (${organizationTypeRefs.join(', ')}); `\n + 'mark the one that owns the application with `ownsApplication: true`.',\n };\n }\n const organizationTypeRef = organizationTypeRefs[0]!;\n const result = setOrganizationTypeOwnsApplication({ applicationRoot, organizationTypeRef, ownsApplication: true, ...(dryRun ? { dryRun: true } : {}) });\n return { ...decision, organizationTypeRef, changed: result.changed, summary: result.summary };\n }\n\n private async readLandedFamilyValue(family: 'business-model' | 'capability-composition' | 'integration-plan' | 'creator-inputs'): Promise<unknown> {\n const binding = APPLICATION_SPECIFICATION_SEMANTIC_SCHEMA_BINDINGS.find((entry) => entry.family === family);\n if (binding?.companionExportsField === undefined) return undefined;\n try {\n const exports = await loadSpecificationsCompanionExports(this.companionContext);\n return (exports as unknown as Record<string, unknown>)[binding.companionExportsField] ?? undefined;\n } catch (error) {\n this.logDebug(`Could not read the landed ${family}; nothing is derived from it`, {\n error: describeCaughtError(error),\n });\n return undefined;\n }\n }\n\n private applyInvocation(input: {\n readonly invocation: FoundationScenarioInvocation;\n readonly applicationRoot: string;\n readonly scenarioDirectoriesByRef: ReadonlyMap<string, string>;\n readonly renderer: CompositionTemplateRenderer;\n readonly dryRun: boolean;\n }): FoundationScenarioExecutionRecord {\n const scenarioDirectory = input.scenarioDirectoriesByRef.get(input.invocation.scenarioRef);\n if (!scenarioDirectory) {\n throw new FoundationExecutionError(\n `The \"${input.invocation.scenarioRef}\" composition scenario is not available to this application `\n + '(neither the app-delivered templates nor a framework checkout carries it).',\n );\n }\n const scenario = loadCompositionScenario(scenarioDirectory);\n const variables = resolveCompositionScenarioVariables(scenario.manifest, { ...input.invocation.variables });\n const plan = planCompositionScenario({ scenario, applicationRoot: input.applicationRoot, variables, renderer: input.renderer });\n const subject = input.invocation.variables['resourceDir']\n ? `${input.invocation.variables['moduleId']}/${input.invocation.variables['resourceDir']}`\n : input.invocation.variables['moduleId'] !== undefined\n ? String(input.invocation.variables['moduleId'])\n : (COMPOSED_WITNESS_DIRECTORY[input.invocation.scenarioRef]?.(input.invocation.variables) ?? input.invocation.scenarioRef);\n if (plan.collisions.length > 0) {\n // The engine's never-half-apply invariant: a collision means the application EDITED a target\n // this scenario would rewrite. Refusing with the paths is the honest outcome — the creator\n // reconciles (git is the undo), then re-runs; foundation never overwrites authored work.\n throw new FoundationExecutionError(\n `Composing ${input.invocation.scenarioRef} for ${subject} collides with existing application files: `\n + plan.collisions.join(', ')\n + ' — reconcile them (the application owns those bytes) and re-run.',\n );\n }\n if (!input.dryRun) {\n applyCompositionScenarioPlan({ plan, applicationRoot: input.applicationRoot });\n }\n return {\n scenarioRef: input.invocation.scenarioRef,\n subject,\n writes: plan.writes.length,\n skippedWrites: plan.skipped.length,\n editsApplied: plan.edits.length,\n skippedEdits: plan.skippedEdits.length,\n };\n }\n\n /**\n * The tenancy model, from the PLAN first and the interview second.\n *\n * The plan wins because it is the committed artifact: a creator who answered the question on\n * `bottom_up.domain-plan` has already had that answer shape the modules and relationships, and\n * re-asking here would let a second answer contradict a model built on the first.\n *\n * The elicitation fallback stays for plans authored before `tenancy` existed on the family schema\n * (wonder-crm and wonder-todos are both such plans). Neither source present is still a refusal:\n * the executor deliberately does not derive this.\n */\n private resolvePrimaryScope(\n domainPlan: unknown,\n answers: ReadonlyArray<{ readonly questionRef: string; readonly answer: string }>,\n ): FoundationPrimaryScope {\n const parsed = DomainPlanOutputSetSchema.safeParse(domainPlan);\n if (parsed.success && parsed.data.tenancy !== undefined) return parsed.data.tenancy;\n const answer = answers.find((candidate) => candidate.questionRef === 'primary-scope')?.answer?.trim();\n if (answer === FoundationPrimaryScope.ORGANIZATIONS || answer === FoundationPrimaryScope.USERS) return answer;\n throw new FoundationExecutionError(\n 'The tenancy model is a creator decision the executor deliberately does not derive, and neither '\n + 'source supplied it: the domain plan carries no `tenancy`, and no \"primary-scope\" elicitation '\n + 'answer (\"organizations\" or \"users\") was given.'\n + (answer ? ` Received answer: \"${answer}\".` : ''),\n );\n }\n\n private readSharedLibPackageName(applicationRoot: string): string {\n const manifestPath = join(applicationRoot, 'shared-lib', 'package.json');\n try {\n const name = (JSON.parse(readFileSync(manifestPath, 'utf8')) as { name?: string }).name;\n if (name) return name;\n } catch {\n // fall through to the named refusal below\n }\n throw new FoundationExecutionError(`Cannot read the shared-lib package name at ${manifestPath} — not a composed application root.`);\n }\n\n /**\n * Whether the landed integration plan declares a minion — read leniently, because an unparseable\n * plan declares nothing and the derivation reads it the same way.\n */\n private declaresAMinion(integrationPlan: unknown): boolean {\n const minions = (integrationPlan as { minions?: unknown } | null)?.minions;\n return Array.isArray(minions) && minions.length > 0;\n }\n\n /**\n * The backend-api package name — a minion's package re-derives the application's initialization\n * from it, so `add-minion` binds it as a variable. Read the same way as the shared-lib name, and\n * refusing the same way: a composed application root has both, and a minion composed against a\n * guessed package name produces a package that cannot resolve its own initialization.\n */\n private readBackendApiPackageName(applicationRoot: string): string {\n const manifestPath = join(applicationRoot, 'backend-api', 'package.json');\n try {\n const name = (JSON.parse(readFileSync(manifestPath, 'utf8')) as { name?: string }).name;\n if (name) return name;\n } catch {\n // fall through to the named refusal below\n }\n throw new FoundationExecutionError(`Cannot read the backend-api package name at ${manifestPath} — not a composed application root.`);\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"foundation-executor.companion.service.js","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/foundation-executor.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAEnE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EACL,+BAA+B,EAC/B,sBAAsB,EACtB,yBAAyB,EACzB,iCAAiC,GAElC,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAErF,OAAO,EAAE,2BAA2B,EAAE,MAAM,oDAAoD,CAAC;AACjG,OAAO,EAAE,sBAAsB,EAAkC,MAAM,wDAAwD,CAAC;AAChI,OAAO,EAAE,eAAe,EAAE,8BAA8B,EAAE,kBAAkB,EAAE,iCAAiC,EAAyB,MAAM,uBAAuB,CAAC;AACtK,OAAO,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAE7E,OAAO,EACL,kDAAkD,EAClD,kBAAkB,EAClB,4BAA4B,EAC5B,iCAAiC,EACjC,+BAA+B,EAC/B,wBAAwB,EACxB,sBAAsB,EACtB,kCAAkC,EAClC,uBAAuB,EACvB,uBAAuB,EACvB,mCAAmC,EACnC,0BAA0B,EAC1B,2BAA2B,EAO3B,kCAAkC,EAClC,kCAAkC,GACnC,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAEjF,OAAO,EAAE,kCAAkC,EAAE,MAAM,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B,CAAC,MAAM,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;IAChD,WAAA,MAAM,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAA;;GANnC,kCAAkC,CA8c9C","sourcesContent":["import { existsSync, readFileSync } from 'node:fs';\nimport { join } from 'node:path';\n\nimport { loadInfraEnvConfig } from '@wildo-ai/platform-config-lib';\n\nimport { inject, injectable } from 'inversify';\nimport {\n ApplicationLineDeclarationState,\n CompositionScenarioRef,\n DomainPlanOutputSetSchema,\n resolveApplicationLineDeclaration,\n type ApplicationCreatorInputs,\n} from '@wildo-ai/saas-specifications/application-creation';\nimport { SAAS_SERVICE_TYPES, describeCaughtError } from '@wildo-ai/saas-backend-lib';\nimport type { AppConfigurationService, LoggerService } from '@wildo-ai/saas-backend-lib';\nimport { getCompanionServedLanguages } from '../../core/config/primary-language.companion.utils';\nimport { propagateAcceptedBrand, type CompanionBrandPropagation } from '../../brand/services/brand-propagation.companion.utils';\nimport { AppFrontendType, EngineCapabilityResolutionMode, ProviderOriginKind, getEngineCapabilityResolutionMode, type EngineCapability } from '@wildo-ai/saas-models';\nimport { engineProviderSpecifications } from '@wildo-ai/saas-specifications';\n\nimport {\n APPLICATION_SPECIFICATION_SEMANTIC_SCHEMA_BINDINGS,\n addProviderToScope,\n applyCompositionScenarioPlan,\n createCompositionTemplateRenderer,\n deriveFoundationCompositionPlan,\n creatorProviderAnswerFor,\n FoundationPrimaryScope,\n listCompositionScenarioDirectories,\n loadCompositionScenario,\n planCompositionScenario,\n resolveCompositionScenarioVariables,\n setEngineCapabilityEnabled,\n setProviderSelectionPrimary,\n type CompositionTemplateRenderer,\n type FoundationCapabilityBasis,\n type FoundationBackgroundExecutionOutcome,\n type FoundationCompositionScenarioOutcome,\n type FoundationHostFacts,\n type FoundationScenarioInvocation,\n listSaasConfigOrganizationTypeRefs,\n setOrganizationTypeOwnsApplication,\n} from '@wildo-ai/application-creation-runtime';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { loadSpecificationsCompanionExports } from '../../core/context/companion-package-loaders.companion';\n\n/**\n * The foundation playbook's EXECUTOR — the domain-plan → compose bridge, run instead of typed by\n * hand (J-1 stall F: a human read the approved domain plan, decided the `wildo compose` calls and\n * the ORGANIZATIONS flip, derived every scenario variable, and ran them one by one).\n *\n * `bottom_up.foundation` declares `outputs: []` and `executor: \"composite\"`: it lands no\n * specification family — its deliverable is the APPLICATION (config + composed module slices).\n * The generation route therefore cannot run it (J-1 stall E); this service is what does.\n *\n * The derivation is PURE (`deriveFoundationCompositionPlan`, tested against a literal domain\n * plan); this service supplies the host facts (app root, framework root, the shared-lib package\n * name) and executes: the capability mutation through the config-mutation service, and each\n * scenario through the same engine + THE SAME renderer `wildo compose` uses — identical scenario\n * bytes produce identical files regardless of which door applied them.\n *\n * Idempotent by the engine's own contract: a re-run plans byte-identical targets as SKIPS; a\n * target that exists with DIFFERENT bytes is a collision and the whole scenario REFUSES unapplied\n * (ownership transferred to the application; git is the undo). Nothing here commits — GUIDED\n * acceptance stays a human `git commit`.\n */\n\nexport interface FoundationScenarioExecutionRecord {\n readonly scenarioRef: string;\n /** The invocation's addressing variables (moduleId, resourceDir) — enough to identify the unit. */\n readonly subject: string;\n readonly writes: number;\n readonly skippedWrites: number;\n readonly editsApplied: number;\n readonly skippedEdits: number;\n /**\n * DRY-RUN only: this invocation could not be PLANNED because it edits files a preceding\n * invocation of the same run would create (an add-resource whose module is composed by this\n * run's own add-module). A real run applies sequentially and never hits this; a dry run reports\n * the dependency honestly instead of failing on it.\n */\n readonly deferredBehindModuleComposition?: true;\n /**\n * A scenario whose witness directory already exists — a package (the website, a minion), a module or\n * a resource, composed by an earlier run or by the build since — so this run left it alone. Applying it would either skip every\n * byte-identical file (a no-op reported as writes) or refuse on the first authored one, and neither is\n * what a re-run means: the composition says the application HAS a website, and it does.\n */\n readonly alreadyComposed?: true;\n}\n\n/** The composition scenarios that create a surface serving the brand's icons and social image. */\nconst SURFACES_RECEIVING_THE_BRAND: ReadonlySet<string> = new Set<string>([\n CompositionScenarioRef.ADD_WEBSITE,\n CompositionScenarioRef.ADD_TECHNICAL_DOC,\n]);\n\n/** Whether this run composed — actually wrote, not found already composed — a surface that serves the brand. */\nexport function composedASurfaceReceivingTheBrand(scenarios: readonly Pick<FoundationScenarioExecutionRecord, 'scenarioRef' | 'writes' | 'alreadyComposed'>[]): boolean {\n return scenarios.some((record) => SURFACES_RECEIVING_THE_BRAND.has(record.scenarioRef) && record.alreadyComposed !== true && record.writes > 0);\n}\n\nexport interface FoundationExecutionResult {\n readonly playbookRef: 'bottom_up.foundation';\n readonly primaryScope: FoundationPrimaryScope;\n readonly engineCapabilityChanges: ReadonlyArray<{\n readonly capability: string;\n /** WHICH declaration decided it — so the record says why, not merely what (#1272). */\n readonly basis: FoundationCapabilityBasis;\n readonly changed: boolean;\n readonly summary: string;\n /**\n * Set when this run also DECLARED a provider so the capability could be enabled at all.\n *\n * Carried loudly rather than folded into the summary, because a credential-free provider is a\n * DEVELOPMENT SUBSTITUTE by construction — `email-preview` renders mail to a local surface and\n * its own module says to \"wire it as the `EMAIL_TRANSACTIONAL` primary in local environments…\n * with no live API key and no mail actually leaving the machine\". The application is configured\n * and working; replacing it is a deployment decision somebody still owes, and a record that did\n * not say so would let it ship unnoticed.\n *\n * spec-cite: N/A — INTERNAL. The quotation is this repository's own\n * `engine/external-connectors-private/src/providers/email-preview/email-preview.backend.module.ts`\n * module JSDoc, not an external standard. An earlier revision quoted \"never select it as primary\n * in an environment that serves real users\", which appears in no specification anywhere — a\n * paraphrase wearing quotation marks, the exact shape\n * `.claude/rules/external-specification-citations.md` exists to retire.\n */\n readonly servedByDeclaredProvider?: {\n readonly providerRef: string;\n readonly developmentSubstitute: true;\n readonly replaceBeforeRealUsers: string;\n };\n /**\n * The provider the CREATOR chose in the foundation interview (#1488), declared, selected and enabled\n * by this run. `credentialsOwed` names the env vars the provider requires and this process cannot\n * supply: the application boots (the floor reads declaration + selection), and the provider's own\n * calls fail until an operator sets them. Mark, never gate.\n */\n readonly servedByCreatorSelectedProvider?: {\n readonly providerRef: string;\n readonly credentialsOwed: ReadonlyArray<{ readonly envVarName: string; readonly description: string }>;\n readonly remedy: string;\n };\n }>;\n /**\n * Capabilities the application NEEDS and this run deliberately did not enable, because the engine\n * refuses to boot with them on and no provider resolving, and the journey cannot declare one.\n *\n * Reported rather than silently dropped: a derivation whose result nobody can see is a derivation\n * nobody acts on, and the remedy — declare a provider for it — is a sentence an operator can act\n * on today. `application-creation-directive.md`: mark, never gate.\n */\n readonly engineCapabilitiesOwedAProvider: ReadonlyArray<{\n readonly capability: string;\n readonly basis: FoundationCapabilityBasis;\n readonly remedy: string;\n }>;\n readonly scenarios: readonly FoundationScenarioExecutionRecord[];\n /** The accepted brand mark copied into a surface this run composed (a website, a portal). Absent when none was composed. */\n readonly brandPropagation?: CompanionBrandPropagation;\n /**\n * Whether this application is owned by one organization, and what this run declared for it (#1605).\n * `owed` is set when the line requires an owner and the configuration does not name one organization\n * type unambiguously: marked, never gated, since choosing among several types is authoring work.\n */\n readonly applicationOwnership?: {\n readonly required: boolean;\n readonly basis: string;\n readonly organizationTypeRef?: string;\n readonly changed?: boolean;\n readonly summary?: string;\n readonly owed?: string;\n };\n /**\n * What the capability composition decided, scenario by scenario (#1491): every scenario applied and every\n * scenario declined, with the declaration each came from. Empty when no composition has landed yet.\n */\n readonly compositionScenarios: readonly FoundationCompositionScenarioOutcome[];\n /**\n * What the run read about workers and minions (#1544): composed, declared none, or had no readable\n * integration plan to read. The last two used to be one silence.\n */\n readonly backgroundExecution: FoundationBackgroundExecutionOutcome;\n /** The host facts the optional-package scenarios were composed with, and where the public domain came from. */\n readonly hostFacts?: FoundationHostFacts & { readonly publicDomainSource: string };\n}\n\n/**\n * An engine provider this run may declare on the application's behalf, without asking anyone.\n *\n * ## The criterion is an EMPTY SECRETS CONTRACT, and that is the whole of it\n *\n * A capability in `ENGINE_CAPABILITIES_REQUIRING_A_PROVIDER_WHEN_ENABLED` cannot be enabled without\n * a provider — the backend refuses to boot. Choosing one is usually a commercial decision nobody in\n * this process is entitled to take: which payment processor, which mail vendor, on whose account.\n *\n * But a provider that declares NO SECRETS needs no account, so choosing it commits the operator to\n * nothing they can be billed or bound by. Measured across the whole engine catalogue (2026-09-17),\n * exactly two providers qualify, and only one of them serves a boot-floor capability:\n *\n * | provider | secrets | serves |\n * |---|---|---|\n * | `email-preview` | none | EMAIL_TRANSACTIONAL |\n * | `opencode` | none | AI_CODING_AGENT — not in the boot floor, and not derived by the journey |\n *\n * `stripe`, `twilio`, `resend` and every AI vendor carry a secrets contract, so BILLING and SMS stay\n * OWED. That asymmetry is the point rather than a limitation: the journey configures what costs\n * nothing to configure and leaves the commercial choices to the human who owns them.\n *\n * ## It is DERIVED from the specifications, never listed here\n *\n * A hand-kept list of another catalogue's contents is the shape that rots — the same argument the\n * build task's workspace scope makes. A provider that drops its secrets contract tomorrow becomes\n * eligible the day it does, and one that grows a secrets contract stops being, with no edit here.\n */\nexport interface SelfConfiguringProviderChoice {\n readonly providerRef: string;\n readonly providerCapabilities: readonly string[];\n readonly protocols: readonly string[];\n}\n\nexport function resolveCredentialFreeEngineProvider(capability: EngineCapability): SelfConfiguringProviderChoice | undefined {\n const candidates = Object.values(engineProviderSpecifications).filter((specification) => (\n specification.engineCapabilities.includes(capability)\n && specification.secretsContract.length === 0\n && specification.origin.kind === ProviderOriginKind.ENGINE\n // A backend-scope declaration is what the boot floor reads; a frontend-only module cannot serve it.\n && specification.facets.includes('backend')\n ));\n /*\n * Exactly one, or none. Two credential-free providers for one capability would be a CHOICE, and a\n * choice is the thing this function exists not to make on somebody's behalf — so it declines and\n * the capability stays owed, which is the outcome a human can still resolve.\n */\n if (candidates.length !== 1) return undefined;\n const chosen = candidates[0]!;\n return {\n providerRef: chosen.ref,\n providerCapabilities: chosen.providerCapabilities,\n protocols: chosen.protocols,\n };\n}\n\n/** Refusals a creator can act on (missing scope answer, unwired domain plan, collisions). */\n/**\n * The engine providers a creator may be OFFERED for a capability: ENGINE-origin, backend-scoped, serving it\n * (#1488). This is the options vocabulary of the foundation interview's provider questions, and the test\n * beside this file pins the AUTHORED options to it, so a vendor added to the catalogue is offered by being\n * added rather than by somebody remembering the question.\n */\nexport function listEngineProviderRefsServing(capability: EngineCapability): readonly string[] {\n return Object.values(engineProviderSpecifications)\n .filter((specification) => (\n specification.engineCapabilities.includes(capability)\n && specification.origin.kind === ProviderOriginKind.ENGINE\n && specification.facets.includes('backend')\n ))\n .map((specification) => specification.ref)\n .sort();\n}\n\nexport type CreatorSelectedProviderResolution =\n | {\n readonly kind: 'selected';\n readonly providerRef: string;\n readonly providerCapabilities: readonly string[];\n readonly protocols: readonly string[];\n /** The provider's REQUIRED secrets, by env var — what the operator still owes before it answers. */\n readonly credentialsOwed: ReadonlyArray<{ readonly envVarName: string; readonly description: string }>;\n }\n | {\n /** The creator named something the catalogue does not offer for this capability. Reported, never guessed around. */\n readonly kind: 'refused';\n readonly reason: string;\n };\n\n/**\n * The creator's provider choice for a capability, read off the foundation interview (#1488).\n *\n * `undefined` when the question was not answered or answered `none` (`PROVIDER_CHOICE_NONE`) — the honest\n * value: the interview requires an answer to every question, so \"decide later\" is an option, and it leaves\n * the capability OWED exactly as before (#1272). An answer outside the offered set is `refused` with the set\n * named. **That arm is a floor for DIRECT callers, not a run path**: through `runPlaybook` the interview\n * validator (`validateElicitationAnswer`) refuses an out-of-options answer before the executor is called, and\n * the compiled options are pinned to this very derivation, so a run never reaches it. Secrets are not checked\n * here: the boot floor reads declaration and selection, so the chosen provider can be declared and the\n * capability enabled while the credentials stay OWED.\n */\nexport function resolveCreatorSelectedEngineProvider(\n capability: EngineCapability,\n answers: ReadonlyArray<{ readonly questionRef: string; readonly answer: string }>,\n): CreatorSelectedProviderResolution | undefined {\n const answer = creatorProviderAnswerFor(capability, answers);\n if (answer === undefined) return undefined;\n const offered = listEngineProviderRefsServing(capability);\n const chosen = Object.values(engineProviderSpecifications).find((specification) => specification.ref === answer);\n if (!chosen || !offered.includes(answer)) {\n return {\n kind: 'refused',\n reason: `The interview answer \"${answer}\" names no engine provider serving ${capability}. Offered: ${offered.join(', ') || '(none)'}.`,\n };\n }\n return {\n kind: 'selected',\n providerRef: chosen.ref,\n providerCapabilities: chosen.providerCapabilities,\n protocols: chosen.protocols,\n credentialsOwed: chosen.secretsContract\n .filter((secret) => secret.required)\n .map((secret) => ({ envVarName: secret.envVarName, description: secret.description })),\n };\n}\n\nexport class FoundationExecutionError extends Error {}\n\n/**\n * The directory whose presence says a scenario has ALREADY been composed — its WITNESS. Total over the\n * vocabulary; `null` means the scenario has no directory of its own (a custom operation, a provider block,\n * a locale) and is never skipped on that ground.\n *\n * Modules and resources have witnesses too (#1544), and that is what makes the foundation re-runnable\n * once the build has started. With `null` for both, every re-run re-planned `add-module` and\n * `add-resource` from scratch and collided with the files the build's own tasks had written since —\n * seven of them on the first end-to-end run — and a diverged target refuses the whole scenario, so the\n * run never reached the minion it was re-run for. A module whose directory exists was composed; the\n * build owns its bytes from then on, and re-composing it can only overwrite or refuse.\n *\n * A FUNCTION of the invocation's own variables, not a constant, because three of them compose one\n * package PER SURFACE (#1496's review): a worker lands in `workers/<workerDir>` and a minion in\n * `minions/<minionDir>`, so a fixed string cannot say whether THIS minion is already there.\n *\n * Getting that wrong was not cosmetic. `add-minion` appends the deny-all `resourceAccess` whitelist\n * verbatim, and the append REFUSES a key already present with a different value — so once a minion's\n * build task widened the whitelist, as its own design requires, the next foundation run died on that\n * minion and never reached the second one. Measured against the real scenario and apply pipeline.\n */\nconst COMPOSED_WITNESS_DIRECTORY: Readonly<Record<CompositionScenarioRef, ((variables: Readonly<Record<string, string>>) => string) | null>> = {\n [CompositionScenarioRef.ADD_MODULE]: (variables) => `shared-lib/src/modules/${variables['moduleId']}`,\n [CompositionScenarioRef.ADD_RESOURCE]: (variables) => `shared-lib/src/modules/${variables['moduleId']}/resources/${variables['resourceDir']}`,\n [CompositionScenarioRef.ADD_CUSTOM_OPERATION]: null,\n [CompositionScenarioRef.ADD_WEBSITE]: () => 'website',\n [CompositionScenarioRef.ADD_WEBSITE_SECTION]: null,\n [CompositionScenarioRef.ADD_MARKETING_PAGE]: null,\n [CompositionScenarioRef.ADD_TECHNICAL_DOC]: () => 'technical-doc',\n [CompositionScenarioRef.ADD_MINION]: (variables) => `minions/${variables['minionDir']}`,\n [CompositionScenarioRef.ADD_WORKER_NODE]: (variables) => `workers/${variables['workerDir']}`,\n [CompositionScenarioRef.ADD_WORKER_RUST]: (variables) => `workers/${variables['workerDir']}`,\n [CompositionScenarioRef.ADD_PROVIDER]: null,\n [CompositionScenarioRef.ADD_FILE_PICKER_PROVIDER]: null,\n [CompositionScenarioRef.ADD_ENVIRONMENT]: null,\n [CompositionScenarioRef.ADD_LOCALE]: null,\n // No directory of its own: the 3D layout is a dependency and a registration in the existing frontend.\n [CompositionScenarioRef.ADD_3D_LAYOUT]: null,\n};\n\n/**\n * The witness directory of an invocation that is ALREADY composed in this application, or null when it\n * must be applied — the one decision that makes a foundation re-run safe (#1544).\n */\nexport function alreadyComposedWitness(\n invocation: { readonly scenarioRef: CompositionScenarioRef; readonly variables: Readonly<Record<string, string>> },\n applicationRoot: string,\n): string | null {\n const resolveDirectory = COMPOSED_WITNESS_DIRECTORY[invocation.scenarioRef];\n const witnessDirectory = resolveDirectory === null ? null : resolveDirectory(invocation.variables);\n return witnessDirectory !== null && existsSync(join(applicationRoot, witnessDirectory)) ? witnessDirectory : null;\n}\n\n@injectable()\nexport class FoundationExecutorCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n public constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n @inject(SAAS_SERVICE_TYPES.AppConfigService) private readonly appConfigService: AppConfigurationService,\n ) {\n this.logDebug = this.logger.debugByType('FoundationExecutorCompanionService');\n }\n\n public async execute(input: {\n /** The landed domain-plan VALUE (the run service resolves it from artifact state). */\n readonly domainPlan: unknown;\n /**\n * The creator's tenancy answer — the FALLBACK, for a domain plan authored before the plan\n * carried `tenancy` itself. A plan that states it wins, because that is the committed decision.\n */\n readonly elicitationAnswers: ReadonlyArray<{ readonly questionRef: string; readonly answer: string }>;\n /** Compute and report everything, write nothing. */\n readonly dryRun?: boolean;\n }): Promise<FoundationExecutionResult> {\n const primaryScope = this.resolvePrimaryScope(input.domainPlan, input.elicitationAnswers);\n const applicationRoot = this.companionContext.saasRoot;\n const sharedLibPackage = this.readSharedLibPackageName(applicationRoot);\n\n const businessModel = await this.readLandedFamilyValue('business-model');\n const capabilityComposition = await this.readLandedFamilyValue('capability-composition');\n /* What runs beside the backend (#1495) — one scenario per worker and per minion it declares. */\n const integrationPlan = await this.readLandedFamilyValue('integration-plan');\n /* The application's line (#1605) decides whether one organization owns it. */\n const lineDeclaration = resolveApplicationLineDeclaration(await this.readLandedFamilyValue('creator-inputs') as ApplicationCreatorInputs | undefined);\n /*\n * Host facts are needed by an optional PACKAGE scenario, and a worker or a minion is one: its\n * package name derives from the application slug. So they are resolved whenever EITHER family\n * has landed, not only for the composition.\n */\n const hostFacts = capabilityComposition === undefined && integrationPlan === undefined ? undefined : await this.resolveHostFacts(applicationRoot);\n const plan = deriveFoundationCompositionPlan({\n domainPlan: input.domainPlan,\n primaryScope,\n sharedLibPackage,\n ...(businessModel === undefined ? {} : { businessModel }),\n ...(capabilityComposition === undefined ? {} : { capabilityComposition }),\n /*\n * The backend-api name is read only when a MINION will need it. An integration plan declaring\n * workers and no minion refused the whole foundation run over an unreadable manifest that\n * nothing was going to use.\n */\n ...(integrationPlan === undefined ? {} : {\n integrationPlan,\n ...(this.declaresAMinion(integrationPlan) ? { backendApiPackage: this.readBackendApiPackageName(applicationRoot) } : {}),\n }),\n ...(hostFacts === undefined ? {} : { hostFacts }),\n elicitationAnswers: input.elicitationAnswers,\n ...(lineDeclaration.state === ApplicationLineDeclarationState.DECLARED ? { applicationLine: lineDeclaration.line } : {}),\n });\n this.logDebug('Foundation composition plan derived', {\n primaryScope,\n businessModelRead: businessModel !== undefined,\n capabilityCompositionRead: capabilityComposition !== undefined,\n integrationPlanRead: integrationPlan !== undefined,\n capabilityChanges: plan.engineCapabilityChanges.length,\n capabilitiesOwedAProvider: plan.engineCapabilitiesOwedAProvider.length,\n scenarioInvocations: plan.scenarioInvocations.length,\n });\n\n // Capability first: the composed resources' primary-scope posture assumes it.\n const engineCapabilityChanges: FoundationExecutionResult['engineCapabilityChanges'][number][] = plan.engineCapabilityChanges.map((change) => {\n const result = setEngineCapabilityEnabled({\n applicationRoot,\n capability: change.capability,\n enabled: true,\n ...(input.dryRun === true ? { dryRun: true } : {}),\n });\n return { capability: change.capability, basis: change.basis, changed: result.changed, summary: result.summary };\n });\n /*\n * An owed capability is SERVED here when a credential-free engine provider exists for it (#1272)\n * — declared, selected and enabled in one pass — and stays owed otherwise. Three mutations,\n * because two of them are not optional: the boot floor needs a provider in the scope, and a\n * SELECT_ONE capability needs `selection[<capability>].primary` beside it. The capability is\n * enabled LAST, so a failure part-way leaves the application not-yet-configured rather than\n * enabled-and-unbootable.\n */\n const engineCapabilitiesOwedAProvider: FoundationExecutionResult['engineCapabilitiesOwedAProvider'][number][] = [];\n for (const owed of plan.engineCapabilitiesOwedAProvider) {\n /*\n * The creator's own choice comes FIRST (#1488): an answered provider question is a decision, and a\n * credential-free substitute must never override one. A `refused` resolution cannot occur through a\n * run (the interview validator refuses first) and is handled anyway — reported on the owed entry with\n * the offered set — so a direct caller of the executor gets the same honest answer as a run.\n */\n const selected = resolveCreatorSelectedEngineProvider(owed.capability, input.elicitationAnswers);\n if (selected?.kind === 'refused') {\n engineCapabilitiesOwedAProvider.push({ capability: owed.capability, basis: owed.basis, remedy: `${selected.reason} Answer the question again with one of them.` });\n continue;\n }\n if (selected?.kind === 'selected') {\n const writeOptions = input.dryRun === true ? { dryRun: true as const } : {};\n addProviderToScope({\n applicationRoot,\n scope: { kind: 'backend' },\n providerRef: selected.providerRef,\n engineCapabilities: [owed.capability],\n providerCapabilities: selected.providerCapabilities,\n protocols: selected.protocols,\n ...writeOptions,\n });\n if (getEngineCapabilityResolutionMode(owed.capability) === EngineCapabilityResolutionMode.SELECT_ONE) {\n setProviderSelectionPrimary({\n applicationRoot,\n scope: { kind: 'backend' },\n capability: owed.capability,\n primaryProviderRef: selected.providerRef,\n ...writeOptions,\n });\n }\n const enabled = setEngineCapabilityEnabled({ applicationRoot, capability: owed.capability, enabled: true, ...writeOptions });\n engineCapabilityChanges.push({\n capability: owed.capability,\n basis: owed.basis,\n changed: enabled.changed,\n summary: enabled.summary,\n servedByCreatorSelectedProvider: {\n providerRef: selected.providerRef,\n credentialsOwed: selected.credentialsOwed,\n remedy: selected.credentialsOwed.length === 0\n ? `\\`${selected.providerRef}\\` needs no credentials; ${owed.capability} is enabled and serving.`\n : `\\`${selected.providerRef}\\` is declared, selected and ${owed.capability} is enabled — the application boots, and `\n + `${owed.capability} answers once these are set in the environment: ${selected.credentialsOwed.map((secret) => secret.envVarName).join(', ')}.`,\n },\n });\n continue;\n }\n const provider = resolveCredentialFreeEngineProvider(owed.capability);\n if (!provider) {\n engineCapabilitiesOwedAProvider.push({\n capability: owed.capability,\n basis: owed.basis,\n remedy: `This application's own declarations imply ${owed.capability} (${owed.basis}), and it is NOT enabled: `\n + 'the engine refuses to boot with it on and no provider resolving, and every provider that serves it '\n + 'needs an account this process cannot open. Declare one that serves '\n + `${owed.capability} in \\`wildo.saas.config.ts\\` under \\`providers.scopes\\`, then enable the capability beside it.`,\n });\n continue;\n }\n const writeOptions = input.dryRun === true ? { dryRun: true as const } : {};\n addProviderToScope({\n applicationRoot,\n scope: { kind: 'backend' },\n providerRef: provider.providerRef,\n engineCapabilities: [owed.capability],\n providerCapabilities: provider.providerCapabilities,\n protocols: provider.protocols,\n ...writeOptions,\n });\n // FAN_OUT capabilities take every declared provider and carry no `selection` entry; writing\n // one would put the provider into a mechanism nothing consults.\n if (getEngineCapabilityResolutionMode(owed.capability) === EngineCapabilityResolutionMode.SELECT_ONE) {\n setProviderSelectionPrimary({\n applicationRoot,\n scope: { kind: 'backend' },\n capability: owed.capability,\n primaryProviderRef: provider.providerRef,\n ...writeOptions,\n });\n }\n const enabled = setEngineCapabilityEnabled({\n applicationRoot,\n capability: owed.capability,\n enabled: true,\n ...writeOptions,\n });\n engineCapabilityChanges.push({\n capability: owed.capability,\n basis: owed.basis,\n changed: enabled.changed,\n summary: enabled.summary,\n servedByDeclaredProvider: {\n providerRef: provider.providerRef,\n developmentSubstitute: true,\n replaceBeforeRealUsers: `\\`${provider.providerRef}\\` needs no account, which is why this run could declare it — `\n + 'and it is a DEVELOPMENT substitute. Replace it with a provider that really serves '\n + `${owed.capability} before this application faces real users.`,\n },\n });\n }\n\n const frameworkRoot = this.companionContext.resolvedHomes.framework.repositoryRoot ?? null;\n const scenarioDirectoriesByRef = listCompositionScenarioDirectories({ applicationRoot, frameworkRoot });\n const renderer: CompositionTemplateRenderer = createCompositionTemplateRenderer();\n\n const modulesComposedByThisRun = new Set(\n plan.scenarioInvocations\n .filter((invocation) => invocation.scenarioRef === CompositionScenarioRef.ADD_MODULE)\n .map((invocation) => String(invocation.variables['moduleId'])),\n );\n const scenarios: FoundationScenarioExecutionRecord[] = [];\n for (const invocation of plan.scenarioInvocations) {\n // DRY-RUN sequencing honesty: an add-resource edits its module's registry files, which the\n // same run's add-module WRITES. A real run applies sequentially so the files exist by then;\n // a dry run plans against the unmodified tree, where planning the edit would (correctly)\n // refuse on a missing target. Report the dependency instead of failing the whole preview.\n if (\n input.dryRun === true\n && invocation.scenarioRef === CompositionScenarioRef.ADD_RESOURCE\n && modulesComposedByThisRun.has(String(invocation.variables['moduleId']))\n && !existsSync(join(applicationRoot, 'shared-lib', 'src', 'modules', String(invocation.variables['moduleId'])))\n ) {\n scenarios.push({\n scenarioRef: invocation.scenarioRef,\n subject: `${invocation.variables['moduleId']}/${invocation.variables['resourceDir']}`,\n writes: 0, skippedWrites: 0, editsApplied: 0, skippedEdits: 0,\n deferredBehindModuleComposition: true,\n });\n continue;\n }\n const witnessDirectory = alreadyComposedWitness(invocation, applicationRoot);\n if (witnessDirectory !== null) {\n scenarios.push({ scenarioRef: invocation.scenarioRef, subject: witnessDirectory, writes: 0, skippedWrites: 0, editsApplied: 0, skippedEdits: 0, alreadyComposed: true });\n continue;\n }\n scenarios.push(this.applyInvocation({ invocation, applicationRoot, scenarioDirectoriesByRef, renderer, dryRun: input.dryRun === true }));\n }\n /*\n * A surface composed NOW receives the mark accepted EARLIER. The logo step propagates when it runs,\n * but once landed it is never dispatched again, so a website or portal composed after it — a\n * conception re-run that newly decides one — would serve no favicon and no Open Graph image. This is\n * the moment that surface appears, so this is where it is supplied. Nothing accepted: nothing written.\n */\n const brandPropagation = composedASurfaceReceivingTheBrand(scenarios) && input.dryRun !== true\n ? await propagateAcceptedBrand(applicationRoot, this.logger)\n : undefined;\n return {\n playbookRef: 'bottom_up.foundation',\n primaryScope,\n engineCapabilityChanges,\n engineCapabilitiesOwedAProvider,\n scenarios,\n applicationOwnership: this.declareApplicationOwnership(plan.applicationOwnership, applicationRoot, input.dryRun === true),\n compositionScenarios: plan.compositionScenarios,\n backgroundExecution: plan.backgroundExecution,\n ...(hostFacts === undefined ? {} : { hostFacts }),\n ...(brandPropagation === undefined ? {} : { brandPropagation }),\n };\n }\n\n /**\n * The host facts an optional-package scenario needs and no family declares (#1491): the slug and display\n * name from the SaaS config, the port block from the declared services, and the public domain from the\n * application's own infrastructure environments — a REMOTE one first (production, then staging), because\n * that is the apex the website and the portal derive their canonical origins from, and the local one\n * otherwise. `localhost` when no environment declares one, which is the value the framework's own local\n * example uses; the source is recorded on the result so a reader can see which it was.\n */\n private async resolveHostFacts(applicationRoot: string): Promise<FoundationHostFacts & { readonly publicDomainSource: string }> {\n const services = Object.values(this.companionContext.servicesByKey);\n const backendPort = services.find((service) => service.frontendType === undefined)?.defaultPort;\n const appPort = services.find((service) => service.frontendType === AppFrontendType.SAAS_APP)?.defaultPort;\n if (backendPort === undefined || appPort === undefined) {\n throw new FoundationExecutionError(\n 'The optional-package scenarios derive their ports from the backend and app services\\' `defaultPort`, and `wildo.saas.config.ts` declares no such port for '\n + (backendPort === undefined ? 'the backend service' : 'the app service') + '.',\n );\n }\n let publicDomain = 'localhost';\n let publicDomainSource = 'default (no environment declares a public domain)';\n for (const envName of ['production', 'staging', 'local']) {\n try {\n const loaded = await loadInfraEnvConfig(applicationRoot, envName, { freshModuleCache: true });\n const declared = (loaded?.config as { publicDomain?: unknown } | undefined)?.publicDomain;\n if (typeof declared === 'string' && declared.trim().length > 0) {\n publicDomain = declared.trim();\n publicDomainSource = `infrastructure/${envName}`;\n break;\n }\n } catch (error) {\n this.logDebug(`Could not read infrastructure/${envName}; not a source for the public domain`, { error: describeCaughtError(error) });\n }\n }\n return {\n slug: this.companionContext.saasConfig.slug,\n displayName: this.companionContext.saasConfig.displayName,\n publicDomain,\n backendPort,\n appPort,\n publicDomainSource,\n // The same reader the capability composition decided `add-locale` from, so the two cannot disagree.\n servedLanguages: getCompanionServedLanguages(this.appConfigService.config),\n };\n }\n\n /**\n * The landed `business-model` family VALUE, or `undefined` when this application has none.\n *\n * ## Why the executor reads it rather than being handed it\n *\n * The run service resolves every landed family into one `artifactsByFamily` map and passes this\n * executor the domain plan alone. Widening that hand-off is the tidier change and it is NOT the one\n * made here: that file is being actively worked by another lane, and the export field this needs is\n * already named once in the semantic-authority bindings — so reading it through the SAME binding is\n * a second door onto one vocabulary rather than a second copy of it.\n *\n * ## Lenient by design\n *\n * Absent, unloadable or unparseable all answer `undefined`, and the derivation treats that as \"this\n * decides nothing\". `bottom_up.foundation` gates on `domain-plan` and `vision-brief` alone, so an\n * eligible run legitimately has no business model — refusing here would turn one of its OPTIONAL\n * declared inputs into a precondition, which is the shape `application-creation-directive.md`\n * forbids.\n */\n /**\n * Declare the organization type that owns the application when its line requires one (#1605), BEFORE\n * the first initialization: an organization's type is fixed when it is created, so declaring it after\n * boot would need `wildo config reapply-declaration` and the `organizations.promoteToOwnerOrganization`\n * door. With exactly one declared type the answer is unambiguous; with several it is authoring work,\n * so it is marked owed, never guessed.\n */\n private declareApplicationOwnership(\n decision: { readonly required: boolean; readonly basis: string },\n applicationRoot: string,\n dryRun: boolean,\n ): NonNullable<FoundationExecutionResult['applicationOwnership']> {\n if (!decision.required) return decision;\n const organizationTypeRefs = listSaasConfigOrganizationTypeRefs({ applicationRoot });\n if (organizationTypeRefs.length !== 1) {\n return {\n ...decision,\n owed: organizationTypeRefs.length === 0\n ? 'The configuration declares no organization type; declare the one that owns the application, with `ownsApplication: true`.'\n : `The configuration declares ${organizationTypeRefs.length} organization types (${organizationTypeRefs.join(', ')}); `\n + 'mark the one that owns the application with `ownsApplication: true`.',\n };\n }\n const organizationTypeRef = organizationTypeRefs[0]!;\n const result = setOrganizationTypeOwnsApplication({ applicationRoot, organizationTypeRef, ownsApplication: true, ...(dryRun ? { dryRun: true } : {}) });\n return { ...decision, organizationTypeRef, changed: result.changed, summary: result.summary };\n }\n\n private async readLandedFamilyValue(family: 'business-model' | 'capability-composition' | 'integration-plan' | 'creator-inputs'): Promise<unknown> {\n const binding = APPLICATION_SPECIFICATION_SEMANTIC_SCHEMA_BINDINGS.find((entry) => entry.family === family);\n if (binding?.companionExportsField === undefined) return undefined;\n try {\n const exports = await loadSpecificationsCompanionExports(this.companionContext);\n return (exports as unknown as Record<string, unknown>)[binding.companionExportsField] ?? undefined;\n } catch (error) {\n this.logDebug(`Could not read the landed ${family}; nothing is derived from it`, {\n error: describeCaughtError(error),\n });\n return undefined;\n }\n }\n\n private applyInvocation(input: {\n readonly invocation: FoundationScenarioInvocation;\n readonly applicationRoot: string;\n readonly scenarioDirectoriesByRef: ReadonlyMap<string, string>;\n readonly renderer: CompositionTemplateRenderer;\n readonly dryRun: boolean;\n }): FoundationScenarioExecutionRecord {\n const scenarioDirectory = input.scenarioDirectoriesByRef.get(input.invocation.scenarioRef);\n if (!scenarioDirectory) {\n throw new FoundationExecutionError(\n `The \"${input.invocation.scenarioRef}\" composition scenario is not available to this application `\n + '(neither the app-delivered templates nor a framework checkout carries it).',\n );\n }\n const scenario = loadCompositionScenario(scenarioDirectory);\n const variables = resolveCompositionScenarioVariables(scenario.manifest, { ...input.invocation.variables });\n const plan = planCompositionScenario({ scenario, applicationRoot: input.applicationRoot, variables, renderer: input.renderer });\n const subject = input.invocation.variables['resourceDir']\n ? `${input.invocation.variables['moduleId']}/${input.invocation.variables['resourceDir']}`\n : input.invocation.variables['moduleId'] !== undefined\n ? String(input.invocation.variables['moduleId'])\n : (COMPOSED_WITNESS_DIRECTORY[input.invocation.scenarioRef]?.(input.invocation.variables) ?? input.invocation.scenarioRef);\n if (plan.collisions.length > 0) {\n // The engine's never-half-apply invariant: a collision means the application EDITED a target\n // this scenario would rewrite. Refusing with the paths is the honest outcome — the creator\n // reconciles (git is the undo), then re-runs; foundation never overwrites authored work.\n throw new FoundationExecutionError(\n `Composing ${input.invocation.scenarioRef} for ${subject} collides with existing application files: `\n + plan.collisions.join(', ')\n + ' — reconcile them (the application owns those bytes) and re-run.',\n );\n }\n if (!input.dryRun) {\n applyCompositionScenarioPlan({ plan, applicationRoot: input.applicationRoot });\n }\n return {\n scenarioRef: input.invocation.scenarioRef,\n subject,\n writes: plan.writes.length,\n skippedWrites: plan.skipped.length,\n editsApplied: plan.edits.length,\n skippedEdits: plan.skippedEdits.length,\n };\n }\n\n /**\n * The tenancy model, from the PLAN first and the interview second.\n *\n * The plan wins because it is the committed artifact: a creator who answered the question on\n * `bottom_up.domain-plan` has already had that answer shape the modules and relationships, and\n * re-asking here would let a second answer contradict a model built on the first.\n *\n * The elicitation fallback stays for plans authored before `tenancy` existed on the family schema\n * (wonder-crm and wonder-todos are both such plans). Neither source present is still a refusal:\n * the executor deliberately does not derive this.\n */\n private resolvePrimaryScope(\n domainPlan: unknown,\n answers: ReadonlyArray<{ readonly questionRef: string; readonly answer: string }>,\n ): FoundationPrimaryScope {\n const parsed = DomainPlanOutputSetSchema.safeParse(domainPlan);\n if (parsed.success && parsed.data.tenancy !== undefined) return parsed.data.tenancy;\n const answer = answers.find((candidate) => candidate.questionRef === 'primary-scope')?.answer?.trim();\n if (answer === FoundationPrimaryScope.ORGANIZATIONS || answer === FoundationPrimaryScope.USERS) return answer;\n throw new FoundationExecutionError(\n 'The tenancy model is a creator decision the executor deliberately does not derive, and neither '\n + 'source supplied it: the domain plan carries no `tenancy`, and no \"primary-scope\" elicitation '\n + 'answer (\"organizations\" or \"users\") was given.'\n + (answer ? ` Received answer: \"${answer}\".` : ''),\n );\n }\n\n private readSharedLibPackageName(applicationRoot: string): string {\n const manifestPath = join(applicationRoot, 'shared-lib', 'package.json');\n try {\n const name = (JSON.parse(readFileSync(manifestPath, 'utf8')) as { name?: string }).name;\n if (name) return name;\n } catch {\n // fall through to the named refusal below\n }\n throw new FoundationExecutionError(`Cannot read the shared-lib package name at ${manifestPath} — not a composed application root.`);\n }\n\n /**\n * Whether the landed integration plan declares a minion — read leniently, because an unparseable\n * plan declares nothing and the derivation reads it the same way.\n */\n private declaresAMinion(integrationPlan: unknown): boolean {\n const minions = (integrationPlan as { minions?: unknown } | null)?.minions;\n return Array.isArray(minions) && minions.length > 0;\n }\n\n /**\n * The backend-api package name — a minion's package re-derives the application's initialization\n * from it, so `add-minion` binds it as a variable. Read the same way as the shared-lib name, and\n * refusing the same way: a composed application root has both, and a minion composed against a\n * guessed package name produces a package that cannot resolve its own initialization.\n */\n private readBackendApiPackageName(applicationRoot: string): string {\n const manifestPath = join(applicationRoot, 'backend-api', 'package.json');\n try {\n const name = (JSON.parse(readFileSync(manifestPath, 'utf8')) as { name?: string }).name;\n if (name) return name;\n } catch {\n // fall through to the named refusal below\n }\n throw new FoundationExecutionError(`Cannot read the backend-api package name at ${manifestPath} — not a composed application root.`);\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"governed-document-texts.companion.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"governed-document-texts.companion.d.ts","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/governed-document-texts.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAC7B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oDAAoD,CAAC;AACtG,OAAO,EAGL,KAAK,mCAAmC,EACzC,MAAM,yCAAyC,CAAC;AAcjD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,kCAAkC,CAAC,KAAK,EAAE;IACxD,QAAQ,CAAC,QAAQ,EAAE,SAAS,uBAAuB,EAAE,CAAC;IACtD,QAAQ,CAAC,MAAM,EAAE,SAAS,2BAA2B,EAAE,CAAC;IACxD,+GAA+G;IAC/G,QAAQ,CAAC,oBAAoB,EAAE,CAAC,KAAK,EAAE,2BAA2B,KAAK,MAAM,GAAG,SAAS,CAAC;IAC1F,QAAQ,CAAC,iBAAiB,EAAE,SAAS,mCAAmC,EAAE,CAAC;IAC3E,oDAAoD;IACpD,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;CACrB,GAAG,WAAW,CAAC,MAAM,EAAE,8BAA8B,CAAC,CAwCtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"governed-document-texts.companion.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"governed-document-texts.companion.js","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/governed-document-texts.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,EAClC,oCAAoC,EACpC,gCAAgC,EAChC,oCAAoC,GAGrC,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,6BAA6B,EAC7B,+CAA+C,GAEhD,MAAM,yCAAyC,CAAC;AAEjD;;;;;;;;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AClC,QAAwD;IAExD,IAAI,KAAK,CAAC,MAAM,KAAK,SAAS,IAAI,KAAK,CAAC,gBAAgB,KAAK,SAAS,EAAE,CAAC;QACvE,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,gBAAgB,EAAE,CAAC,GAAG,IAAI,GAAG,CAAS,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;IACzG,CAAC;IACD,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC1B,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAE,CAAC,MAAM,EAAE,gBAAgB,EAAE,CAAC,GAAG,IAAI,GAAG,CAAS,QAAQ,CAAC,CAAC,CAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;IACvH,CAAC;IACD,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,qBAAqB,EAAE,gBAAgB,EAAE,CAAC,GAAG,IAAI,GAAG,CAAS,KAAK,CAAC,gBAAgB,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;AACxI,CAAC","sourcesContent":["import {\n GovernedDocumentPublicDocumentKind,\n GovernedDocumentPublicDocumentSchema,\n governedDocumentReleaseIsInForce,\n projectGovernedDocumentPublicRelease,\n type GovernedDocumentPublicDocument,\n type GovernedDocumentRelease,\n} from '@wildo-ai/saas-models';\nimport type { ComplianceDocumentCandidate } from '@wildo-ai/saas-specifications/application-creation';\nimport {\n latestGovernedDocumentRelease,\n projectComplianceDocumentCandidatePublicContent,\n type AssuranceDocumentPublicationVariant,\n} from '@wildo-ai/saas-specifications/assurance';\n\n/**\n * BCP 47's own code for \"undetermined\" — the language a draft is printed under when neither the draft\n * nor a single declared publication variant decides one. A draft may leave its language open on\n * purpose (`ComplianceDocumentCandidate.locale` is optional so that the decision never gates drafting),\n * so the honest value is the one the standard reserves for exactly that, not a guessed language. BCP 47\n * admits `und` only where a tag is REQUIRED and the language is not known, and both hold here: the public\n * content schema requires a locale, and the draft has not decided one.\n *\n * spec-cite: RFC 5646 §4.1, item 5, the 'und' (Undetermined) bullet — fetched 2026-09-25.\n */\nconst UNDETERMINED_LANGUAGE = 'und';\n\n/**\n * The CURRENT text of every governed document the application holds, keyed by definition ref (#1645) —\n * what the workbench prints when a creator asks for all their documents as PDF. PURE.\n *\n * Per definition, the first that exists, each picked by `latestGovernedDocumentRelease` (latest\n * effective, then highest version — the precedence `resolveEffectiveDocumentRelease` applies):\n *\n * 1. **a release IN FORCE at `at`** — the document's text as it stands;\n * 2. **a release not yet in effect** — the text the application has committed to, which the PDF prints\n * with its effective date;\n * 3. **its latest draft**, as the same allow-list projection the public pages use\n * (`projectComplianceDocumentCandidatePublicContent`). Its language and jurisdictions come from the\n * draft when it states both, else from the application's single declared publication variant, else\n * they are UNDETERMINED — never borrowed from one of several variants nobody picked for it;\n * 4. **an EXPIRED release** — ranked last because it is no longer anyone's text: a draft being worked\n * on says more about the document than a release that has lapsed. The PDF prints it as expired.\n *\n * Otherwise nothing, and the caller prints the document as not composed yet.\n *\n * Unlike the public projection (`projectGovernedDocumentPublicDocuments` in the CLI) nothing is filtered\n * by publication channel: an internal governance policy is as much the creator's document as the privacy\n * notice, and this is the creator reading their own documents, not a page facing the public.\n *\n * Variants are not multiplied out: a document released in two languages prints once, in the release\n * selected above. The bundle answers \"what does each document say\", and the other language is the same\n * document.\n */\nexport function selectCurrentGovernedDocumentTexts(input: {\n readonly releases: readonly GovernedDocumentRelease[];\n readonly drafts: readonly ComplianceDocumentCandidate[];\n /** The definition ref a draft is drafted against — the catalog's `document:` → `document-definition:` join. */\n readonly definitionRefOfDraft: (draft: ComplianceDocumentCandidate) => string | undefined;\n readonly publishedVariants: readonly AssuranceDocumentPublicationVariant[];\n /** ISO-8601. The instant \"in force\" is asked at. */\n readonly at: string;\n}): ReadonlyMap<string, GovernedDocumentPublicDocument> {\n const texts = new Map<string, GovernedDocumentPublicDocument>();\n\n const at = Date.parse(input.at);\n const releasesByDefinition = new Map<string, GovernedDocumentRelease[]>();\n for (const release of input.releases) {\n const key = release.definition.definitionRef as string;\n releasesByDefinition.set(key, [...(releasesByDefinition.get(key) ?? []), release]);\n }\n const draftsByDefinition = new Map<string, ComplianceDocumentCandidate>();\n for (const draft of input.drafts) {\n const definitionRef = input.definitionRefOfDraft(draft);\n // The candidate set holds at most one draft per document; the first wins should it ever hold two.\n if (definitionRef !== undefined && !draftsByDefinition.has(definitionRef)) draftsByDefinition.set(definitionRef, draft);\n }\n\n for (const definitionRef of new Set([...releasesByDefinition.keys(), ...draftsByDefinition.keys()])) {\n const releases = releasesByDefinition.get(definitionRef) ?? [];\n const release = latestGovernedDocumentRelease(releases.filter((candidate) => governedDocumentReleaseIsInForce(candidate, input.at)))\n ?? latestGovernedDocumentRelease(releases.filter((candidate) => Date.parse(candidate.effectiveAt) > at));\n const draft = draftsByDefinition.get(definitionRef);\n const chosen = release ?? (draft === undefined ? latestGovernedDocumentRelease(releases) : undefined);\n if (chosen !== undefined) {\n texts.set(definitionRef, GovernedDocumentPublicDocumentSchema.parse({\n schemaVersion: 1,\n kind: GovernedDocumentPublicDocumentKind.RELEASED,\n release: projectGovernedDocumentPublicRelease(chosen),\n content: chosen.content,\n approvalState: chosen.approvalState,\n }));\n } else if (draft !== undefined) {\n texts.set(definitionRef, GovernedDocumentPublicDocumentSchema.parse({\n schemaVersion: 1,\n kind: GovernedDocumentPublicDocumentKind.UNRELEASED_DRAFT,\n documentRef: draft.documentRef,\n content: projectComplianceDocumentCandidatePublicContent(draft, draftPublication(draft, input.publishedVariants)),\n }));\n }\n }\n return texts;\n}\n\nfunction draftPublication(\n draft: ComplianceDocumentCandidate,\n variants: readonly AssuranceDocumentPublicationVariant[],\n): { locale: string; jurisdictionRefs: string[] } {\n if (draft.locale !== undefined && draft.jurisdictionRefs !== undefined) {\n return { locale: draft.locale, jurisdictionRefs: [...new Set<string>(draft.jurisdictionRefs)].sort() };\n }\n if (variants.length === 1) {\n return { locale: variants[0]!.locale, jurisdictionRefs: [...new Set<string>(variants[0]!.jurisdictionRefs)].sort() };\n }\n return { locale: draft.locale ?? UNDETERMINED_LANGUAGE, jurisdictionRefs: [...new Set<string>(draft.jurisdictionRefs ?? [])].sort() };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"governed-documents-pdf.companion.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"governed-documents-pdf.companion.d.ts","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/governed-documents-pdf.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,2BAA2B,EAChC,KAAK,+BAA+B,EACrC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGL,KAAK,4BAA4B,EAClC,MAAM,gCAAgC,CAAC;AAExC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAK3E;;;;GAIG;AACH,wBAAgB,iCAAiC,CAAC,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAM5G;AAED;;;;;;;;;GASG;AACH,wBAAgB,2CAA2C,CAAC,YAAY,EAAE;IACxE,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,uBAAuB,EAAE,kCAAkC,CAAC,CAAC;IACpF,gFAAgF;IAChF,QAAQ,CAAC,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC;CACjD,GAAG,+BAA+B,CAAC,4BAA4B,EAAE,2BAA2B,CAAC,CAY7F"}
|