@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-introspection-child.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"companion-introspection-child.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/companion-introspection-child.ts"],"names":[],"mappings":"AAOA,OAAO,EAML,KAAK,mCAAmC,EACxC,KAAK,kCAAkC,EACvC,KAAK,4BAA4B,EAClC,MAAM,0CAA0C,CAAC;AAqClD;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,4BAA4B,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAe9F;AA2BD,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,kCAAkC,EAC3C,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,MAAM,GACjB,4BAA4B,CAgB9B;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAI3D;AAED,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,mCAAmC,GACzC,IAAI,CAWN;AA0DD;;;;;;GAMG;AACH,wBAAgB,iCAAiC,IAAI,OAAO,CAE3D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companion-introspection-child.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/subprocess/companion-introspection-child.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,kCAAkC,EAAE,MAAM,8CAA8C,CAAC;AAClG,OAAO,EACL,6DAA6D,GAC9D,MAAM,2DAA2D,CAAC;AACnE,OAAO,EACL,4CAA4C,EAC5C,sCAAsC,EACtC,+CAA+C,EAC/C,uCAAuC,EACvC,uCAAuC,GAIxC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,iDAAiD,GAClD,MAAM,6CAA6C,CAAC;AAErD,MAAM,iDAAiD,GAAG,CAAC,CAAC,MAAM,CAAC;IACjE,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,uCAAuC,CAAC;IACzD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAEH,MAAM,yCAAyC,GAAG,CAAC,CAAC,MAAM,CAAC;IACzD,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACjC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAChC,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG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pathToFileURL } from 'node:url';\nimport { z } from 'zod';\nimport { initZodDecorators } from '@wildo-ai/zod-decorators';\nimport { CompanionIntrospectionResultSchema } from '../../../companion-api/companion-api.schemas';\nimport {\n resolveCompanionIntrospectionBehaviorDefinitionForServiceKind,\n} from '../behaviors/companion-introspection-behavior-definitions';\nimport {\n CompanionIntrospectionBehaviorCategoryValues,\n CompanionIntrospectionBehaviorIdValues,\n CompanionIntrospectionMaterializationKindValues,\n CompanionIntrospectionRouteTargetValues,\n CompanionIntrospectionServiceKindValues,\n type CompanionIntrospectionHomesSnapshot,\n type CompanionIntrospectionChildRequest,\n type CompanionIntrospectionResult,\n} from '../models/companion-introspection.models';\nimport {\n COMPANION_INTROSPECTION_BUILTIN_BEHAVIOR_HANDLERS,\n} from './companion-introspection-behavior-handlers';\n\nconst CompanionIntrospectionResolvedPackageTargetSchema = z.object({\n targetId: z.enum(CompanionIntrospectionRouteTargetValues),\n packageRoot: z.string().min(1),\n entryPath: z.string().min(1),\n declaredPath: z.string().min(1).optional(),\n});\n\nconst CompanionIntrospectionHomesSnapshotSchema = z.object({\n appDeclarationRoot: z.string().min(1),\n appRuntimeHome: z.string().min(1),\n companionHome: z.string().min(1),\n frameworkRepositoryRoot: z.string().min(1).nullable(),\n});\n\nconst CompanionIntrospectionChildRequestSchema = z.object({\n serviceKey: z.string().min(1),\n behavior: z.enum(CompanionIntrospectionBehaviorIdValues),\n serviceKind: z.enum(CompanionIntrospectionServiceKindValues),\n behaviorCategory: z.enum(CompanionIntrospectionBehaviorCategoryValues),\n materializationKind: z.enum(CompanionIntrospectionMaterializationKindValues),\n targetId: z.enum(CompanionIntrospectionRouteTargetValues),\n entryPath: z.string().min(1),\n packageRoot: z.string().min(1),\n homes: CompanionIntrospectionHomesSnapshotSchema,\n resolvedTargets: z.object({\n service: CompanionIntrospectionResolvedPackageTargetSchema.optional(),\n library: CompanionIntrospectionResolvedPackageTargetSchema.optional(),\n specifications: CompanionIntrospectionResolvedPackageTargetSchema.optional(),\n }),\n input: z.unknown().optional(),\n});\n\n/**\n * Emit the result back to the parent and terminate with `exitCode`.\n *\n * Exported for unit testing: the `!process.send` branch fires when a\n * companion-child module is imported outside of a `spawn(..., { stdio: [..., 'ipc'] })`\n * parent (e.g. direct invocation for debugging, or a future tool that\n * executes the child as a plain Node script). Without the branch we would\n * throw a `TypeError` on that path and obscure the real intent.\n */\nexport function sendResultAndExit(result: CompanionIntrospectionResult, exitCode: number): void {\n if (!process.send) {\n process.exit(exitCode);\n return;\n }\n\n process.send(result, (sendError) => {\n if (sendError) {\n process.exit(1);\n return;\n }\n\n process.disconnect?.();\n process.exit(exitCode);\n });\n}\n\nfunction assertBehaviorMetadata(normalizedMessage: CompanionIntrospectionChildRequest): void {\n const resolvedBehavior = resolveCompanionIntrospectionBehaviorDefinitionForServiceKind(\n normalizedMessage.behavior,\n normalizedMessage.serviceKind,\n );\n\n if (resolvedBehavior.category !== normalizedMessage.behaviorCategory) {\n throw new Error(\n `Behavior \"${normalizedMessage.behavior}\" category mismatch: expected \"${resolvedBehavior.category}\", received \"${normalizedMessage.behaviorCategory}\".`,\n );\n }\n\n if (resolvedBehavior.execution.materializationKind !== normalizedMessage.materializationKind) {\n throw new Error(\n `Behavior \"${normalizedMessage.behavior}\" materialization kind mismatch: expected \"${resolvedBehavior.execution.materializationKind}\", received \"${normalizedMessage.materializationKind}\".`,\n );\n }\n\n if (resolvedBehavior.route.target !== normalizedMessage.targetId) {\n throw new Error(\n `Behavior \"${normalizedMessage.behavior}\" target mismatch: expected \"${resolvedBehavior.route.target}\", received \"${normalizedMessage.targetId}\".`,\n );\n }\n}\n\nexport function buildFailureEnvelope(\n request: CompanionIntrospectionChildRequest,\n error: Error,\n durationMs: number,\n): CompanionIntrospectionResult {\n return CompanionIntrospectionResultSchema.parse({\n success: false,\n behavior: request.behavior,\n serviceKey: request.serviceKey,\n serviceKind: request.serviceKind,\n behaviorCategory: request.behaviorCategory,\n materializationKind: request.materializationKind,\n targetId: request.targetId,\n durationMs,\n error: {\n message: error.message,\n name: error.name,\n stack: error.stack,\n },\n }) as CompanionIntrospectionResult;\n}\n\n/**\n * Write a fatal bootstrap failure to stderr and exit with status 1.\n *\n * Exported for unit testing: this is the sole recovery path when\n * `reflect-metadata` (or any other bootstrap-only module) fails to import\n * before the first message has been parsed. Any regression here is silent\n * — the parent just observes a child exit with code 1 and no envelope —\n * so it must be covered by explicit tests.\n */\nexport function emitFatalBootstrapError(error: Error): never {\n const renderedError = error.stack ?? `${error.name}: ${error.message}`;\n process.stderr.write(`${renderedError}\\n`);\n process.exit(1);\n}\n\nexport function applyTrustedHomesToChildProcess(\n homes: CompanionIntrospectionHomesSnapshot,\n): void {\n process.env.COMPANION_WORKSPACE_ROOT = homes.appDeclarationRoot;\n process.env.COMPANION_RUNTIME_HOME = homes.appRuntimeHome;\n process.env.COMPANION_PACKAGE_ROOT = homes.companionHome;\n\n if (homes.frameworkRepositoryRoot) {\n process.env.COMPANION_FRAMEWORK_ROOT = homes.frameworkRepositoryRoot;\n return;\n }\n\n delete process.env.COMPANION_FRAMEWORK_ROOT;\n}\n\nasync function handleChildProcessMessage(message: CompanionIntrospectionChildRequest): Promise<void> {\n const startedAt = Date.now();\n let normalizedMessage: CompanionIntrospectionChildRequest | null = null;\n\n try {\n normalizedMessage = CompanionIntrospectionChildRequestSchema.parse(\n message,\n ) as CompanionIntrospectionChildRequest;\n assertBehaviorMetadata(normalizedMessage);\n applyTrustedHomesToChildProcess(normalizedMessage.homes);\n\n const moduleExports = await import(pathToFileURL(normalizedMessage.entryPath).href) as Record<string, unknown>;\n const builtinHandler = COMPANION_INTROSPECTION_BUILTIN_BEHAVIOR_HANDLERS[normalizedMessage.behavior];\n const handler = builtinHandler;\n if (!handler) {\n throw new Error(\n `Behavior \"${normalizedMessage.behavior}\" does not have a companion-owned subprocess handler.`,\n );\n }\n\n const resolvedBehavior = resolveCompanionIntrospectionBehaviorDefinitionForServiceKind(\n normalizedMessage.behavior,\n normalizedMessage.serviceKind,\n );\n const data = await handler(normalizedMessage.input, {\n request: normalizedMessage,\n behavior: resolvedBehavior,\n moduleExports,\n });\n\n const result = CompanionIntrospectionResultSchema.parse({\n success: true,\n behavior: normalizedMessage.behavior,\n serviceKey: normalizedMessage.serviceKey,\n serviceKind: normalizedMessage.serviceKind,\n behaviorCategory: normalizedMessage.behaviorCategory,\n materializationKind: normalizedMessage.materializationKind,\n targetId: normalizedMessage.targetId,\n durationMs: Date.now() - startedAt,\n data,\n }) as CompanionIntrospectionResult;\n\n sendResultAndExit(result, 0);\n } catch (error) {\n const standardError = error instanceof Error\n ? error\n : new Error(typeof error === 'string' ? error : 'Unknown companion introspection error');\n\n if (!normalizedMessage) {\n emitFatalBootstrapError(standardError);\n }\n\n sendResultAndExit(buildFailureEnvelope(normalizedMessage, standardError, Date.now() - startedAt), 1);\n }\n}\n\n/**\n * Module-top side-effect gate.\n *\n * Exported for unit testing so that future refactors of the env-flag contract\n * (name, values, default) cannot silently change the ambient behavior of\n * importing this module from other tooling.\n */\nexport function shouldRegisterChildMessageHandler(): boolean {\n return process.env.WILDO_COMPANION_INTROSPECTION_CHILD === '1';\n}\n\n/**\n * Gate the subprocess-only side effects behind the `WILDO_COMPANION_INTROSPECTION_CHILD`\n * env contract so that importing this module from tests or other tooling does not\n * register an IPC listener or dynamically load `reflect-metadata`.\n *\n * IMPORTANT: this gate does NOT make the module fully side-effect free — the\n * static `import { initZodDecorators } from '@wildo-ai/zod-decorators'` at the top\n * of the file already runs `ensureZodDecoratorsLoaded(z)` at module evaluation\n * time (see `engine/zod-decorators/src/index.ts`), which patches the shared Zod\n * prototype regardless of this env flag. Tests that import any symbol from this\n * file inherit that Zod mutation. The env gate is specifically about:\n *\n * 1. Not registering an IPC `process.on('message', ...)` listener in workers\n * that are not spawned children (otherwise the listener would leak across\n * Vitest worker boundaries when one worker reuses a process).\n * 2. Not eagerly pulling `reflect-metadata` into memory when the module is\n * imported purely for unit testing helpers (`buildFailureEnvelope`,\n * `applyTrustedHomesToChildProcess`).\n *\n * IPC timing contract (see `companion-introspection.companion.service.ts`):\n * the parent calls `child.send(request)` on the `'spawn'` event, which fires\n * as soon as the OS process exists but BEFORE the child's ESM module graph\n * has finished evaluating. To avoid losing the first message, we:\n *\n * - Register `process.on('message', ...)` **synchronously** inside this branch,\n * so any message sent after the `'spawn'` event is captured by Node's IPC\n * queue (the one that backs any registered listener on `process`).\n * - Defer the actual handling behind a `bootstrapPromise` that resolves once\n * `reflect-metadata` has loaded. The listener attaches `.then(handle)` to\n * that promise so execution waits for bootstrap completion without dropping\n * the message.\n *\n * The extra call to `initZodDecorators()` after the dynamic import is\n * intentionally redundant (the static import already patched Zod) and serves\n * as defense-in-depth if a future refactor switches the top-level static\n * import to a dynamic one.\n */\nif (shouldRegisterChildMessageHandler()) {\n const bootstrapPromise: Promise<void> = import('reflect-metadata')\n .then(() => {\n initZodDecorators();\n });\n\n process.on('message', (message: CompanionIntrospectionChildRequest) => {\n bootstrapPromise\n .then(() => handleChildProcessMessage(message))\n .catch((bootstrapError: unknown) => {\n const standardError = bootstrapError instanceof Error\n ? bootstrapError\n : new Error('Unknown companion introspection bootstrap error');\n emitFatalBootstrapError(standardError);\n });\n });\n}\n"]}
|
|
1
|
+
{"version":3,"file":"companion-introspection-child.js","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/companion-introspection-child.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,kCAAkC,EAAE,MAAM,8CAA8C,CAAC;AAClG,OAAO,EACL,6DAA6D,GAC9D,MAAM,2DAA2D,CAAC;AACnE,OAAO,EACL,4CAA4C,EAC5C,sCAAsC,EACtC,+CAA+C,EAC/C,uCAAuC,EACvC,uCAAuC,GAIxC,MAAM,0CAA0C,CAAC;AAClD,OAAO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C;IAC/C,OAAO,OAAO,CAAC,GAAG,CAAC,mCAAmC,KAAK,GAAG,CAAC;AACjE,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,IAAI,iCAAiC,EAAE,EAAE,CAAC;IACxC,MAAM,gBAAgB,GAAkB,MAAM,CAAC,kBAAkB,CAAC;SAC/D,IAAI,CAAC,GAAG,EAAE;QACT,iBAAiB,EAAE,CAAC;IACtB,CAAC,CAAC,CAAC;IAEL,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,OAA2C,EAAE,EAAE;QACpE,gBAAgB;aACb,IAAI,CAAC,GAAG,EAAE,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC;aAC9C,KAAK,CAAC,CAAC,cAAuB,EAAE,EAAE;YACjC,MAAM,aAAa,GAAG,cAAc,YAAY,KAAK;gBACnD,CAAC,CAAC,cAAc;gBAChB,CAAC,CAAC,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;YACjE,uBAAuB,CAAC,aAAa,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { pathToFileURL } from 'node:url';\nimport { z } from 'zod';\nimport { initZodDecorators } from '@wildo-ai/zod-decorators';\nimport { CompanionIntrospectionResultSchema } from '../../../companion-api/companion-api.schemas';\nimport {\n resolveCompanionIntrospectionBehaviorDefinitionForServiceKind,\n} from '../behaviors/companion-introspection-behavior-definitions';\nimport {\n CompanionIntrospectionBehaviorCategoryValues,\n CompanionIntrospectionBehaviorIdValues,\n CompanionIntrospectionMaterializationKindValues,\n CompanionIntrospectionRouteTargetValues,\n CompanionIntrospectionServiceKindValues,\n type CompanionIntrospectionHomesSnapshot,\n type CompanionIntrospectionChildRequest,\n type CompanionIntrospectionResult,\n} from '../models/companion-introspection.models';\nimport {\n COMPANION_INTROSPECTION_BUILTIN_BEHAVIOR_HANDLERS,\n} from './companion-introspection-behavior-handlers';\n\nconst CompanionIntrospectionResolvedPackageTargetSchema = z.object({\n targetId: z.enum(CompanionIntrospectionRouteTargetValues),\n packageRoot: z.string().min(1),\n entryPath: z.string().min(1),\n declaredPath: z.string().min(1).optional(),\n});\n\nconst CompanionIntrospectionHomesSnapshotSchema = z.object({\n appDeclarationRoot: z.string().min(1),\n appRuntimeHome: z.string().min(1),\n companionHome: z.string().min(1),\n frameworkRepositoryRoot: z.string().min(1).nullable(),\n});\n\nconst CompanionIntrospectionChildRequestSchema = z.object({\n serviceKey: z.string().min(1),\n behavior: z.enum(CompanionIntrospectionBehaviorIdValues),\n serviceKind: z.enum(CompanionIntrospectionServiceKindValues),\n behaviorCategory: z.enum(CompanionIntrospectionBehaviorCategoryValues),\n materializationKind: z.enum(CompanionIntrospectionMaterializationKindValues),\n targetId: z.enum(CompanionIntrospectionRouteTargetValues),\n entryPath: z.string().min(1),\n packageRoot: z.string().min(1),\n homes: CompanionIntrospectionHomesSnapshotSchema,\n resolvedTargets: z.object({\n service: CompanionIntrospectionResolvedPackageTargetSchema.optional(),\n library: CompanionIntrospectionResolvedPackageTargetSchema.optional(),\n specifications: CompanionIntrospectionResolvedPackageTargetSchema.optional(),\n }),\n input: z.unknown().optional(),\n});\n\n/**\n * Emit the result back to the parent and terminate with `exitCode`.\n *\n * Exported for unit testing: the `!process.send` branch fires when a\n * companion-child module is imported outside of a `spawn(..., { stdio: [..., 'ipc'] })`\n * parent (e.g. direct invocation for debugging, or a future tool that\n * executes the child as a plain Node script). Without the branch we would\n * throw a `TypeError` on that path and obscure the real intent.\n */\nexport function sendResultAndExit(result: CompanionIntrospectionResult, exitCode: number): void {\n if (!process.send) {\n process.exit(exitCode);\n return;\n }\n\n process.send(result, (sendError) => {\n if (sendError) {\n process.exit(1);\n return;\n }\n\n process.disconnect?.();\n process.exit(exitCode);\n });\n}\n\nfunction assertBehaviorMetadata(normalizedMessage: CompanionIntrospectionChildRequest): void {\n const resolvedBehavior = resolveCompanionIntrospectionBehaviorDefinitionForServiceKind(\n normalizedMessage.behavior,\n normalizedMessage.serviceKind,\n );\n\n if (resolvedBehavior.category !== normalizedMessage.behaviorCategory) {\n throw new Error(\n `Behavior \"${normalizedMessage.behavior}\" category mismatch: expected \"${resolvedBehavior.category}\", received \"${normalizedMessage.behaviorCategory}\".`,\n );\n }\n\n if (resolvedBehavior.execution.materializationKind !== normalizedMessage.materializationKind) {\n throw new Error(\n `Behavior \"${normalizedMessage.behavior}\" materialization kind mismatch: expected \"${resolvedBehavior.execution.materializationKind}\", received \"${normalizedMessage.materializationKind}\".`,\n );\n }\n\n if (resolvedBehavior.route.target !== normalizedMessage.targetId) {\n throw new Error(\n `Behavior \"${normalizedMessage.behavior}\" target mismatch: expected \"${resolvedBehavior.route.target}\", received \"${normalizedMessage.targetId}\".`,\n );\n }\n}\n\nexport function buildFailureEnvelope(\n request: CompanionIntrospectionChildRequest,\n error: Error,\n durationMs: number,\n): CompanionIntrospectionResult {\n return CompanionIntrospectionResultSchema.parse({\n success: false,\n behavior: request.behavior,\n serviceKey: request.serviceKey,\n serviceKind: request.serviceKind,\n behaviorCategory: request.behaviorCategory,\n materializationKind: request.materializationKind,\n targetId: request.targetId,\n durationMs,\n error: {\n message: error.message,\n name: error.name,\n stack: error.stack,\n },\n }) as CompanionIntrospectionResult;\n}\n\n/**\n * Write a fatal bootstrap failure to stderr and exit with status 1.\n *\n * Exported for unit testing: this is the sole recovery path when\n * `reflect-metadata` (or any other bootstrap-only module) fails to import\n * before the first message has been parsed. Any regression here is silent\n * — the parent just observes a child exit with code 1 and no envelope —\n * so it must be covered by explicit tests.\n */\nexport function emitFatalBootstrapError(error: Error): never {\n const renderedError = error.stack ?? `${error.name}: ${error.message}`;\n process.stderr.write(`${renderedError}\\n`);\n process.exit(1);\n}\n\nexport function applyTrustedHomesToChildProcess(\n homes: CompanionIntrospectionHomesSnapshot,\n): void {\n process.env.COMPANION_WORKSPACE_ROOT = homes.appDeclarationRoot;\n process.env.COMPANION_RUNTIME_HOME = homes.appRuntimeHome;\n process.env.COMPANION_PACKAGE_ROOT = homes.companionHome;\n\n if (homes.frameworkRepositoryRoot) {\n process.env.COMPANION_FRAMEWORK_ROOT = homes.frameworkRepositoryRoot;\n return;\n }\n\n delete process.env.COMPANION_FRAMEWORK_ROOT;\n}\n\nasync function handleChildProcessMessage(message: CompanionIntrospectionChildRequest): Promise<void> {\n const startedAt = Date.now();\n let normalizedMessage: CompanionIntrospectionChildRequest | null = null;\n\n try {\n normalizedMessage = CompanionIntrospectionChildRequestSchema.parse(\n message,\n ) as CompanionIntrospectionChildRequest;\n assertBehaviorMetadata(normalizedMessage);\n applyTrustedHomesToChildProcess(normalizedMessage.homes);\n\n const moduleExports = await import(pathToFileURL(normalizedMessage.entryPath).href) as Record<string, unknown>;\n const builtinHandler = COMPANION_INTROSPECTION_BUILTIN_BEHAVIOR_HANDLERS[normalizedMessage.behavior];\n const handler = builtinHandler;\n if (!handler) {\n throw new Error(\n `Behavior \"${normalizedMessage.behavior}\" does not have a companion-owned subprocess handler.`,\n );\n }\n\n const resolvedBehavior = resolveCompanionIntrospectionBehaviorDefinitionForServiceKind(\n normalizedMessage.behavior,\n normalizedMessage.serviceKind,\n );\n const data = await handler(normalizedMessage.input, {\n request: normalizedMessage,\n behavior: resolvedBehavior,\n moduleExports,\n });\n\n const result = CompanionIntrospectionResultSchema.parse({\n success: true,\n behavior: normalizedMessage.behavior,\n serviceKey: normalizedMessage.serviceKey,\n serviceKind: normalizedMessage.serviceKind,\n behaviorCategory: normalizedMessage.behaviorCategory,\n materializationKind: normalizedMessage.materializationKind,\n targetId: normalizedMessage.targetId,\n durationMs: Date.now() - startedAt,\n data,\n }) as CompanionIntrospectionResult;\n\n sendResultAndExit(result, 0);\n } catch (error) {\n const standardError = error instanceof Error\n ? error\n : new Error(typeof error === 'string' ? error : 'Unknown companion introspection error');\n\n if (!normalizedMessage) {\n emitFatalBootstrapError(standardError);\n }\n\n sendResultAndExit(buildFailureEnvelope(normalizedMessage, standardError, Date.now() - startedAt), 1);\n }\n}\n\n/**\n * Module-top side-effect gate.\n *\n * Exported for unit testing so that future refactors of the env-flag contract\n * (name, values, default) cannot silently change the ambient behavior of\n * importing this module from other tooling.\n */\nexport function shouldRegisterChildMessageHandler(): boolean {\n return process.env.WILDO_COMPANION_INTROSPECTION_CHILD === '1';\n}\n\n/**\n * Gate the subprocess-only side effects behind the `WILDO_COMPANION_INTROSPECTION_CHILD`\n * env contract so that importing this module from tests or other tooling does not\n * register an IPC listener or dynamically load `reflect-metadata`.\n *\n * IMPORTANT: this gate does NOT make the module fully side-effect free — the\n * static `import { initZodDecorators } from '@wildo-ai/zod-decorators'` at the top\n * of the file already runs `ensureZodDecoratorsLoaded(z)` at module evaluation\n * time (see `engine/zod-decorators/src/index.ts`), which patches the shared Zod\n * prototype regardless of this env flag. Tests that import any symbol from this\n * file inherit that Zod mutation. The env gate is specifically about:\n *\n * 1. Not registering an IPC `process.on('message', ...)` listener in workers\n * that are not spawned children (otherwise the listener would leak across\n * Vitest worker boundaries when one worker reuses a process).\n * 2. Not eagerly pulling `reflect-metadata` into memory when the module is\n * imported purely for unit testing helpers (`buildFailureEnvelope`,\n * `applyTrustedHomesToChildProcess`).\n *\n * IPC timing contract (see `companion-introspection.companion.service.ts`):\n * the parent calls `child.send(request)` on the `'spawn'` event, which fires\n * as soon as the OS process exists but BEFORE the child's ESM module graph\n * has finished evaluating. To avoid losing the first message, we:\n *\n * - Register `process.on('message', ...)` **synchronously** inside this branch,\n * so any message sent after the `'spawn'` event is captured by Node's IPC\n * queue (the one that backs any registered listener on `process`).\n * - Defer the actual handling behind a `bootstrapPromise` that resolves once\n * `reflect-metadata` has loaded. The listener attaches `.then(handle)` to\n * that promise so execution waits for bootstrap completion without dropping\n * the message.\n *\n * The extra call to `initZodDecorators()` after the dynamic import is\n * intentionally redundant (the static import already patched Zod) and serves\n * as defense-in-depth if a future refactor switches the top-level static\n * import to a dynamic one.\n */\nif (shouldRegisterChildMessageHandler()) {\n const bootstrapPromise: Promise<void> = import('reflect-metadata')\n .then(() => {\n initZodDecorators();\n });\n\n process.on('message', (message: CompanionIntrospectionChildRequest) => {\n bootstrapPromise\n .then(() => handleChildProcessMessage(message))\n .catch((bootstrapError: unknown) => {\n const standardError = bootstrapError instanceof Error\n ? bootstrapError\n : new Error('Unknown companion introspection bootstrap error');\n emitFatalBootstrapError(standardError);\n });\n });\n}\n"]}
|
package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companion-introspection-module-exports.utils.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"companion-introspection-module-exports.utils.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/companion-introspection-module-exports.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,KAAK,EACV,wBAAwB,EACxB,cAAc,EACf,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EACV,6BAA6B,EAC7B,gBAAgB,EACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AAE9F,MAAM,MAAM,qBAAqB,GAAG,MAAM,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;AACpE,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC;AAapE,wBAAgB,8BAA8B,CAC5C,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACrC,uBAAuB,CAOzB;AAED,wBAAgB,+BAA+B,CAC7C,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACrC,wBAAwB,CAO1B;AAED,wBAAgB,oCAAoC,CAClD,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACrC,6BAA6B,CAO/B;AAED,wBAAgB,qCAAqC,CACnD,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACrC,8BAA8B,CAOhC;AAED,wBAAgB,+BAA+B,CAC7C,wBAAwB,EAAE,wBAAwB,GACjD,wBAAwB,CAO1B"}
|
package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companion-introspection-module-exports.utils.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"companion-introspection-module-exports.utils.js","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/companion-introspection-module-exports.utils.ts"],"names":[],"mappings":"AAeA,SAAS,6BAA6B,CACpC,aAAsC;IAEtC,MAAM,aAAa,GAAG,aAAa,CAAC,OAAO,CAAC;IAC5C,IAAI,CAAC,aAAa,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE,CAAC;QACxD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,aAAkB,CAAC;AAC5B,CAAC;AAED,MAAM,UAAU,8BAA8B,CAC5C,aAAsC;IAEtC,MAAM,gBAAgB,GAAG,6BAA6B,CAA0B,aAAa,CAAC,CAAC;IAC/F,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,mFAAmF,CAAC,CAAC;IACvG,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAED,MAAM,UAAU,+BAA+B,CAC7C,aAAsC;IAEtC,MAAM,gBAAgB,GAAG,6BAA6B,CAA2B,aAAa,CAAC,CAAC;IAChG,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,oFAAoF,CAAC,CAAC;IACxG,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAED,MAAM,UAAU,oCAAoC,CAClD,aAAsC;IAEtC,MAAM,gBAAgB,GAAG,6BAA6B,CAAgC,aAAa,CAAC,CAAC;IACrG,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,0FAA0F,CAAC,CAAC;IAC9G,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAED,MAAM,UAAU,qCAAqC,CACnD,aAAsC;IAEtC,MAAM,gBAAgB,GAAG,6BAA6B,CAAiC,aAAa,CAAC,CAAC;IACtG,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,0FAA0F,CAAC,CAAC;IAC9G,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAED,MAAM,UAAU,+BAA+B,CAC7C,wBAAkD;IAElD,MAAM,kBAAkB,GAAG,wBAAwB,CAAC,kBAAkB,CAAC;IACvE,IAAI,kBAAkB,IAAI,OAAO,kBAAkB,KAAK,QAAQ,EAAE,CAAC;QACjE,OAAO,kBAA8C,CAAC;IACxD,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,sEAAsE,CAAC,CAAC;AAC1F,CAAC","sourcesContent":["import type { DesignSystemSourceConfig } from '@wildo-ai/presets-components-models';\nimport type { BackendCompanionExports } from '@wildo-ai/saas-backend-lib/companion';\nimport type {\n FrontendCompanionExports,\n FrontendModule,\n} from '@wildo-ai/saas-frontend-lib/companion';\nimport type {\n SharedLibraryCompanionExports,\n SharedSaaSModule,\n} from '@wildo-ai/saas-models';\nimport type { SpecificationsCompanionExports } from '@wildo-ai/saas-specifications/companion';\n\nexport type FrontendModulesLoader = () => Promise<FrontendModule[]>;\nexport type SharedModulesLoader = () => Promise<SharedSaaSModule[]>;\n\nfunction resolveCompanionDefaultExport<T extends object>(\n moduleExports: Record<string, unknown>,\n): T | null {\n const defaultExport = moduleExports.default;\n if (!defaultExport || typeof defaultExport !== 'object') {\n return null;\n }\n\n return defaultExport as T;\n}\n\nexport function resolveBackendCompanionExports(\n moduleExports: Record<string, unknown>,\n): BackendCompanionExports {\n const companionExports = resolveCompanionDefaultExport<BackendCompanionExports>(moduleExports);\n if (!companionExports) {\n throw new Error('Target companion export must default-export one backend companion object surface.');\n }\n\n return companionExports;\n}\n\nexport function resolveFrontendCompanionExports(\n moduleExports: Record<string, unknown>,\n): FrontendCompanionExports {\n const companionExports = resolveCompanionDefaultExport<FrontendCompanionExports>(moduleExports);\n if (!companionExports) {\n throw new Error('Target companion export must default-export one frontend companion object surface.');\n }\n\n return companionExports;\n}\n\nexport function resolveSharedLibraryCompanionExports(\n moduleExports: Record<string, unknown>,\n): SharedLibraryCompanionExports {\n const companionExports = resolveCompanionDefaultExport<SharedLibraryCompanionExports>(moduleExports);\n if (!companionExports) {\n throw new Error('Target companion export must default-export one shared-library companion object surface.');\n }\n\n return companionExports;\n}\n\nexport function resolveSpecificationsCompanionExports(\n moduleExports: Record<string, unknown>,\n): SpecificationsCompanionExports {\n const companionExports = resolveCompanionDefaultExport<SpecificationsCompanionExports>(moduleExports);\n if (!companionExports) {\n throw new Error('Target companion export must default-export one specifications companion object surface.');\n }\n\n return companionExports;\n}\n\nexport function resolveDesignSystemSourceConfig(\n frontendCompanionExports: FrontendCompanionExports,\n): DesignSystemSourceConfig {\n const designSystemConfig = frontendCompanionExports.designSystemConfig;\n if (designSystemConfig && typeof designSystemConfig === 'object') {\n return designSystemConfig as DesignSystemSourceConfig;\n }\n\n throw new Error('Target frontend companion export does not expose designSystemConfig.');\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compliance-primary-facts.behavior.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"compliance-primary-facts.behavior.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/compliance-primary-facts.behavior.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,oBAAoB,EACpB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,uBAAuB,EACvB,KAAK,yB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,iBAAiB,CAAC,EAAE,yBAAyB,CAAC;IACvD,QAAQ,CAAC,kBAAkB,CAAC,EAAE,0BAA0B,CAAC;IACzD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,wBAAwB,CAAC;IACrD;;;;;;;;OAQG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,sGAAsG;IACtG,QAAQ,CAAC,cAAc,CAAC,EAAE;QAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACtD,2GAA2G;IAC3G,QAAQ,CAAC,oBAAoB,CAAC,EAAE;QAC9B,QAAQ,CAAC,OAAO,EAAE;YAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC;QAC9C,QAAQ,CAAC,OAAO,EAAE,SAAS;YAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;KACrF,CAAC;CACH;AAYD,mFAAmF;AACnF,wBAAgB,kCAAkC,CAChD,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,2BAA2B,EACnC,aAAa,EAAE,+BAA+B,GAC7C,8BAA8B,CAmBhC;AAED;;;;;;;GAOG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,aAAa,CAAC;IACrB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,2BAA2B,CAAC;IAC7C,QAAQ,CAAC,aAAa,EAAE,+BAA+B,CAAC;CACzD,CAAC,GACD,8BAA8B,CAqFhC;AAED;;;;;;GAMG;AACH,wBAAgB,iCAAiC,CAAC,aAAa,EAAE,+BAA+B,GAAG,+BAA+B,CAEjI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compliance-primary-facts.behavior.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/subprocess/compliance-primary-facts.behavior.ts"],"names":[],"mappings":"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M,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,uCAAuC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;SAChF,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAEtC,iGAAiG;IACjG,iGAAiG;IACjG,qEAAqE;IACrE,MAAM,sBAAsB,GAAG,0BAA0B,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAE5H,MAAM,qCAAqC,GAAG,SAAS;SACpD,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC,MAAM,GAAG,CAAC,CAAC;SACrE,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QAClB,YAAY,EAAE,QAAQ,CAAC,YAAY;QACnC,MAAM,EAAE,QAAQ,CAAC,MAAM;QACvB,MAAM,EAAE,QAAQ,CAAC,2BAA2B;KAC7C,CAAC,CAAC,CAAC;IAEN,OAAO;QACL,SAAS;QACT,gBAAgB,EAAE,QAAQ;QAC1B,uBAAuB;QACvB,sBAAsB;QACtB,qCAAqC;QACrC,KAAK,EAAE;YACL,mBAAmB,EAAE,QAAQ,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAC,aAAa;YAC/E,wBAAwB,EAAE,QAAQ,CAAC,2BAA2B,CAAC,WAAW,CAAC,CAAC,aAAa;SAC1F;KACF,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,iCAAiC,CAAC,aAA8C;IAC9F,OAAO,aAAa,CAAC;AACvB,CAAC","sourcesContent":["import {\n collectRowTtlPolicies,\n ErasureRetentionMode,\n type ResourceRetentionBinding,\n type PersonalDataCategory,\n type PersonalDataFieldCategories,\n ResourceDataSubjectKind,\n type ResourceDataSubjectPolicy,\n type ResourceRetentionPolicy,\n type ResourceStatutoryRetention,\n type ResourceSystemAccessPolicy,\n resolveResourcePersonalDataCategories,\n resourceAnsweredThePersonalDataQuestion,\n sortPersonalDataCategories,\n} from '@wildo-ai/saas-models';\nimport { systemOfRecordFlowsOfResource, type SystemOfRecordDataFlow } from '@wildo-ai/saas-specifications/application-creation';\n\n/**\n * **compliance-primary-facts** — what a compliance document can say about this application, DERIVED\n * from its resource configurations rather than elicited from a human or invented by a model.\n *\n * ## Why derivation rather than elicitation\n *\n * Wildo already IMPLEMENTS most of the compliance machinery a B2B SaaS needs — erasure with\n * retention, subject export for Art. 15 and Art. 20, consent levels, audit trails, tenant isolation.\n * What no consumer could read back is which resources DECLARE that they are governed by it, and a\n * document may only cite the declaration: an implemented mechanism says what the framework can do, a\n * declaration says what is true of this row.\n *\n * This behavior reads the declarations. It is the mechanism that lets a compliance document be\n * produced from what the application IS, instead of from what somebody remembers about it — including\n * when the honest answer is that a resource has declared nothing (see the measured table below, which\n * is not the answer this was expected to return).\n *\n * ## No model, by construction rather than by discipline\n *\n * Every value here is a DECLARATION already written down, so answering \"what is this resource's\n * erasure mode\" is a lookup. A lookup does not need a model, and a model asked to perform one can get\n * it wrong in a way nothing detects.\n *\n * That is not enforced by a rule saying \"do not call the model\" — it is enforced by this module\n * having no model port to call. There is no provider in the signature, no client in the closure, and\n * nothing to inject one through, so a model call here is unrepresentable rather than forbidden. A\n * test asserting \"we did not call the model\" would be the weaker form of the same claim: it can only\n * fail after someone has already added the call.\n *\n * ## Engine-declared and application-declared are reported SEPARATELY\n *\n * The split exists because engine and application declarations have different OWNERS, and therefore\n * different remedies: nobody building an application can close an engine gap, and nobody maintaining\n * the engine can close theirs. A produced notice that merged the two would report one number that\n * neither party can act on.\n *\n * **What the split was EXPECTED to show, and what it actually shows, are opposite — measured, not\n * assumed.** The expectation, written here until 2026-08-29 and taken from hand-writing the first real\n * privacy notice, was that *the engine already answers most of it* — identity, credentials, sessions,\n * membership being engine resources carrying engine declarations. The first live run that could reach\n * the engine population at all (wonder-crm, 2026-08-29, 85 engine resources) says otherwise:\n *\n * | engine resources declaring… | of 85 |\n * |---|---|\n * | `retentionPolicy.mode` / `dataSubjectPolicy.kind` | **2** — `users` and `user_self`, nothing else |\n * | `systemAccessPolicy.exportSubject` | 41 |\n * | `systemAccessPolicy.seeRetained` | 2 |\n *\n * So on the erasure axis the engine answered for the ACCOUNT and for nothing else — not credentials,\n * not profiles, not audit logs, not files, not membership. On the subject-EXPORT axis it answered for\n * about half. The two axes are declared by different mechanisms and had drifted apart, and no\n * consumer could see it because nothing read the declarations back until this projection did.\n *\n * **THAT TABLE IS A SNAPSHOT, AND THE ERASURE ROW HAS SINCE BEEN OVERTAKEN. Do not quote it as\n * current coverage.** It is kept because the finding it records is the reason this projection exists:\n * the expectation was the opposite of the measurement, and only reading the declarations back could\n * show that. Postures were then declared in bulk, so the erasure row is no longer 2, and the resource\n * POPULATION has moved too, which is why a later run reports a different denominator. Any consumer\n * that needs today's number must run this behavior, never copy a row from here or from a curated map;\n * `.claude/context/privacy-erasure-retention.md` carries the later figure and says the same thing.\n *\n * That is a finding about the FRAMEWORK, and it is the honest thing for a produced notice to state.\n * It is deliberately not repaired here: whether a resource holding personal data must be REQUIRED to\n * declare it is issue #93, a decision, and inferring a default would be precisely the invention this\n * whole capability refuses. Until it is taken, `undeclaredResourceTypes` names every undeclared\n * resource individually (83 in the snapshot above; ask the behavior for the current set) and the\n * document carries them as an incompleteness with a named owner.\n *\n * ## The session axis is not the personal-data axis\n *\n * `dataSubjectPolicy.kind` answers *whose login session an erasure ends*, and `NO_PRINCIPAL` — its\n * commonest value — is equally true of an invoice and of a CRM contact. What separates them is\n * `retentionPolicy.mode`: `RETAIN_ONLY` is the factory-enforced declaration that a resource *\"holds\n * no personal data of its own\"*, while `RETAIN_AND_IMPERSONALIZE` requires at least one field that\n * would actually be scrubbed. **A consumer reading the session axis for the personal-data question\n * will report a contacts table as holding nothing**, which is why the two are carried separately here\n * and never collapsed into one flag.\n *\n * ## What it deliberately does not do\n *\n * It reports declarations; it does not judge them. \"This resource declares no retention policy\" is a\n * fact. Whether that is a defect, an accepted decision, or a resource that genuinely holds no\n * personal data is a question for the document's incompleteness statement and, eventually, a human —\n * not for a projection that cannot see intent.\n */\n\n/** Whether a resource is engine-owned or authored by this application. The split is the point. */\nexport enum CompliancePrimaryFactOrigin {\n /** Declared by the engine and inherited by every generated application. */\n ENGINE = 'ENGINE',\n /** Declared — or not — by this application's own authors. */\n APPLICATION = 'APPLICATION',\n}\n\n/** One resource's compliance-relevant declarations, exactly as written. */\nexport interface CompliancePrimaryResourceFacts {\n readonly resourceType: string;\n readonly origin: CompliancePrimaryFactOrigin;\n /**\n * What happens to a row when its subject is erased. Absent means the resource has NOT declared —\n * which is not the same as declaring that nothing is retained, and must never be reported as such.\n */\n readonly erasureRetentionMode?: ErasureRetentionMode;\n /**\n * The statute that keeps this resource's rows through an erasure (#1635): the GDPR Art. 17(3) ground and\n * the operator's words for the law. Present only on a `BUSINESS_RECORDS`-bound resource, where the factory\n * requires it. A notice states it beside the erasure treatment: these rows are kept, restricted, because\n * the law says so, until the period ends.\n */\n readonly statutoryRetention?: ResourceStatutoryRetention;\n /**\n * WHOSE SESSION an erasure of this row ends — never whether the row is about a person.\n *\n * Read it as the session axis only. `NO_PRINCIPAL` covers two populations a document must treat\n * very differently: an ordinary business record, and a person with no account (a CRM contact, a\n * lead, a subscriber). {@link CompliancePrimaryResourceFacts.erasureRetentionMode} is what\n * separates them — `RETAIN_ONLY` is the declared \"holds no personal data of its own\".\n *\n * The member was called `NOT_A_DATA_SUBJECT` until 2026-08-28, and this projection was written\n * against that name. Reading it as \"not a person\" is exactly the error the rename removed: it would\n * have put every contact resource in the settled column and produced a privacy notice claiming the\n * application holds no personal data about the people its customers care most about.\n *\n * Absent means undeclared — which the resource factory permits only on a resource with no\n * retention policy at all.\n */\n readonly dataSubjectKind?: ResourceDataSubjectKind;\n /** True when the resource declares a subject-export mode — the Art. 15 / Art. 20 answer. */\n readonly declaresSubjectExport: boolean;\n /**\n * True when the resource declares the audited see-through read path over retained rows\n * (`seeRetained`). Worth stating in a document because it is the mechanism by which retained-but-\n * hidden data remains reachable at all, and every reveal through it is audited.\n */\n readonly declaresRetainedSeeThrough: boolean;\n /**\n * WHICH KINDS of personal data this resource holds, read off its fields' `.dataCategories()`\n * declarations plus the one category the walk DERIVES — `CREDENTIALS`, from `.isPassword()` /\n * `.isOtp()` / `.isWriteOnlySecret()`, which are markers the author wrote.\n *\n * Empty means the resource declares none. That is NOT a statement that it holds no personal data:\n * a resource holding personal data and declaring no category is indistinguishable here from one\n * holding none, which is exactly why {@link uncategorizedPersonalFields} exists beside it.\n */\n readonly personalDataCategories: readonly PersonalDataCategory[];\n /**\n * Fields this resource has ALREADY declared to be personal — through a credential marker, an\n * erasure scrub treatment, or a portability provenance — that carry no category.\n *\n * The actionable half of the answer. For these fields the omission is provably an OMISSION rather\n * than a judgement that the field is not personal, because the application said it was personal by\n * another door. A document names them; it does not guess what they contain.\n */\n readonly uncategorizedPersonalFields: readonly PersonalDataFieldCategories[];\n /**\n * How long this resource's rows are KEPT: its binding to a retention class, exactly as declared (#1613).\n * Absent means the resource binds no class — see {@link declaresRowTtl} before reading that as \"kept\n * until erased\".\n */\n readonly retentionBinding?: ResourceRetentionBinding;\n /**\n * True when the resource expires rows by a fixed `.ttl()` instead — framework plumbing that holds no\n * business data. Such a resource is not \"unbound\" in the sense a notice cares about: something does\n * delete its rows.\n */\n readonly declaresRowTtl: boolean;\n /**\n * The system-of-record instances this resource exchanges rows with — a read-through binding or a pipeline — with\n * the categories of the fields that flow (#1709). What makes a system of record's received categories DERIVABLE\n * rather than asked; empty for a resource that binds and pipes nothing.\n */\n readonly systemOfRecordFlows: readonly SystemOfRecordDataFlow[];\n}\n\n/** Counts over one origin, so a reader can size what is answered against what is owed. */\nexport interface CompliancePrimaryFactCoverage {\n readonly resourceCount: number;\n readonly withErasureRetentionMode: number;\n readonly withDataSubjectKind: number;\n readonly withSubjectExport: number;\n /**\n * Resources declaring {@link ErasureRetentionMode.RETAIN_ONLY} — the mode whose documented meaning\n * is *\"this resource holds no personal data of its own\"*, and which the resource factory REJECTS if\n * a scrub treatment contradicts it. So this count is a positive, checked statement a document may\n * cite, not an inference from silence.\n */\n readonly declaringNoPersonalDataOfTheirOwn: number;\n /** Resources declaring at least one personal-data category. */\n readonly withPersonalDataCategories: number;\n /**\n * Resources carrying at least one field that is personal by the application's OWN declaration and\n * has no category — the population whose remedy is one `.dataCategories()` call each.\n */\n readonly withUncategorizedPersonalFields: number;\n}\n\nexport interface CompliancePrimaryFactsResponse {\n readonly resources: readonly CompliancePrimaryResourceFacts[];\n readonly coverageByOrigin: Readonly<Record<CompliancePrimaryFactOrigin, CompliancePrimaryFactCoverage>>;\n /**\n * Resources that have said NOTHING about whether their rows are about people.\n *\n * Named individually rather than counted, because the remedy is per-resource and a count is not\n * actionable. This is a list a document STATES, never a defect this projection asserts: a resource\n * here may hold no personal data at all, and nothing in the configuration distinguishes \"considered\n * and not applicable\" from \"never considered\". That indistinguishability IS the finding — the\n * framework does not currently require the declaration, so silence is the default and the default\n * is uninformative.\n */\n readonly undeclaredResourceTypes: readonly string[];\n /**\n * Every personal-data category any resource declares, across both origins — the list a privacy\n * notice enumerates when it answers \"which categories of personal data do you process\".\n *\n * A UNION, deliberately: the notice question is application-wide, and per-resource detail is in\n * {@link resources} for a document that wants it. Ordered by the `PersonalDataCategory` enum so\n * the same application produces the same sentence every run.\n */\n readonly personalDataCategories: readonly PersonalDataCategory[];\n /**\n * Per resource, the fields that are personal by the application's own declaration and carry no\n * category. Empty when there is nothing outstanding.\n *\n * Named per field rather than counted, because the remedy is one `.dataCategories()` call per\n * field. Unlike {@link undeclaredResourceTypes} — which a document must present as \"not asked\" —\n * every entry here IS a gap: the application already said the field holds personal data.\n */\n readonly uncategorizedPersonalFieldsByResource: ReadonlyArray<{\n readonly resourceType: string;\n readonly origin: CompliancePrimaryFactOrigin;\n readonly fields: readonly PersonalDataFieldCategories[];\n }>;\n readonly trace: {\n readonly engineResourceCount: number;\n readonly applicationResourceCount: number;\n };\n}\n\n/**\n * The compliance-relevant slice of a resource configuration — a handful of its ~30 fields.\n *\n * Narrow rather than the whole `ResourceConfiguration` because that type is generic in three\n * parameters this projection has no opinion about, and because naming exactly what is read keeps the\n * dependency honest: a change to any OTHER part of a configuration cannot silently change what a\n * compliance document says.\n *\n * The three field TYPES are imported rather than restated, and that is the load-bearing choice. A\n * structural copy would let `retentionPolicy.mode` be renamed in `saas-models` while this kept\n * compiling and reported every resource as UNDECLARED — silently, and in the one direction a\n * compliance statement must never fail in. Importing the types makes the rename a build error here.\n */\ninterface ComplianceRelevantConfiguration {\n readonly retentionPolicy?: ResourceRetentionPolicy;\n readonly dataSubjectPolicy?: ResourceDataSubjectPolicy;\n readonly systemAccessPolicy?: ResourceSystemAccessPolicy;\n readonly retentionBinding?: ResourceRetentionBinding;\n /**\n * The resource's main schema, read ONLY through `resolveResourcePersonalDataCategories` and\n * `collectRowTtlPolicies`.\n *\n * `unknown` rather than a Zod type on purpose. This projection takes no opinion on the schema's\n * shape — the saas-models resolver owns the walk, including what to do with a union or a\n * non-object mainSchema (it returns an empty profile rather than throwing). Typing it here would\n * make this module a second place where \"how do you read a resource's fields\" is decided.\n */\n readonly mainSchema?: unknown;\n /** Read only for its `system`: which system-of-record instance holds this resource's rows (#1709). */\n readonly httpApiBinding?: { readonly system: string };\n /** Read only for its binding's `system` and its mapping's local fields: what a pipeline copies (#1709). */\n readonly externalDataPipeline?: {\n readonly binding: { readonly system: string };\n readonly mapping: readonly { readonly kind: string; readonly localField: string }[];\n };\n}\n\nconst emptyCoverage = (): CompliancePrimaryFactCoverage => ({\n resourceCount: 0,\n withErasureRetentionMode: 0,\n withDataSubjectKind: 0,\n withSubjectExport: 0,\n declaringNoPersonalDataOfTheirOwn: 0,\n withPersonalDataCategories: 0,\n withUncategorizedPersonalFields: 0,\n});\n\n/** One resource's declarations, read off an already-materialized configuration. */\nexport function readCompliancePrimaryResourceFacts(\n resourceType: string,\n origin: CompliancePrimaryFactOrigin,\n configuration: ComplianceRelevantConfiguration,\n): CompliancePrimaryResourceFacts {\n const systemAccessPolicy = configuration.systemAccessPolicy;\n const categoryProfile = resolveResourcePersonalDataCategories(configuration.mainSchema);\n return {\n resourceType,\n origin,\n ...(configuration.retentionPolicy?.mode === undefined ? {} : { erasureRetentionMode: configuration.retentionPolicy.mode }),\n ...(configuration.retentionPolicy?.statutoryRetention === undefined\n ? {}\n : { statutoryRetention: { ground: configuration.retentionPolicy.statutoryRetention.ground, rationale: configuration.retentionPolicy.statutoryRetention.rationale } }),\n ...(configuration.dataSubjectPolicy?.kind === undefined ? {} : { dataSubjectKind: configuration.dataSubjectPolicy.kind }),\n declaresSubjectExport: systemAccessPolicy?.exportSubject !== undefined,\n declaresRetainedSeeThrough: systemAccessPolicy?.seeRetained !== undefined,\n personalDataCategories: categoryProfile.categories,\n uncategorizedPersonalFields: categoryProfile.uncategorizedPersonalFields,\n ...(configuration.retentionBinding === undefined ? {} : { retentionBinding: configuration.retentionBinding }),\n declaresRowTtl: configuration.mainSchema !== undefined && collectRowTtlPolicies(configuration.mainSchema as never).length > 0,\n systemOfRecordFlows: systemOfRecordFlowsOfResource(resourceType, configuration),\n };\n}\n\n/**\n * Project the compliance facts of an application from its materialized resource configurations.\n *\n * Takes configurations already materialized by the caller rather than factories to materialize\n * itself: the handler knows how a factory is called (`factory(allRelationships)`, the way both\n * runtime registries do it) and owns the failure policy when one throws. Keeping that here would be a\n * second copy of a materialization convention that has already been the site of one defect.\n */\nexport function projectCompliancePrimaryFacts(\n entries: ReadonlyArray<{\n readonly resourceType: string;\n readonly origin: CompliancePrimaryFactOrigin;\n readonly configuration: ComplianceRelevantConfiguration;\n }>,\n): CompliancePrimaryFactsResponse {\n const resources = entries.map((entry) =>\n readCompliancePrimaryResourceFacts(entry.resourceType, entry.origin, entry.configuration));\n\n const coverage: Record<CompliancePrimaryFactOrigin, CompliancePrimaryFactCoverage> = {\n [CompliancePrimaryFactOrigin.ENGINE]: emptyCoverage(),\n [CompliancePrimaryFactOrigin.APPLICATION]: emptyCoverage(),\n };\n for (const resource of resources) {\n const current = coverage[resource.origin];\n coverage[resource.origin] = {\n resourceCount: current.resourceCount + 1,\n withErasureRetentionMode: current.withErasureRetentionMode + (resource.erasureRetentionMode === undefined ? 0 : 1),\n withDataSubjectKind: current.withDataSubjectKind + (resource.dataSubjectKind === undefined ? 0 : 1),\n withSubjectExport: current.withSubjectExport + (resource.declaresSubjectExport ? 1 : 0),\n declaringNoPersonalDataOfTheirOwn:\n current.declaringNoPersonalDataOfTheirOwn\n + (resource.erasureRetentionMode === ErasureRetentionMode.RETAIN_ONLY ? 1 : 0),\n withPersonalDataCategories: current.withPersonalDataCategories + (resource.personalDataCategories.length > 0 ? 1 : 0),\n withUncategorizedPersonalFields:\n current.withUncategorizedPersonalFields + (resource.uncategorizedPersonalFields.length > 0 ? 1 : 0),\n };\n }\n\n /*\n * Resources carrying NEITHER declaration.\n *\n * The first draft of this filter asked for the sharper population — rows that ARE a person with no\n * erasure treatment — and that set is EMPTY BY CONSTRUCTION, not because applications are diligent:\n * the resource factory refuses a `retentionPolicy` with no `dataSubjectPolicy` and refuses a\n * `dataSubjectPolicy` with no `retentionPolicy`, so the two always co-occur. A filter that can never\n * match reports a clean application and a broken projection identically.\n *\n * So the answerable question is the blunter one, and it is still the useful one: which resources\n * have not been asked. A resource that declared EITHER field has considered the question and is\n * excluded — listing settled cases beside open ones is how a gap list stops being read.\n *\n * Note what is deliberately NOT done here: `NO_PRINCIPAL` is not treated as \"not a person\". It is\n * the session axis, and it is the honest answer for a CRM contact as much as for an invoice. What\n * distinguishes them is the retention MODE, which the caller reads from the same row.\n */\n /*\n * A DECLARED CATEGORY IS AN ANSWER, and omitting it here put a contradiction in a produced notice.\n *\n * This filter keyed only on the two erasure axes until 2026-08-30. Then the engine declared data\n * categories on 48 of its 85 resources, and the very next wonder-crm notice said, of resources\n * including `userProfiles` and `userCredentials`, that \"whether each of those undeclared resources\n * holds personal data is not established by this notice\" — two sections after enumerating the\n * categories those same resources declare. Both clauses were DERIVED, both were sourced, and they\n * disagreed.\n *\n * The lesson is not \"add a third condition\". It is that the question \"has this resource been asked\"\n * has ONE answer and had two implementations: this filter, and\n * `resourceAnsweredThePersonalDataQuestion`, written for the startup report on the same day. Reusing\n * the saas-models predicate is what stops them drifting again — and it also brings in\n * `systemAccessPolicy.exportSubject`, which this filter never considered either.\n */\n const undeclaredResourceTypes = entries\n .filter((entry) => !resourceAnsweredThePersonalDataQuestion(entry.configuration))\n .map((entry) => entry.resourceType);\n\n // Ordered through the saas-models helper rather than by first appearance. First-appearance order\n // depends on resource iteration order, so adding one unrelated resource would silently reorder a\n // notice's category sentence — which reads as if the answer changed.\n const personalDataCategories = sortPersonalDataCategories(resources.flatMap((resource) => resource.personalDataCategories));\n\n const uncategorizedPersonalFieldsByResource = resources\n .filter((resource) => resource.uncategorizedPersonalFields.length > 0)\n .map((resource) => ({\n resourceType: resource.resourceType,\n origin: resource.origin,\n fields: resource.uncategorizedPersonalFields,\n }));\n\n return {\n resources,\n coverageByOrigin: coverage,\n undeclaredResourceTypes,\n personalDataCategories,\n uncategorizedPersonalFieldsByResource,\n trace: {\n engineResourceCount: coverage[CompliancePrimaryFactOrigin.ENGINE].resourceCount,\n applicationResourceCount: coverage[CompliancePrimaryFactOrigin.APPLICATION].resourceCount,\n },\n };\n}\n\n/**\n * Narrow a materialized configuration to the fields this projection reads.\n *\n * Structural, so any object carrying the three policies satisfies it — which is what lets the handler\n * pass a `ResourceConfiguration` of any generic instantiation without this module taking an opinion\n * on its three type parameters.\n */\nexport function asComplianceRelevantConfiguration(configuration: ComplianceRelevantConfiguration): ComplianceRelevantConfiguration {\n return configuration;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"compliance-primary-facts.behavior.js","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/compliance-primary-facts.behavior.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB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E,EAAE,CAAC,CAAC,uCAAuC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;SAChF,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAEtC,iGAAiG;IACjG,iGAAiG;IACjG,qEAAqE;IACrE,MAAM,sBAAsB,GAAG,0BAA0B,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAE5H,MAAM,qCAAqC,GAAG,SAAS;SACpD,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC,MAAM,GAAG,CAAC,CAAC;SACrE,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QAClB,YAAY,EAAE,QAAQ,CAAC,YAAY;QACnC,MAAM,EAAE,QAAQ,CAAC,MAAM;QACvB,MAAM,EAAE,QAAQ,CAAC,2BAA2B;KAC7C,CAAC,CAAC,CAAC;IAEN,OAAO;QACL,SAAS;QACT,gBAAgB,EAAE,QAAQ;QAC1B,uBAAuB;QACvB,sBAAsB;QACtB,qCAAqC;QACrC,KAAK,EAAE;YACL,mBAAmB,EAAE,QAAQ,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAC,aAAa;YAC/E,wBAAwB,EAAE,QAAQ,CAAC,2BAA2B,CAAC,WAAW,CAAC,CAAC,aAAa;SAC1F;KACF,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,iCAAiC,CAAC,aAA8C;IAC9F,OAAO,aAAa,CAAC;AACvB,CAAC","sourcesContent":["import {\n collectRowTtlPolicies,\n ErasureRetentionMode,\n type ResourceRetentionBinding,\n type PersonalDataCategory,\n type PersonalDataFieldCategories,\n ResourceDataSubjectKind,\n type ResourceDataSubjectPolicy,\n type ResourceRetentionPolicy,\n type ResourceStatutoryRetention,\n type ResourceSystemAccessPolicy,\n resolveResourcePersonalDataCategories,\n resourceAnsweredThePersonalDataQuestion,\n sortPersonalDataCategories,\n} from '@wildo-ai/saas-models';\nimport { systemOfRecordFlowsOfResource, type SystemOfRecordDataFlow } from '@wildo-ai/saas-specifications/application-creation';\n\n/**\n * **compliance-primary-facts** — what a compliance document can say about this application, DERIVED\n * from its resource configurations rather than elicited from a human or invented by a model.\n *\n * ## Why derivation rather than elicitation\n *\n * Wildo already IMPLEMENTS most of the compliance machinery a B2B SaaS needs — erasure with\n * retention, subject export for Art. 15 and Art. 20, consent levels, audit trails, tenant isolation.\n * What no consumer could read back is which resources DECLARE that they are governed by it, and a\n * document may only cite the declaration: an implemented mechanism says what the framework can do, a\n * declaration says what is true of this row.\n *\n * This behavior reads the declarations. It is the mechanism that lets a compliance document be\n * produced from what the application IS, instead of from what somebody remembers about it — including\n * when the honest answer is that a resource has declared nothing (see the measured table below, which\n * is not the answer this was expected to return).\n *\n * ## No model, by construction rather than by discipline\n *\n * Every value here is a DECLARATION already written down, so answering \"what is this resource's\n * erasure mode\" is a lookup. A lookup does not need a model, and a model asked to perform one can get\n * it wrong in a way nothing detects.\n *\n * That is not enforced by a rule saying \"do not call the model\" — it is enforced by this module\n * having no model port to call. There is no provider in the signature, no client in the closure, and\n * nothing to inject one through, so a model call here is unrepresentable rather than forbidden. A\n * test asserting \"we did not call the model\" would be the weaker form of the same claim: it can only\n * fail after someone has already added the call.\n *\n * ## Engine-declared and application-declared are reported SEPARATELY\n *\n * The split exists because engine and application declarations have different OWNERS, and therefore\n * different remedies: nobody building an application can close an engine gap, and nobody maintaining\n * the engine can close theirs. A produced notice that merged the two would report one number that\n * neither party can act on.\n *\n * **What the split was EXPECTED to show, and what it actually shows, are opposite — measured, not\n * assumed.** The expectation, written here until 2026-08-29 and taken from hand-writing the first real\n * privacy notice, was that *the engine already answers most of it* — identity, credentials, sessions,\n * membership being engine resources carrying engine declarations. The first live run that could reach\n * the engine population at all (wonder-crm, 2026-08-29, 85 engine resources) says otherwise:\n *\n * | engine resources declaring… | of 85 |\n * |---|---|\n * | `retentionPolicy.mode` / `dataSubjectPolicy.kind` | **2** — `users` and `user_self`, nothing else |\n * | `systemAccessPolicy.exportSubject` | 41 |\n * | `systemAccessPolicy.seeRetained` | 2 |\n *\n * So on the erasure axis the engine answered for the ACCOUNT and for nothing else — not credentials,\n * not profiles, not audit logs, not files, not membership. On the subject-EXPORT axis it answered for\n * about half. The two axes are declared by different mechanisms and had drifted apart, and no\n * consumer could see it because nothing read the declarations back until this projection did.\n *\n * **THAT TABLE IS A SNAPSHOT, AND THE ERASURE ROW HAS SINCE BEEN OVERTAKEN. Do not quote it as\n * current coverage.** It is kept because the finding it records is the reason this projection exists:\n * the expectation was the opposite of the measurement, and only reading the declarations back could\n * show that. Postures were then declared in bulk, so the erasure row is no longer 2, and the resource\n * POPULATION has moved too, which is why a later run reports a different denominator. Any consumer\n * that needs today's number must run this behavior, never copy a row from here or from a curated map;\n * `.claude/context/privacy-erasure-retention.md` carries the later figure and says the same thing.\n *\n * That is a finding about the FRAMEWORK, and it is the honest thing for a produced notice to state.\n * It is deliberately not repaired here: whether a resource holding personal data must be REQUIRED to\n * declare it is issue #93, a decision, and inferring a default would be precisely the invention this\n * whole capability refuses. Until it is taken, `undeclaredResourceTypes` names every undeclared\n * resource individually (83 in the snapshot above; ask the behavior for the current set) and the\n * document carries them as an incompleteness with a named owner.\n *\n * ## The session axis is not the personal-data axis\n *\n * `dataSubjectPolicy.kind` answers *whose login session an erasure ends*, and `NO_PRINCIPAL` — its\n * commonest value — is equally true of an invoice and of a CRM contact. What separates them is\n * `retentionPolicy.mode`: `RETAIN_ONLY` is the factory-enforced declaration that a resource *\"holds\n * no personal data of its own\"*, while `RETAIN_AND_IMPERSONALIZE` requires at least one field that\n * would actually be scrubbed. **A consumer reading the session axis for the personal-data question\n * will report a contacts table as holding nothing**, which is why the two are carried separately here\n * and never collapsed into one flag.\n *\n * ## What it deliberately does not do\n *\n * It reports declarations; it does not judge them. \"This resource declares no retention policy\" is a\n * fact. Whether that is a defect, an accepted decision, or a resource that genuinely holds no\n * personal data is a question for the document's incompleteness statement and, eventually, a human —\n * not for a projection that cannot see intent.\n */\n\n/** Whether a resource is engine-owned or authored by this application. The split is the point. */\nexport enum CompliancePrimaryFactOrigin {\n /** Declared by the engine and inherited by every generated application. */\n ENGINE = 'ENGINE',\n /** Declared — or not — by this application's own authors. */\n APPLICATION = 'APPLICATION',\n}\n\n/** One resource's compliance-relevant declarations, exactly as written. */\nexport interface CompliancePrimaryResourceFacts {\n readonly resourceType: string;\n readonly origin: CompliancePrimaryFactOrigin;\n /**\n * What happens to a row when its subject is erased. Absent means the resource has NOT declared —\n * which is not the same as declaring that nothing is retained, and must never be reported as such.\n */\n readonly erasureRetentionMode?: ErasureRetentionMode;\n /**\n * The statute that keeps this resource's rows through an erasure (#1635): the GDPR Art. 17(3) ground and\n * the operator's words for the law. Present only on a `BUSINESS_RECORDS`-bound resource, where the factory\n * requires it. A notice states it beside the erasure treatment: these rows are kept, restricted, because\n * the law says so, until the period ends.\n */\n readonly statutoryRetention?: ResourceStatutoryRetention;\n /**\n * WHOSE SESSION an erasure of this row ends — never whether the row is about a person.\n *\n * Read it as the session axis only. `NO_PRINCIPAL` covers two populations a document must treat\n * very differently: an ordinary business record, and a person with no account (a CRM contact, a\n * lead, a subscriber). {@link CompliancePrimaryResourceFacts.erasureRetentionMode} is what\n * separates them — `RETAIN_ONLY` is the declared \"holds no personal data of its own\".\n *\n * The member was called `NOT_A_DATA_SUBJECT` until 2026-08-28, and this projection was written\n * against that name. Reading it as \"not a person\" is exactly the error the rename removed: it would\n * have put every contact resource in the settled column and produced a privacy notice claiming the\n * application holds no personal data about the people its customers care most about.\n *\n * Absent means undeclared — which the resource factory permits only on a resource with no\n * retention policy at all.\n */\n readonly dataSubjectKind?: ResourceDataSubjectKind;\n /** True when the resource declares a subject-export mode — the Art. 15 / Art. 20 answer. */\n readonly declaresSubjectExport: boolean;\n /**\n * True when the resource declares the audited see-through read path over retained rows\n * (`seeRetained`). Worth stating in a document because it is the mechanism by which retained-but-\n * hidden data remains reachable at all, and every reveal through it is audited.\n */\n readonly declaresRetainedSeeThrough: boolean;\n /**\n * WHICH KINDS of personal data this resource holds, read off its fields' `.dataCategories()`\n * declarations plus the one category the walk DERIVES — `CREDENTIALS`, from `.isPassword()` /\n * `.isOtp()` / `.isWriteOnlySecret()`, which are markers the author wrote.\n *\n * Empty means the resource declares none. That is NOT a statement that it holds no personal data:\n * a resource holding personal data and declaring no category is indistinguishable here from one\n * holding none, which is exactly why {@link uncategorizedPersonalFields} exists beside it.\n */\n readonly personalDataCategories: readonly PersonalDataCategory[];\n /**\n * Fields this resource has ALREADY declared to be personal — through a credential marker, an\n * erasure scrub treatment, or a portability provenance — that carry no category.\n *\n * The actionable half of the answer. For these fields the omission is provably an OMISSION rather\n * than a judgement that the field is not personal, because the application said it was personal by\n * another door. A document names them; it does not guess what they contain.\n */\n readonly uncategorizedPersonalFields: readonly PersonalDataFieldCategories[];\n /**\n * How long this resource's rows are KEPT: its binding to a retention class, exactly as declared (#1613).\n * Absent means the resource binds no class — see {@link declaresRowTtl} before reading that as \"kept\n * until erased\".\n */\n readonly retentionBinding?: ResourceRetentionBinding;\n /**\n * True when the resource expires rows by a fixed `.ttl()` instead — framework plumbing that holds no\n * business data. Such a resource is not \"unbound\" in the sense a notice cares about: something does\n * delete its rows.\n */\n readonly declaresRowTtl: boolean;\n /**\n * The system-of-record instances this resource exchanges rows with — a read-through binding or a pipeline — with\n * the categories of the fields that flow (#1709). What makes a system of record's received categories DERIVABLE\n * rather than asked; empty for a resource that binds and pipes nothing.\n */\n readonly systemOfRecordFlows: readonly SystemOfRecordDataFlow[];\n}\n\n/** Counts over one origin, so a reader can size what is answered against what is owed. */\nexport interface CompliancePrimaryFactCoverage {\n readonly resourceCount: number;\n readonly withErasureRetentionMode: number;\n readonly withDataSubjectKind: number;\n readonly withSubjectExport: number;\n /**\n * Resources declaring {@link ErasureRetentionMode.RETAIN_ONLY} — the mode whose documented meaning\n * is *\"this resource holds no personal data of its own\"*, and which the resource factory REJECTS if\n * a scrub treatment contradicts it. So this count is a positive, checked statement a document may\n * cite, not an inference from silence.\n */\n readonly declaringNoPersonalDataOfTheirOwn: number;\n /** Resources declaring at least one personal-data category. */\n readonly withPersonalDataCategories: number;\n /**\n * Resources carrying at least one field that is personal by the application's OWN declaration and\n * has no category — the population whose remedy is one `.dataCategories()` call each.\n */\n readonly withUncategorizedPersonalFields: number;\n}\n\nexport interface CompliancePrimaryFactsResponse {\n readonly resources: readonly CompliancePrimaryResourceFacts[];\n readonly coverageByOrigin: Readonly<Record<CompliancePrimaryFactOrigin, CompliancePrimaryFactCoverage>>;\n /**\n * Resources that have said NOTHING about whether their rows are about people.\n *\n * Named individually rather than counted, because the remedy is per-resource and a count is not\n * actionable. This is a list a document STATES, never a defect this projection asserts: a resource\n * here may hold no personal data at all, and nothing in the configuration distinguishes \"considered\n * and not applicable\" from \"never considered\". That indistinguishability IS the finding — the\n * framework does not currently require the declaration, so silence is the default and the default\n * is uninformative.\n */\n readonly undeclaredResourceTypes: readonly string[];\n /**\n * Every personal-data category any resource declares, across both origins — the list a privacy\n * notice enumerates when it answers \"which categories of personal data do you process\".\n *\n * A UNION, deliberately: the notice question is application-wide, and per-resource detail is in\n * {@link resources} for a document that wants it. Ordered by the `PersonalDataCategory` enum so\n * the same application produces the same sentence every run.\n */\n readonly personalDataCategories: readonly PersonalDataCategory[];\n /**\n * Per resource, the fields that are personal by the application's own declaration and carry no\n * category. Empty when there is nothing outstanding.\n *\n * Named per field rather than counted, because the remedy is one `.dataCategories()` call per\n * field. Unlike {@link undeclaredResourceTypes} — which a document must present as \"not asked\" —\n * every entry here IS a gap: the application already said the field holds personal data.\n */\n readonly uncategorizedPersonalFieldsByResource: ReadonlyArray<{\n readonly resourceType: string;\n readonly origin: CompliancePrimaryFactOrigin;\n readonly fields: readonly PersonalDataFieldCategories[];\n }>;\n readonly trace: {\n readonly engineResourceCount: number;\n readonly applicationResourceCount: number;\n };\n}\n\n/**\n * The compliance-relevant slice of a resource configuration — a handful of its ~30 fields.\n *\n * Narrow rather than the whole `ResourceConfiguration` because that type is generic in three\n * parameters this projection has no opinion about, and because naming exactly what is read keeps the\n * dependency honest: a change to any OTHER part of a configuration cannot silently change what a\n * compliance document says.\n *\n * The three field TYPES are imported rather than restated, and that is the load-bearing choice. A\n * structural copy would let `retentionPolicy.mode` be renamed in `saas-models` while this kept\n * compiling and reported every resource as UNDECLARED — silently, and in the one direction a\n * compliance statement must never fail in. Importing the types makes the rename a build error here.\n */\ninterface ComplianceRelevantConfiguration {\n readonly retentionPolicy?: ResourceRetentionPolicy;\n readonly dataSubjectPolicy?: ResourceDataSubjectPolicy;\n readonly systemAccessPolicy?: ResourceSystemAccessPolicy;\n readonly retentionBinding?: ResourceRetentionBinding;\n /**\n * The resource's main schema, read ONLY through `resolveResourcePersonalDataCategories` and\n * `collectRowTtlPolicies`.\n *\n * `unknown` rather than a Zod type on purpose. This projection takes no opinion on the schema's\n * shape — the saas-models resolver owns the walk, including what to do with a union or a\n * non-object mainSchema (it returns an empty profile rather than throwing). Typing it here would\n * make this module a second place where \"how do you read a resource's fields\" is decided.\n */\n readonly mainSchema?: unknown;\n /** Read only for its `system`: which system-of-record instance holds this resource's rows (#1709). */\n readonly httpApiBinding?: { readonly system: string };\n /** Read only for its binding's `system` and its mapping's local fields: what a pipeline copies (#1709). */\n readonly externalDataPipeline?: {\n readonly binding: { readonly system: string };\n readonly mapping: readonly { readonly kind: string; readonly localField: string }[];\n };\n}\n\nconst emptyCoverage = (): CompliancePrimaryFactCoverage => ({\n resourceCount: 0,\n withErasureRetentionMode: 0,\n withDataSubjectKind: 0,\n withSubjectExport: 0,\n declaringNoPersonalDataOfTheirOwn: 0,\n withPersonalDataCategories: 0,\n withUncategorizedPersonalFields: 0,\n});\n\n/** One resource's declarations, read off an already-materialized configuration. */\nexport function readCompliancePrimaryResourceFacts(\n resourceType: string,\n origin: CompliancePrimaryFactOrigin,\n configuration: ComplianceRelevantConfiguration,\n): CompliancePrimaryResourceFacts {\n const systemAccessPolicy = configuration.systemAccessPolicy;\n const categoryProfile = resolveResourcePersonalDataCategories(configuration.mainSchema);\n return {\n resourceType,\n origin,\n ...(configuration.retentionPolicy?.mode === undefined ? {} : { erasureRetentionMode: configuration.retentionPolicy.mode }),\n ...(configuration.retentionPolicy?.statutoryRetention === undefined\n ? {}\n : { statutoryRetention: { ground: configuration.retentionPolicy.statutoryRetention.ground, rationale: configuration.retentionPolicy.statutoryRetention.rationale } }),\n ...(configuration.dataSubjectPolicy?.kind === undefined ? {} : { dataSubjectKind: configuration.dataSubjectPolicy.kind }),\n declaresSubjectExport: systemAccessPolicy?.exportSubject !== undefined,\n declaresRetainedSeeThrough: systemAccessPolicy?.seeRetained !== undefined,\n personalDataCategories: categoryProfile.categories,\n uncategorizedPersonalFields: categoryProfile.uncategorizedPersonalFields,\n ...(configuration.retentionBinding === undefined ? {} : { retentionBinding: configuration.retentionBinding }),\n declaresRowTtl: configuration.mainSchema !== undefined && collectRowTtlPolicies(configuration.mainSchema as never).length > 0,\n systemOfRecordFlows: systemOfRecordFlowsOfResource(resourceType, configuration),\n };\n}\n\n/**\n * Project the compliance facts of an application from its materialized resource configurations.\n *\n * Takes configurations already materialized by the caller rather than factories to materialize\n * itself: the handler knows how a factory is called (`factory(allRelationships)`, the way both\n * runtime registries do it) and owns the failure policy when one throws. Keeping that here would be a\n * second copy of a materialization convention that has already been the site of one defect.\n */\nexport function projectCompliancePrimaryFacts(\n entries: ReadonlyArray<{\n readonly resourceType: string;\n readonly origin: CompliancePrimaryFactOrigin;\n readonly configuration: ComplianceRelevantConfiguration;\n }>,\n): CompliancePrimaryFactsResponse {\n const resources = entries.map((entry) =>\n readCompliancePrimaryResourceFacts(entry.resourceType, entry.origin, entry.configuration));\n\n const coverage: Record<CompliancePrimaryFactOrigin, CompliancePrimaryFactCoverage> = {\n [CompliancePrimaryFactOrigin.ENGINE]: emptyCoverage(),\n [CompliancePrimaryFactOrigin.APPLICATION]: emptyCoverage(),\n };\n for (const resource of resources) {\n const current = coverage[resource.origin];\n coverage[resource.origin] = {\n resourceCount: current.resourceCount + 1,\n withErasureRetentionMode: current.withErasureRetentionMode + (resource.erasureRetentionMode === undefined ? 0 : 1),\n withDataSubjectKind: current.withDataSubjectKind + (resource.dataSubjectKind === undefined ? 0 : 1),\n withSubjectExport: current.withSubjectExport + (resource.declaresSubjectExport ? 1 : 0),\n declaringNoPersonalDataOfTheirOwn:\n current.declaringNoPersonalDataOfTheirOwn\n + (resource.erasureRetentionMode === ErasureRetentionMode.RETAIN_ONLY ? 1 : 0),\n withPersonalDataCategories: current.withPersonalDataCategories + (resource.personalDataCategories.length > 0 ? 1 : 0),\n withUncategorizedPersonalFields:\n current.withUncategorizedPersonalFields + (resource.uncategorizedPersonalFields.length > 0 ? 1 : 0),\n };\n }\n\n /*\n * Resources carrying NEITHER declaration.\n *\n * The first draft of this filter asked for the sharper population — rows that ARE a person with no\n * erasure treatment — and that set is EMPTY BY CONSTRUCTION, not because applications are diligent:\n * the resource factory refuses a `retentionPolicy` with no `dataSubjectPolicy` and refuses a\n * `dataSubjectPolicy` with no `retentionPolicy`, so the two always co-occur. A filter that can never\n * match reports a clean application and a broken projection identically.\n *\n * So the answerable question is the blunter one, and it is still the useful one: which resources\n * have not been asked. A resource that declared EITHER field has considered the question and is\n * excluded — listing settled cases beside open ones is how a gap list stops being read.\n *\n * Note what is deliberately NOT done here: `NO_PRINCIPAL` is not treated as \"not a person\". It is\n * the session axis, and it is the honest answer for a CRM contact as much as for an invoice. What\n * distinguishes them is the retention MODE, which the caller reads from the same row.\n */\n /*\n * A DECLARED CATEGORY IS AN ANSWER, and omitting it here put a contradiction in a produced notice.\n *\n * This filter keyed only on the two erasure axes until 2026-08-30. Then the engine declared data\n * categories on 48 of its 85 resources, and the very next wonder-crm notice said, of resources\n * including `userProfiles` and `userCredentials`, that \"whether each of those undeclared resources\n * holds personal data is not established by this notice\" — two sections after enumerating the\n * categories those same resources declare. Both clauses were DERIVED, both were sourced, and they\n * disagreed.\n *\n * The lesson is not \"add a third condition\". It is that the question \"has this resource been asked\"\n * has ONE answer and had two implementations: this filter, and\n * `resourceAnsweredThePersonalDataQuestion`, written for the startup report on the same day. Reusing\n * the saas-models predicate is what stops them drifting again — and it also brings in\n * `systemAccessPolicy.exportSubject`, which this filter never considered either.\n */\n const undeclaredResourceTypes = entries\n .filter((entry) => !resourceAnsweredThePersonalDataQuestion(entry.configuration))\n .map((entry) => entry.resourceType);\n\n // Ordered through the saas-models helper rather than by first appearance. First-appearance order\n // depends on resource iteration order, so adding one unrelated resource would silently reorder a\n // notice's category sentence — which reads as if the answer changed.\n const personalDataCategories = sortPersonalDataCategories(resources.flatMap((resource) => resource.personalDataCategories));\n\n const uncategorizedPersonalFieldsByResource = resources\n .filter((resource) => resource.uncategorizedPersonalFields.length > 0)\n .map((resource) => ({\n resourceType: resource.resourceType,\n origin: resource.origin,\n fields: resource.uncategorizedPersonalFields,\n }));\n\n return {\n resources,\n coverageByOrigin: coverage,\n undeclaredResourceTypes,\n personalDataCategories,\n uncategorizedPersonalFieldsByResource,\n trace: {\n engineResourceCount: coverage[CompliancePrimaryFactOrigin.ENGINE].resourceCount,\n applicationResourceCount: coverage[CompliancePrimaryFactOrigin.APPLICATION].resourceCount,\n },\n };\n}\n\n/**\n * Narrow a materialized configuration to the fields this projection reads.\n *\n * Structural, so any object carrying the three policies satisfies it — which is what lets the handler\n * pass a `ResourceConfiguration` of any generic instantiation without this module taking an opinion\n * on its three type parameters.\n */\nexport function asComplianceRelevantConfiguration(configuration: ComplianceRelevantConfiguration): ComplianceRelevantConfiguration {\n return configuration;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition-specifications.behavior.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"definition-specifications.behavior.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/definition-specifications.behavior.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,yBAAyB,EAC/B,MAAM,wCAAwC,CAAC;AAKhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH,uEAAuE;AACvE,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,uGAAuG;IACvG,QAAQ,CAAC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IACxC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;IACpD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED,yDAAyD;AACzD,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,QAAQ,EAAE,uBAAuB,EAAE,CAAC;IAC7C,QAAQ,CAAC,SAAS,EAAE,yBAAyB,CAAC;IAC9C,QAAQ,CAAC,KAAK,EAAE;QACd,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;KAC9B,CAAC;CACH;AAYD;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAC7C,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACrC,gCAAgC,CA4ElC;AAED;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,OAAO,EACf,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACrC,gCAAgC,CAElC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition-specifications.behavior.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/subprocess/definition-specifications.behavior.ts"],"names":[],"mappings":"AAAA,OAAO,E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MAAM,IAAI,IAAI,SAAS,CAAC,KAAK,EAAE,CAAC;YACnC,OAAO,CAAC,IAAI,CAAC,8CAA8C,IAAI,EAAE,CAAC,CAAC;QACrE,CAAC;QACD,4BAA4B,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;IAED,OAAO;QACL,QAAQ;QACR,SAAS;QACT,KAAK,EAAE;YACL,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM;YAC3D,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,KAAK,OAAO,CAAC,CAAC,MAAM;YACxE,WAAW,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACtC;KACF,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,2BAA2B,CACzC,MAAe,EACf,aAAsC;IAEtC,OAAO,+BAA+B,CAAC,aAAa,CAAC,CAAC;AACxD,CAAC","sourcesContent":["import {\n APPLICATION_SPECIFICATION_SEMANTIC_SCHEMA_BINDINGS,\n lintDefinitionCoherence,\n type DefinitionCoherenceResult,\n} from '@wildo-ai/application-creation-runtime';\nimport type { SpecificationsCompanionExports } from '@wildo-ai/saas-specifications/companion';\n\nimport { resolveSpecificationsCompanionExports } from './companion-introspection-module-exports.utils';\n\n/**\n * Top-down **definition-specifications** behavior family (app-creation\n * meta-workflows, journey-buildout GAP-D1-9). The registered definition families\n * (`vision-brief` / `market-snapshot` / `requirements` / `roadmap` /\n * `business-model` / `brand-brief`) are wired onto `companion-exports.ts` but were\n * RUNTIME-INERT: `specification-context-factory.ts` enumerates each\n * companion-exports field explicitly and does not read this set, and no\n * per-family resolver ran their `_core` validators (market has\n * `resolveMarketSnapshot`, assertions has `resolveAssertionSpecifications` —\n * these had neither). Consequences D1 flagged: nothing surfaced them to\n * `wildo context`, and there was NO durable load-time validation guard —\n * D1's one-time validator run meant a later edit breaking a cross-ref would\n * ship silently until the coverage judge.\n *\n * This behavior closes that seam. Like the assertion / market resolvers it\n * runs in the introspection SUBPROCESS, is pure/deterministic (never calls an\n * LLM), and reads the authored snapshots off the specifications companion\n * exports. It provides two guarantees:\n *\n * 1. **Structural validity (the trust floor).** Each present family is run\n * through its `_core` validator via the shared\n * {@link APPLICATION_SPECIFICATION_SEMANTIC_SCHEMA_BINDINGS} registry (the\n * single source of truth\n * also used by the journey-snapshot's per-artifact validation, GAP-U11-1) —\n * so the two seams can never drift on which validator owns which family.\n * Any ERROR-severity issue throws a fail-closed structured error: the\n * behavior refuses to serve an invalid definition set.\n * 2. **Cross-family coherence (the durable guard D1 wanted).** The per-family\n * validators are called with no cross-family pools (they cannot resolve a\n * `requirement → market icp` edge in isolation), so this behavior ALSO runs\n * {@link lintDefinitionCoherence} — the two-directional coherence +\n * reverse-coverage + anti-target lints prototyped in D1's\n * `d1-audit.mts.snapshot`, now a durable load-time check. An unresolved\n * forward cross-ref or a plan targeting an ANTI_TARGET ICP is a fail-closed\n * PROBLEM (throws); reverse-coverage gaps are informational NOTES (logged,\n * surfaced in the response — the coverage judge / phase-gate rubric owns\n * whether an uncovered requirement is acceptable).\n *\n * Extraction-clean: reads only `@wildo-ai/*` bare specifiers + the shared\n * validator registry; no WT-specific paths. The authored snapshot CONTENT is\n * WT's, but the seam is framework machinery pushed to every generated app.\n */\n\n/** One family's presence + structural-validity summary (JSON-safe). */\nexport interface DefinitionFamilySummary {\n readonly family: string;\n /** Absent for a family that is not accepted truth (a draft), which has no companion-exports member. */\n readonly companionExportsField?: string;\n readonly present: boolean;\n readonly validation: 'valid' | 'invalid' | 'absent';\n readonly errorCount: number;\n readonly warnCount: number;\n}\n\n/** The `definition-specifications` behavior response. */\nexport interface DefinitionSpecificationsResponse {\n readonly families: DefinitionFamilySummary[];\n readonly coherence: DefinitionCoherenceResult;\n readonly trace: {\n readonly present: number;\n readonly valid: number;\n readonly evaluatedAt: string;\n };\n}\n\n/**\n * One-time validation-dedup set keyed by the companion-exports object identity\n * — mirrors `resolveMarketSnapshot`'s `VALIDATED_SNAPSHOTS` /\n * `resolveAssertionSpecifications`'s `VALIDATED_ASSERTION_SNAPSHOTS`. The\n * exports object is stable per module load, so structural ERRORs throw at most\n * once per authored set and WARN/NOTE lines log once (repeated behavior calls\n * in one long-lived subprocess do not drown real authoring drift).\n */\nconst VALIDATED_DEFINITION_EXPORTS = new WeakSet<object>();\n\n/**\n * Resolve + validate the authored definition set from the specifications\n * companion exports. Runs the structural trust floor (throws on ERROR) and the\n * cross-family coherence lint (throws on a PROBLEM), then returns the JSON-safe\n * summary. The load-time guard D1 asked for: an edit that structurally breaks a\n * family OR breaks a forward cross-ref fails here instead of shipping silently.\n */\nexport function resolveDefinitionSpecifications(\n moduleExports: Record<string, unknown>,\n): DefinitionSpecificationsResponse {\n const exports = resolveSpecificationsCompanionExports(moduleExports);\n const alreadyValidated = VALIDATED_DEFINITION_EXPORTS.has(exports);\n\n const families: DefinitionFamilySummary[] = [];\n const structuralErrors: string[] = [];\n\n for (const entry of APPLICATION_SPECIFICATION_SEMANTIC_SCHEMA_BINDINGS) {\n // A slotless family (a DRAFT) has nothing to read here. Reported as absent rather than skipped,\n // so the summary still enumerates every family the authority knows — an omitted row and a family\n // that does not exist would look the same to the reader.\n const snapshot = entry.companionExportsField === undefined ? undefined : exports[entry.companionExportsField];\n if (snapshot === undefined) {\n families.push({\n family: entry.family,\n ...(entry.companionExportsField ? { companionExportsField: entry.companionExportsField } : {}),\n present: false,\n validation: 'absent',\n errorCount: 0,\n warnCount: 0,\n });\n continue;\n }\n const result = entry.validate(snapshot);\n families.push({\n family: entry.family,\n ...(entry.companionExportsField ? { companionExportsField: entry.companionExportsField } : {}),\n present: true,\n validation: result.validation === 'valid' ? 'valid' : 'invalid',\n errorCount: result.errorCount,\n warnCount: result.warnCount,\n });\n if (result.errorCount > 0) {\n for (const detail of result.errorDetails) {\n structuralErrors.push(` - [${entry.family}] ${detail}`);\n }\n }\n }\n\n // Structural validity is the precondition for meaningful coherence — a\n // malformed snapshot's refs are unreliable, so fail on structure FIRST and do\n // not even run the cross-family lint over an invalid set (its output would be\n // misleading). Only compute coherence once every present family parses.\n if (structuralErrors.length > 0) {\n throw new Error(\n `Authored definition set fails ${structuralErrors.length} structural validator rule(s). `\n + `The definition-specifications behavior refuses to serve an invalid set:\\n`\n + structuralErrors.join('\\n'),\n );\n }\n\n const coherence = lintDefinitionCoherence(exports);\n\n if (coherence.problems.length > 0) {\n throw new Error(\n `Authored definition set fails ${coherence.problems.length} cross-family coherence rule(s):\\n`\n + coherence.problems.map((problem) => ` - ${problem}`).join('\\n'),\n );\n }\n\n if (!alreadyValidated) {\n for (const note of coherence.notes) {\n console.warn(`[definition-specifications] coverage note: ${note}`);\n }\n VALIDATED_DEFINITION_EXPORTS.add(exports);\n }\n\n return {\n families,\n coherence,\n trace: {\n present: families.filter((family) => family.present).length,\n valid: families.filter((family) => family.validation === 'valid').length,\n evaluatedAt: new Date().toISOString(),\n },\n };\n}\n\n/**\n * `definition-specifications` — serve the presence + validity + cross-family\n * coherence of the authored top-down definition set. Pure projection over the\n * companion exports; the request carries no narrowing today (the whole set is\n * the unit of a phase gate). Surfaces the durable guard's verdict to any\n * `wildo context` consumer.\n */\nexport function runDefinitionSpecifications(\n _input: unknown,\n moduleExports: Record<string, unknown>,\n): DefinitionSpecificationsResponse {\n return resolveDefinitionSpecifications(moduleExports);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"definition-specifications.behavior.js","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/definition-specifications.behavior.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kDAAkD,EAClD,uBAAuB,GAExB,MAAM,wCAAwC,CAAC;AAGhD,OAAO,EAAE,qCAAqC,EAAE,MAAM,gDAAgD,CAAC;AAmEvG;;;;;;;GAOG;AACH,MAAM,4BAA4B,GAAG,IAAI,OAAO,EAAU,CAAC;A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CAAC;IAED,OAAO;QACL,QAAQ;QACR,SAAS;QACT,KAAK,EAAE;YACL,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM;YAC3D,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,KAAK,OAAO,CAAC,CAAC,MAAM;YACxE,WAAW,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACtC;KACF,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,2BAA2B,CACzC,MAAe,EACf,aAAsC;IAEtC,OAAO,+BAA+B,CAAC,aAAa,CAAC,CAAC;AACxD,CAAC","sourcesContent":["import {\n APPLICATION_SPECIFICATION_SEMANTIC_SCHEMA_BINDINGS,\n lintDefinitionCoherence,\n type DefinitionCoherenceResult,\n} from '@wildo-ai/application-creation-runtime';\nimport type { SpecificationsCompanionExports } from '@wildo-ai/saas-specifications/companion';\n\nimport { resolveSpecificationsCompanionExports } from './companion-introspection-module-exports.utils';\n\n/**\n * Top-down **definition-specifications** behavior family (app-creation\n * meta-workflows, journey-buildout GAP-D1-9). The registered definition families\n * (`vision-brief` / `market-snapshot` / `requirements` / `roadmap` /\n * `business-model` / `brand-brief`) are wired onto `companion-exports.ts` but were\n * RUNTIME-INERT: `specification-context-factory.ts` enumerates each\n * companion-exports field explicitly and does not read this set, and no\n * per-family resolver ran their `_core` validators (market has\n * `resolveMarketSnapshot`, assertions has `resolveAssertionSpecifications` —\n * these had neither). Consequences D1 flagged: nothing surfaced them to\n * `wildo context`, and there was NO durable load-time validation guard —\n * D1's one-time validator run meant a later edit breaking a cross-ref would\n * ship silently until the coverage judge.\n *\n * This behavior closes that seam. Like the assertion / market resolvers it\n * runs in the introspection SUBPROCESS, is pure/deterministic (never calls an\n * LLM), and reads the authored snapshots off the specifications companion\n * exports. It provides two guarantees:\n *\n * 1. **Structural validity (the trust floor).** Each present family is run\n * through its `_core` validator via the shared\n * {@link APPLICATION_SPECIFICATION_SEMANTIC_SCHEMA_BINDINGS} registry (the\n * single source of truth\n * also used by the journey-snapshot's per-artifact validation, GAP-U11-1) —\n * so the two seams can never drift on which validator owns which family.\n * Any ERROR-severity issue throws a fail-closed structured error: the\n * behavior refuses to serve an invalid definition set.\n * 2. **Cross-family coherence (the durable guard D1 wanted).** The per-family\n * validators are called with no cross-family pools (they cannot resolve a\n * `requirement → market icp` edge in isolation), so this behavior ALSO runs\n * {@link lintDefinitionCoherence} — the two-directional coherence +\n * reverse-coverage + anti-target lints prototyped in D1's\n * `d1-audit.mts.snapshot`, now a durable load-time check. An unresolved\n * forward cross-ref or a plan targeting an ANTI_TARGET ICP is a fail-closed\n * PROBLEM (throws); reverse-coverage gaps are informational NOTES (logged,\n * surfaced in the response — the coverage judge / phase-gate rubric owns\n * whether an uncovered requirement is acceptable).\n *\n * Extraction-clean: reads only `@wildo-ai/*` bare specifiers + the shared\n * validator registry; no WT-specific paths. The authored snapshot CONTENT is\n * WT's, but the seam is framework machinery pushed to every generated app.\n */\n\n/** One family's presence + structural-validity summary (JSON-safe). */\nexport interface DefinitionFamilySummary {\n readonly family: string;\n /** Absent for a family that is not accepted truth (a draft), which has no companion-exports member. */\n readonly companionExportsField?: string;\n readonly present: boolean;\n readonly validation: 'valid' | 'invalid' | 'absent';\n readonly errorCount: number;\n readonly warnCount: number;\n}\n\n/** The `definition-specifications` behavior response. */\nexport interface DefinitionSpecificationsResponse {\n readonly families: DefinitionFamilySummary[];\n readonly coherence: DefinitionCoherenceResult;\n readonly trace: {\n readonly present: number;\n readonly valid: number;\n readonly evaluatedAt: string;\n };\n}\n\n/**\n * One-time validation-dedup set keyed by the companion-exports object identity\n * — mirrors `resolveMarketSnapshot`'s `VALIDATED_SNAPSHOTS` /\n * `resolveAssertionSpecifications`'s `VALIDATED_ASSERTION_SNAPSHOTS`. The\n * exports object is stable per module load, so structural ERRORs throw at most\n * once per authored set and WARN/NOTE lines log once (repeated behavior calls\n * in one long-lived subprocess do not drown real authoring drift).\n */\nconst VALIDATED_DEFINITION_EXPORTS = new WeakSet<object>();\n\n/**\n * Resolve + validate the authored definition set from the specifications\n * companion exports. Runs the structural trust floor (throws on ERROR) and the\n * cross-family coherence lint (throws on a PROBLEM), then returns the JSON-safe\n * summary. The load-time guard D1 asked for: an edit that structurally breaks a\n * family OR breaks a forward cross-ref fails here instead of shipping silently.\n */\nexport function resolveDefinitionSpecifications(\n moduleExports: Record<string, unknown>,\n): DefinitionSpecificationsResponse {\n const exports = resolveSpecificationsCompanionExports(moduleExports);\n const alreadyValidated = VALIDATED_DEFINITION_EXPORTS.has(exports);\n\n const families: DefinitionFamilySummary[] = [];\n const structuralErrors: string[] = [];\n\n for (const entry of APPLICATION_SPECIFICATION_SEMANTIC_SCHEMA_BINDINGS) {\n // A slotless family (a DRAFT) has nothing to read here. Reported as absent rather than skipped,\n // so the summary still enumerates every family the authority knows — an omitted row and a family\n // that does not exist would look the same to the reader.\n const snapshot = entry.companionExportsField === undefined ? undefined : exports[entry.companionExportsField];\n if (snapshot === undefined) {\n families.push({\n family: entry.family,\n ...(entry.companionExportsField ? { companionExportsField: entry.companionExportsField } : {}),\n present: false,\n validation: 'absent',\n errorCount: 0,\n warnCount: 0,\n });\n continue;\n }\n const result = entry.validate(snapshot);\n families.push({\n family: entry.family,\n ...(entry.companionExportsField ? { companionExportsField: entry.companionExportsField } : {}),\n present: true,\n validation: result.validation === 'valid' ? 'valid' : 'invalid',\n errorCount: result.errorCount,\n warnCount: result.warnCount,\n });\n if (result.errorCount > 0) {\n for (const detail of result.errorDetails) {\n structuralErrors.push(` - [${entry.family}] ${detail}`);\n }\n }\n }\n\n // Structural validity is the precondition for meaningful coherence — a\n // malformed snapshot's refs are unreliable, so fail on structure FIRST and do\n // not even run the cross-family lint over an invalid set (its output would be\n // misleading). Only compute coherence once every present family parses.\n if (structuralErrors.length > 0) {\n throw new Error(\n `Authored definition set fails ${structuralErrors.length} structural validator rule(s). `\n + `The definition-specifications behavior refuses to serve an invalid set:\\n`\n + structuralErrors.join('\\n'),\n );\n }\n\n const coherence = lintDefinitionCoherence(exports);\n\n if (coherence.problems.length > 0) {\n throw new Error(\n `Authored definition set fails ${coherence.problems.length} cross-family coherence rule(s):\\n`\n + coherence.problems.map((problem) => ` - ${problem}`).join('\\n'),\n );\n }\n\n if (!alreadyValidated) {\n for (const note of coherence.notes) {\n console.warn(`[definition-specifications] coverage note: ${note}`);\n }\n VALIDATED_DEFINITION_EXPORTS.add(exports);\n }\n\n return {\n families,\n coherence,\n trace: {\n present: families.filter((family) => family.present).length,\n valid: families.filter((family) => family.validation === 'valid').length,\n evaluatedAt: new Date().toISOString(),\n },\n };\n}\n\n/**\n * `definition-specifications` — serve the presence + validity + cross-family\n * coherence of the authored top-down definition set. Pure projection over the\n * companion exports; the request carries no narrowing today (the whole set is\n * the unit of a phase gate). Surfaces the durable guard's verdict to any\n * `wildo context` consumer.\n */\nexport function runDefinitionSpecifications(\n _input: unknown,\n moduleExports: Record<string, unknown>,\n): DefinitionSpecificationsResponse {\n return resolveDefinitionSpecifications(moduleExports);\n}\n"]}
|
package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine-resource-population.subprocess.utils.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"engine-resource-population.subprocess.utils.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/engine-resource-population.subprocess.utils.ts"],"names":[],"mappings":"AAeA,OAAO,EAIL,qBAAqB,EACtB,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;;;;;;;GAaG;AACH,wBAAgB,yCAAyC,IAAI,aAAa,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAKrG;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,yCAAyC,CACvD,gCAAgC,EAAE,SAAS,OAAO,EAAE,GAAG,SAAS,EAChE,mCAAmC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,GACtE,UAAU,CAAC,OAAO,qBAAqB,CAAC,2BAA2B,CAAC,CAatE"}
|
package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine-resource-population.subprocess.utils.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"engine-resource-population.subprocess.utils.js","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/engine-resource-population.subprocess.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EACL,wCAAwC,EACxC,6BAA6B,EAC7B,8BAA8B,GAC/B,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EACL,kCAAkC,EAClC,6CAA6C,EAC7C,8BAA8B,EAC9B,qBAAqB,GACtB,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,yCAAyC;IACvD,OAAO;QACL,GAAG,MAAM,CAAC,OAAO,CAAC,6CAA6C,CAAC;QAChE,GAAG,MAAM,CAAC,OAAO,CAAC,wCAAwC,CAAC;KAC5D,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,yCAAyC,CACvD,gCAAgE,EAChE,mCAAuE;IAEvE,OAAO,qBAAqB,CAAC,2BAA2B,CACtD;QACE,GAAG,CAAC,gCAAgC,IAAI,EAAE,CAAC;QAC3C,GAAG,8BAA8B;QACjC,GAAG,6BAA6B;KAC0C,EAC5E;QACE,GAAG,CAAC,mCAAmC,IAAI,EAAE,CAAC;QAC9C,GAAG,kCAAkC;QACrC,GAAG,8BAA8B;KAClC,CACF,CAAC;AACJ,CAAC","sourcesContent":["/**\n * The ENGINE resource population the backend runtime merges into its registry, as the companion's\n * introspection subprocess must reproduce it.\n *\n * Its own module because more than one subprocess behavior completes an application registry with\n * this population: the introspection handlers, and the OpenAPI projector (#582), which needs every\n * configuration the runtime holds to build DTOs the runtime would build. The handlers import the\n * projector, so the projector cannot import these from the handlers without a cycle. A copy in each\n * would be exactly the defect the JSDoc below records.\n */\nimport {\n backendResourcesConfigurationsFactoryMap,\n backendResourcesRelationships,\n BackendResourceFieldIdentifier,\n} from '@wildo-ai/saas-backend-lib/backend-resource-registry';\nimport {\n coreResourceShared_FieldIdentifier,\n coreShared_ResourcesConfigurations_FactoryMap,\n coreSharedResourceRelationship,\n Resources_SharedUtils,\n} from '@wildo-ai/saas-models';\n\n/**\n * Every engine-owned resource-configuration factory THE BACKEND RUNTIME ACTUALLY MERGES.\n *\n * `resources-registry.backend.service.ts` merges TWO maps at init: the core shared map from\n * `@wildo-ai/saas-models` and the backend map from `@wildo-ai/saas-backend-lib`. Completing the registry\n * side of a pairing with only the first observes half the population, and the half it misses is invisible\n * rather than noisy: on 2026-08-22 that made every `BackendResourceType` carrying an authored\n * specification a spec-orphan by construction, and the whole `resource-specifications` introspection failed\n * on `dataSeedRuns` — the first backend resource to be given a spec.\n *\n * This exists as ONE function because the completion happens at several call sites across the subprocess\n * behaviors, and the previous defect was precisely that a population was enumerated correctly at none of\n * them. A third map added to the runtime merge must be added here once, not once per site.\n */\nexport function engineResourceConfigurationFactoryEntries(): ReadonlyArray<readonly [string, unknown]> {\n return [\n ...Object.entries(coreShared_ResourcesConfigurations_FactoryMap),\n ...Object.entries(backendResourcesConfigurationsFactoryMap),\n ];\n}\n\n/**\n * The relationship set an ENGINE resource-configuration factory must be materialized against.\n *\n * An engine factory buckets its own parent/child edges out of whatever array it is handed, so calling\n * one with the APPLICATION's relationship slice alone produces a configuration whose engine edges have\n * silently vanished — a materialization that succeeds and is wrong. The backend runtime never does\n * that: `resources-registry.backend.service.ts` compiles app + core-shared + core-backend edges\n * together, against the merged field identifiers, before it calls any factory.\n *\n * This exists as ONE function for the same reason {@link engineResourceConfigurationFactoryEntries}\n * does: several call sites complete the app registry with the engine population, and\n * three hand-written copies of a merge convention are three things that can disagree — invisibly,\n * because each site's own pins would still pass. A fourth relationship source added to the runtime\n * merge is added here once.\n */\nexport function engineMergedCompiledResourceRelationships(\n applicationResourceRelationships: readonly unknown[] | undefined,\n applicationResourceFieldIdentifiers: Record<string, string> | undefined,\n): ReturnType<typeof Resources_SharedUtils.ensureCompiledRelationships> {\n return Resources_SharedUtils.ensureCompiledRelationships(\n [\n ...(applicationResourceRelationships ?? []),\n ...coreSharedResourceRelationship,\n ...backendResourcesRelationships,\n ] as Parameters<typeof Resources_SharedUtils.ensureCompiledRelationships>[0],\n {\n ...(applicationResourceFieldIdentifiers ?? {}),\n ...coreResourceShared_FieldIdentifier,\n ...BackendResourceFieldIdentifier,\n },\n );\n}\n"]}
|
|
@@ -49,7 +49,13 @@ export declare function renderMarketBrief(market: MarketSnapshot): string;
|
|
|
49
49
|
export declare function renderBrandBrief(brand: BrandSnapshot): string;
|
|
50
50
|
/** Render REQUIREMENTS: what the product actually does (the floor for honest claims). */
|
|
51
51
|
export declare function renderRequirementsBrief(requirements: RequirementsSnapshot): string;
|
|
52
|
-
/**
|
|
52
|
+
/**
|
|
53
|
+
* Render BUSINESS_MODEL: the offer posture (premium demands different codes than accessible).
|
|
54
|
+
*
|
|
55
|
+
* Says WHERE the tiers came from (`resolvePricingTiersStatus`), because a reader grounded on the brief
|
|
56
|
+
* otherwise treats a proposal as the creator's decision and an undecided sketch as "no pricing" — the
|
|
57
|
+
* two readings the `pricingTiers` status exists to prevent. Model-facing prose, not display text.
|
|
58
|
+
*/
|
|
53
59
|
export declare function renderBusinessModelBrief(businessModel: BusinessModelLiteSnapshot): string;
|
|
54
60
|
/** Render ACCEPTED_DECISIONS: the shipped brand assets new work must cohere with. */
|
|
55
61
|
export declare function renderAcceptedDecisionsBrief(assets: BrandAssetConfig[]): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expert-persona-brief.renderer.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"expert-persona-brief.renderer.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/expert-persona-brief.renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EAGtB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,yBAAyB,EAE9B,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACpB,MAAM,+BAA+B,CAAC;AAEvC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,kFAAkF;AAClF,MAAM,WAAW,yBAAyB;IACxC,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC,EAAE,cAAc,CAAC;IACjD,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC,EAAE,cAAc,CAAC;IACjD,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC,EAAE,aAAa,CAAC;IAC/C,CAAC,sBAAsB,CAAC,YAAY,CAAC,CAAC,EAAE,oBAAoB,CAAC;IAC7D,CAAC,sBAAsB,CAAC,cAAc,CAAC,CAAC,EAAE,yBAAyB,CAAC;IACpE,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAClE;AAYD,kEAAkE;AAClE,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAoBhE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAmDhE;AAED,4EAA4E;AAC5E,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,CAa7D;AAED,yFAAyF;AACzF,wBAAgB,uBAAuB,CAAC,YAAY,EAAE,oBAAoB,GAAG,MAAM,CAWlF;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,aAAa,EAAE,yBAAyB,GAAG,MAAM,CAYzF;AAED,qFAAqF;AACrF,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,gBAAgB,EAAE,GAAG,MAAM,CAO/E;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,yBAAyB,GACjC,OAAO,CAAC,MAAM,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAC,CAejD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExpertShapingInputKind, } from '@wildo-ai/saas-specifications';
|
|
1
|
+
import { ExpertShapingInputKind, PricingTiersStatus, resolvePricingTiersStatus, } from '@wildo-ai/saas-specifications';
|
|
2
2
|
const NONE = '_(none)_';
|
|
3
3
|
function lines(...parts) {
|
|
4
4
|
return parts.filter((part) => typeof part === 'string' && part.length > 0).join('\n');
|
|
@@ -62,10 +62,19 @@ export function renderRequirementsBrief(requirements) {
|
|
|
62
62
|
const nonFunctional = requirements.nonFunctional.map((requirement) => `[${requirement.kind}] ${requirement.statement}${requirement.metric ? ` (${requirement.metric})` : ''}`);
|
|
63
63
|
return lines('### Requirements (what the product actually does)', '**Functional:**', bullets(functional), '**Non-functional:**', bullets(nonFunctional));
|
|
64
64
|
}
|
|
65
|
-
/**
|
|
65
|
+
/**
|
|
66
|
+
* Render BUSINESS_MODEL: the offer posture (premium demands different codes than accessible).
|
|
67
|
+
*
|
|
68
|
+
* Says WHERE the tiers came from (`resolvePricingTiersStatus`), because a reader grounded on the brief
|
|
69
|
+
* otherwise treats a proposal as the creator's decision and an undecided sketch as "no pricing" — the
|
|
70
|
+
* two readings the `pricingTiers` status exists to prevent. Model-facing prose, not display text.
|
|
71
|
+
*/
|
|
66
72
|
export function renderBusinessModelBrief(businessModel) {
|
|
67
|
-
const plans = businessModel.plans.map((plan) => `- **${plan.name}**${plan.pricePoint ? ` — ${plan.pricePoint}${plan.billingPeriod ? `/${plan.billingPeriod}` : ''}` : ''}${plan.targetSummary ? ` · for: ${plan.targetSummary}` : ''}${plan.includes ? ` · includes: ${plan.includes}` : ''}`);
|
|
68
|
-
|
|
73
|
+
const plans = businessModel.plans.map((plan) => `- **${plan.name}**${plan.pricePoint ? ` — ${plan.pricePoint}${plan.billingPeriod ? `/${plan.billingPeriod}` : ''}` : ''}${plan.targetSummary ? ` · for: ${plan.targetSummary}` : ''}${plan.includes ? ` · includes: ${plan.includes}` : ''}${plan.proposalBasis ? ` · proposed because: ${plan.proposalBasis}` : ''}`);
|
|
74
|
+
const tiers = resolvePricingTiersStatus(businessModel);
|
|
75
|
+
return lines('### Business model', businessModel.revenueModel ? `**Revenue model:** ${businessModel.revenueModel}` : undefined, tiers === PricingTiersStatus.PROPOSED ? "**Plans (proposed at the creator's request, not named by the creator):**" : '**Plans:**', tiers === PricingTiersStatus.UNDECIDED
|
|
76
|
+
? '_Not decided yet — the creator has not chosen the tiers. Assume none; the revenue model above still applies._'
|
|
77
|
+
: plans.length > 0 ? plans.join('\n') : NONE);
|
|
69
78
|
}
|
|
70
79
|
/** Render ACCEPTED_DECISIONS: the shipped brand assets new work must cohere with. */
|
|
71
80
|
export function renderAcceptedDecisionsBrief(assets) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expert-persona-brief.renderer.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/subprocess/expert-persona-brief.renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,GAQvB,MAAM,+BAA+B,CAAC;AAoCvC,MAAM,IAAI,GAAG,UAAU,CAAC;AAExB,SAAS,KAAK,CAAC,GAAG,KAA+C;IAC/D,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAkB,EAAE,CAAC,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACxG,CAAC;AAED,SAAS,OAAO,CAAC,KAAe,EAAE,QAAgB,IAAI;IACpD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CA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AC,CAAC;IACtG,MAAM,aAAa,GAAG,OAAO,CAAC,sBAAsB,CAAC,cAAc,CAAC,CAAC;IACrE,IAAI,aAAa;QAAE,MAAM,CAAC,sBAAsB,CAAC,cAAc,CAAC,GAAG,wBAAwB,CAAC,aAAa,CAAC,CAAC;IAC3G,MAAM,QAAQ,GAAG,OAAO,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,CAAC;IACpE,IAAI,QAAQ;QAAE,MAAM,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,GAAG,4BAA4B,CAAC,QAAQ,CAAC,CAAC;IACzG,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import {\n ExpertShapingInputKind,\n type BrandAssetConfig,\n type BrandSnapshot,\n type BusinessModelLiteSnapshot,\n type MarketICPConfig,\n type MarketSnapshot,\n type RequirementsSnapshot,\n type VisionSnapshot,\n} from '@wildo-ai/saas-specifications';\n\n/**\n * Pure per-kind CURATORS that render each expert-persona shaping input as a\n * compact English **markdown brief** — the input-curation half of the\n * derivation-quality rework (Quality Track Lever 2).\n *\n * WHY THIS EXISTS: the first derivation protocol dumped each snapshot as RAW\n * JSON into the prompt. That buried the signal (a MarketSnapshot carries\n * Kano matrices, message templates, buying journeys — none of which shape a\n * persona), spent attention on keys instead of meaning, and made the prompt\n * unreadable for the human reviewing what the model was grounded on. Each\n * curator here selects the persona-relevant FACETS and renders them as\n * prose/bullets, mirroring the `buildMarketContextBlock` discipline:\n *\n * - **Pure function** — no I/O, no DI, deterministic output for equal input\n * (the derivation digest is computed OVER these briefs, so determinism is\n * load-bearing: \"a digest match always means derived from what the model\n * actually saw\").\n * - **Deliberate omissions are the point** — what a curator drops (e.g.\n * market channels, buying journeys, benefit Kano tables) is a curation\n * DECISION, recorded here, not an accident of serialization.\n * - **Empty sections render `_(none)_`** so the model sees absence instead\n * of silently inferring it.\n */\n\n/** Renderable value union the orchestrator dispatches on (kind-discriminated). */\nexport interface ExpertPersonaBriefSources {\n [ExpertShapingInputKind.VISION]?: VisionSnapshot;\n [ExpertShapingInputKind.MARKET]?: MarketSnapshot;\n [ExpertShapingInputKind.BRAND]?: BrandSnapshot;\n [ExpertShapingInputKind.REQUIREMENTS]?: RequirementsSnapshot;\n [ExpertShapingInputKind.BUSINESS_MODEL]?: BusinessModelLiteSnapshot;\n [ExpertShapingInputKind.ACCEPTED_DECISIONS]?: BrandAssetConfig[];\n}\n\nconst NONE = '_(none)_';\n\nfunction lines(...parts: Array<string | undefined | null | false>): string {\n return parts.filter((part): part is string => typeof part === 'string' && part.length > 0).join('\\n');\n}\n\nfunction bullets(items: string[], empty: string = NONE): string {\n return items.length === 0 ? empty : items.map((item) => `- ${item}`).join('\\n');\n}\n\n/** Render the VISION snapshot: the WHY the persona must serve. */\nexport function renderVisionBrief(vision: VisionSnapshot): string {\n const success = vision.successCriteria.map((criterion) =>\n `${criterion.statement}${criterion.metric ? ` (metric: ${criterion.metric}${criterion.target ? `, target: ${criterion.target}` : ''})` : ''}`);\n const constraints = vision.constraints.map((constraint) =>\n `[${constraint.kind}] ${constraint.statement}${constraint.rationale ? ` — ${constraint.rationale}` : ''}`);\n return lines(\n '### Vision',\n `**Idea:** ${vision.idea.oneLiner}`,\n vision.idea.description,\n vision.problem && `**Problem:** ${vision.problem.statement} (affects: ${vision.problem.affected})`,\n vision.problem?.whyNow && `**Why now:** ${vision.problem.whyNow}`,\n vision.mission && `**Mission:** ${vision.mission.mission}`,\n vision.mission?.longTermVision && `**Long-term:** ${vision.mission.longTermVision}`,\n vision.mission && vision.mission.principles.length > 0\n ? `**Principles:**\\n${bullets(vision.mission.principles)}` : undefined,\n `**Success criteria:**`,\n bullets(success),\n `**Constraints:**`,\n bullets(constraints),\n );\n}\n\n/**\n * Render the MARKET snapshot's persona-relevant facets: category,\n * positioning, ICPs (with their linked pains/gains/jobs STATEMENTS —\n * resolved through the snapshot's ref maps so the model reads meaning, not\n * refs), buyer personas, tones of voice, named alternatives, objections.\n *\n * DELIBERATELY DROPPED (curation decisions, not omissions): channels,\n * triggers, buying journeys, proofs, and the benefits' per-ICP Kano\n * matrices — distribution/funnel machinery that does not shape a creative\n * persona's judgment.\n */\nexport function renderMarketBrief(market: MarketSnapshot): string {\n const painByRef = new Map(market.pains.map((pain) => [pain.ref, pain]));\n const gainByRef = new Map(market.gains.map((gain) => [gain.ref, gain]));\n const jobByRef = new Map(market.jobs.map((job) => [job.ref, job]));\n\n const renderIcp = (icp: MarketICPConfig): string => {\n const pains = icp.pains\n .map((edge) => painByRef.get(edge.painRef)?.statement)\n .filter((statement): statement is string => statement !== undefined);\n const gains = icp.gains\n .map((edge) => gainByRef.get(edge.gainRef)?.statement)\n .filter((statement): statement is string => statement !== undefined);\n const jobs = icp.jobs\n .map((edge) => jobByRef.get(edge.jobRef)?.statement)\n .filter((statement): statement is string => statement !== undefined);\n return lines(\n `#### ICP: ${icp.name} (${icp.archetype}, priority: ${icp.priority})`,\n jobs.length > 0 ? `Jobs: ${jobs.join(' · ')}` : undefined,\n pains.length > 0 ? `Pains: ${pains.join(' · ')}` : undefined,\n gains.length > 0 ? `Gains: ${gains.join(' · ')}` : undefined,\n );\n };\n\n const positionings = market.positionings.map((positioning) =>\n `- ${positioning.oneSentence}\\n Pillars: ${positioning.valuePillars.map((pillar) => pillar.headline).join(' · ')}`);\n\n const voices = market.tonesOfVoice.map((voice) =>\n `- **${voice.name}** — ${voice.description}\\n Do: ${voice.doExamples.join(' | ')}\\n Don't: ${voice.dontExamples.join(' | ')}`);\n\n const alternatives = market.alternatives.map((alternative) =>\n `- **${alternative.name}** (${alternative.alternativeKind}) — chosen when: ${alternative.whenChosen}. Strengths: ${alternative.strengths.join(', ')}${alternative.weaknesses.length > 0 ? `. Weaknesses: ${alternative.weaknesses.join(', ')}` : ''}`);\n\n const objections = market.objections.map((objection) => {\n const record = objection as unknown as Record<string, unknown>;\n const text = record['statement'] ?? record['objection'] ?? record['description'];\n return typeof text === 'string' ? text : '';\n }).filter((text) => text.length > 0);\n\n return lines(\n '### Market',\n `**Category:** ${market.category.name}${'description' in market.category && typeof (market.category as Record<string, unknown>)['description'] === 'string' ? ` — ${(market.category as unknown as Record<string, string>)['description']}` : ''}`,\n '**Positioning:**',\n positionings.length > 0 ? positionings.join('\\n') : NONE,\n '**ICPs:**',\n market.icps.length > 0 ? market.icps.map(renderIcp).join('\\n') : NONE,\n '**Tones of voice:**',\n voices.length > 0 ? voices.join('\\n') : NONE,\n '**Named alternatives (the field to escape):**',\n alternatives.length > 0 ? alternatives.join('\\n') : NONE,\n objections.length > 0 ? `**Common objections:**\\n${bullets(objections)}` : undefined,\n );\n}\n\n/** Render the BRAND snapshot: authored direction + what already shipped. */\nexport function renderBrandBrief(brand: BrandSnapshot): string {\n const direction = brand.logoDirection;\n const tone = brand.visualTone;\n return lines(\n '### Brand',\n `**Name:** ${brand.name.brandName}${brand.name.tagline ? ` — \"${brand.name.tagline}\"` : ''}`,\n direction && `**Mark type:** ${direction.markType} · background: ${direction.backgroundTreatment}`,\n direction && direction.symbolism.length > 0 ? `**Symbolism:** ${direction.symbolism.join(', ')}` : undefined,\n direction && direction.motifs.length > 0 ? `**Motifs:** ${direction.motifs.join(', ')}` : undefined,\n direction && direction.avoid.length > 0 ? `**Avoid-list (hard bans):**\\n${bullets(direction.avoid)}` : undefined,\n tone && `**Visual tone:** ${tone.styleKeywords.join(', ')} · mood: ${tone.mood}`,\n tone && `**Color intent:** ${tone.colorIntent}${tone.colorSeeds.length > 0 ? ` (palette: ${tone.colorSeeds.join(', ')})` : ''}`,\n );\n}\n\n/** Render REQUIREMENTS: what the product actually does (the floor for honest claims). */\nexport function renderRequirementsBrief(requirements: RequirementsSnapshot): string {\n const functional = requirements.functional.map((requirement) => requirement.statement);\n const nonFunctional = requirements.nonFunctional.map((requirement) =>\n `[${requirement.kind}] ${requirement.statement}${requirement.metric ? ` (${requirement.metric})` : ''}`);\n return lines(\n '### Requirements (what the product actually does)',\n '**Functional:**',\n bullets(functional),\n '**Non-functional:**',\n bullets(nonFunctional),\n );\n}\n\n/** Render BUSINESS_MODEL: the offer posture (premium demands different codes than accessible). */\nexport function renderBusinessModelBrief(businessModel: BusinessModelLiteSnapshot): string {\n const plans = businessModel.plans.map((plan) =>\n `- **${plan.name}**${plan.pricePoint ? ` — ${plan.pricePoint}${plan.billingPeriod ? `/${plan.billingPeriod}` : ''}` : ''}${plan.targetSummary ? ` · for: ${plan.targetSummary}` : ''}${plan.includes ? ` · includes: ${plan.includes}` : ''}`);\n return lines(\n '### Business model',\n businessModel.revenueModel ? `**Revenue model:** ${businessModel.revenueModel}` : undefined,\n '**Plans:**',\n plans.length > 0 ? plans.join('\\n') : NONE,\n );\n}\n\n/** Render ACCEPTED_DECISIONS: the shipped brand assets new work must cohere with. */\nexport function renderAcceptedDecisionsBrief(assets: BrandAssetConfig[]): string {\n const rendered = assets.map((asset) =>\n `- ${asset.ref}: ${asset.composition}/${asset.theme}/${asset.purpose} ${asset.format}${asset.width && asset.height ? ` ${asset.width}×${asset.height}` : ''}${asset.derivedFrom ? ` (derived from ${asset.derivedFrom})` : ' (generated primary)'}`);\n return lines(\n '### Accepted decisions (already shipped — new work must cohere)',\n rendered.length > 0 ? rendered.join('\\n') : NONE,\n );\n}\n\n/**\n * Orchestrator: render every requested-and-present kind to its brief.\n * DESIGN_SYSTEM is absent by contract — it lives in the frontend service and\n * the PARENT composes+renders it (see the companion service's curator).\n */\nexport function renderShapingInputBriefs(\n sources: ExpertPersonaBriefSources,\n): Partial<Record<ExpertShapingInputKind, string>> {\n const briefs: Partial<Record<ExpertShapingInputKind, string>> = {};\n const vision = sources[ExpertShapingInputKind.VISION];\n if (vision) briefs[ExpertShapingInputKind.VISION] = renderVisionBrief(vision);\n const market = sources[ExpertShapingInputKind.MARKET];\n if (market) briefs[ExpertShapingInputKind.MARKET] = renderMarketBrief(market);\n const brand = sources[ExpertShapingInputKind.BRAND];\n if (brand) briefs[ExpertShapingInputKind.BRAND] = renderBrandBrief(brand);\n const requirements = sources[ExpertShapingInputKind.REQUIREMENTS];\n if (requirements) briefs[ExpertShapingInputKind.REQUIREMENTS] = renderRequirementsBrief(requirements);\n const businessModel = sources[ExpertShapingInputKind.BUSINESS_MODEL];\n if (businessModel) briefs[ExpertShapingInputKind.BUSINESS_MODEL] = renderBusinessModelBrief(businessModel);\n const accepted = sources[ExpertShapingInputKind.ACCEPTED_DECISIONS];\n if (accepted) briefs[ExpertShapingInputKind.ACCEPTED_DECISIONS] = renderAcceptedDecisionsBrief(accepted);\n return briefs;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"expert-persona-brief.renderer.js","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/expert-persona-brief.renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,yBAAyB,GAQ1B,MAAM,+BAA+B,CAAC;AAoCvC,MAAM,IAAI,GAAG,UAAU,CAAC;AAExB,SAAS,KAAK,CAAC,GAAG,KAA+C;IAC/D,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAkB,EAAE,CAAC,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACxG,CAAC;AAED,SAAS,OAAO,CAAC,KAAe,EAAE,QAAgB,IAAI;IACpD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAClF,CAAC;AAED,kEAAkE;AAClE,MAAM,UAAU,iBAAiB,CAAC,MAAsB;IACtD,MAAM,OAAO,GAAG,MAAM,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CACvD,GAAG,SAAS,CAAC,SAAS,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,aA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OAAO,CAAC,sBAAsB,CAAC,cAAc,CAAC,CAAC;IACrE,IAAI,aAAa;QAAE,MAAM,CAAC,sBAAsB,CAAC,cAAc,CAAC,GAAG,wBAAwB,CAAC,aAAa,CAAC,CAAC;IAC3G,MAAM,QAAQ,GAAG,OAAO,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,CAAC;IACpE,IAAI,QAAQ;QAAE,MAAM,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,GAAG,4BAA4B,CAAC,QAAQ,CAAC,CAAC;IACzG,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import {\n ExpertShapingInputKind,\n PricingTiersStatus,\n resolvePricingTiersStatus,\n type BrandAssetConfig,\n type BrandSnapshot,\n type BusinessModelLiteSnapshot,\n type MarketICPConfig,\n type MarketSnapshot,\n type RequirementsSnapshot,\n type VisionSnapshot,\n} from '@wildo-ai/saas-specifications';\n\n/**\n * Pure per-kind CURATORS that render each expert-persona shaping input as a\n * compact English **markdown brief** — the input-curation half of the\n * derivation-quality rework (Quality Track Lever 2).\n *\n * WHY THIS EXISTS: the first derivation protocol dumped each snapshot as RAW\n * JSON into the prompt. That buried the signal (a MarketSnapshot carries\n * Kano matrices, message templates, buying journeys — none of which shape a\n * persona), spent attention on keys instead of meaning, and made the prompt\n * unreadable for the human reviewing what the model was grounded on. Each\n * curator here selects the persona-relevant FACETS and renders them as\n * prose/bullets, mirroring the `buildMarketContextBlock` discipline:\n *\n * - **Pure function** — no I/O, no DI, deterministic output for equal input\n * (the derivation digest is computed OVER these briefs, so determinism is\n * load-bearing: \"a digest match always means derived from what the model\n * actually saw\").\n * - **Deliberate omissions are the point** — what a curator drops (e.g.\n * market channels, buying journeys, benefit Kano tables) is a curation\n * DECISION, recorded here, not an accident of serialization.\n * - **Empty sections render `_(none)_`** so the model sees absence instead\n * of silently inferring it.\n */\n\n/** Renderable value union the orchestrator dispatches on (kind-discriminated). */\nexport interface ExpertPersonaBriefSources {\n [ExpertShapingInputKind.VISION]?: VisionSnapshot;\n [ExpertShapingInputKind.MARKET]?: MarketSnapshot;\n [ExpertShapingInputKind.BRAND]?: BrandSnapshot;\n [ExpertShapingInputKind.REQUIREMENTS]?: RequirementsSnapshot;\n [ExpertShapingInputKind.BUSINESS_MODEL]?: BusinessModelLiteSnapshot;\n [ExpertShapingInputKind.ACCEPTED_DECISIONS]?: BrandAssetConfig[];\n}\n\nconst NONE = '_(none)_';\n\nfunction lines(...parts: Array<string | undefined | null | false>): string {\n return parts.filter((part): part is string => typeof part === 'string' && part.length > 0).join('\\n');\n}\n\nfunction bullets(items: string[], empty: string = NONE): string {\n return items.length === 0 ? empty : items.map((item) => `- ${item}`).join('\\n');\n}\n\n/** Render the VISION snapshot: the WHY the persona must serve. */\nexport function renderVisionBrief(vision: VisionSnapshot): string {\n const success = vision.successCriteria.map((criterion) =>\n `${criterion.statement}${criterion.metric ? ` (metric: ${criterion.metric}${criterion.target ? `, target: ${criterion.target}` : ''})` : ''}`);\n const constraints = vision.constraints.map((constraint) =>\n `[${constraint.kind}] ${constraint.statement}${constraint.rationale ? ` — ${constraint.rationale}` : ''}`);\n return lines(\n '### Vision',\n `**Idea:** ${vision.idea.oneLiner}`,\n vision.idea.description,\n vision.problem && `**Problem:** ${vision.problem.statement} (affects: ${vision.problem.affected})`,\n vision.problem?.whyNow && `**Why now:** ${vision.problem.whyNow}`,\n vision.mission && `**Mission:** ${vision.mission.mission}`,\n vision.mission?.longTermVision && `**Long-term:** ${vision.mission.longTermVision}`,\n vision.mission && vision.mission.principles.length > 0\n ? `**Principles:**\\n${bullets(vision.mission.principles)}` : undefined,\n `**Success criteria:**`,\n bullets(success),\n `**Constraints:**`,\n bullets(constraints),\n );\n}\n\n/**\n * Render the MARKET snapshot's persona-relevant facets: category,\n * positioning, ICPs (with their linked pains/gains/jobs STATEMENTS —\n * resolved through the snapshot's ref maps so the model reads meaning, not\n * refs), buyer personas, tones of voice, named alternatives, objections.\n *\n * DELIBERATELY DROPPED (curation decisions, not omissions): channels,\n * triggers, buying journeys, proofs, and the benefits' per-ICP Kano\n * matrices — distribution/funnel machinery that does not shape a creative\n * persona's judgment.\n */\nexport function renderMarketBrief(market: MarketSnapshot): string {\n const painByRef = new Map(market.pains.map((pain) => [pain.ref, pain]));\n const gainByRef = new Map(market.gains.map((gain) => [gain.ref, gain]));\n const jobByRef = new Map(market.jobs.map((job) => [job.ref, job]));\n\n const renderIcp = (icp: MarketICPConfig): string => {\n const pains = icp.pains\n .map((edge) => painByRef.get(edge.painRef)?.statement)\n .filter((statement): statement is string => statement !== undefined);\n const gains = icp.gains\n .map((edge) => gainByRef.get(edge.gainRef)?.statement)\n .filter((statement): statement is string => statement !== undefined);\n const jobs = icp.jobs\n .map((edge) => jobByRef.get(edge.jobRef)?.statement)\n .filter((statement): statement is string => statement !== undefined);\n return lines(\n `#### ICP: ${icp.name} (${icp.archetype}, priority: ${icp.priority})`,\n jobs.length > 0 ? `Jobs: ${jobs.join(' · ')}` : undefined,\n pains.length > 0 ? `Pains: ${pains.join(' · ')}` : undefined,\n gains.length > 0 ? `Gains: ${gains.join(' · ')}` : undefined,\n );\n };\n\n const positionings = market.positionings.map((positioning) =>\n `- ${positioning.oneSentence}\\n Pillars: ${positioning.valuePillars.map((pillar) => pillar.headline).join(' · ')}`);\n\n const voices = market.tonesOfVoice.map((voice) =>\n `- **${voice.name}** — ${voice.description}\\n Do: ${voice.doExamples.join(' | ')}\\n Don't: ${voice.dontExamples.join(' | ')}`);\n\n const alternatives = market.alternatives.map((alternative) =>\n `- **${alternative.name}** (${alternative.alternativeKind}) — chosen when: ${alternative.whenChosen}. Strengths: ${alternative.strengths.join(', ')}${alternative.weaknesses.length > 0 ? `. Weaknesses: ${alternative.weaknesses.join(', ')}` : ''}`);\n\n const objections = market.objections.map((objection) => {\n const record = objection as unknown as Record<string, unknown>;\n const text = record['statement'] ?? record['objection'] ?? record['description'];\n return typeof text === 'string' ? text : '';\n }).filter((text) => text.length > 0);\n\n return lines(\n '### Market',\n `**Category:** ${market.category.name}${'description' in market.category && typeof (market.category as Record<string, unknown>)['description'] === 'string' ? ` — ${(market.category as unknown as Record<string, string>)['description']}` : ''}`,\n '**Positioning:**',\n positionings.length > 0 ? positionings.join('\\n') : NONE,\n '**ICPs:**',\n market.icps.length > 0 ? market.icps.map(renderIcp).join('\\n') : NONE,\n '**Tones of voice:**',\n voices.length > 0 ? voices.join('\\n') : NONE,\n '**Named alternatives (the field to escape):**',\n alternatives.length > 0 ? alternatives.join('\\n') : NONE,\n objections.length > 0 ? `**Common objections:**\\n${bullets(objections)}` : undefined,\n );\n}\n\n/** Render the BRAND snapshot: authored direction + what already shipped. */\nexport function renderBrandBrief(brand: BrandSnapshot): string {\n const direction = brand.logoDirection;\n const tone = brand.visualTone;\n return lines(\n '### Brand',\n `**Name:** ${brand.name.brandName}${brand.name.tagline ? ` — \"${brand.name.tagline}\"` : ''}`,\n direction && `**Mark type:** ${direction.markType} · background: ${direction.backgroundTreatment}`,\n direction && direction.symbolism.length > 0 ? `**Symbolism:** ${direction.symbolism.join(', ')}` : undefined,\n direction && direction.motifs.length > 0 ? `**Motifs:** ${direction.motifs.join(', ')}` : undefined,\n direction && direction.avoid.length > 0 ? `**Avoid-list (hard bans):**\\n${bullets(direction.avoid)}` : undefined,\n tone && `**Visual tone:** ${tone.styleKeywords.join(', ')} · mood: ${tone.mood}`,\n tone && `**Color intent:** ${tone.colorIntent}${tone.colorSeeds.length > 0 ? ` (palette: ${tone.colorSeeds.join(', ')})` : ''}`,\n );\n}\n\n/** Render REQUIREMENTS: what the product actually does (the floor for honest claims). */\nexport function renderRequirementsBrief(requirements: RequirementsSnapshot): string {\n const functional = requirements.functional.map((requirement) => requirement.statement);\n const nonFunctional = requirements.nonFunctional.map((requirement) =>\n `[${requirement.kind}] ${requirement.statement}${requirement.metric ? ` (${requirement.metric})` : ''}`);\n return lines(\n '### Requirements (what the product actually does)',\n '**Functional:**',\n bullets(functional),\n '**Non-functional:**',\n bullets(nonFunctional),\n );\n}\n\n/**\n * Render BUSINESS_MODEL: the offer posture (premium demands different codes than accessible).\n *\n * Says WHERE the tiers came from (`resolvePricingTiersStatus`), because a reader grounded on the brief\n * otherwise treats a proposal as the creator's decision and an undecided sketch as \"no pricing\" — the\n * two readings the `pricingTiers` status exists to prevent. Model-facing prose, not display text.\n */\nexport function renderBusinessModelBrief(businessModel: BusinessModelLiteSnapshot): string {\n const plans = businessModel.plans.map((plan) =>\n `- **${plan.name}**${plan.pricePoint ? ` — ${plan.pricePoint}${plan.billingPeriod ? `/${plan.billingPeriod}` : ''}` : ''}${plan.targetSummary ? ` · for: ${plan.targetSummary}` : ''}${plan.includes ? ` · includes: ${plan.includes}` : ''}${plan.proposalBasis ? ` · proposed because: ${plan.proposalBasis}` : ''}`);\n const tiers = resolvePricingTiersStatus(businessModel);\n return lines(\n '### Business model',\n businessModel.revenueModel ? `**Revenue model:** ${businessModel.revenueModel}` : undefined,\n tiers === PricingTiersStatus.PROPOSED ? \"**Plans (proposed at the creator's request, not named by the creator):**\" : '**Plans:**',\n tiers === PricingTiersStatus.UNDECIDED\n ? '_Not decided yet — the creator has not chosen the tiers. Assume none; the revenue model above still applies._'\n : plans.length > 0 ? plans.join('\\n') : NONE,\n );\n}\n\n/** Render ACCEPTED_DECISIONS: the shipped brand assets new work must cohere with. */\nexport function renderAcceptedDecisionsBrief(assets: BrandAssetConfig[]): string {\n const rendered = assets.map((asset) =>\n `- ${asset.ref}: ${asset.composition}/${asset.theme}/${asset.purpose} ${asset.format}${asset.width && asset.height ? ` ${asset.width}×${asset.height}` : ''}${asset.derivedFrom ? ` (derived from ${asset.derivedFrom})` : ' (generated primary)'}`);\n return lines(\n '### Accepted decisions (already shipped — new work must cohere)',\n rendered.length > 0 ? rendered.join('\\n') : NONE,\n );\n}\n\n/**\n * Orchestrator: render every requested-and-present kind to its brief.\n * DESIGN_SYSTEM is absent by contract — it lives in the frontend service and\n * the PARENT composes+renders it (see the companion service's curator).\n */\nexport function renderShapingInputBriefs(\n sources: ExpertPersonaBriefSources,\n): Partial<Record<ExpertShapingInputKind, string>> {\n const briefs: Partial<Record<ExpertShapingInputKind, string>> = {};\n const vision = sources[ExpertShapingInputKind.VISION];\n if (vision) briefs[ExpertShapingInputKind.VISION] = renderVisionBrief(vision);\n const market = sources[ExpertShapingInputKind.MARKET];\n if (market) briefs[ExpertShapingInputKind.MARKET] = renderMarketBrief(market);\n const brand = sources[ExpertShapingInputKind.BRAND];\n if (brand) briefs[ExpertShapingInputKind.BRAND] = renderBrandBrief(brand);\n const requirements = sources[ExpertShapingInputKind.REQUIREMENTS];\n if (requirements) briefs[ExpertShapingInputKind.REQUIREMENTS] = renderRequirementsBrief(requirements);\n const businessModel = sources[ExpertShapingInputKind.BUSINESS_MODEL];\n if (businessModel) briefs[ExpertShapingInputKind.BUSINESS_MODEL] = renderBusinessModelBrief(businessModel);\n const accepted = sources[ExpertShapingInputKind.ACCEPTED_DECISIONS];\n if (accepted) briefs[ExpertShapingInputKind.ACCEPTED_DECISIONS] = renderAcceptedDecisionsBrief(accepted);\n return briefs;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"family-aspects.behavior.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"family-aspects.behavior.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/family-aspects.behavior.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,UAAU,eAAe;IACvB,QAAQ,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;CACnC;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,CAAC,KAAK,EAAE,kBAAkB,CAAC;CACpC,GAAG;IACF,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,eAAe,EAAE,GAAG,kBAAkB,CAAC;CAC9E,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAMD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE;IAC1C,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,mBAAmB,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC7D,GAAG,qBAAqB,CAwExB"}
|
|
@@ -50,7 +50,15 @@ export function projectFamilyAspects(input) {
|
|
|
50
50
|
if (!spineEdge)
|
|
51
51
|
continue;
|
|
52
52
|
if (spineEdge.many) {
|
|
53
|
-
|
|
53
|
+
/*
|
|
54
|
+
* A UNION, not an assignment (#2491 review F2). Two registry edges may share ONE many spine field by
|
|
55
|
+
* design — a relationship's two ends (`relatesResourceIds`), a lifecycle's resource and the resources
|
|
56
|
+
* its transitions create (`resourceIds`) — and each arrives as its own reference. Assigning made the
|
|
57
|
+
* last reference win, and a reference with no keys (a transition that creates nothing) emptied the
|
|
58
|
+
* field: a relationship lost one end's click-through and a lifecycle lost its own resource.
|
|
59
|
+
*/
|
|
60
|
+
const existing = Array.isArray(row[spineEdge.field]) ? row[spineEdge.field] : [];
|
|
61
|
+
row[spineEdge.field] = [...new Set([...existing, ...reference.keys])];
|
|
54
62
|
}
|
|
55
63
|
else if (reference.keys.length > 0) {
|
|
56
64
|
row[spineEdge.field] = reference.keys[0];
|