@wildo-ai/dev-companion 1.1.8 → 1.1.10
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/bin/companion-supervisor.d.mts +33 -0
- package/bin/companion-supervisor.mjs +174 -0
- package/bin/wildo-dev-companion-supervised.mjs +16 -0
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/brand/models/accepted-brand-mark.models.d.ts +46 -0
- package/dist/esm/brand/models/accepted-brand-mark.models.d.ts.map +1 -0
- package/dist/esm/brand/models/accepted-brand-mark.models.js +89 -0
- package/dist/esm/brand/models/accepted-brand-mark.models.js.map +1 -0
- 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 +8 -2
- 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 +8 -2
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
- package/dist/esm/brand/models/logo-judge.schemas.d.ts +5 -3
- package/dist/esm/brand/models/logo-judge.schemas.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-judge.schemas.js +5 -3
- package/dist/esm/brand/models/logo-judge.schemas.js.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts +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 +9 -11
- 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 +10 -7
- 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 +21 -0
- 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 +33 -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 +130 -2
- 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 +176 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-usage-limit.models.d.ts +52 -0
- package/dist/esm/claude-cli/models/coding-agent-usage-limit.models.d.ts.map +1 -0
- package/dist/esm/claude-cli/models/coding-agent-usage-limit.models.js +206 -0
- package/dist/esm/claude-cli/models/coding-agent-usage-limit.models.js.map +1 -0
- 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 +38 -3
- 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 +48 -4
- 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/accepted-change-commit.companion.service.d.ts +165 -8
- 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 +536 -28
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/accepted-change-import-closure.companion.d.ts +53 -0
- package/dist/esm/claude-cli/services/accepted-change-import-closure.companion.d.ts.map +1 -0
- package/dist/esm/claude-cli/services/accepted-change-import-closure.companion.js +193 -0
- package/dist/esm/claude-cli/services/accepted-change-import-closure.companion.js.map +1 -0
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +164 -6
- 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 +468 -41
- 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 +15 -2
- 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 +36 -4
- 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 +360 -339
- package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.js +13 -2
- 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 +88 -13
- package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.js +448 -51
- 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 +5 -4
- package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/config/primary-language.companion.utils.js +5 -4
- package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
- package/dist/esm/core/context/application-module-generations.companion.d.ts +103 -0
- package/dist/esm/core/context/application-module-generations.companion.d.ts.map +1 -0
- package/dist/esm/core/context/application-module-generations.companion.js +313 -0
- package/dist/esm/core/context/application-module-generations.companion.js.map +1 -0
- 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 +19 -19
- package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
- package/dist/esm/core/context/companion-package-loaders.companion.js +52 -40
- 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 +4 -0
- package/dist/esm/core/inject/models/container.js.map +1 -1
- package/dist/esm/core/inject/models/service-types.d.ts +4 -0
- package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
- package/dist/esm/core/inject/models/service-types.js +4 -0
- 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 +15 -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 +38 -3
- 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 +21 -0
- 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 +71 -25
- 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 +10 -0
- 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 +58 -2
- 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 +0 -28
- 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 +197 -20
- 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 +49 -7
- 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/resources/launch-blockers.companion.d.ts +51 -0
- package/dist/esm/core/introspection/resources/launch-blockers.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/resources/launch-blockers.companion.js +124 -0
- package/dist/esm/core/introspection/resources/launch-blockers.companion.js.map +1 -0
- 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 +14 -3
- 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 +91 -5
- 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 +186 -11
- 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 +437 -35
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-input-closure.companion.d.ts +44 -0
- package/dist/esm/core/introspection/services/introspection-input-closure.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/services/introspection-input-closure.companion.js +104 -0
- package/dist/esm/core/introspection/services/introspection-input-closure.companion.js.map +1 -0
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts +123 -24
- 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 +281 -54
- 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 +22 -6
- 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 +38 -7
- 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 +9 -0
- 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 +29 -9
- 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 +10 -10
- 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 +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 +20 -19
- 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 +7 -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 +13 -4
- 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 +9 -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 +2 -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 +4 -3
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.js +14 -8
- 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 +17 -4
- 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 +7 -0
- 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 +4 -4
- 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 +35 -0
- package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/application-runtime-liveness.companion.js +74 -0
- 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 +39 -9
- package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-env-file.js +75 -16
- package/dist/esm/core/runtime/companion-env-file.js.map +1 -1
- package/dist/esm/core/runtime/companion-self-restart.companion.d.ts +38 -0
- package/dist/esm/core/runtime/companion-self-restart.companion.d.ts.map +1 -0
- package/dist/esm/core/runtime/companion-self-restart.companion.js +110 -0
- package/dist/esm/core/runtime/companion-self-restart.companion.js.map +1 -0
- package/dist/esm/core/runtime/companion-startup-assembly.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-startup-assembly.js +7 -1
- package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts +12 -0
- package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.js +15 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
- package/dist/esm/core/runtime/event-loop-stall-monitor.companion.d.ts +83 -0
- package/dist/esm/core/runtime/event-loop-stall-monitor.companion.d.ts.map +1 -0
- package/dist/esm/core/runtime/event-loop-stall-monitor.companion.js +150 -0
- package/dist/esm/core/runtime/event-loop-stall-monitor.companion.js.map +1 -0
- 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 +30 -4
- 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 +78 -12
- 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/bounded-concurrency.utils.d.ts +17 -0
- package/dist/esm/core/utils/bounded-concurrency.utils.d.ts.map +1 -0
- package/dist/esm/core/utils/bounded-concurrency.utils.js +37 -0
- package/dist/esm/core/utils/bounded-concurrency.utils.js.map +1 -0
- package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts +10 -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 +9 -2
- 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 +2 -0
- 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 +69 -7
- 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 +0 -17
- 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 +17 -12
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.d.ts +10 -5
- package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.js +31 -21
- 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/expert-agent-registration.d.ts +56 -0
- package/dist/esm/deliberations/utils/expert-agent-registration.d.ts.map +1 -0
- package/dist/esm/deliberations/utils/expert-agent-registration.js +74 -0
- package/dist/esm/deliberations/utils/expert-agent-registration.js.map +1 -0
- package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts +9 -5
- package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
- package/dist/esm/deliberations/utils/load-committed-expert-agents.js +11 -15
- 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 +6 -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 +4 -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 +8 -2
- 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 +8 -2
- 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 +5 -3
- 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 +5 -3
- 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 +17 -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 +51 -14
- 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 +1 -0
- 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 +55 -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/control-plane-label-blocks.d.ts +344 -0
- package/dist/esm/i18n/control-plane-label-blocks.d.ts.map +1 -0
- package/dist/esm/i18n/control-plane-label-blocks.js +115 -0
- package/dist/esm/i18n/control-plane-label-blocks.js.map +1 -0
- 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 +410 -0
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js +13 -145
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts +65 -0
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js +4 -37
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts +65 -0
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js +4 -37
- 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 +11 -0
- package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts +5 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js +5 -0
- 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 +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js +2 -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 +56 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +15 -0
- 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 +553 -0
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +187 -5
- 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 +60 -0
- package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/application-creation.en.js +66 -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/localization.en.d.ts +82 -0
- package/dist/esm/i18n/system_enums/localization.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/localization.en.js +82 -0
- package/dist/esm/i18n/system_enums/localization.en.js.map +1 -0
- 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 +1 -0
- package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/risk-register.en.js +1 -0
- 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 +1 -0
- 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 +2 -0
- 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 +10 -0
- package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.js +13 -0
- 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-progress.models.d.ts +43 -0
- package/dist/esm/i18n-labelling/models/labelling-progress.models.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/models/labelling-progress.models.js +34 -0
- package/dist/esm/i18n-labelling/models/labelling-progress.models.js.map +1 -0
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +29 -2
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-unit.models.js +17 -0
- 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 +5 -0
- 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 +44 -4
- 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 +8 -0
- 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 +97 -56
- 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 +18 -0
- 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 +269 -153
- 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/labelling-concurrency.utils.d.ts +41 -0
- package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.js +47 -0
- package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.js.map +1 -0
- 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 +12 -0
- 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 +10 -2
- 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 +8 -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 +9 -2
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.d.ts +89 -0
- package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.js +229 -0
- package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts +13 -7
- 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 +13 -7
- 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 +3 -3
- 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 +85 -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 +101 -0
- 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/creation-intervention.models.d.ts +308 -0
- package/dist/esm/meta-workflows/models/creation-intervention.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/creation-intervention.models.js +365 -0
- package/dist/esm/meta-workflows/models/creation-intervention.models.js.map +1 -0
- package/dist/esm/meta-workflows/models/generation-step-progress.models.d.ts +61 -0
- package/dist/esm/meta-workflows/models/generation-step-progress.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/generation-step-progress.models.js +58 -0
- package/dist/esm/meta-workflows/models/generation-step-progress.models.js.map +1 -0
- 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 +10 -6
- 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 +11 -6
- 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 +3 -0
- 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 +8 -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 +26 -0
- 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 +66 -10
- 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/models/website-copy-review.actors-system.definitions.d.ts +36 -0
- package/dist/esm/meta-workflows/models/website-copy-review.actors-system.definitions.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/website-copy-review.actors-system.definitions.js +97 -0
- package/dist/esm/meta-workflows/models/website-copy-review.actors-system.definitions.js.map +1 -0
- package/dist/esm/meta-workflows/models/website-copy-review.models.d.ts +124 -0
- package/dist/esm/meta-workflows/models/website-copy-review.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/website-copy-review.models.js +74 -0
- package/dist/esm/meta-workflows/models/website-copy-review.models.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.d.ts +13 -0
- package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.js +33 -0
- package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.d.ts +145 -0
- package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.js +179 -0
- package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +672 -24
- 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 +1887 -74
- 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 +232 -14
- 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 +407 -55
- 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 +158 -3
- 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 +446 -18
- 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 +130 -2
- 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 +266 -10
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-website-copy-review.companion.service.d.ts +122 -0
- package/dist/esm/meta-workflows/services/application-build-website-copy-review.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-build-website-copy-review.companion.service.js +295 -0
- package/dist/esm/meta-workflows/services/application-build-website-copy-review.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-enabled-surface-brief.companion.utils.d.ts +22 -0
- package/dist/esm/meta-workflows/services/application-enabled-surface-brief.companion.utils.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-enabled-surface-brief.companion.utils.js +45 -0
- package/dist/esm/meta-workflows/services/application-enabled-surface-brief.companion.utils.js.map +1 -0
- 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 +10 -11
- 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/build-task-brief-application-facts.companion.d.ts +53 -0
- package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.js +97 -0
- package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.js.map +1 -0
- 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 +10 -11
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.d.ts +82 -0
- package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js +291 -0
- package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.d.ts +76 -0
- package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.js +88 -0
- package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts +53 -0
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js +164 -0
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.d.ts +37 -0
- package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.js +52 -0
- package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.js.map +1 -0
- package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +79 -14
- package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/dossier.companion.service.js +185 -29
- 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 +52 -4
- 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 +134 -62
- 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/interview-answer-proposal.companion.d.ts +67 -0
- package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.js +64 -0
- package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.js.map +1 -0
- 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 +61 -20
- 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 +134 -4
- 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 +390 -7
- 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 +166 -7
- 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 +703 -116
- 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 +62 -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 +152 -2
- 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 +22 -18
- package/dist/esm/__tests__/asset-noop.d.ts +0 -3
- package/dist/esm/__tests__/asset-noop.d.ts.map +0 -1
- package/dist/esm/__tests__/asset-noop.js +0 -2
- package/dist/esm/__tests__/asset-noop.js.map +0 -1
- package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts +0 -2
- package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +0 -1
- package/dist/esm/__tests__/chdir-dogfood-app.setup.js +0 -44
- package/dist/esm/__tests__/chdir-dogfood-app.setup.js.map +0 -1
- package/dist/esm/__tests__/internal-test-view.d.ts +0 -39
- package/dist/esm/__tests__/internal-test-view.d.ts.map +0 -1
- package/dist/esm/__tests__/internal-test-view.js +0 -2
- package/dist/esm/__tests__/internal-test-view.js.map +0 -1
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts +0 -50
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +0 -1
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js +0 -157
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +0 -1
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts +0 -8
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +0 -1
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js +0 -43
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js.map +0 -1
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts +0 -79
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +0 -1
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js +0 -193
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companion-context.js","sourceRoot":"","sources":["../../../../../src/core/context/companion-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,kBAAkB,EAClB,8BAA8B,EAC9B,6BAA6B,EAC7B,qBAAqB,EACrB,cAAc,EACd,gCAAgC,EAChC,cAAc,GACf,MAAM,+BAA+B,CAAC;AAmEvC;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB;IAC3C,MAAM,cAAc,GAAG,qBAAqB,EAAE,CAAC;IAC/C,MAAM,iBAAiB,GAAG,6BAA6B,EAAE,CAAC;IAC1D,MAAM,aAAa,GAAG,kBAAkB,CAAC,cAAc,EAAE;QACvD,iBAAiB,EAAE,iBAAiB,EAAE,aAAa,IAAI,IAAI;QAC3D,wBAAwB,EAAE,iBAAiB,EAAE,oBAAoB,IAAI,KAAK;KAC3E,CAAC,CAAC;IAEH,IAAI,aAAa,CAAC,KAAK,GAAG,cAAc,CAAC,QAAQ,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oB,KAAK,IAAI;SACxD,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC","sourcesContent":["import { existsSync, readFileSync } from \"node:fs\";\nimport { resolve } from \"node:path\";\nimport {\n buildResolvedHomes,\n normalizeSaasRuntimeDescriptor,\n resolveMachinePreferencesPath,\n resolveWorkspaceScope,\n loadSaasConfig,\n resolvePackageCompanionEntryPath,\n WorkspaceScope,\n} from \"@wildo-ai/platform-config-lib\";\nimport type { AppLibraryDefinition, WildoSaasConfig, WorkspaceScopeResult, AppServiceDefinition, ResolvedHomes } from \"@wildo-ai/platform-config-lib\";\n\n/**\n * Resolved companion context — the companion's awareness of the app\n * it operates on. Resolved once at startup via workspace scope detection\n * and config loading from `wildo.saas.config.ts`.\n *\n * The companion is always placed in `.wildo-saas/wildo-dev-companion/`\n * inside a SaaS app directory. The saas config is at the app root\n * (two levels up from the companion).\n */\nexport interface CompanionContext {\n /** Full workspace scope detection result */\n workspaceScope: WorkspaceScopeResult;\n\n /** Trusted homes snapshot resolved once at companion startup */\n resolvedHomes: ResolvedHomes;\n\n /** The SaaS app root directory (where wildo.saas.config.ts lives) */\n saasRoot: string;\n\n /** The companion package home inside the app runtime home */\n companionHome: string;\n\n /** Loaded and validated SaaS config */\n saasConfig: WildoSaasConfig;\n\n /** All declared SaaS services keyed by SaaS service key (`app`, `backendApi`, ...) */\n servicesByKey: Record<string, AppServiceDefinition>;\n\n /** Frontend services keyed by runtime/public serviceName */\n frontendServices: Record<string, AppServiceDefinition>;\n\n /** Backend services keyed by declared serviceName */\n backendServices: Record<string, AppServiceDefinition>;\n\n /** Declarative domain modules from wildo.saas.config.ts */\n declaredModules: NonNullable<WildoSaasConfig[\"modules\"]>;\n\n /** All declared module ids */\n moduleIds: string[];\n\n /** Module ids keyed by declared SaaS service key */\n moduleIdsByService: Record<string, string[]>;\n\n /** Resolved library package roots and companion entrypoints */\n resolvedLibraries: Record<string, CompanionResolvedLibrary>;\n\n /** Resolved specifications package root, runtime entrypoint, and continuity declaration. */\n resolvedSpecifications: CompanionResolvedSpecificationsPackageRef | null;\n}\n\nexport interface CompanionResolvedPackageRef {\n declaredPath: string;\n packageRoot: string;\n entryPath: string;\n}\n\nexport interface CompanionResolvedSpecificationsPackageRef extends CompanionResolvedPackageRef {\n}\n\nexport interface CompanionResolvedLibrary extends CompanionResolvedPackageRef {\n libraryId: string;\n libraryType: AppLibraryDefinition[\"type\"];\n}\n\n/**\n * Resolves the companion's application context by detecting the workspace\n * scope from CWD and loading the saas configuration.\n *\n * The companion relies on `resolveWorkspaceScope()` which walks up from CWD\n * exactly once at startup, then upgrades that detection into the shared\n * `ResolvedHomes` snapshot so every later consumer reads the same app/framework\n * roots instead of re-deriving them independently.\n *\n * @throws If the companion is not running inside a SaaS app directory\n * @throws If the saas config cannot be loaded or fails validation\n */\nexport async function resolveCompanionContext(): Promise<CompanionContext> {\n const workspaceScope = resolveWorkspaceScope();\n const storedPreferences = loadMachinePreferencesForHint();\n const resolvedHomes = buildResolvedHomes(workspaceScope, {\n frameworkPathHint: storedPreferences?.frameworkPath ?? null,\n isFrameworkDeveloperHint: storedPreferences?.isFrameworkDeveloper ?? false,\n });\n\n if (resolvedHomes.scope < WorkspaceScope.SAAS_APP || !resolvedHomes.app.layout) {\n throw new Error(\n `Companion must run inside a SaaS application directory. ` +\n `Detected scope: ${WorkspaceScope[resolvedHomes.scope]}. ` +\n `No wildo.saas.config.ts found walking up from the current working directory.`,\n );\n }\n\n const saasRoot = resolvedHomes.app.declarationRoot!;\n const saasConfigPath = resolvedHomes.app.saasConfigPath!;\n const companionHome = resolvedHomes.app.layout.companionHome;\n\n const saasConfig = await loadSaasConfig(saasConfigPath);\n if (!saasConfig) {\n throw new Error(`Failed to load saas config at ${saasConfigPath}`);\n }\n\n const frontendServices: Record<string, AppServiceDefinition> = {};\n const backendServices: Record<string, AppServiceDefinition> = {};\n const normalizedRuntimeDescriptor = normalizeSaasRuntimeDescriptor({\n name: saasConfig.name,\n slug: saasConfig.slug,\n displayName: saasConfig.displayName,\n description: saasConfig.description,\n type: saasConfig.type,\n services: saasConfig.services,\n engineCapabilities: saasConfig.engineCapabilities,\n providers: saasConfig.providers,\n providerConfigurations: saasConfig.providerConfigurations,\n // Required by the managed declaration since #1032. This call used to be cast `as any`, so omitting it type-checked\n // and the companion crash-looped on `organizationTypes: expected record, received undefined`. The cast is gone:\n // a field the descriptor requires is now a compile error here.\n organizationTypes: saasConfig.organizationTypes,\n dataServices: saasConfig.dataServices,\n modules: saasConfig.modules,\n bootstrap: saasConfig.bootstrap,\n libraries: saasConfig.libraries,\n specifications: saasConfig.specifications,\n });\n\n const resolvedLibraries = resolveCompanionLibraries(saasRoot, normalizedRuntimeDescriptor.libraries);\n const resolvedSpecifications = resolveCompanionSpecificationsPackageRef(saasRoot, normalizedRuntimeDescriptor.specifications);\n\n for (const [, service] of Object.entries(saasConfig.services)) {\n if (service.frontendType) {\n frontendServices[service.serviceName] = service;\n } else {\n backendServices[service.serviceName] = service;\n }\n }\n\n return {\n workspaceScope,\n resolvedHomes,\n saasRoot,\n companionHome,\n saasConfig,\n servicesByKey: saasConfig.services,\n frontendServices,\n backendServices,\n declaredModules: normalizedRuntimeDescriptor.declaredModules,\n moduleIds: normalizedRuntimeDescriptor.moduleIds,\n moduleIdsByService: normalizedRuntimeDescriptor.moduleIdsByService,\n resolvedLibraries,\n resolvedSpecifications,\n };\n}\n\nfunction resolveCompanionLibraries(\n saasRoot: string,\n declaredLibraries: Record<string, AppLibraryDefinition> | undefined,\n): Record<string, CompanionResolvedLibrary> {\n const resolvedLibraries: Record<string, CompanionResolvedLibrary> = {};\n\n for (const [libraryId, declaredLibrary] of Object.entries(declaredLibraries ?? {})) {\n const packageRoot = resolve(saasRoot, declaredLibrary.path);\n resolvedLibraries[libraryId] = {\n libraryId,\n libraryType: declaredLibrary.type,\n declaredPath: declaredLibrary.path,\n packageRoot,\n entryPath: resolvePackageCompanionEntryPath(packageRoot),\n };\n }\n\n return resolvedLibraries;\n}\n\nfunction resolveCompanionPackageRef(saasRoot: string, declaredTarget: { path: string } | undefined): CompanionResolvedPackageRef | null {\n if (!declaredTarget) {\n return null;\n }\n\n const packageRoot = resolve(saasRoot, declaredTarget.path);\n return {\n declaredPath: declaredTarget.path,\n packageRoot,\n entryPath: resolvePackageCompanionEntryPath(packageRoot),\n };\n}\n\nfunction resolveCompanionSpecificationsPackageRef(\n saasRoot: string,\n declaredTarget: { path: string } | undefined,\n): CompanionResolvedSpecificationsPackageRef | null {\n const resolvedPackage = resolveCompanionPackageRef(saasRoot, declaredTarget);\n if (!resolvedPackage) {\n return null;\n }\n return {\n ...resolvedPackage,\n };\n}\n\ninterface CompanionMachinePreferencesHint {\n frameworkPath: string | null;\n isFrameworkDeveloper: boolean;\n}\n\n/**\n * Read the machine-level Wildo preferences file once at companion bootstrap\n * to produce a `frameworkPathHint` for `buildResolvedHomes`.\n *\n * The CLI does this in `ContextManager.detect()` so it can still resolve\n * framework-owned assets when the app workspace is installed outside the\n * framework monorepo. The companion must mirror that contract — without this\n * hint, `resolvedHomes.framework.repositoryRoot` is null whenever the app\n * lives outside the framework checkout, even if the operator already\n * configured a valid framework path in their global preferences.\n *\n * Failures are swallowed and logged indirectly via the returned null: an\n * unreadable preferences file is not a bootstrap blocker; the companion\n * simply falls back to whatever workspace-scope detection alone produced.\n */\nfunction loadMachinePreferencesForHint(): CompanionMachinePreferencesHint | null {\n try {\n const preferencesPath = resolveMachinePreferencesPath();\n if (!existsSync(preferencesPath)) {\n return null;\n }\n\n const raw = JSON.parse(readFileSync(preferencesPath, \"utf8\")) as {\n frameworkPath?: unknown;\n isFrameworkDeveloper?: unknown;\n };\n\n return {\n frameworkPath: typeof raw.frameworkPath === \"string\" && raw.frameworkPath.length > 0 ? raw.frameworkPath : null,\n isFrameworkDeveloper: raw.isFrameworkDeveloper === true,\n };\n } catch {\n return null;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"companion-context.js","sour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e,GAAG,0BAA0B,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;IAC7E,IAAI,CAAC,eAAe,EAAE,CAAC;QACrB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO;QACL,GAAG,eAAe;KACnB,CAAC;AACJ,CAAC;AAOD;;;;;;;;;;;;;;GAcG;AACH,SAAS,6BAA6B;IACpC,IAAI,CAAC;QACH,MAAM,eAAe,GAAG,6BAA6B,EAAE,CAAC;QACxD,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,EAAE,CAAC;YACjC,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC,CAG3D,CAAC;QAEF,OAAO;YACL,aAAa,EAAE,OAAO,GAAG,CAAC,aAAa,KAAK,QAAQ,IAAI,GAAG,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI;YAC/G,oBAAoB,EAAE,GAAG,CAAC,oBAAoB,KAAK,IAAI;SACxD,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC","sourcesContent":["import { existsSync, readFileSync } from \"node:fs\";\nimport { resolve } from \"node:path\";\nimport {\n buildResolvedHomes,\n normalizeSaasRuntimeDescriptor,\n resolveMachinePreferencesPath,\n resolveWorkspaceScope,\n loadSaasConfig,\n resolvePackageCompanionEntryPath,\n WorkspaceScope,\n} from \"@wildo-ai/platform-config-lib\";\nimport type { AppLibraryDefinition, WildoSaasConfig, WorkspaceScopeResult, AppServiceDefinition, ResolvedHomes } from \"@wildo-ai/platform-config-lib\";\n\n/**\n * Resolved companion context — the companion's awareness of the app\n * it operates on. Resolved once at startup via workspace scope detection\n * and config loading from `wildo.saas.config.ts`.\n *\n * The companion is always placed in `.wildo-saas/wildo-dev-companion/`\n * inside a SaaS app directory. The saas config is at the app root\n * (two levels up from the companion).\n */\nexport interface CompanionContext {\n /** Full workspace scope detection result */\n workspaceScope: WorkspaceScopeResult;\n\n /** Trusted homes snapshot resolved once at companion startup */\n resolvedHomes: ResolvedHomes;\n\n /** The SaaS app root directory (where wildo.saas.config.ts lives) */\n saasRoot: string;\n\n /** The companion package home inside the app runtime home */\n companionHome: string;\n\n /** Loaded and validated SaaS config */\n saasConfig: WildoSaasConfig;\n\n /** All declared SaaS services keyed by SaaS service key (`app`, `backendApi`, ...) */\n servicesByKey: Record<string, AppServiceDefinition>;\n\n /** Frontend services keyed by runtime/public serviceName */\n frontendServices: Record<string, AppServiceDefinition>;\n\n /** Backend services keyed by declared serviceName */\n backendServices: Record<string, AppServiceDefinition>;\n\n /** Declarative domain modules from wildo.saas.config.ts */\n declaredModules: NonNullable<WildoSaasConfig[\"modules\"]>;\n\n /** All declared module ids */\n moduleIds: string[];\n\n /** Module ids keyed by declared SaaS service key */\n moduleIdsByService: Record<string, string[]>;\n\n /** Resolved library package roots and companion entrypoints */\n resolvedLibraries: Record<string, CompanionResolvedLibrary>;\n\n /** Resolved specifications package root, runtime entrypoint, and continuity declaration. */\n resolvedSpecifications: CompanionResolvedSpecificationsPackageRef | null;\n}\n\nexport interface CompanionResolvedPackageRef {\n declaredPath: string;\n packageRoot: string;\n entryPath: string;\n}\n\nexport interface CompanionResolvedSpecificationsPackageRef extends CompanionResolvedPackageRef {\n}\n\nexport interface CompanionResolvedLibrary extends CompanionResolvedPackageRef {\n libraryId: string;\n libraryType: AppLibraryDefinition[\"type\"];\n}\n\n/**\n * Resolves the companion's application context by detecting the workspace\n * scope from CWD and loading the saas configuration.\n *\n * The companion relies on `resolveWorkspaceScope()` which walks up from CWD\n * exactly once at startup, then upgrades that detection into the shared\n * `ResolvedHomes` snapshot so every later consumer reads the same app/framework\n * roots instead of re-deriving them independently.\n *\n * @throws If the companion is not running inside a SaaS app directory\n * @throws If the saas config cannot be loaded or fails validation\n */\nexport async function resolveCompanionContext(): Promise<CompanionContext> {\n const workspaceScope = resolveWorkspaceScope();\n const storedPreferences = loadMachinePreferencesForHint();\n const resolvedHomes = buildResolvedHomes(workspaceScope, {\n frameworkPathHint: storedPreferences?.frameworkPath ?? null,\n isFrameworkDeveloperHint: storedPreferences?.isFrameworkDeveloper ?? false,\n });\n\n if (resolvedHomes.scope < WorkspaceScope.SAAS_APP || !resolvedHomes.app.layout) {\n throw new Error(\n `Companion must run inside a SaaS application directory. ` +\n `Detected scope: ${WorkspaceScope[resolvedHomes.scope]}. ` +\n `No wildo.saas.config.ts found walking up from the current working directory.`,\n );\n }\n\n const saasRoot = resolvedHomes.app.declarationRoot!;\n const saasConfigPath = resolvedHomes.app.saasConfigPath!;\n const companionHome = resolvedHomes.app.layout.companionHome;\n\n const saasConfig = await loadSaasConfig(saasConfigPath);\n if (!saasConfig) {\n throw new Error(`Failed to load saas config at ${saasConfigPath}`);\n }\n\n const frontendServices: Record<string, AppServiceDefinition> = {};\n const backendServices: Record<string, AppServiceDefinition> = {};\n const normalizedRuntimeDescriptor = normalizeSaasRuntimeDescriptor({\n name: saasConfig.name,\n slug: saasConfig.slug,\n displayName: saasConfig.displayName,\n description: saasConfig.description,\n type: saasConfig.type,\n services: saasConfig.services,\n engineCapabilities: saasConfig.engineCapabilities,\n providers: saasConfig.providers,\n providerConfigurations: saasConfig.providerConfigurations,\n // Required by the managed declaration since #1032. This call used to be cast `as any`, so omitting it type-checked\n // and the companion crash-looped on `organizationTypes: expected record, received undefined`. The cast is gone:\n // a field the descriptor requires is now a compile error here.\n organizationTypes: saasConfig.organizationTypes,\n dataServices: saasConfig.dataServices,\n modules: saasConfig.modules,\n bootstrap: saasConfig.bootstrap,\n libraries: saasConfig.libraries,\n specifications: saasConfig.specifications,\n });\n\n const resolvedLibraries = resolveCompanionLibraries(saasRoot, normalizedRuntimeDescriptor.libraries);\n const resolvedSpecifications = resolveCompanionSpecificationsPackageRef(saasRoot, normalizedRuntimeDescriptor.specifications);\n\n for (const [, service] of Object.entries(saasConfig.services)) {\n if (service.frontendType) {\n frontendServices[service.serviceName] = service;\n } else {\n backendServices[service.serviceName] = service;\n }\n }\n\n return {\n workspaceScope,\n resolvedHomes,\n saasRoot,\n companionHome,\n saasConfig,\n servicesByKey: saasConfig.services,\n frontendServices,\n backendServices,\n declaredModules: normalizedRuntimeDescriptor.declaredModules,\n moduleIds: normalizedRuntimeDescriptor.moduleIds,\n moduleIdsByService: normalizedRuntimeDescriptor.moduleIdsByService,\n resolvedLibraries,\n resolvedSpecifications,\n };\n}\n\nfunction resolveCompanionLibraries(\n saasRoot: string,\n declaredLibraries: Record<string, AppLibraryDefinition> | undefined,\n): Record<string, CompanionResolvedLibrary> {\n const resolvedLibraries: Record<string, CompanionResolvedLibrary> = {};\n\n for (const [libraryId, declaredLibrary] of Object.entries(declaredLibraries ?? {})) {\n const packageRoot = resolve(saasRoot, declaredLibrary.path);\n resolvedLibraries[libraryId] = {\n libraryId,\n libraryType: declaredLibrary.type,\n declaredPath: declaredLibrary.path,\n packageRoot,\n entryPath: resolvePackageCompanionEntryPath(packageRoot),\n };\n }\n\n return resolvedLibraries;\n}\n\nfunction resolveCompanionPackageRef(saasRoot: string, declaredTarget: { path: string } | undefined): CompanionResolvedPackageRef | null {\n if (!declaredTarget) {\n return null;\n }\n\n const packageRoot = resolve(saasRoot, declaredTarget.path);\n return {\n declaredPath: declaredTarget.path,\n packageRoot,\n entryPath: resolvePackageCompanionEntryPath(packageRoot),\n };\n}\n\nfunction resolveCompanionSpecificationsPackageRef(\n saasRoot: string,\n declaredTarget: { path: string } | undefined,\n): CompanionResolvedSpecificationsPackageRef | null {\n const resolvedPackage = resolveCompanionPackageRef(saasRoot, declaredTarget);\n if (!resolvedPackage) {\n return null;\n }\n return {\n ...resolvedPackage,\n };\n}\n\ninterface CompanionMachinePreferencesHint {\n frameworkPath: string | null;\n isFrameworkDeveloper: boolean;\n}\n\n/**\n * Read the machine-level Wildo preferences file once at companion bootstrap\n * to produce a `frameworkPathHint` for `buildResolvedHomes`.\n *\n * The CLI does this in `ContextManager.detect()` so it can still resolve\n * framework-owned assets when the app workspace is installed outside the\n * framework monorepo. The companion must mirror that contract — without this\n * hint, `resolvedHomes.framework.repositoryRoot` is null whenever the app\n * lives outside the framework checkout, even if the operator already\n * configured a valid framework path in their global preferences.\n *\n * Failures are swallowed and logged indirectly via the returned null: an\n * unreadable preferences file is not a bootstrap blocker; the companion\n * simply falls back to whatever workspace-scope detection alone produced.\n */\nfunction loadMachinePreferencesForHint(): CompanionMachinePreferencesHint | null {\n try {\n const preferencesPath = resolveMachinePreferencesPath();\n if (!existsSync(preferencesPath)) {\n return null;\n }\n\n const raw = JSON.parse(readFileSync(preferencesPath, \"utf8\")) as {\n frameworkPath?: unknown;\n isFrameworkDeveloper?: unknown;\n };\n\n return {\n frameworkPath: typeof raw.frameworkPath === \"string\" && raw.frameworkPath.length > 0 ? raw.frameworkPath : null,\n isFrameworkDeveloper: raw.isFrameworkDeveloper === true,\n };\n } catch {\n return null;\n }\n}\n"]}
|
|
@@ -28,18 +28,17 @@ export declare function loadLibraryRootModuleExports(companionContext: Companion
|
|
|
28
28
|
* `tsconfig.json` are normalized and supplied to the loader; without them the
|
|
29
29
|
* authored source cannot resolve its own internal specifiers.
|
|
30
30
|
*
|
|
31
|
-
* **
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* `
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* `framework-source`
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* `dist
|
|
41
|
-
*
|
|
42
|
-
* must resolve the way the LOADER does, not the way the resolver defaults.
|
|
31
|
+
* **The evaluated entry is the AUTHORED `src/companion-exports.ts`, in every
|
|
32
|
+
* application.** `freshModuleCache: true` makes `loadPackageCompanionExport`
|
|
33
|
+
* prefer authored source, because jiti re-reads only what it transpiles: the
|
|
34
|
+
* compiled `dist/esm/companion-exports.js` is imported natively by Node and
|
|
35
|
+
* pinned in its process-global ESM registry for the process lifetime. Until
|
|
36
|
+
* 2026-10-01 the entry followed the INFERRED module resolution instead —
|
|
37
|
+
* `framework-source` (source) inside the framework workspace, `package` (dist)
|
|
38
|
+
* outside it — so this surface was fresh on the dogfood applications and frozen
|
|
39
|
+
* at startup on every application created with the published CLI. The resolver
|
|
40
|
+
* called with NO options still answers `dist`; anything reasoning about this
|
|
41
|
+
* surface's freshness must resolve the way the LOADER does.
|
|
43
42
|
*
|
|
44
43
|
* **Authored, not accepted, is the correct surface here.** Consumers are i18n
|
|
45
44
|
* label-key collection and cross-registry assertions, which must track what the
|
|
@@ -51,13 +50,14 @@ export declare function loadSpecificationsCompanionExports(companionContext: Com
|
|
|
51
50
|
/**
|
|
52
51
|
* A cheap fingerprint of the module tree {@link loadSpecificationsCompanionExports} actually evaluates.
|
|
53
52
|
*
|
|
54
|
-
* **It signs every tree the resolver could land on,
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* one extra re-evaluation
|
|
53
|
+
* **It signs every tree the resolver could land on, a superset of the one evaluated.** For the
|
|
54
|
+
* specifications loader that tree is authored `src/` whenever it exists (a fresh read prefers source),
|
|
55
|
+
* and resolving under `framework-source` lands on exactly that file, so `src/` is always signed. The
|
|
56
|
+
* union is kept because the creation-plane projection signs OTHER packages with this function, whose
|
|
57
|
+
* evaluated tree still follows the inferred module resolution — which `platform-config-lib` keeps
|
|
58
|
+
* private. Its cost is that a rebuild of the tree NOT evaluated also invalidates: for specifications,
|
|
59
|
+
* every tsc emit into `dist` after a source edit costs one extra re-evaluation. Never a stale answer,
|
|
60
|
+
* which is the direction this must err in.
|
|
61
61
|
*
|
|
62
62
|
* Why a signature instead of a TTL: `freshModuleCache: true` exists so a family landed while the
|
|
63
63
|
* companion runs is visible without a restart (#170), and a TTL trades exactly that away for up to its
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companion-package-loaders.companion.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"companion-package-loaders.companion.d.ts","sourceRoot":"","sources":["../../../../src/core/context/companion-package-loaders.companion.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AAC9F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAK5D,MAAM,WAAW,8BAA8B;IAC7C,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,6BAA6B,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,GAAG,8BAA8B,CAYpI;AAED,wBAAgB,kCAAkC,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,8BAA8B,CAQrH;AAED,wBAAsB,2BAA2B,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAI3I;AAED,wBAAsB,iCAAiC,CACrD,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,GAAE,MAAiB,GAC3B,OAAO,CAAC,6BAA6B,CAAC,CAQxC;AAED,wBAAsB,4BAA4B,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,SAAS,GAAE,MAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAQrJ;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAsB,kCAAkC,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,OAAO,CAAC,8BAA8B,CAAC,CA0CpI;AAmBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,0BAA0B,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAe7E;AAwDD;;;;;;;GAOG;AACH,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CA4BzE"}
|
|
@@ -3,6 +3,7 @@ import { pathToFileURL } from "node:url";
|
|
|
3
3
|
import { dirname, join, resolve } from "node:path";
|
|
4
4
|
import { loadPackageCompanionExport, normalizeCompilerPathAliasesForLoader, registerStaticAssetImportNoop, resolvePackageCompanionEntryPath, } from "@wildo-ai/platform-config-lib";
|
|
5
5
|
import { signDerivedInputs } from "../utils/derived-input-signature.companion.utils.js";
|
|
6
|
+
import { advanceApplicationModuleGeneration, holdApplicationModuleGeneration } from "./application-module-generations.companion.js";
|
|
6
7
|
import { describeCaughtError } from '@wildo-ai/saas-backend-lib';
|
|
7
8
|
export function resolveCompanionServiceTarget(companionContext, serviceKey) {
|
|
8
9
|
const serviceDefinition = companionContext.servicesByKey[serviceKey];
|
|
@@ -25,6 +26,7 @@ export function resolvePrimaryBackendServiceTarget(companionContext) {
|
|
|
25
26
|
}
|
|
26
27
|
export async function loadBackendCompanionExports(companionContext, serviceKey) {
|
|
27
28
|
const resolvedTarget = serviceKey ? resolveCompanionServiceTarget(companionContext, serviceKey) : resolvePrimaryBackendServiceTarget(companionContext);
|
|
29
|
+
advanceApplicationModuleGeneration(companionContext);
|
|
28
30
|
return importCompanionDefaultExport(resolvedTarget.entryPath, `Service "${resolvedTarget.serviceKey}"`);
|
|
29
31
|
}
|
|
30
32
|
export async function loadSharedLibraryCompanionExports(companionContext, libraryId = "shared") {
|
|
@@ -32,6 +34,7 @@ export async function loadSharedLibraryCompanionExports(companionContext, librar
|
|
|
32
34
|
if (!resolvedLibrary) {
|
|
33
35
|
throw new Error(`Library "${libraryId}" is not declared in wildo.saas.config.ts.`);
|
|
34
36
|
}
|
|
37
|
+
advanceApplicationModuleGeneration(companionContext);
|
|
35
38
|
return importCompanionDefaultExport(resolvedLibrary.entryPath, `Library "${libraryId}"`);
|
|
36
39
|
}
|
|
37
40
|
export async function loadLibraryRootModuleExports(companionContext, libraryId = "shared") {
|
|
@@ -39,6 +42,7 @@ export async function loadLibraryRootModuleExports(companionContext, libraryId =
|
|
|
39
42
|
if (!resolvedLibrary) {
|
|
40
43
|
throw new Error(`Library "${libraryId}" is not declared in wildo.saas.config.ts.`);
|
|
41
44
|
}
|
|
45
|
+
advanceApplicationModuleGeneration(companionContext);
|
|
42
46
|
return importCompanionModule(resolvePackageRootEntryPath(resolvedLibrary.packageRoot));
|
|
43
47
|
}
|
|
44
48
|
/**
|
|
@@ -57,18 +61,17 @@ export async function loadLibraryRootModuleExports(companionContext, libraryId =
|
|
|
57
61
|
* `tsconfig.json` are normalized and supplied to the loader; without them the
|
|
58
62
|
* authored source cannot resolve its own internal specifiers.
|
|
59
63
|
*
|
|
60
|
-
* **
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
* `
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
* `framework-source`
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* `dist
|
|
70
|
-
*
|
|
71
|
-
* must resolve the way the LOADER does, not the way the resolver defaults.
|
|
64
|
+
* **The evaluated entry is the AUTHORED `src/companion-exports.ts`, in every
|
|
65
|
+
* application.** `freshModuleCache: true` makes `loadPackageCompanionExport`
|
|
66
|
+
* prefer authored source, because jiti re-reads only what it transpiles: the
|
|
67
|
+
* compiled `dist/esm/companion-exports.js` is imported natively by Node and
|
|
68
|
+
* pinned in its process-global ESM registry for the process lifetime. Until
|
|
69
|
+
* 2026-10-01 the entry followed the INFERRED module resolution instead —
|
|
70
|
+
* `framework-source` (source) inside the framework workspace, `package` (dist)
|
|
71
|
+
* outside it — so this surface was fresh on the dogfood applications and frozen
|
|
72
|
+
* at startup on every application created with the published CLI. The resolver
|
|
73
|
+
* called with NO options still answers `dist`; anything reasoning about this
|
|
74
|
+
* surface's freshness must resolve the way the LOADER does.
|
|
72
75
|
*
|
|
73
76
|
* **Authored, not accepted, is the correct surface here.** Consumers are i18n
|
|
74
77
|
* label-key collection and cross-registry assertions, which must track what the
|
|
@@ -81,7 +84,14 @@ export async function loadSpecificationsCompanionExports(companionContext) {
|
|
|
81
84
|
// No specifications package: let the evaluator raise its own named error rather than duplicating it.
|
|
82
85
|
if (packageRoot === undefined)
|
|
83
86
|
return evaluateSpecificationsCompanionExports(companionContext);
|
|
84
|
-
|
|
87
|
+
/*
|
|
88
|
+
* The authored specifications source is only half of what one evaluation reads: its imports into the application's
|
|
89
|
+
* other packages load their compiled builds, under the generation advanced here (#2125). Both go into the cache key,
|
|
90
|
+
* so a rebuilt `shared-lib` re-evaluates the specifications exactly as an edited specification does.
|
|
91
|
+
*/
|
|
92
|
+
const generation = advanceApplicationModuleGeneration(companionContext);
|
|
93
|
+
const treeSignature = signEvaluatedCompanionTree(packageRoot);
|
|
94
|
+
const signature = treeSignature === null ? null : `${treeSignature}|generation:${generation ?? "none"}`;
|
|
85
95
|
/*
|
|
86
96
|
* A null signature means the tree could not be READ, which is never grounds to serve a cached
|
|
87
97
|
* answer — an empty walk and an unchanged one are indistinguishable from their result
|
|
@@ -96,7 +106,8 @@ export async function loadSpecificationsCompanionExports(companionContext) {
|
|
|
96
106
|
if (inFlight?.signature === signature)
|
|
97
107
|
return inFlight.load;
|
|
98
108
|
}
|
|
99
|
-
|
|
109
|
+
// Held, so the many native imports this evaluation makes through jiti all land in ONE generation (#2125).
|
|
110
|
+
const load = holdApplicationModuleGeneration(() => evaluateSpecificationsCompanionExports(companionContext));
|
|
100
111
|
specificationsCompanionExportsInFlight.set(packageRoot, { signature, load });
|
|
101
112
|
try {
|
|
102
113
|
const companionExports = await load;
|
|
@@ -129,13 +140,14 @@ const COMPANION_MODULE_RESOLUTIONS = ["framework-source", "package"];
|
|
|
129
140
|
/**
|
|
130
141
|
* A cheap fingerprint of the module tree {@link loadSpecificationsCompanionExports} actually evaluates.
|
|
131
142
|
*
|
|
132
|
-
* **It signs every tree the resolver could land on,
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
* one extra re-evaluation
|
|
143
|
+
* **It signs every tree the resolver could land on, a superset of the one evaluated.** For the
|
|
144
|
+
* specifications loader that tree is authored `src/` whenever it exists (a fresh read prefers source),
|
|
145
|
+
* and resolving under `framework-source` lands on exactly that file, so `src/` is always signed. The
|
|
146
|
+
* union is kept because the creation-plane projection signs OTHER packages with this function, whose
|
|
147
|
+
* evaluated tree still follows the inferred module resolution — which `platform-config-lib` keeps
|
|
148
|
+
* private. Its cost is that a rebuild of the tree NOT evaluated also invalidates: for specifications,
|
|
149
|
+
* every tsc emit into `dist` after a source edit costs one extra re-evaluation. Never a stale answer,
|
|
150
|
+
* which is the direction this must err in.
|
|
139
151
|
*
|
|
140
152
|
* Why a signature instead of a TTL: `freshModuleCache: true` exists so a family landed while the
|
|
141
153
|
* companion runs is visible without a restart (#170), and a TTL trades exactly that away for up to its
|
|
@@ -203,17 +215,17 @@ async function evaluateSpecificationsCompanionExports(companionContext) {
|
|
|
203
215
|
}
|
|
204
216
|
catch (error) {
|
|
205
217
|
/*
|
|
206
|
-
* `freshModuleCache` covers the modules JITI evaluates — this package's own authored source.
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
*
|
|
210
|
-
*
|
|
218
|
+
* `freshModuleCache` covers the modules JITI evaluates — this package's own authored source. The
|
|
219
|
+
* application's other WORKSPACE PACKAGES (`@my-app/shared-lib`) are imported by NODE as their compiled
|
|
220
|
+
* build, and are re-read only when that build changes: the generation advanced above re-tags their
|
|
221
|
+
* URLs (#2125). Until 2026-10-01 nothing did, and Node's process-global registry kept a symbol added
|
|
222
|
+
* to one of them `undefined` until the companion restarted.
|
|
211
223
|
*
|
|
212
|
-
* The symptom gives no hint of
|
|
213
|
-
* enum to the application's shared-lib at 21:30 and every playbook run afterwards
|
|
214
|
-
* `Cannot read properties of undefined (reading 'ASSIGN_OWNER')` — which reads as a
|
|
215
|
-
* freshly authored specification, and is not.
|
|
216
|
-
*
|
|
224
|
+
* The symptom gives no hint of which reading applies. Measured 2026-09-16: a coding run added a
|
|
225
|
+
* `Deals_Operations` enum to the application's shared-lib at 21:30 and every playbook run afterwards
|
|
226
|
+
* failed with `Cannot read properties of undefined (reading 'ASSIGN_OWNER')` — which reads as a
|
|
227
|
+
* defect in the freshly authored specification, and is not. What remains of that case is a build
|
|
228
|
+
* that has not been emitted (a watcher behind or red).
|
|
217
229
|
*
|
|
218
230
|
* So the loader names the condition rather than leaving the next reader to re-derive it. It does
|
|
219
231
|
* not decide that this IS the cause — it cannot — it says what the cause usually is and what
|
|
@@ -247,15 +259,15 @@ export function describeSpecificationsLoadFailure(error) {
|
|
|
247
259
|
const stack = error instanceof Error ? (error.stack ?? '') : '';
|
|
248
260
|
const authoredFrame = stack.split('\n').map((line) => line.trim()).find((line) => /specifications\/src\//u.test(line));
|
|
249
261
|
const site = authoredFrame ? ` The first authored frame is: ${authoredFrame.replace(/^at\s+/u, '')}.` : '';
|
|
250
|
-
return new Error(`${described} — two readings
|
|
251
|
-
+ '(1) A symbol was added to one of the application\'s own packages
|
|
252
|
-
+ '
|
|
253
|
-
+ "
|
|
254
|
-
+ '
|
|
255
|
-
+ '
|
|
256
|
-
+ '
|
|
257
|
-
+ 'risk register importing `ApplicationRiskRegisterSchema` from the root
|
|
258
|
-
+ '
|
|
262
|
+
return new Error(`${described} — two readings.${site} `
|
|
263
|
+
+ '(1) A symbol was added to one of the application\'s own packages and that package has not been COMPILED '
|
|
264
|
+
+ 'since: authored specification source is evaluated directly, but the application\'s other packages are read '
|
|
265
|
+
+ "as their compiled build, which this companion re-reads within a second of a new build — so check that the "
|
|
266
|
+
+ 'package\'s watcher is running and green (`wildo local dev` output, or its `dist` timestamp). (2) The failing '
|
|
267
|
+
+ 'file imports the symbol from a door that does not publish it — typically a subpath-only export of '
|
|
268
|
+
+ '`@wildo-ai/saas-specifications` named at the package ROOT, which is undefined however fresh the build is '
|
|
269
|
+
+ '(measured 2026-09-21: a landed risk register importing `ApplicationRiskRegisterSchema` from the root '
|
|
270
|
+
+ 'instead of `/assurance`). If the build is current, fix the import at the frame named above.', { cause: error });
|
|
259
271
|
}
|
|
260
272
|
/** Extensions a plain-Node dynamic import cannot execute. */
|
|
261
273
|
const NON_EXECUTABLE_COMPANION_ENTRY_EXTENSIONS = Object.freeze([".ts", ".tsx", ".mts", ".cts"]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companion-package-loaders.companion.js","sourceRoot":"","sources":["../../../../../src/core/context/companion-package-loaders.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAY,OAAO,EAAO,MAAM,WAAW,CAAC;AAClE,OAAO,EACL,0BAA0B,EAC1B,qCAAqC,EACrC,6BAA6B,EAC7B,gCAAgC,GACjC,MAAM,+BAA+B,CAAC;AAKvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AAErF,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAOjE,MAAM,UAAU,6BAA6B,CAAC,gBAAkC,EAAE,UAAkB;IAClG,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IACrE,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,6BAA6B,UAAU,yBAAyB,CAAC,CAAC;IACpF,CAAC;IAED,MAAM,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC,QAAQ,EAAE,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAC/E,OAAO;QACL,UAAU;QACV,WAAW;QACX,SAAS,EAAE,gCAAgC,CAAC,WAAW,CAAC;KACzD,CAA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AAK,EAAE,KAAK,EAAE,CAAC,CAAC;IACnH,CAAC;IACD,MAAM,KAAK,GAAI,MAA2D,EAAE,eAAe,EAAE,KAAK,CAAC;IACnG,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,EAAE,CAAC;IAClF,MAAM,OAAO,GAAsC,EAAE,CAAC;IACtD,KAAK,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAgC,CAAC,EAAE,CAAC;QAChF,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,EAAoB,EAAE,CAAC,OAAO,MAAM,KAAK,QAAQ,CAAC,EAAE,CAAC;YACtG,OAAO,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC;QAC3B,CAAC;IACH,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC","sourcesContent":["import { existsSync, readFileSync } from \"node:fs\";\nimport { pathToFileURL } from \"node:url\";\nimport { dirname, join, relative, resolve, sep } from \"node:path\";\nimport {\n loadPackageCompanionExport,\n normalizeCompilerPathAliasesForLoader,\n registerStaticAssetImportNoop,\n resolvePackageCompanionEntryPath,\n} from \"@wildo-ai/platform-config-lib\";\nimport type { SharedLibraryCompanionExports } from \"@wildo-ai/saas-models\";\nimport type { BackendCompanionExports } from \"@wildo-ai/saas-backend-lib/companion\";\nimport type { SpecificationsCompanionExports } from \"@wildo-ai/saas-specifications/companion\";\nimport type { CompanionContext } from \"./companion-context\";\nimport { signDerivedInputs } from \"../utils/derived-input-signature.companion.utils\";\n\nimport { describeCaughtError } from '@wildo-ai/saas-backend-lib';\nexport interface ResolvedCompanionServiceTarget {\n serviceKey: string;\n packageRoot: string;\n entryPath: string;\n}\n\nexport function resolveCompanionServiceTarget(companionContext: CompanionContext, serviceKey: string): ResolvedCompanionServiceTarget {\n const serviceDefinition = companionContext.servicesByKey[serviceKey];\n if (!serviceDefinition) {\n throw new Error(`Unknown SaaS service key \"${serviceKey}\" in companion context.`);\n }\n\n const packageRoot = resolve(companionContext.saasRoot, serviceDefinition.path);\n return {\n serviceKey,\n packageRoot,\n entryPath: resolvePackageCompanionEntryPath(packageRoot),\n };\n}\n\nexport function resolvePrimaryBackendServiceTarget(companionContext: CompanionContext): ResolvedCompanionServiceTarget {\n const backendServiceKey = Object.entries(companionContext.servicesByKey).find(([, serviceDefinition]) => !serviceDefinition.frontendType)?.[0];\n\n if (!backendServiceKey) {\n throw new Error(\"No backend SaaS service is declared in wildo.saas.config.ts.\");\n }\n\n return resolveCompanionServiceTarget(companionContext, backendServiceKey);\n}\n\nexport async function loadBackendCompanionExports(companionContext: CompanionContext, serviceKey?: string): Promise<BackendCompanionExports> {\n const resolvedTarget = serviceKey ? resolveCompanionServiceTarget(companionContext, serviceKey) : resolvePrimaryBackendServiceTarget(companionContext);\n return importCompanionDefaultExport<BackendCompanionExports>(resolvedTarget.entryPath, `Service \"${resolvedTarget.serviceKey}\"`);\n}\n\nexport async function loadSharedLibraryCompanionExports(\n companionContext: CompanionContext,\n libraryId: string = \"shared\",\n): Promise<SharedLibraryCompanionExports> {\n const resolvedLibrary = companionContext.resolvedLibraries[libraryId];\n if (!resolvedLibrary) {\n throw new Error(`Library \"${libraryId}\" is not declared in wildo.saas.config.ts.`);\n }\n\n return importCompanionDefaultExport<SharedLibraryCompanionExports>(resolvedLibrary.entryPath, `Library \"${libraryId}\"`);\n}\n\nexport async function loadLibraryRootModuleExports(companionContext: CompanionContext, libraryId: string = \"shared\"): Promise<Record<string, unknown>> {\n const resolvedLibrary = companionContext.resolvedLibraries[libraryId];\n if (!resolvedLibrary) {\n throw new Error(`Library \"${libraryId}\" is not declared in wildo.saas.config.ts.`);\n }\n\n return importCompanionModule(resolvePackageRootEntryPath(resolvedLibrary.packageRoot));\n}\n\n/**\n * Load the application's **authored** specifications companion surface.\n *\n * This deliberately does NOT go through a raw dynamic import of the resolved\n * `./companion` entry. For the specifications package that subpath is reserved\n * for the PROJECTED composition entrypoint — a contract enforced elsewhere\n * against the continuity declaration's `expectedCompanionImportPath` — so in a\n * working tree it never exists and resolution legitimately falls back to\n * authored TypeScript source, which plain Node cannot execute.\n *\n * Loading through `loadPackageCompanionExport` (jiti) is what makes that\n * authored fallback usable. The package addresses its own modules through a\n * compiler path alias, so the aliases the package declares in its own\n * `tsconfig.json` are normalized and supplied to the loader; without them the\n * authored source cannot resolve its own internal specifiers.\n *\n * **WHICH entry is resolved depends on an INFERRED option, and asking without it\n * gives the wrong answer** — worth stating because it cost this file a wrong\n * correction. `loadPackageCompanionExport` passes\n * `inferPackageCompanionModuleResolution(packageRoot)`, which answers\n * `framework-source` for a package inside the framework workspace and `package`\n * outside it. Measured on `examples/wonder-todos` (2026-09-18):\n * `framework-source` resolves `src/companion-exports.ts` (authored, jiti\n * evaluates it, so `freshModuleCache` genuinely re-reads it) while `package` —\n * and calling the resolver with NO options — answers\n * `dist/esm/companion-exports.js`, which Node's process-global ESM registry pins\n * for the process lifetime. Anything reasoning about this surface's freshness\n * must resolve the way the LOADER does, not the way the resolver defaults.\n *\n * **Authored, not accepted, is the correct surface here.** Consumers are i18n\n * label-key collection and cross-registry assertions, which must track what the\n * developer is currently writing. Reading the accepted projection instead would\n * make labels lag acceptance — a different concept that belongs to the durable\n * specification-family path, not this one.\n */\nexport async function loadSpecificationsCompanionExports(companionContext: CompanionContext): Promise<SpecificationsCompanionExports> {\n const packageRoot = companionContext.resolvedSpecifications?.packageRoot;\n // No specifications package: let the evaluator raise its own named error rather than duplicating it.\n if (packageRoot === undefined) return evaluateSpecificationsCompanionExports(companionContext);\n\n const signature = signEvaluatedCompanionTree(packageRoot);\n /*\n * A null signature means the tree could not be READ, which is never grounds to serve a cached\n * answer — an empty walk and an unchanged one are indistinguishable from their result\n * (`.claude/rules/negative-results-require-a-positive-probe.md`). It degrades to the uncached\n * behaviour that predates this cache, which is always correct and merely slow.\n */\n if (signature !== null) {\n const cached = specificationsCompanionExportsCache.get(packageRoot);\n if (cached?.signature === signature) return cached.exports;\n const inFlight = specificationsCompanionExportsInFlight.get(packageRoot);\n if (inFlight?.signature === signature) return inFlight.load;\n }\n\n const load = evaluateSpecificationsCompanionExports(companionContext);\n specificationsCompanionExportsInFlight.set(packageRoot, { signature, load });\n try {\n const companionExports = await load;\n // The signature is the one captured BEFORE the load, so an edit landing mid-load leaves the entry\n // stale-by-a-hair and the NEXT call re-signs, misses and reloads. That is exactly what an uncached\n // load already did: it too answers with the tree as it stood when it started.\n if (signature !== null) specificationsCompanionExportsCache.set(packageRoot, { signature, exports: companionExports });\n return companionExports;\n } finally {\n // A failed load caches nothing, so the next caller retries rather than inheriting the failure.\n if (specificationsCompanionExportsInFlight.get(packageRoot)?.load === load) {\n specificationsCompanionExportsInFlight.delete(packageRoot);\n }\n }\n}\n\n/** The last evaluated exports per specifications package root, valid while its tree signature holds. */\nconst specificationsCompanionExportsCache = new Map<string, { signature: string; exports: SpecificationsCompanionExports }>();\n\n/** Evaluations still running, so concurrent callers at the same signature share one of them. */\nconst specificationsCompanionExportsInFlight = new Map<string, { signature: string | null; load: Promise<SpecificationsCompanionExports> }>();\n\n/**\n * Every `moduleResolution` the companion entry resolver accepts.\n *\n * Total over the vocabulary rather than a list of the ones that matter today: a value added there must\n * widen what {@link signEvaluatedCompanionTree} covers, and a signature that silently stopped covering\n * a reachable tree would serve a stale evaluation with nothing reporting it.\n */\nconst COMPANION_MODULE_RESOLUTIONS = [\"framework-source\", \"package\"] as const satisfies readonly NonNullable<\n Parameters<typeof resolvePackageCompanionEntryPath>[2]\n>[\"moduleResolution\"][];\n\n/**\n * A cheap fingerprint of the module tree {@link loadSpecificationsCompanionExports} actually evaluates.\n *\n * **It signs every tree the resolver could land on, because this module cannot ask which one it DID.**\n * The deciding input is `inferPackageCompanionModuleResolution`, which `platform-config-lib` keeps\n * private — and the resolver's no-option default is NOT the loader's answer (see the JSDoc above; that\n * gap produced a wrong correction to this file before it produced a wrong signature). Resolving under\n * both declared values and signing the union is exact under either outcome, where naming one tree is\n * only exact under a guess. Its cost is that a rebuild of the tree NOT evaluated also invalidates —\n * one extra re-evaluation, never a stale answer, which is the direction this must err in.\n *\n * Why a signature instead of a TTL: `freshModuleCache: true` exists so a family landed while the\n * companion runs is visible without a restart (#170), and a TTL trades exactly that away for up to its\n * own length. A signature cannot — the tsc watcher writes the tree, the signature moves, the next call\n * misses and re-evaluates. What is bought is only the repeat of an evaluation of BYTES THAT DID NOT\n * CHANGE.\n *\n * Measured on `examples/wonder-todos` (444 files): ~2-5 ms to sign against ~1.2-2.9 s to re-evaluate, and\n * a creation-board refresh pays that evaluation twice — once for playbook eligibility, once for the build\n * plan — which is the bulk of the board's latency. The git probes behind the build plan cost ~0.15 s on\n * the same application and are not the bottleneck.\n *\n * Aggregates rather than hashes content: file count catches a deletion, newest mtime catches a write,\n * total bytes and the mtime sum catch a same-instant swap that preserves both, and the directories'\n * own mtimes catch a rename — see `signDerivedInputs`, which owns the technique. `dist` and `node_modules`\n * are skipped only when they sit BELOW the evaluated root, never when they are it.\n *\n * Returns `null` when the tree cannot be read or is empty. That is a refusal to authorize a cache hit,\n * not an answer.\n *\n * Exported for the creation-plane projection (#1310), whose cached boards sit ABOVE this evaluation:\n * they must drop when the tree this evaluates moves, so they sign exactly what this signs rather than\n * a second guess at which tree the loader lands on.\n */\nexport function signEvaluatedCompanionTree(packageRoot: string): string | null {\n const entryPaths: string[] = [];\n for (const moduleResolution of COMPANION_MODULE_RESOLUTIONS) {\n try {\n entryPaths.push(resolvePackageCompanionEntryPath(packageRoot, undefined, { moduleResolution }));\n } catch {\n // One value resolving and the other not is ordinary (a package with no build output yet). Only\n // NEITHER resolving means there is nothing to sign, which `signDerivedInputs` reports as null.\n }\n }\n entryPaths.sort();\n const evaluatedRoots = [...new Set(entryPaths.map((entryPath) => dirname(entryPath)))].sort();\n // The export map decides WHICH entry is evaluated, so a change to it must invalidate as surely as a\n // change to the modules behind it.\n return signDerivedInputs(evaluatedRoots, [join(packageRoot, \"package.json\")]);\n}\n\n/** Evaluates the specifications companion surface, with no caching — see {@link loadSpecificationsCompanionExports}. */\nasync function evaluateSpecificationsCompanionExports(companionContext: CompanionContext): Promise<SpecificationsCompanionExports> {\n const resolvedSpecifications = companionContext.resolvedSpecifications;\n if (!resolvedSpecifications) {\n throw new Error(\"No specifications package is declared in wildo.saas.config.ts.\");\n }\n\n const packageModuleAliases = normalizeCompilerPathAliasesForLoader(\n resolvedSpecifications.packageRoot,\n readPackageCompilerPathAliases(resolvedSpecifications.packageRoot),\n );\n\n // Application specifications are declarative control-plane input, but their\n // metadata can legitimately reach browser component modules. Static assets\n // carry no companion semantics; treating them as executable Node modules\n // would make an otherwise valid configured application unloadable solely\n // because a frontend library imports its stylesheet. Register the narrow\n // process-wide no-op hook before jiti evaluates the authored export graph.\n // The hook never handles JavaScript/TypeScript and remains inert for callers\n // that do not import a supported static asset.\n registerStaticAssetImportNoop();\n\n try {\n return await loadPackageCompanionExport<SpecificationsCompanionExports>(\n resolvedSpecifications.packageRoot,\n undefined,\n // freshModuleCache: this surface's CONTRACT is \"the working tree as the developer is writing\n // it\" (the JSDoc above), and jiti's process-global module cache broke exactly that: a family\n // landed (or a companion-exports slot wired) while the companion ran stayed invisible until\n // restart — J-1's stall B, one forced restart per landed family. Measured live 2026-08-27.\n { packageModuleAliases, freshModuleCache: true },\n );\n } catch (error) {\n /*\n * `freshModuleCache` covers the modules JITI evaluates — this package's own authored source. It\n * does NOT cover the application's compiled WORKSPACE PACKAGES: a bare specifier like\n * `@my-app/shared-lib` resolves into `node_modules` and is imported by NODE, whose ESM registry is\n * process-global and cannot be invalidated. So a symbol added to an application package while the\n * companion is running stays `undefined` in this process until it restarts.\n *\n * The symptom gives no hint of that. Measured 2026-09-16: a coding run added a `Deals_Operations`\n * enum to the application's shared-lib at 21:30 and every playbook run afterwards failed with\n * `Cannot read properties of undefined (reading 'ASSIGN_OWNER')` — which reads as a defect in the\n * freshly authored specification, and is not. Plain `node -e \"import('@my-app/shared-lib')\"` in the\n * same tree printed the enum correctly, because a fresh process has a fresh registry.\n *\n * So the loader names the condition rather than leaving the next reader to re-derive it. It does\n * not decide that this IS the cause — it cannot — it says what the cause usually is and what\n * clears it.\n */\n throw describeSpecificationsLoadFailure(error);\n }\n}\n\n/**\n * Add the pinned-registry hint to a specifications-load failure that looks like one, and leave every\n * other failure untouched.\n *\n * Exported so it can be pinned: the VALUE here is entirely in which failures get the hint. Attaching it\n * to a malformed build plan or a throwing module would send the next reader somewhere wrong, and that\n * is the half a test can hold.\n */\nexport function describeSpecificationsLoadFailure(error: unknown): unknown {\n const described = describeCaughtError(error);\n /*\n * `.*` with no space before `of`: the real message is \"Cannot read properties of undefined (reading\n * 'X')\", so a pattern requiring a segment between them matches NOTHING — which is what the first\n * draft did, and the pin below is what caught it before it shipped as a hint that never fires.\n */\n if (!/Cannot read propert(?:y|ies).*of undefined/u.test(described)) return error;\n /*\n * The AUTHORED frame — the first stack frame inside the application's specification source — is the one\n * fact that separates the two readings below, and the raw error buries it under a dozen loader frames.\n * Named here so the reader opens the right file first instead of restarting first.\n */\n const stack = error instanceof Error ? (error.stack ?? '') : '';\n const authoredFrame = stack.split('\\n').map((line) => line.trim()).find((line) => /specifications\\/src\\//u.test(line));\n const site = authoredFrame ? ` The first authored frame is: ${authoredFrame.replace(/^at\\s+/u, '')}.` : '';\n return new Error(\n `${described} — two readings, and a companion restart tells them apart.${site} `\n + '(1) A symbol was added to one of the application\\'s own packages while this companion process was '\n + 'running: authored specification SOURCE is re-read on every load, but the application\\'s compiled '\n + \"packages are pinned in Node's process-global ESM registry, so a new export stays undefined until the \"\n + 'companion restarts. (2) The failing file imports the symbol from a door that does not publish it — '\n + 'typically a subpath-only export of `@wildo-ai/saas-specifications` named at the package ROOT, which '\n + 'is undefined in a fresh process too, so a restart changes nothing (measured 2026-09-21: a landed '\n + 'risk register importing `ApplicationRiskRegisterSchema` from the root instead of `/assurance` failed '\n + 'this way across two restarts). If it survives a restart, fix the import at the frame named above.',\n { cause: error },\n );\n}\n\n\n/** Extensions a plain-Node dynamic import cannot execute. */\nconst NON_EXECUTABLE_COMPANION_ENTRY_EXTENSIONS = Object.freeze([\".ts\", \".tsx\", \".mts\", \".cts\"]);\n\n/**\n * Import one resolved companion entry.\n *\n * The companion runs as compiled JavaScript under plain Node with only an\n * asset-noop loader registered — it has no TypeScript loader. `resolvePackageCompanionEntryPath`\n * may legitimately hand back authored source: that fallback is load-bearing for\n * `loadPackageCompanionExport`, which resolves through jiti and CAN execute\n * TypeScript. Here it cannot.\n *\n * Rejecting a source entry explicitly turns a package misconfiguration into a\n * precise, actionable error. Letting it through instead produced a bare\n * `ERR_UNKNOWN_FILE_EXTENSION` from deep inside the module loader, which — because\n * several call sites are deliberately best-effort — was swallowed into a warning\n * that named neither the package nor the dangling export. That is how a\n * permanently-dangling `./companion` target stayed invisible until the companion\n * happened to survive continuity recovery for the first time.\n */\nasync function importCompanionModule(entryPath: string): Promise<Record<string, unknown>> {\n const nonExecutableExtension = NON_EXECUTABLE_COMPANION_ENTRY_EXTENSIONS.find((extension) => entryPath.endsWith(extension));\n if (nonExecutableExtension) {\n throw new Error(\n `Companion entry \"${entryPath}\" is TypeScript source, which this runtime cannot execute. `\n + \"The package's declared companion export is missing or unbuilt, so resolution fell back to authored source. \"\n + \"Build the package, or correct its package.json exports to point at a built entry.\",\n );\n }\n return import(pathToFileURL(entryPath).href) as Promise<Record<string, unknown>>;\n}\n\nasync function importCompanionDefaultExport<T extends object>(entryPath: string, exportOwnerLabel: string): Promise<T> {\n const moduleExports = await importCompanionModule(entryPath);\n const defaultExport = moduleExports.default;\n\n if (!defaultExport || typeof defaultExport !== \"object\") {\n throw new Error(`${exportOwnerLabel} companion export must default-export one typed object surface.`);\n }\n\n return defaultExport as T;\n}\n\nfunction resolvePackageRootEntryPath(packageRoot: string): string {\n const sourceCandidates = [\n join(packageRoot, \"src\", \"index.ts\"),\n join(packageRoot, \"src\", \"index.tsx\"),\n join(packageRoot, \"src\", \"index.js\"),\n join(packageRoot, \"src\", \"index.mjs\"),\n ];\n\n for (const candidate of sourceCandidates) {\n if (existsSync(candidate)) {\n return candidate;\n }\n }\n\n const packageJsonPath = join(packageRoot, \"package.json\");\n if (!existsSync(packageJsonPath)) {\n throw new Error(`Missing package.json for package root \"${packageRoot}\".`);\n }\n\n const packageJson = JSON.parse(readFileSync(packageJsonPath, \"utf-8\")) as {\n exports?: Record<string, string | { import?: string; default?: string }>;\n main?: string;\n module?: string;\n };\n const rootExport = packageJson.exports?.[\".\"];\n\n if (typeof rootExport === \"string\") {\n const rootExportPath = resolve(packageRoot, rootExport);\n if (existsSync(rootExportPath)) {\n return rootExportPath;\n }\n }\n\n if (rootExport && typeof rootExport === \"object\") {\n const declaredEntryPath = rootExport.import ?? rootExport.default;\n if (typeof declaredEntryPath === \"string\") {\n const rootExportPath = resolve(packageRoot, declaredEntryPath);\n if (existsSync(rootExportPath)) {\n return rootExportPath;\n }\n }\n }\n\n for (const declaredEntryPath of [packageJson.module, packageJson.main]) {\n if (!declaredEntryPath) {\n continue;\n }\n\n const resolvedEntryPath = resolve(packageRoot, declaredEntryPath);\n if (existsSync(resolvedEntryPath)) {\n return resolvedEntryPath;\n }\n }\n\n throw new Error(`Could not resolve root entry for package \"${packageRoot}\".`);\n}\n\n/**\n * The module aliases the specifications package declares for ITSELF, read from its `tsconfig.json`.\n *\n * These used to come from an app-authored continuity declaration (`specifications/src/continuity.ts` →\n * `composition.compilerPathAliases`), which was one more place an application had to restate something it\n * had already said. The compiler config is where a package declares how its own specifiers resolve, it is\n * a committed file, and two branches can carry different versions of it and merge — so it is the source\n * this loader should have been reading all along (`.claude/rules/one-source-of-truth.md`, Rule 0).\n *\n * Scope, stated rather than discovered later: only the package's OWN `compilerOptions.paths` is read. An\n * alias inherited through `extends` is not followed, because resolving that chain here would mean\n * reimplementing a slice of tsc for a case no application has. A missing file or a missing `paths` block\n * means no aliases — the honest answer, not a fallback. Malformed JSON throws: a package whose compiler\n * config cannot be parsed cannot have its authored exports loaded correctly either.\n */\nfunction readPackageCompilerPathAliases(packageRoot: string): Readonly<Record<string, readonly string[]>> {\n const tsconfigPath = join(packageRoot, \"tsconfig.json\");\n if (!existsSync(tsconfigPath)) return {};\n let parsed: unknown;\n try {\n parsed = JSON.parse(readFileSync(tsconfigPath, \"utf8\"));\n } catch (error) {\n throw new Error(`Specifications package tsconfig.json is not parseable JSON: ${tsconfigPath}`, { cause: error });\n }\n const paths = (parsed as { compilerOptions?: { paths?: unknown } } | null)?.compilerOptions?.paths;\n if (paths === null || paths === undefined || typeof paths !== \"object\") return {};\n const aliases: Record<string, readonly string[]> = {};\n for (const [alias, targets] of Object.entries(paths as Record<string, unknown>)) {\n if (Array.isArray(targets) && targets.every((target): target is string => typeof target === \"string\")) {\n aliases[alias] = targets;\n }\n }\n return aliases;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"companion-package-loaders.companion.js","sourceRoot":"","sources":["../../../../src/core/context/companion-package-loaders.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAY,OAAO,EAAO,MAAM,WAAW,CAAC;AAClE,OAAO,EACL,0BAA0B,EAC1B,qCAAqC,EACrC,6BAA6B,EAC7B,gCAAgC,GACjC,MAAM,+BAA+B,CAAC;AAKvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACrF,OAAO,EAAE,kCAAkC,EAAE,+BAA+B,EAAE,MAAM,4CAA4C,CAAC;AAEjI,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAOjE,MAAM,UAAU,6BAA6B,CAAC,gBAAkC,EAAE,UAAkB;IAClG,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,aAAa,CAAC,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,KAAK,CAAC,GAAG,OAAO,CAAC;QAC3B,CAAC;IACH,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC","sourcesContent":["import { existsSync, readFileSync } from \"node:fs\";\nimport { pathToFileURL } from \"node:url\";\nimport { dirname, join, relative, resolve, sep } from \"node:path\";\nimport {\n loadPackageCompanionExport,\n normalizeCompilerPathAliasesForLoader,\n registerStaticAssetImportNoop,\n resolvePackageCompanionEntryPath,\n} from \"@wildo-ai/platform-config-lib\";\nimport type { SharedLibraryCompanionExports } from \"@wildo-ai/saas-models\";\nimport type { BackendCompanionExports } from \"@wildo-ai/saas-backend-lib/companion\";\nimport type { SpecificationsCompanionExports } from \"@wildo-ai/saas-specifications/companion\";\nimport type { CompanionContext } from \"./companion-context\";\nimport { signDerivedInputs } from \"../utils/derived-input-signature.companion.utils\";\nimport { advanceApplicationModuleGeneration, holdApplicationModuleGeneration } from \"./application-module-generations.companion\";\n\nimport { describeCaughtError } from '@wildo-ai/saas-backend-lib';\nexport interface ResolvedCompanionServiceTarget {\n serviceKey: string;\n packageRoot: string;\n entryPath: string;\n}\n\nexport function resolveCompanionServiceTarget(companionContext: CompanionContext, serviceKey: string): ResolvedCompanionServiceTarget {\n const serviceDefinition = companionContext.servicesByKey[serviceKey];\n if (!serviceDefinition) {\n throw new Error(`Unknown SaaS service key \"${serviceKey}\" in companion context.`);\n }\n\n const packageRoot = resolve(companionContext.saasRoot, serviceDefinition.path);\n return {\n serviceKey,\n packageRoot,\n entryPath: resolvePackageCompanionEntryPath(packageRoot),\n };\n}\n\nexport function resolvePrimaryBackendServiceTarget(companionContext: CompanionContext): ResolvedCompanionServiceTarget {\n const backendServiceKey = Object.entries(companionContext.servicesByKey).find(([, serviceDefinition]) => !serviceDefinition.frontendType)?.[0];\n\n if (!backendServiceKey) {\n throw new Error(\"No backend SaaS service is declared in wildo.saas.config.ts.\");\n }\n\n return resolveCompanionServiceTarget(companionContext, backendServiceKey);\n}\n\nexport async function loadBackendCompanionExports(companionContext: CompanionContext, serviceKey?: string): Promise<BackendCompanionExports> {\n const resolvedTarget = serviceKey ? resolveCompanionServiceTarget(companionContext, serviceKey) : resolvePrimaryBackendServiceTarget(companionContext);\n advanceApplicationModuleGeneration(companionContext);\n return importCompanionDefaultExport<BackendCompanionExports>(resolvedTarget.entryPath, `Service \"${resolvedTarget.serviceKey}\"`);\n}\n\nexport async function loadSharedLibraryCompanionExports(\n companionContext: CompanionContext,\n libraryId: string = \"shared\",\n): Promise<SharedLibraryCompanionExports> {\n const resolvedLibrary = companionContext.resolvedLibraries[libraryId];\n if (!resolvedLibrary) {\n throw new Error(`Library \"${libraryId}\" is not declared in wildo.saas.config.ts.`);\n }\n\n advanceApplicationModuleGeneration(companionContext);\n return importCompanionDefaultExport<SharedLibraryCompanionExports>(resolvedLibrary.entryPath, `Library \"${libraryId}\"`);\n}\n\nexport async function loadLibraryRootModuleExports(companionContext: CompanionContext, libraryId: string = \"shared\"): Promise<Record<string, unknown>> {\n const resolvedLibrary = companionContext.resolvedLibraries[libraryId];\n if (!resolvedLibrary) {\n throw new Error(`Library \"${libraryId}\" is not declared in wildo.saas.config.ts.`);\n }\n\n advanceApplicationModuleGeneration(companionContext);\n return importCompanionModule(resolvePackageRootEntryPath(resolvedLibrary.packageRoot));\n}\n\n/**\n * Load the application's **authored** specifications companion surface.\n *\n * This deliberately does NOT go through a raw dynamic import of the resolved\n * `./companion` entry. For the specifications package that subpath is reserved\n * for the PROJECTED composition entrypoint — a contract enforced elsewhere\n * against the continuity declaration's `expectedCompanionImportPath` — so in a\n * working tree it never exists and resolution legitimately falls back to\n * authored TypeScript source, which plain Node cannot execute.\n *\n * Loading through `loadPackageCompanionExport` (jiti) is what makes that\n * authored fallback usable. The package addresses its own modules through a\n * compiler path alias, so the aliases the package declares in its own\n * `tsconfig.json` are normalized and supplied to the loader; without them the\n * authored source cannot resolve its own internal specifiers.\n *\n * **The evaluated entry is the AUTHORED `src/companion-exports.ts`, in every\n * application.** `freshModuleCache: true` makes `loadPackageCompanionExport`\n * prefer authored source, because jiti re-reads only what it transpiles: the\n * compiled `dist/esm/companion-exports.js` is imported natively by Node and\n * pinned in its process-global ESM registry for the process lifetime. Until\n * 2026-10-01 the entry followed the INFERRED module resolution instead —\n * `framework-source` (source) inside the framework workspace, `package` (dist)\n * outside it — so this surface was fresh on the dogfood applications and frozen\n * at startup on every application created with the published CLI. The resolver\n * called with NO options still answers `dist`; anything reasoning about this\n * surface's freshness must resolve the way the LOADER does.\n *\n * **Authored, not accepted, is the correct surface here.** Consumers are i18n\n * label-key collection and cross-registry assertions, which must track what the\n * developer is currently writing. Reading the accepted projection instead would\n * make labels lag acceptance — a different concept that belongs to the durable\n * specification-family path, not this one.\n */\nexport async function loadSpecificationsCompanionExports(companionContext: CompanionContext): Promise<SpecificationsCompanionExports> {\n const packageRoot = companionContext.resolvedSpecifications?.packageRoot;\n // No specifications package: let the evaluator raise its own named error rather than duplicating it.\n if (packageRoot === undefined) return evaluateSpecificationsCompanionExports(companionContext);\n\n /*\n * The authored specifications source is only half of what one evaluation reads: its imports into the application's\n * other packages load their compiled builds, under the generation advanced here (#2125). Both go into the cache key,\n * so a rebuilt `shared-lib` re-evaluates the specifications exactly as an edited specification does.\n */\n const generation = advanceApplicationModuleGeneration(companionContext);\n const treeSignature = signEvaluatedCompanionTree(packageRoot);\n const signature = treeSignature === null ? null : `${treeSignature}|generation:${generation ?? \"none\"}`;\n /*\n * A null signature means the tree could not be READ, which is never grounds to serve a cached\n * answer — an empty walk and an unchanged one are indistinguishable from their result\n * (`.claude/rules/negative-results-require-a-positive-probe.md`). It degrades to the uncached\n * behaviour that predates this cache, which is always correct and merely slow.\n */\n if (signature !== null) {\n const cached = specificationsCompanionExportsCache.get(packageRoot);\n if (cached?.signature === signature) return cached.exports;\n const inFlight = specificationsCompanionExportsInFlight.get(packageRoot);\n if (inFlight?.signature === signature) return inFlight.load;\n }\n\n // Held, so the many native imports this evaluation makes through jiti all land in ONE generation (#2125).\n const load = holdApplicationModuleGeneration(() => evaluateSpecificationsCompanionExports(companionContext));\n specificationsCompanionExportsInFlight.set(packageRoot, { signature, load });\n try {\n const companionExports = await load;\n // The signature is the one captured BEFORE the load, so an edit landing mid-load leaves the entry\n // stale-by-a-hair and the NEXT call re-signs, misses and reloads. That is exactly what an uncached\n // load already did: it too answers with the tree as it stood when it started.\n if (signature !== null) specificationsCompanionExportsCache.set(packageRoot, { signature, exports: companionExports });\n return companionExports;\n } finally {\n // A failed load caches nothing, so the next caller retries rather than inheriting the failure.\n if (specificationsCompanionExportsInFlight.get(packageRoot)?.load === load) {\n specificationsCompanionExportsInFlight.delete(packageRoot);\n }\n }\n}\n\n/** The last evaluated exports per specifications package root, valid while its tree signature holds. */\nconst specificationsCompanionExportsCache = new Map<string, { signature: string; exports: SpecificationsCompanionExports }>();\n\n/** Evaluations still running, so concurrent callers at the same signature share one of them. */\nconst specificationsCompanionExportsInFlight = new Map<string, { signature: string | null; load: Promise<SpecificationsCompanionExports> }>();\n\n/**\n * Every `moduleResolution` the companion entry resolver accepts.\n *\n * Total over the vocabulary rather than a list of the ones that matter today: a value added there must\n * widen what {@link signEvaluatedCompanionTree} covers, and a signature that silently stopped covering\n * a reachable tree would serve a stale evaluation with nothing reporting it.\n */\nconst COMPANION_MODULE_RESOLUTIONS = [\"framework-source\", \"package\"] as const satisfies readonly NonNullable<\n Parameters<typeof resolvePackageCompanionEntryPath>[2]\n>[\"moduleResolution\"][];\n\n/**\n * A cheap fingerprint of the module tree {@link loadSpecificationsCompanionExports} actually evaluates.\n *\n * **It signs every tree the resolver could land on, a superset of the one evaluated.** For the\n * specifications loader that tree is authored `src/` whenever it exists (a fresh read prefers source),\n * and resolving under `framework-source` lands on exactly that file, so `src/` is always signed. The\n * union is kept because the creation-plane projection signs OTHER packages with this function, whose\n * evaluated tree still follows the inferred module resolution — which `platform-config-lib` keeps\n * private. Its cost is that a rebuild of the tree NOT evaluated also invalidates: for specifications,\n * every tsc emit into `dist` after a source edit costs one extra re-evaluation. Never a stale answer,\n * which is the direction this must err in.\n *\n * Why a signature instead of a TTL: `freshModuleCache: true` exists so a family landed while the\n * companion runs is visible without a restart (#170), and a TTL trades exactly that away for up to its\n * own length. A signature cannot — the tsc watcher writes the tree, the signature moves, the next call\n * misses and re-evaluates. What is bought is only the repeat of an evaluation of BYTES THAT DID NOT\n * CHANGE.\n *\n * Measured on `examples/wonder-todos` (444 files): ~2-5 ms to sign against ~1.2-2.9 s to re-evaluate, and\n * a creation-board refresh pays that evaluation twice — once for playbook eligibility, once for the build\n * plan — which is the bulk of the board's latency. The git probes behind the build plan cost ~0.15 s on\n * the same application and are not the bottleneck.\n *\n * Aggregates rather than hashes content: file count catches a deletion, newest mtime catches a write,\n * total bytes and the mtime sum catch a same-instant swap that preserves both, and the directories'\n * own mtimes catch a rename — see `signDerivedInputs`, which owns the technique. `dist` and `node_modules`\n * are skipped only when they sit BELOW the evaluated root, never when they are it.\n *\n * Returns `null` when the tree cannot be read or is empty. That is a refusal to authorize a cache hit,\n * not an answer.\n *\n * Exported for the creation-plane projection (#1310), whose cached boards sit ABOVE this evaluation:\n * they must drop when the tree this evaluates moves, so they sign exactly what this signs rather than\n * a second guess at which tree the loader lands on.\n */\nexport function signEvaluatedCompanionTree(packageRoot: string): string | null {\n const entryPaths: string[] = [];\n for (const moduleResolution of COMPANION_MODULE_RESOLUTIONS) {\n try {\n entryPaths.push(resolvePackageCompanionEntryPath(packageRoot, undefined, { moduleResolution }));\n } catch {\n // One value resolving and the other not is ordinary (a package with no build output yet). Only\n // NEITHER resolving means there is nothing to sign, which `signDerivedInputs` reports as null.\n }\n }\n entryPaths.sort();\n const evaluatedRoots = [...new Set(entryPaths.map((entryPath) => dirname(entryPath)))].sort();\n // The export map decides WHICH entry is evaluated, so a change to it must invalidate as surely as a\n // change to the modules behind it.\n return signDerivedInputs(evaluatedRoots, [join(packageRoot, \"package.json\")]);\n}\n\n/** Evaluates the specifications companion surface, with no caching — see {@link loadSpecificationsCompanionExports}. */\nasync function evaluateSpecificationsCompanionExports(companionContext: CompanionContext): Promise<SpecificationsCompanionExports> {\n const resolvedSpecifications = companionContext.resolvedSpecifications;\n if (!resolvedSpecifications) {\n throw new Error(\"No specifications package is declared in wildo.saas.config.ts.\");\n }\n\n const packageModuleAliases = normalizeCompilerPathAliasesForLoader(\n resolvedSpecifications.packageRoot,\n readPackageCompilerPathAliases(resolvedSpecifications.packageRoot),\n );\n\n // Application specifications are declarative control-plane input, but their\n // metadata can legitimately reach browser component modules. Static assets\n // carry no companion semantics; treating them as executable Node modules\n // would make an otherwise valid configured application unloadable solely\n // because a frontend library imports its stylesheet. Register the narrow\n // process-wide no-op hook before jiti evaluates the authored export graph.\n // The hook never handles JavaScript/TypeScript and remains inert for callers\n // that do not import a supported static asset.\n registerStaticAssetImportNoop();\n\n try {\n return await loadPackageCompanionExport<SpecificationsCompanionExports>(\n resolvedSpecifications.packageRoot,\n undefined,\n // freshModuleCache: this surface's CONTRACT is \"the working tree as the developer is writing\n // it\" (the JSDoc above), and jiti's process-global module cache broke exactly that: a family\n // landed (or a companion-exports slot wired) while the companion ran stayed invisible until\n // restart — J-1's stall B, one forced restart per landed family. Measured live 2026-08-27.\n { packageModuleAliases, freshModuleCache: true },\n );\n } catch (error) {\n /*\n * `freshModuleCache` covers the modules JITI evaluates — this package's own authored source. The\n * application's other WORKSPACE PACKAGES (`@my-app/shared-lib`) are imported by NODE as their compiled\n * build, and are re-read only when that build changes: the generation advanced above re-tags their\n * URLs (#2125). Until 2026-10-01 nothing did, and Node's process-global registry kept a symbol added\n * to one of them `undefined` until the companion restarted.\n *\n * The symptom gives no hint of which reading applies. Measured 2026-09-16: a coding run added a\n * `Deals_Operations` enum to the application's shared-lib at 21:30 and every playbook run afterwards\n * failed with `Cannot read properties of undefined (reading 'ASSIGN_OWNER')` — which reads as a\n * defect in the freshly authored specification, and is not. What remains of that case is a build\n * that has not been emitted (a watcher behind or red).\n *\n * So the loader names the condition rather than leaving the next reader to re-derive it. It does\n * not decide that this IS the cause — it cannot — it says what the cause usually is and what\n * clears it.\n */\n throw describeSpecificationsLoadFailure(error);\n }\n}\n\n/**\n * Add the pinned-registry hint to a specifications-load failure that looks like one, and leave every\n * other failure untouched.\n *\n * Exported so it can be pinned: the VALUE here is entirely in which failures get the hint. Attaching it\n * to a malformed build plan or a throwing module would send the next reader somewhere wrong, and that\n * is the half a test can hold.\n */\nexport function describeSpecificationsLoadFailure(error: unknown): unknown {\n const described = describeCaughtError(error);\n /*\n * `.*` with no space before `of`: the real message is \"Cannot read properties of undefined (reading\n * 'X')\", so a pattern requiring a segment between them matches NOTHING — which is what the first\n * draft did, and the pin below is what caught it before it shipped as a hint that never fires.\n */\n if (!/Cannot read propert(?:y|ies).*of undefined/u.test(described)) return error;\n /*\n * The AUTHORED frame — the first stack frame inside the application's specification source — is the one\n * fact that separates the two readings below, and the raw error buries it under a dozen loader frames.\n * Named here so the reader opens the right file first instead of restarting first.\n */\n const stack = error instanceof Error ? (error.stack ?? '') : '';\n const authoredFrame = stack.split('\\n').map((line) => line.trim()).find((line) => /specifications\\/src\\//u.test(line));\n const site = authoredFrame ? ` The first authored frame is: ${authoredFrame.replace(/^at\\s+/u, '')}.` : '';\n return new Error(\n `${described} — two readings.${site} `\n + '(1) A symbol was added to one of the application\\'s own packages and that package has not been COMPILED '\n + 'since: authored specification source is evaluated directly, but the application\\'s other packages are read '\n + \"as their compiled build, which this companion re-reads within a second of a new build — so check that the \"\n + 'package\\'s watcher is running and green (`wildo local dev` output, or its `dist` timestamp). (2) The failing '\n + 'file imports the symbol from a door that does not publish it — typically a subpath-only export of '\n + '`@wildo-ai/saas-specifications` named at the package ROOT, which is undefined however fresh the build is '\n + '(measured 2026-09-21: a landed risk register importing `ApplicationRiskRegisterSchema` from the root '\n + 'instead of `/assurance`). If the build is current, fix the import at the frame named above.',\n { cause: error },\n );\n}\n\n\n/** Extensions a plain-Node dynamic import cannot execute. */\nconst NON_EXECUTABLE_COMPANION_ENTRY_EXTENSIONS = Object.freeze([\".ts\", \".tsx\", \".mts\", \".cts\"]);\n\n/**\n * Import one resolved companion entry.\n *\n * The companion runs as compiled JavaScript under plain Node with only an\n * asset-noop loader registered — it has no TypeScript loader. `resolvePackageCompanionEntryPath`\n * may legitimately hand back authored source: that fallback is load-bearing for\n * `loadPackageCompanionExport`, which resolves through jiti and CAN execute\n * TypeScript. Here it cannot.\n *\n * Rejecting a source entry explicitly turns a package misconfiguration into a\n * precise, actionable error. Letting it through instead produced a bare\n * `ERR_UNKNOWN_FILE_EXTENSION` from deep inside the module loader, which — because\n * several call sites are deliberately best-effort — was swallowed into a warning\n * that named neither the package nor the dangling export. That is how a\n * permanently-dangling `./companion` target stayed invisible until the companion\n * happened to survive continuity recovery for the first time.\n */\nasync function importCompanionModule(entryPath: string): Promise<Record<string, unknown>> {\n const nonExecutableExtension = NON_EXECUTABLE_COMPANION_ENTRY_EXTENSIONS.find((extension) => entryPath.endsWith(extension));\n if (nonExecutableExtension) {\n throw new Error(\n `Companion entry \"${entryPath}\" is TypeScript source, which this runtime cannot execute. `\n + \"The package's declared companion export is missing or unbuilt, so resolution fell back to authored source. \"\n + \"Build the package, or correct its package.json exports to point at a built entry.\",\n );\n }\n return import(pathToFileURL(entryPath).href) as Promise<Record<string, unknown>>;\n}\n\nasync function importCompanionDefaultExport<T extends object>(entryPath: string, exportOwnerLabel: string): Promise<T> {\n const moduleExports = await importCompanionModule(entryPath);\n const defaultExport = moduleExports.default;\n\n if (!defaultExport || typeof defaultExport !== \"object\") {\n throw new Error(`${exportOwnerLabel} companion export must default-export one typed object surface.`);\n }\n\n return defaultExport as T;\n}\n\nfunction resolvePackageRootEntryPath(packageRoot: string): string {\n const sourceCandidates = [\n join(packageRoot, \"src\", \"index.ts\"),\n join(packageRoot, \"src\", \"index.tsx\"),\n join(packageRoot, \"src\", \"index.js\"),\n join(packageRoot, \"src\", \"index.mjs\"),\n ];\n\n for (const candidate of sourceCandidates) {\n if (existsSync(candidate)) {\n return candidate;\n }\n }\n\n const packageJsonPath = join(packageRoot, \"package.json\");\n if (!existsSync(packageJsonPath)) {\n throw new Error(`Missing package.json for package root \"${packageRoot}\".`);\n }\n\n const packageJson = JSON.parse(readFileSync(packageJsonPath, \"utf-8\")) as {\n exports?: Record<string, string | { import?: string; default?: string }>;\n main?: string;\n module?: string;\n };\n const rootExport = packageJson.exports?.[\".\"];\n\n if (typeof rootExport === \"string\") {\n const rootExportPath = resolve(packageRoot, rootExport);\n if (existsSync(rootExportPath)) {\n return rootExportPath;\n }\n }\n\n if (rootExport && typeof rootExport === \"object\") {\n const declaredEntryPath = rootExport.import ?? rootExport.default;\n if (typeof declaredEntryPath === \"string\") {\n const rootExportPath = resolve(packageRoot, declaredEntryPath);\n if (existsSync(rootExportPath)) {\n return rootExportPath;\n }\n }\n }\n\n for (const declaredEntryPath of [packageJson.module, packageJson.main]) {\n if (!declaredEntryPath) {\n continue;\n }\n\n const resolvedEntryPath = resolve(packageRoot, declaredEntryPath);\n if (existsSync(resolvedEntryPath)) {\n return resolvedEntryPath;\n }\n }\n\n throw new Error(`Could not resolve root entry for package \"${packageRoot}\".`);\n}\n\n/**\n * The module aliases the specifications package declares for ITSELF, read from its `tsconfig.json`.\n *\n * These used to come from an app-authored continuity declaration (`specifications/src/continuity.ts` →\n * `composition.compilerPathAliases`), which was one more place an application had to restate something it\n * had already said. The compiler config is where a package declares how its own specifiers resolve, it is\n * a committed file, and two branches can carry different versions of it and merge — so it is the source\n * this loader should have been reading all along (`.claude/rules/one-source-of-truth.md`, Rule 0).\n *\n * Scope, stated rather than discovered later: only the package's OWN `compilerOptions.paths` is read. An\n * alias inherited through `extends` is not followed, because resolving that chain here would mean\n * reimplementing a slice of tsc for a case no application has. A missing file or a missing `paths` block\n * means no aliases — the honest answer, not a fallback. Malformed JSON throws: a package whose compiler\n * config cannot be parsed cannot have its authored exports loaded correctly either.\n */\nfunction readPackageCompilerPathAliases(packageRoot: string): Readonly<Record<string, readonly string[]>> {\n const tsconfigPath = join(packageRoot, \"tsconfig.json\");\n if (!existsSync(tsconfigPath)) return {};\n let parsed: unknown;\n try {\n parsed = JSON.parse(readFileSync(tsconfigPath, \"utf8\"));\n } catch (error) {\n throw new Error(`Specifications package tsconfig.json is not parseable JSON: ${tsconfigPath}`, { cause: error });\n }\n const paths = (parsed as { compilerOptions?: { paths?: unknown } } | null)?.compilerOptions?.paths;\n if (paths === null || paths === undefined || typeof paths !== \"object\") return {};\n const aliases: Record<string, readonly string[]> = {};\n for (const [alias, targets] of Object.entries(paths as Record<string, unknown>)) {\n if (Array.isArray(targets) && targets.every((target): target is string => typeof target === \"string\")) {\n aliases[alias] = targets;\n }\n }\n return aliases;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draft-family-values.companion.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"draft-family-values.companion.d.ts","sourceRoot":"","sources":["../../../../src/core/context/draft-family-values.companion.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,qBAAqB,CAAC,yBAAyB,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAkBxH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draft-family-values.companion.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"draft-family-values.companion.js","sourceRoot":"","sources":["../../../../src/core/context/draft-family-values.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AAErF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,yBAA6C;IACvF,MAAM,MAAM,GAAG,IAAI,GAAG,EAAmB,CAAC;IAC1C,IAAI,CAAC,yBAAyB;QAAE,OAAO,MAAM,CAAC;IAC9C,KAAK,MAAM,OAAO,IAAI,2BAA2B,EAAE,EAAE,CAAC;QACpD,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,yBAAyB,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;YAAE,SAAS;QACxF,IAAI,CAAC;YACH,MAAM,aAAa,GAAG,MAAM,0BAA0B,CAA0B,yBAAyB,EAAE,OAAO,CAAC,OAAO,EAAE;gBAC1H,gBAAgB,EAAE,IAAI;aACvB,CAAC,CAAC;YACH,sFAAsF;YACtF,uFAAuF;YACvF,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC;YAC3G,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;gBAAE,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QACjE,CAAC;QAAC,MAAM,CAAC;YACP,uDAAuD;QACzD,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import { existsSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { loadPackageCompanionExport } from '@wildo-ai/platform-config-lib';\nimport { readableDraftFamilyLandings } from '@wildo-ai/application-creation-runtime';\n\n/**\n * The landed value of every DRAFT family in a specifications package (#1426).\n *\n * A draft family has no companion-exports slot on purpose: it is committed, but it is not accepted\n * application truth, so eligibility keeps failing closed for it and the export wiring never gives it a\n * constant. That left two readers each needing its value, and one of them unable to get it:\n *\n * - the playbook lane's coherence report, which read drafts through its own loop;\n * - the decided-element index behind `family-aspects` and `specification-elements`, which read the\n * companion exports only, so the governed-document candidate set — 39KB on each dogfood application —\n * returned zero rows.\n *\n * Both now load through here, over the population `readableDraftFamilyLandings` derives, so they cannot\n * disagree about which families are drafts. The values are handed to the index as DRAFTS, and every\n * element read from them says so.\n *\n * `freshModuleCache` is required, and its absence was #170: jiti's module cache is process-global, so in\n * the long-lived companion a draft imported once would stay frozen for the process lifetime.\n *\n * Best-effort: an unreadable or half-written draft costs nobody their run, it is simply absent.\n */\nexport async function loadDraftFamilyValues(specificationsPackageRoot: string | undefined): Promise<Map<string, unknown>> {\n const drafts = new Map<string, unknown>();\n if (!specificationsPackageRoot) return drafts;\n for (const landing of readableDraftFamilyLandings()) {\n if (!existsSync(join(specificationsPackageRoot, landing.packageRelativePath))) continue;\n try {\n const moduleExports = await loadPackageCompanionExport<Record<string, unknown>>(specificationsPackageRoot, landing.subpath, {\n freshModuleCache: true,\n });\n // A landed family module exports exactly one constant, named by the landing profile's\n // `constantSuffix`. Taking the sole export keeps this from restating that naming rule.\n const values = Object.values(moduleExports ?? {}).filter((value) => value !== undefined && value !== null);\n if (values.length === 1) drafts.set(landing.family, values[0]);\n } catch {\n // Deliberately silent: see the best-effort note above.\n }\n }\n return drafts;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../../../src/core/inject/models/container.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAShE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AA8D5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAE9F,OAAO,EAAE,gCAAgC,EAAE,MAAM,4DAA4D,CAAC;AAyB9G,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAqB;gBAEnC,SAAS,CAAC,EAAE,kBAAkB,EAAE,gBAAgB,CAAC,EAAE,gBAAgB,EAAE,aAAa,CAAC,EAAE,sBAAsB;IAKvH,OAAO,CAAC,YAAY;IAoLb,YAAY,IAAI,kBAAkB;CAG1C;AAED,wBAAgB,uBAAuB,CACrC,QAAQ,CAAC,EAAE,kBAAkB,EAC7B,gBAAgB,CAAC,EAAE,gBAAgB,EACnC,aAAa,CAAC,EAAE,sBAAsB,GACrC,kBAAkB,CAMpB;AAED,wBAAgB,qBAAqB,IAAI,kBAAkB,CAG1D;AAED,wBAAgB,uBAAuB,IAAI,IAAI,CAE9C"}
|
|
@@ -56,6 +56,8 @@ import { DossierCompanionService } from "../../../meta-workflows/services/dossie
|
|
|
56
56
|
import { PlaybookInstanceCompanionService } from "../../../meta-workflows/services/playbook-instance.companion.service.js";
|
|
57
57
|
import { BuildPlanAuthoringCompanionService } from "../../../meta-workflows/services/build-plan-authoring.companion.service.js";
|
|
58
58
|
import { CodingRunWriteRegisterCompanionService } from "../../../claude-cli/services/coding-run-write-register.companion.service.js";
|
|
59
|
+
import { CreationInterventionLedgerCompanionService } from "../../../meta-workflows/services/creation-intervention-ledger.companion.service.js";
|
|
60
|
+
import { CreationRunReportCompanionService } from "../../../meta-workflows/services/creation-run-report.companion.service.js";
|
|
59
61
|
import { AcceptedChangeCommitCompanionService } from "../../../claude-cli/services/accepted-change-commit.companion.service.js";
|
|
60
62
|
export { CompanionController } from "../../../companion-api/controllers/companion.controller.js";
|
|
61
63
|
export { StartCompanionApplicationService } from "../../runtime/services/start-companion-application.service.js";
|
|
@@ -125,6 +127,8 @@ export class CompanionContainer {
|
|
|
125
127
|
this.container.bind(COMPANION_SERVICE_TYPES.PlaybookInstanceService).to(PlaybookInstanceCompanionService).inSingletonScope();
|
|
126
128
|
this.container.bind(COMPANION_SERVICE_TYPES.BuildPlanAuthoringService).to(BuildPlanAuthoringCompanionService).inSingletonScope();
|
|
127
129
|
this.container.bind(COMPANION_SERVICE_TYPES.CodingRunWriteRegisterService).to(CodingRunWriteRegisterCompanionService).inSingletonScope();
|
|
130
|
+
this.container.bind(COMPANION_SERVICE_TYPES.CreationInterventionLedgerService).to(CreationInterventionLedgerCompanionService).inSingletonScope();
|
|
131
|
+
this.container.bind(COMPANION_SERVICE_TYPES.CreationRunReportService).to(CreationRunReportCompanionService).inSingletonScope();
|
|
128
132
|
this.container.bind(COMPANION_SERVICE_TYPES.AcceptedChangeCommitService).to(AcceptedChangeCommitCompanionService).inSingletonScope();
|
|
129
133
|
this.container.bind(COMPANION_SERVICE_TYPES.LogoGenerationService).to(LogoGenerationCompanionService).inSingletonScope();
|
|
130
134
|
this.container.bind(COMPANION_SERVICE_TYPES.LogoDeliberationService).to(LogoDeliberationCompanionService).inSingletonScope();
|