@wildo-ai/dev-companion 1.1.5 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/__tests__/asset-noop.d.ts.map +1 -1
- package/dist/esm/__tests__/asset-noop.js.map +1 -1
- package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +1 -1
- package/dist/esm/__tests__/chdir-dogfood-app.setup.js.map +1 -1
- package/dist/esm/__tests__/internal-test-view.d.ts.map +1 -1
- package/dist/esm/__tests__/internal-test-view.js.map +1 -1
- package/dist/esm/brand/models/logo-creative-brief.schemas.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-creative-brief.schemas.js.map +1 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.js +0 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.js.map +1 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.js +0 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
- package/dist/esm/brand/models/logo-judge.schemas.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-judge.schemas.js.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts +8 -0
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.js +6 -0
- package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
- package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts +21 -0
- package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts.map +1 -0
- package/dist/esm/brand/services/brand-propagation.companion.utils.js +33 -0
- package/dist/esm/brand/services/brand-propagation.companion.utils.js.map +1 -0
- package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
- package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
- package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
- package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
- package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
- package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +69 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +84 -3
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
- package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/coding-session-frame-retention.js.map +1 -1
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +8 -4
- 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 +9 -5
- 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 +1 -1
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -1
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts +4 -0
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js +25 -3
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +1 -1
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +159 -11
- 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 +424 -41
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +333 -60
- 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 +1029 -185
- 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 +8 -2
- 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 +8 -2
- 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 +20 -0
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts.map +1 -0
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js +29 -0
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js.map +1 -0
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts +11 -0
- 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 +60 -7
- 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 +5 -4
- 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 +13 -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 +193 -2
- package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.js +20 -1
- package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
- package/dist/esm/companion-api/companion-error-guidance.models.d.ts +25 -0
- package/dist/esm/companion-api/companion-error-guidance.models.d.ts.map +1 -0
- package/dist/esm/companion-api/companion-error-guidance.models.js +26 -0
- package/dist/esm/companion-api/companion-error-guidance.models.js.map +1 -0
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts +44 -0
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts.map +1 -0
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.js +111 -0
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.js.map +1 -0
- 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 +6 -14
- 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 +6 -14
- 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 +12 -0
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts.map +1 -0
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.js +20 -0
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.js.map +1 -0
- package/dist/esm/companion-api/controllers/companion.controller.d.ts +104 -14
- package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.js +516 -122
- 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 +6 -38
- 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 +13 -0
- package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/config/primary-language.companion.utils.js +19 -0
- package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
- package/dist/esm/core/context/companion-context.d.ts.map +1 -1
- package/dist/esm/core/context/companion-context.js.map +1 -1
- package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
- package/dist/esm/core/context/companion-package-loaders.companion.js +1 -39
- 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 +16 -0
- 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 +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 +6 -0
- package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
- package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts +41 -0
- package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/resources/application-secrets.companion.js +155 -0
- package/dist/esm/core/introspection/resources/application-secrets.companion.js.map +1 -0
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts +76 -0
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.js +197 -0
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -0
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts +47 -0
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.js +199 -0
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.js.map +1 -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.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts +42 -0
- 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 +173 -22
- 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 +78 -90
- 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 +288 -25
- 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 +22 -36
- 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 +49 -13
- 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 +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 +10 -15
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/translation-placement.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts +2 -0
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/assertions.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts +4 -0
- package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-hooks.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-register.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-register.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +77 -9
- 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 +45 -3
- 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 +8 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts +3 -2
- 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 +8 -3
- package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-context-block.builder.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-context-block.builder.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts +30 -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 +128 -20
- 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 +13 -0
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +21 -17
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js.map +1 -1
- package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -1
- package/dist/esm/core/introspection/workspace-elements.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/workspace-elements.companion.js.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.js.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.models.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.models.js.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.schemas.js.map +1 -1
- package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/application-runtime-liveness.companion.js.map +1 -1
- package/dist/esm/core/runtime/companion-endpoint-record.d.ts +8 -0
- package/dist/esm/core/runtime/companion-endpoint-record.d.ts.map +1 -0
- package/dist/esm/core/runtime/companion-endpoint-record.js +23 -0
- package/dist/esm/core/runtime/companion-endpoint-record.js.map +1 -0
- package/dist/esm/core/runtime/companion-env-file.d.ts +30 -0
- package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -0
- package/dist/esm/core/runtime/companion-env-file.js +53 -0
- package/dist/esm/core/runtime/companion-env-file.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.map +1 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts +5 -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 +11 -0
- package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts +56 -0
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts.map +1 -0
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js +97 -0
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js.map +1 -0
- 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 +43 -3
- 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 +127 -22
- 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 +11 -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 +42 -19
- 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 +10 -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 +1 -7
- package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.models.js +3 -5
- package/dist/esm/core/traceability/companion-traceability.models.js.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.service.js.map +1 -1
- package/dist/esm/core/utils/atomic-write.utils.d.ts.map +1 -1
- package/dist/esm/core/utils/atomic-write.utils.js.map +1 -1
- package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/utils/derived-input-signature.companion.utils.js.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js +15 -14
- 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 +0 -23
- package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.function-tools.js +251 -50
- package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -1
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +0 -2
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.js +3 -2
- package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
- package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
- package/dist/esm/deliberations/utils/load-committed-expert-agents.js.map +1 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.js +0 -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 +5 -3
- package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.js +53 -255
- 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 +12 -0
- 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 +62 -3
- 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 +52 -0
- package/dist/esm/email/utils/email-labels-tree.utils.d.ts.map +1 -0
- package/dist/esm/email/utils/email-labels-tree.utils.js +261 -0
- package/dist/esm/email/utils/email-labels-tree.utils.js.map +1 -0
- 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 +2 -0
- 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 +21 -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 +18 -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 +187 -46
- 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 +0 -1
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js +0 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.js.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.js +10 -0
- 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 +1 -8
- 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 +2 -9
- 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 +2 -0
- 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 +3 -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 +32 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js +32 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js.map +1 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts +0 -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 +0 -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 +0 -7
- 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 +0 -7
- 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 +30 -4
- 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 +31 -5
- 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 +0 -2
- 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 +0 -2
- 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 +4 -0
- 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 +5 -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 +1 -15
- 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 +1 -15
- 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 +0 -3
- 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 +0 -3
- 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 +49 -16
- 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 +49 -16
- 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 +0 -5
- 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 +0 -5
- 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 +3 -0
- 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 +4 -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 +7 -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 +8 -2
- 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 +1 -0
- 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 +2 -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 +1 -0
- 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 +2 -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 +12 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js +12 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js.map +1 -0
- 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 +1 -0
- 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 +2 -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 +10 -0
- 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 +11 -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 +8 -0
- 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 +9 -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 +3 -0
- 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 +4 -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 +2 -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 +3 -2
- 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 +6 -0
- 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 +7 -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 +1 -0
- 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 +2 -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 +0 -2
- package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_milestone_tracker.en.js +0 -2
- 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 +123 -19
- 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 +12 -0
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.domain-model.en.js.map +1 -1
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts +25 -0
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts.map +1 -0
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.js +26 -0
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.js.map +1 -0
- package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts +26 -3
- package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -1
- package/dist/esm/i18n/errors_messages/errors-messages.en.js +25 -3
- package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -1
- package/dist/esm/i18n/index.d.ts +10 -8
- package/dist/esm/i18n/index.d.ts.map +1 -1
- package/dist/esm/i18n/index.js +10 -8
- package/dist/esm/i18n/index.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts +10 -0
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js +2 -0
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts +97 -0
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js +60 -0
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js.map +1 -0
- package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchAspects.en.js +6 -0
- package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts +5 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js +1 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts +24 -0
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js +8 -0
- 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 +30 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +9 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts +17 -4
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js +32 -4
- 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 +8 -2
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js +6 -2
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts +18 -7
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js +17 -7
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts +28 -3
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.js +13 -3
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts +3 -2
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js +8 -2
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +118 -8
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +42 -16
- 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 +12 -2
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js +16 -2
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/application-creation.en.d.ts +10 -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 +11 -0
- package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/compliance-programme.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/flows-actors.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/flows-actors.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/market.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/processor-register.en.d.ts +6 -0
- package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/processor-register.en.js +6 -0
- package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/risk-register.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts +4 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.js +5 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts +46 -0
- package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-secrets.en.js +46 -0
- package/dist/esm/i18n/system_enums/workbench-secrets.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts +8 -0
- 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 +13 -0
- 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 +61 -0
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js +22 -0
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js.map +1 -0
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +105 -24
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-unit.models.js +55 -24
- 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 +0 -2
- 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 +48 -0
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js +145 -0
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -0
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +70 -18
- 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 +330 -113
- 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 +45 -0
- 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 +208 -6
- 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 +11 -2
- 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 +101 -18
- 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 +64 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +393 -70
- 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 +9 -5
- 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 +54 -0
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js +74 -0
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts +3 -3
- 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 +24 -0
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js +34 -0
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/label-file-source.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-file-source.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js +5 -1
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts +76 -0
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js +110 -0
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts +17 -0
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js +23 -0
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js.map +1 -0
- 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 +36 -3
- 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 +77 -5
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts +38 -0
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js +66 -0
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js.map +1 -0
- 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 +9 -3
- 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 +0 -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 +1 -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 +11 -0
- package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/application-line-catalog.models.js +17 -0
- package/dist/esm/meta-workflows/models/application-line-catalog.models.js.map +1 -0
- 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 +0 -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 +1 -1
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts +14 -0
- 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 +18 -0
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts +14 -0
- package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/human-decision-settler.models.js +18 -0
- package/dist/esm/meta-workflows/models/human-decision-settler.models.js.map +1 -0
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts +31 -23
- 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 +36 -5
- 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 +1 -3
- 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 +19 -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 +38 -6
- 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 +48 -3
- 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 +61 -8
- package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts +15 -1
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js +50 -5
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +52 -9
- 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 +131 -59
- 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 +19 -0
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js +36 -0
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +9 -0
- 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 +41 -17
- 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 +42 -2
- 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 +121 -4
- 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 +32 -0
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js +161 -0
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.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.map +1 -1
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts +2 -0
- 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 +1 -0
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts +3 -2
- 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 +12 -3
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +74 -1
- package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/dossier.companion.service.js +227 -30
- 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 +29 -2
- 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 +68 -5
- 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 +40 -0
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.js +91 -0
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.js.map +1 -0
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts +25 -0
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js +40 -0
- package/dist/esm/meta-workflows/services/governed-documents-pdf.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 +90 -0
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js +307 -0
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +29 -0
- 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 +44 -4
- 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 +360 -47
- 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 +1424 -246
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js.map +1 -1
- package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts.map +1 -1
- package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
- package/package.json +17 -17
- package/dist/esm/__time-gov.probe.d.mts +0 -0
- package/dist/esm/__time-gov.probe.d.mts.map +0 -0
- package/dist/esm/__time-gov.probe.mjs.map +0 -0
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts +0 -0
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts.map +0 -0
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.js.map +0 -0
- package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts +0 -0
- package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts.map +0 -0
- package/dist/esm/i18n/composite_views/app.creation-board.en.js.map +0 -0
- package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts +0 -0
- package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts.map +0 -0
- package/dist/esm/meta-workflows/services/creator-inputs.companion.service.js.map +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"market-context-block.builder.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"market-context-block.builder.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/market-context-block.builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,cAAc,EAIpB,MAAM,+BAA+B,CAAC;AAEvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,MAAM,WAAW,uBAAuB;IACtC;yEACqE;IACrE,QAAQ,EAAE,cAAc,CAAC;IACzB,MAAM,EACF;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,GACvC;QAAE,IAAI,EAAE,KAAK,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACpC;;+BAE2B;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,uBAAuB;IACtC;;2DAEuD;IACvD,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,yEAAyE;IACzE,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,wEAAwE;IACxE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,wBAAwB;IACvC,oEAAoE;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,uBAAuB,CAAC;CAChC;AA+BD,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,uBAAuB,GAC7B,wBAAwB,CA6D1B;AA4VD,0DAA0D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"market-context-block.builder.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/subprocess/market-context-block.builder.ts"],"names":[],"mappings":"AAAA,OAA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B,CAAC,OAA6B;IAC/D,MAAM,KAAK,GAAG,CAAC,6CAA6C,CAAC,CAAC;IAC9D,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC5B,MAAM,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC1D,KAAK,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,IAAI,QAAQ,KAAK,CAAC,KAAK,KAAK,UAAU,EAAE,CAAC,CAAC;IACpE,CAAC;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED;;;;;;GAMG;AACH,SAAS,uBAAuB,CAAC,KAAyB;IACxD,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAC1C,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAC7B,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IAC3C,IAAI,OAAO,CAAC,MAAM,GAAG,0BAA0B,EAAE,CAAC;QAChD,MAAM,IAAI,KAAK,CACb,kDAAkD,OAAO,CAAC,MAAM,cAAc;cAC5E,QAAQ,0BAA0B,qDAAqD;cACvF,4EAA4E,CAC/E,CAAC;IACJ,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,SAAS,2BAA2B,CAAC,cAAsB;IACzD,OAAO;QACL,qBAAqB;QACrB,iCAAiC,cAAc,0GAA0G;KAC1J,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC;AACD,0DAA0D","sourcesContent":["import {\n type FeatureBenefitConfig,\n type MarketICPConfig,\n ICPPriority,\n type MarketSnapshot,\n type ToneOfVoiceConfig,\n AuthoredConfidence,\n type MarketAuthoredMetadata,\n} from '@wildo-ai/saas-specifications';\n\n/**\n * @wildo_source:part:start market.context-block.builder facet:layer:companion facet:family:market\n *\n * Pure builder that renders an English \"market context\" prose block\n * from a validated `MarketSnapshot`. The block is consumed by:\n *\n * - the dev-companion subprocess behaviors `market-context-for-feature`\n * and `market-context-for-icp` (Phase 4.1);\n * - the market generation CLI (`wildo market generate`) which\n * concatenates the block with a `MarketMessageTemplate.promptTemplate`\n * before sending to the LLM (Phase 4.2).\n *\n * **Pure function — no I/O, no DI, no runtime registry access, no\n * mutation of the input snapshot.** The same `(snapshot, intent)`\n * input always renders the same output (deterministic section order,\n * deterministic ICP / benefit ordering by ref). This keeps the block\n * trivial to snapshot-test and trivial to diff between snapshot\n * versions.\n *\n * **English-only by contract (D15 / §12).** When `outputLanguage` is\n * provided, the builder appends an \"Output language\" instruction line\n * for the LLM, but does NOT translate any of the content above it.\n * Translation happens at LLM-output time, never inside the spec.\n *\n * **Intent kinds:**\n * - `{ kind: 'feature', featureRef }` — answers \"I'm editing this\n * feature, what is its market context?\". Surfaces every benefit\n * whose `deliveredByFeatureRefs[]` contains `featureRef`, the\n * ICPs those benefits matter to, and the anti-target ICPs that\n * would be repelled by them.\n * - `{ kind: 'icp', icpRef }` — answers \"I'm writing copy for this\n * ICP, what's their world?\". Surfaces the ICP's pains/gains/jobs,\n * the benefits whose `importanceByICP[]` weights them at >= 5,\n * and their preferred voice.\n *\n * **Section order (load-bearing — consumers may rely on it):**\n * 1. `## Market context` header (with intent line)\n * 2. `### Category`\n * 3. `### Benefits in scope`\n * 4. `### Most-affected ICPs`\n * 5. `### Anti-target ICPs (do not pitch)`\n * 6. `### Tone of voice`\n * 7. `### Open questions / low-confidence entries` (skipped if empty)\n * 8. `### Output language` (only when `outputLanguage` is set)\n *\n * Empty sections are kept (with an explicit `_(none)_` line) for\n * sections 2–6 so the LLM sees the absence rather than silently\n * inferring it. Section 7 is the lone exception — empty\n * \"low-confidence\" lists carry no signal and are dropped.\n */\nexport interface MarketContextBlockInput {\n /** Validated `MarketSnapshot`. Caller is responsible for running\n * `validateMarketSnapshot` first; this builder trusts the input. */\n snapshot: MarketSnapshot;\n intent:\n | { kind: 'feature'; featureRef: string }\n | { kind: 'icp'; icpRef: string };\n /** Optional BCP-47 tag (e.g. `'fr'`, `'pt-BR'`). When set, the\n * builder appends an \"Output language\" instruction; never\n * translates the body. */\n outputLanguage?: string;\n}\n\n/**\n * Trace of the entities the builder considered. Useful for the CLI's\n * `--explain` mode and for unit tests that assert \"the builder\n * picked the right ICP\" without parsing prose.\n *\n * **Schema contract.** This interface is intentionally kept\n * structurally compatible with the public `MarketContextBlockTraceSchema`\n * contract exported by `@wildo-ai/saas-specifications`\n * — the Phase-4.2 market generation CLI parses the companion HTTP\n * response against that Zod schema. Any drift between this\n * interface and that schema must be reflected on **both** sides\n * (the schema is the cross-process contract; this interface is the\n * local renderer typing).\n */\nexport interface MarketContextBlockTrace {\n /** Refs of every ICP whose section was rendered. Order matches\n * the rendered output: feature intent → score-desc / priority /\n * ref; icp intent → single requested ref or empty. */\n icpsConsidered: string[];\n /** Ordered (by ref) refs of every benefit whose section was rendered. */\n benefitsConsidered: string[];\n /** Ref of the tone of voice whose do/don't were rendered, or `null`. */\n voiceUsed: string | null;\n}\n\nexport interface MarketContextBlockResult {\n /** English markdown prose, ready to concatenate with a template. */\n block: string;\n trace: MarketContextBlockTrace;\n}\n\nconst ICP_PRIORITY_RANK: Record<ICPPriority, number> = {\n [ICPPriority.CORE]: 0,\n [ICPPriority.EXPANSION]: 1,\n [ICPPriority.EXPLORATORY]: 2,\n [ICPPriority.DEFERRED]: 3,\n [ICPPriority.ANTI_TARGET]: 4,\n};\n\n/** Per-ICP fitness threshold for the `icp` intent's \"Benefits in scope\"\n * section. Benefits with `importanceByICP[icp].weight >= 5` are\n * considered relevant; below 5 the benefit is \"noise\" for that ICP. */\nconst ICP_BENEFIT_RELEVANCE_THRESHOLD = 5;\n\n/** Maximum number of \"Most-affected ICPs\" lines rendered for the\n * `feature` intent. Plan §10.2 caps at 3: the prompt should\n * surface the *primary* audiences for a feature edit, not enumerate\n * every ICP that mentioned it. The cap also keeps prompts short for\n * snapshots with dozens of ICPs. */\nconst MAX_AFFECTED_ICPS_RENDERED = 3;\n\n/** Defensive cap on the `outputLanguage` value rendered into the\n * prompt. BCP-47 language tags are short by spec (the longest\n * registered tag is well under 35 chars); a value longer than this\n * is a misuse — most likely a caller pasted a paragraph instead of\n * a tag. We refuse rather than silently embed garbage in the LLM\n * prompt. The companion handlers also validate at the request\n * boundary; this is a defense-in-depth guard for direct callers. */\nconst MAX_OUTPUT_LANGUAGE_LENGTH = 64;\n\nexport function buildMarketContextBlock(\n input: MarketContextBlockInput,\n): MarketContextBlockResult {\n const { snapshot, intent, outputLanguage } = input;\n\n const icpsByRef = new Map(snapshot.icps.map(icp => [icp.ref, icp] as const));\n const benefitsByRef = new Map(snapshot.benefits.map(b => [b.ref, b] as const));\n const voicesByRef = new Map(snapshot.tonesOfVoice.map(v => [v.ref, v] as const));\n\n const benefitsInScope = collectBenefitsInScope(snapshot, intent);\n const affectedIcps = collectAffectedIcps(intent, benefitsInScope, icpsByRef);\n const antiTargetIcps = snapshot.icps\n .filter(icp => icp.priority === ICPPriority.ANTI_TARGET)\n .slice()\n .sort(compareByRef);\n\n const voice = pickPreferredVoice({\n intent,\n icpsByRef,\n affectedIcps,\n voicesByRef,\n });\n\n const lowConfidenceEntries = collectLowConfidenceEntries({\n intent,\n snapshot,\n benefitsInScope,\n affectedIcps,\n });\n\n const lines: string[] = [];\n\n lines.push(renderHeader(intent));\n lines.push('');\n lines.push(renderCategorySection(snapshot));\n lines.push('');\n lines.push(renderBenefitsSection(benefitsInScope));\n lines.push('');\n lines.push(renderAffectedIcpsSection(affectedIcps, intent, benefitsInScope));\n lines.push('');\n lines.push(renderAntiTargetSection(antiTargetIcps));\n lines.push('');\n lines.push(renderVoiceSection(voice));\n\n if (lowConfidenceEntries.length > 0) {\n lines.push('');\n lines.push(renderLowConfidenceSection(lowConfidenceEntries));\n }\n\n const normalizedOutputLanguage = normalizeOutputLanguage(outputLanguage);\n if (normalizedOutputLanguage) {\n lines.push('');\n lines.push(renderOutputLanguageSection(normalizedOutputLanguage));\n }\n\n return {\n block: lines.join('\\n'),\n trace: {\n icpsConsidered: affectedIcps.map(icp => icp.ref),\n benefitsConsidered: benefitsInScope.map(b => b.ref),\n voiceUsed: voice?.ref ?? null,\n },\n };\n}\n\n// ---------------------------------------------------------------------------\n// Collection helpers\n// ---------------------------------------------------------------------------\n\nfunction collectBenefitsInScope(\n snapshot: MarketSnapshot,\n intent: MarketContextBlockInput['intent'],\n): FeatureBenefitConfig[] {\n if (intent.kind === 'feature') {\n return snapshot.benefits\n .filter(b => b.deliveredByFeatureRefs.includes(intent.featureRef))\n .slice()\n .sort(compareByRef);\n }\n\n return snapshot.benefits\n .filter(b =>\n b.importanceByICP.some(\n imp =>\n imp.icpRef === intent.icpRef &&\n imp.weight >= ICP_BENEFIT_RELEVANCE_THRESHOLD,\n ),\n )\n .slice()\n .sort(compareByRef);\n}\n\n/**\n * Per-ICP score for the `feature` intent's `### Most-affected ICPs`\n * ranking. Plan §10.2 calls for `weight × pain/gain degree`. Concretely:\n *\n * score(icp) = max over benefits-in-scope of (\n * importanceByICP[icp].weight × max(degree across that benefit's\n * relieves[] / creates[] / advances[] edges)\n * )\n *\n * **Why max-of-max instead of a sum.** A benefit's degree edges are\n * authored as \"this benefit relieves pain X to degree 9\" — they\n * describe the **strength of one outcome**, not a list of outcomes\n * to add up. Summing across edges would over-weight benefits with\n * many shallow edges; summing across benefits would over-weight ICPs\n * that appear on lots of mid-importance benefits. The signal we want\n * for \"most-affected ICPs\" is \"what is the strongest claim this\n * feature lets us make for this ICP\", which is a max-of-max.\n *\n * **Tie-breaks are deterministic** (rank → ref) so the rendered\n * output is snapshot-stable.\n */\nfunction scoreIcpForFeatureIntent(\n icpRef: string,\n benefitsInScope: FeatureBenefitConfig[],\n): number {\n let best = 0;\n for (const benefit of benefitsInScope) {\n const weight = benefit.importanceByICP.find(imp => imp.icpRef === icpRef)?.weight;\n if (weight === undefined || weight <= 0) continue;\n let bestDegree = 0;\n for (const edge of benefit.relieves) bestDegree = Math.max(bestDegree, edge.degree);\n for (const edge of benefit.creates) bestDegree = Math.max(bestDegree, edge.degree);\n for (const edge of benefit.advances) bestDegree = Math.max(bestDegree, edge.degree);\n // Benefits with no degree edges still carry weight signal — use 1\n // as a neutral multiplier so a weight-only ranking still differentiates.\n const benefitScore = weight * (bestDegree > 0 ? bestDegree : 1);\n if (benefitScore > best) best = benefitScore;\n }\n return best;\n}\n\nfunction collectAffectedIcps(\n intent: MarketContextBlockInput['intent'],\n benefitsInScope: FeatureBenefitConfig[],\n icpsByRef: Map<string, MarketICPConfig>,\n): MarketICPConfig[] {\n if (intent.kind === 'icp') {\n const icp = icpsByRef.get(intent.icpRef);\n return icp ? [icp] : [];\n }\n\n const refs = new Set<string>();\n for (const benefit of benefitsInScope) {\n for (const imp of benefit.importanceByICP) {\n refs.add(imp.icpRef);\n }\n }\n\n type ScoredIcp = { icp: MarketICPConfig; score: number };\n const scored: ScoredIcp[] = [];\n for (const ref of refs) {\n const icp = icpsByRef.get(ref);\n if (!icp || icp.priority === ICPPriority.ANTI_TARGET) continue;\n scored.push({ icp, score: scoreIcpForFeatureIntent(ref, benefitsInScope) });\n }\n\n // Primary sort: weighted score (descending). Ties: priority rank\n // (CORE before EXPANSION before lower priorities). Final tie-break:\n // ref (alphabetical) for snapshot-stable output.\n scored.sort((a, b) => {\n if (a.score !== b.score) return b.score - a.score;\n const rankDelta = ICP_PRIORITY_RANK[a.icp.priority] - ICP_PRIORITY_RANK[b.icp.priority];\n if (rankDelta !== 0) return rankDelta;\n return compareByRef(a.icp, b.icp);\n });\n\n return scored.slice(0, MAX_AFFECTED_ICPS_RENDERED).map(entry => entry.icp);\n}\n\nfunction pickPreferredVoice(params: {\n intent: MarketContextBlockInput['intent'];\n icpsByRef: Map<string, MarketICPConfig>;\n affectedIcps: MarketICPConfig[];\n voicesByRef: Map<string, ToneOfVoiceConfig>;\n}): ToneOfVoiceConfig | null {\n const { intent, icpsByRef, affectedIcps, voicesByRef } = params;\n\n if (intent.kind === 'icp') {\n const icp = icpsByRef.get(intent.icpRef);\n if (icp?.preferredVoiceRef) {\n const voice = voicesByRef.get(icp.preferredVoiceRef);\n if (voice) return voice;\n }\n }\n\n for (const icp of affectedIcps) {\n if (icp.preferredVoiceRef) {\n const voice = voicesByRef.get(icp.preferredVoiceRef);\n if (voice) return voice;\n }\n }\n\n return null;\n}\n\ninterface LowConfidenceEntry {\n /** Dotted path inside the snapshot. */\n path: string;\n /** Display name of the entity (best-effort: `name` if present, else `ref`). */\n label: string;\n notes?: string;\n}\n\nfunction collectLowConfidenceEntries(params: {\n intent: MarketContextBlockInput['intent'];\n snapshot: MarketSnapshot;\n benefitsInScope: FeatureBenefitConfig[];\n affectedIcps: MarketICPConfig[];\n}): LowConfidenceEntry[] {\n const { intent, snapshot, benefitsInScope, affectedIcps } = params;\n const entries: LowConfidenceEntry[] = [];\n\n if (isLowConfidence(snapshot.category.authored)) {\n entries.push({\n path: 'category',\n label: snapshot.category.name,\n notes: snapshot.category.authored?.notes,\n });\n }\n\n for (const icp of affectedIcps) {\n if (isLowConfidence(icp.authored)) {\n entries.push({\n path: `icps[${snapshot.icps.indexOf(icp)}]`,\n label: icp.name,\n notes: icp.authored?.notes,\n });\n }\n }\n\n for (const benefit of benefitsInScope) {\n if (isLowConfidence(benefit.authored)) {\n entries.push({\n path: `benefits[${snapshot.benefits.indexOf(benefit)}]`,\n label: benefit.claim,\n notes: benefit.authored?.notes,\n });\n }\n }\n\n // Personas: surface LOW-confidence personas whose `belongsToIcpRefs[]`\n // intersects the **affected ICPs** for either intent kind. Under\n // `icp` intent this is the requested ICP itself; under `feature`\n // intent it's any ICP that the renderer surfaced under\n // \"Most-affected ICPs\". Restricting to affected ICPs keeps the\n // section signal-dense — we don't dump every LOW persona in the\n // snapshot, only the ones the LLM is about to write copy for.\n const affectedIcpRefs = new Set(affectedIcps.map(i => i.ref));\n if (affectedIcpRefs.size > 0) {\n for (const persona of snapshot.personas) {\n if (!isLowConfidence(persona.authored)) continue;\n if (!persona.belongsToIcpRefs.some(ref => affectedIcpRefs.has(ref))) continue;\n entries.push({\n path: `personas[${snapshot.personas.indexOf(persona)}]`,\n label: persona.name,\n notes: persona.authored?.notes,\n });\n }\n }\n\n return entries;\n}\n\nfunction isLowConfidence(authored: MarketAuthoredMetadata | undefined): boolean {\n return authored?.confidence === AuthoredConfidence.LOW;\n}\n\nfunction compareByRef<T extends { ref: string }>(a: T, b: T): number {\n return a.ref.localeCompare(b.ref);\n}\n\n// ---------------------------------------------------------------------------\n// Render helpers\n// ---------------------------------------------------------------------------\n\nfunction renderHeader(intent: MarketContextBlockInput['intent']): string {\n const intentLine =\n intent.kind === 'feature'\n ? `(intent: feature \\`${intent.featureRef}\\`)`\n : `(intent: icp \\`${intent.icpRef}\\`)`;\n return `## Market context ${intentLine}`;\n}\n\nfunction renderCategorySection(snapshot: MarketSnapshot): string {\n const { name, definition } = snapshot.category;\n return [\n '### Category',\n `- **Name:** ${name}`,\n `- **Definition:** ${definition}`,\n ].join('\\n');\n}\n\nfunction renderBenefitsSection(benefits: FeatureBenefitConfig[]): string {\n const lines = ['### Benefits in scope'];\n if (benefits.length === 0) {\n lines.push('_(none)_');\n return lines.join('\\n');\n }\n for (const benefit of benefits) {\n const edges: string[] = [];\n for (const e of benefit.relieves) {\n edges.push(`relieves \\`${e.painRef}\\` (degree ${e.degree})`);\n }\n for (const e of benefit.creates) {\n edges.push(`creates \\`${e.gainRef}\\` (degree ${e.degree})`);\n }\n for (const e of benefit.advances) {\n edges.push(`advances \\`${e.jobRef}\\` (degree ${e.degree})`);\n }\n const edgeSummary = edges.length > 0 ? ` — ${edges.join('; ')}` : '';\n lines.push(`- **${benefit.claim}** (\\`${benefit.ref}\\`, role ${benefit.role})${edgeSummary}`);\n }\n return lines.join('\\n');\n}\n\nfunction renderAffectedIcpsSection(\n icps: MarketICPConfig[],\n intent: MarketContextBlockInput['intent'],\n benefitsInScope: FeatureBenefitConfig[],\n): string {\n const heading =\n intent.kind === 'feature'\n ? '### Most-affected ICPs'\n : '### ICP profile';\n const lines = [heading];\n if (icps.length === 0) {\n lines.push('_(none)_');\n return lines.join('\\n');\n }\n\n for (const icp of icps) {\n const relevantImportance = benefitsInScope\n .flatMap(b => b.importanceByICP)\n .filter(imp => imp.icpRef === icp.ref);\n const kanoSummary =\n relevantImportance.length > 0\n ? ` — kano: ${relevantImportance\n .map(i => `${i.kanoCategory}@${i.weight}`)\n .join(', ')}`\n : '';\n lines.push(\n `- **${icp.name}** (\\`${icp.ref}\\`, priority ${icp.priority}, archetype ${icp.archetype})${kanoSummary}`,\n );\n }\n\n return lines.join('\\n');\n}\n\nfunction renderAntiTargetSection(icps: MarketICPConfig[]): string {\n const lines = ['### Anti-target ICPs (do not pitch)'];\n if (icps.length === 0) {\n lines.push('_(none)_');\n return lines.join('\\n');\n }\n for (const icp of icps) {\n lines.push(`- **${icp.name}** (\\`${icp.ref}\\`, archetype ${icp.archetype})`);\n }\n return lines.join('\\n');\n}\n\nfunction renderVoiceSection(voice: ToneOfVoiceConfig | null): string {\n const lines = ['### Tone of voice'];\n if (!voice) {\n lines.push('_(none — fall back to neutral)_');\n return lines.join('\\n');\n }\n lines.push(`- **${voice.name}** (\\`${voice.ref}\\`) — ${voice.description}`);\n lines.push(`- **address:** ${voice.address}`);\n lines.push(`- **do:** ${voice.doExamples.map(s => `\"${s}\"`).join('; ')}`);\n lines.push(`- **don't:** ${voice.dontExamples.map(s => `\"${s}\"`).join('; ')}`);\n return lines.join('\\n');\n}\n\nfunction renderLowConfidenceSection(entries: LowConfidenceEntry[]): string {\n const lines = ['### Open questions / low-confidence entries'];\n for (const entry of entries) {\n const noteSuffix = entry.notes ? ` — ${entry.notes}` : '';\n lines.push(`- \\`${entry.path}\\` **${entry.label}**${noteSuffix}`);\n }\n return lines.join('\\n');\n}\n\n/**\n * Trim and validate an `outputLanguage` value before it lands inside\n * the prompt. Returns `undefined` for missing / empty / whitespace-only\n * inputs (so the section is skipped entirely). Throws for values\n * longer than {@link MAX_OUTPUT_LANGUAGE_LENGTH} — that's a caller\n * misuse (e.g. pasting a paragraph instead of a tag).\n */\nfunction normalizeOutputLanguage(value: string | undefined): string | undefined {\n if (value === undefined) return undefined;\n const trimmed = value.trim();\n if (trimmed.length === 0) return undefined;\n if (trimmed.length > MAX_OUTPUT_LANGUAGE_LENGTH) {\n throw new Error(\n `buildMarketContextBlock: \\`outputLanguage\\` is ${trimmed.length} chars long `\n + `(max ${MAX_OUTPUT_LANGUAGE_LENGTH}). Pass a BCP-47 tag (e.g. \\`'fr'\\`, \\`'pt-BR'\\`), `\n + `not a sentence — translation prose belongs in the LLM output, not the tag.`,\n );\n }\n return trimmed;\n}\n\nfunction renderOutputLanguageSection(outputLanguage: string): string {\n return [\n '### Output language',\n `Produce the final output in \\`${outputLanguage}\\`. The market context above is English on purpose — do not translate it; translate at output time only.`,\n ].join('\\n');\n}\n/** @wildo_source:part:end market.context-block.builder */\n"]}
|
|
1
|
+
{"version":3,"file":"market-context-block.builder.js","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/market-context-block.builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,WAAW,EAGX,kBAAkB,GAEnB,MAAM,+BAA+B,CAAC;AAgGvC,MAAM,iBAAiB,GAAgC;IACrD,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;IACrB,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,CAAC;IAC1B,CAAC,WAAW,CAAC,WAAW,CAAC,EAAE,CAAC;IAC5B,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,CAAC;IACzB,CAAC,WAAW,CAAC,WAAW,CAAC,EAAE,CAAC;CAC7B,CAAC;AAEF;;wEAEwE;AACxE,MAAM,+BAA+B,GAAG,CAAC,CAAC;AAE1C;;;;qCAIqC;AACrC,MAAM,0BAA0B,GAAG,CAAC,CAAC;AAErC;;;;;;qEAMqE;AACrE,MAAM,0BAA0B,GAA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SAAS;QAAE,OAAO,SAAS,CAAC;IAC1C,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAC7B,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IAC3C,IAAI,OAAO,CAAC,MAAM,GAAG,0BAA0B,EAAE,CAAC;QAChD,MAAM,IAAI,KAAK,CACb,kDAAkD,OAAO,CAAC,MAAM,cAAc;cAC5E,QAAQ,0BAA0B,qDAAqD;cACvF,4EAA4E,CAC/E,CAAC;IACJ,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,SAAS,2BAA2B,CAAC,cAAsB;IACzD,OAAO;QACL,qBAAqB;QACrB,iCAAiC,cAAc,0GAA0G;KAC1J,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC;AACD,0DAA0D","sourcesContent":["import {\n type FeatureBenefitConfig,\n type MarketICPConfig,\n ICPPriority,\n type MarketSnapshot,\n type ToneOfVoiceConfig,\n AuthoredConfidence,\n type MarketAuthoredMetadata,\n} from '@wildo-ai/saas-specifications';\n\n/**\n * @wildo_source:part:start market.context-block.builder facet:layer:companion facet:family:market\n *\n * Pure builder that renders an English \"market context\" prose block\n * from a validated `MarketSnapshot`. The block is consumed by:\n *\n * - the dev-companion subprocess behaviors `market-context-for-feature`\n * and `market-context-for-icp` (Phase 4.1);\n * - the market generation CLI (`wildo market generate`) which\n * concatenates the block with a `MarketMessageTemplate.promptTemplate`\n * before sending to the LLM (Phase 4.2).\n *\n * **Pure function — no I/O, no DI, no runtime registry access, no\n * mutation of the input snapshot.** The same `(snapshot, intent)`\n * input always renders the same output (deterministic section order,\n * deterministic ICP / benefit ordering by ref). This keeps the block\n * trivial to snapshot-test and trivial to diff between snapshot\n * versions.\n *\n * **English-only by contract (D15 / §12).** When `outputLanguage` is\n * provided, the builder appends an \"Output language\" instruction line\n * for the LLM, but does NOT translate any of the content above it.\n * Translation happens at LLM-output time, never inside the spec.\n *\n * **Intent kinds:**\n * - `{ kind: 'feature', featureRef }` — answers \"I'm editing this\n * feature, what is its market context?\". Surfaces every benefit\n * whose `deliveredByFeatureRefs[]` contains `featureRef`, the\n * ICPs those benefits matter to, and the anti-target ICPs that\n * would be repelled by them.\n * - `{ kind: 'icp', icpRef }` — answers \"I'm writing copy for this\n * ICP, what's their world?\". Surfaces the ICP's pains/gains/jobs,\n * the benefits whose `importanceByICP[]` weights them at >= 5,\n * and their preferred voice.\n *\n * **Section order (load-bearing — consumers may rely on it):**\n * 1. `## Market context` header (with intent line)\n * 2. `### Category`\n * 3. `### Benefits in scope`\n * 4. `### Most-affected ICPs`\n * 5. `### Anti-target ICPs (do not pitch)`\n * 6. `### Tone of voice`\n * 7. `### Open questions / low-confidence entries` (skipped if empty)\n * 8. `### Output language` (only when `outputLanguage` is set)\n *\n * Empty sections are kept (with an explicit `_(none)_` line) for\n * sections 2–6 so the LLM sees the absence rather than silently\n * inferring it. Section 7 is the lone exception — empty\n * \"low-confidence\" lists carry no signal and are dropped.\n */\nexport interface MarketContextBlockInput {\n /** Validated `MarketSnapshot`. Caller is responsible for running\n * `validateMarketSnapshot` first; this builder trusts the input. */\n snapshot: MarketSnapshot;\n intent:\n | { kind: 'feature'; featureRef: string }\n | { kind: 'icp'; icpRef: string };\n /** Optional BCP-47 tag (e.g. `'fr'`, `'pt-BR'`). When set, the\n * builder appends an \"Output language\" instruction; never\n * translates the body. */\n outputLanguage?: string;\n}\n\n/**\n * Trace of the entities the builder considered. Useful for the CLI's\n * `--explain` mode and for unit tests that assert \"the builder\n * picked the right ICP\" without parsing prose.\n *\n * **Schema contract.** This interface is intentionally kept\n * structurally compatible with the public `MarketContextBlockTraceSchema`\n * contract exported by `@wildo-ai/saas-specifications`\n * — the Phase-4.2 market generation CLI parses the companion HTTP\n * response against that Zod schema. Any drift between this\n * interface and that schema must be reflected on **both** sides\n * (the schema is the cross-process contract; this interface is the\n * local renderer typing).\n */\nexport interface MarketContextBlockTrace {\n /** Refs of every ICP whose section was rendered. Order matches\n * the rendered output: feature intent → score-desc / priority /\n * ref; icp intent → single requested ref or empty. */\n icpsConsidered: string[];\n /** Ordered (by ref) refs of every benefit whose section was rendered. */\n benefitsConsidered: string[];\n /** Ref of the tone of voice whose do/don't were rendered, or `null`. */\n voiceUsed: string | null;\n}\n\nexport interface MarketContextBlockResult {\n /** English markdown prose, ready to concatenate with a template. */\n block: string;\n trace: MarketContextBlockTrace;\n}\n\nconst ICP_PRIORITY_RANK: Record<ICPPriority, number> = {\n [ICPPriority.CORE]: 0,\n [ICPPriority.EXPANSION]: 1,\n [ICPPriority.EXPLORATORY]: 2,\n [ICPPriority.DEFERRED]: 3,\n [ICPPriority.ANTI_TARGET]: 4,\n};\n\n/** Per-ICP fitness threshold for the `icp` intent's \"Benefits in scope\"\n * section. Benefits with `importanceByICP[icp].weight >= 5` are\n * considered relevant; below 5 the benefit is \"noise\" for that ICP. */\nconst ICP_BENEFIT_RELEVANCE_THRESHOLD = 5;\n\n/** Maximum number of \"Most-affected ICPs\" lines rendered for the\n * `feature` intent. Plan §10.2 caps at 3: the prompt should\n * surface the *primary* audiences for a feature edit, not enumerate\n * every ICP that mentioned it. The cap also keeps prompts short for\n * snapshots with dozens of ICPs. */\nconst MAX_AFFECTED_ICPS_RENDERED = 3;\n\n/** Defensive cap on the `outputLanguage` value rendered into the\n * prompt. BCP-47 language tags are short by spec (the longest\n * registered tag is well under 35 chars); a value longer than this\n * is a misuse — most likely a caller pasted a paragraph instead of\n * a tag. We refuse rather than silently embed garbage in the LLM\n * prompt. The companion handlers also validate at the request\n * boundary; this is a defense-in-depth guard for direct callers. */\nconst MAX_OUTPUT_LANGUAGE_LENGTH = 64;\n\nexport function buildMarketContextBlock(\n input: MarketContextBlockInput,\n): MarketContextBlockResult {\n const { snapshot, intent, outputLanguage } = input;\n\n const icpsByRef = new Map(snapshot.icps.map(icp => [icp.ref, icp] as const));\n const benefitsByRef = new Map(snapshot.benefits.map(b => [b.ref, b] as const));\n const voicesByRef = new Map(snapshot.tonesOfVoice.map(v => [v.ref, v] as const));\n\n const benefitsInScope = collectBenefitsInScope(snapshot, intent);\n const affectedIcps = collectAffectedIcps(intent, benefitsInScope, icpsByRef);\n const antiTargetIcps = snapshot.icps\n .filter(icp => icp.priority === ICPPriority.ANTI_TARGET)\n .slice()\n .sort(compareByRef);\n\n const voice = pickPreferredVoice({\n intent,\n icpsByRef,\n affectedIcps,\n voicesByRef,\n });\n\n const lowConfidenceEntries = collectLowConfidenceEntries({\n intent,\n snapshot,\n benefitsInScope,\n affectedIcps,\n });\n\n const lines: string[] = [];\n\n lines.push(renderHeader(intent));\n lines.push('');\n lines.push(renderCategorySection(snapshot));\n lines.push('');\n lines.push(renderBenefitsSection(benefitsInScope));\n lines.push('');\n lines.push(renderAffectedIcpsSection(affectedIcps, intent, benefitsInScope));\n lines.push('');\n lines.push(renderAntiTargetSection(antiTargetIcps));\n lines.push('');\n lines.push(renderVoiceSection(voice));\n\n if (lowConfidenceEntries.length > 0) {\n lines.push('');\n lines.push(renderLowConfidenceSection(lowConfidenceEntries));\n }\n\n const normalizedOutputLanguage = normalizeOutputLanguage(outputLanguage);\n if (normalizedOutputLanguage) {\n lines.push('');\n lines.push(renderOutputLanguageSection(normalizedOutputLanguage));\n }\n\n return {\n block: lines.join('\\n'),\n trace: {\n icpsConsidered: affectedIcps.map(icp => icp.ref),\n benefitsConsidered: benefitsInScope.map(b => b.ref),\n voiceUsed: voice?.ref ?? null,\n },\n };\n}\n\n// ---------------------------------------------------------------------------\n// Collection helpers\n// ---------------------------------------------------------------------------\n\nfunction collectBenefitsInScope(\n snapshot: MarketSnapshot,\n intent: MarketContextBlockInput['intent'],\n): FeatureBenefitConfig[] {\n if (intent.kind === 'feature') {\n return snapshot.benefits\n .filter(b => b.deliveredByFeatureRefs.includes(intent.featureRef))\n .slice()\n .sort(compareByRef);\n }\n\n return snapshot.benefits\n .filter(b =>\n b.importanceByICP.some(\n imp =>\n imp.icpRef === intent.icpRef &&\n imp.weight >= ICP_BENEFIT_RELEVANCE_THRESHOLD,\n ),\n )\n .slice()\n .sort(compareByRef);\n}\n\n/**\n * Per-ICP score for the `feature` intent's `### Most-affected ICPs`\n * ranking. Plan §10.2 calls for `weight × pain/gain degree`. Concretely:\n *\n * score(icp) = max over benefits-in-scope of (\n * importanceByICP[icp].weight × max(degree across that benefit's\n * relieves[] / creates[] / advances[] edges)\n * )\n *\n * **Why max-of-max instead of a sum.** A benefit's degree edges are\n * authored as \"this benefit relieves pain X to degree 9\" — they\n * describe the **strength of one outcome**, not a list of outcomes\n * to add up. Summing across edges would over-weight benefits with\n * many shallow edges; summing across benefits would over-weight ICPs\n * that appear on lots of mid-importance benefits. The signal we want\n * for \"most-affected ICPs\" is \"what is the strongest claim this\n * feature lets us make for this ICP\", which is a max-of-max.\n *\n * **Tie-breaks are deterministic** (rank → ref) so the rendered\n * output is snapshot-stable.\n */\nfunction scoreIcpForFeatureIntent(\n icpRef: string,\n benefitsInScope: FeatureBenefitConfig[],\n): number {\n let best = 0;\n for (const benefit of benefitsInScope) {\n const weight = benefit.importanceByICP.find(imp => imp.icpRef === icpRef)?.weight;\n if (weight === undefined || weight <= 0) continue;\n let bestDegree = 0;\n for (const edge of benefit.relieves) bestDegree = Math.max(bestDegree, edge.degree);\n for (const edge of benefit.creates) bestDegree = Math.max(bestDegree, edge.degree);\n for (const edge of benefit.advances) bestDegree = Math.max(bestDegree, edge.degree);\n // Benefits with no degree edges still carry weight signal — use 1\n // as a neutral multiplier so a weight-only ranking still differentiates.\n const benefitScore = weight * (bestDegree > 0 ? bestDegree : 1);\n if (benefitScore > best) best = benefitScore;\n }\n return best;\n}\n\nfunction collectAffectedIcps(\n intent: MarketContextBlockInput['intent'],\n benefitsInScope: FeatureBenefitConfig[],\n icpsByRef: Map<string, MarketICPConfig>,\n): MarketICPConfig[] {\n if (intent.kind === 'icp') {\n const icp = icpsByRef.get(intent.icpRef);\n return icp ? [icp] : [];\n }\n\n const refs = new Set<string>();\n for (const benefit of benefitsInScope) {\n for (const imp of benefit.importanceByICP) {\n refs.add(imp.icpRef);\n }\n }\n\n type ScoredIcp = { icp: MarketICPConfig; score: number };\n const scored: ScoredIcp[] = [];\n for (const ref of refs) {\n const icp = icpsByRef.get(ref);\n if (!icp || icp.priority === ICPPriority.ANTI_TARGET) continue;\n scored.push({ icp, score: scoreIcpForFeatureIntent(ref, benefitsInScope) });\n }\n\n // Primary sort: weighted score (descending). Ties: priority rank\n // (CORE before EXPANSION before lower priorities). Final tie-break:\n // ref (alphabetical) for snapshot-stable output.\n scored.sort((a, b) => {\n if (a.score !== b.score) return b.score - a.score;\n const rankDelta = ICP_PRIORITY_RANK[a.icp.priority] - ICP_PRIORITY_RANK[b.icp.priority];\n if (rankDelta !== 0) return rankDelta;\n return compareByRef(a.icp, b.icp);\n });\n\n return scored.slice(0, MAX_AFFECTED_ICPS_RENDERED).map(entry => entry.icp);\n}\n\nfunction pickPreferredVoice(params: {\n intent: MarketContextBlockInput['intent'];\n icpsByRef: Map<string, MarketICPConfig>;\n affectedIcps: MarketICPConfig[];\n voicesByRef: Map<string, ToneOfVoiceConfig>;\n}): ToneOfVoiceConfig | null {\n const { intent, icpsByRef, affectedIcps, voicesByRef } = params;\n\n if (intent.kind === 'icp') {\n const icp = icpsByRef.get(intent.icpRef);\n if (icp?.preferredVoiceRef) {\n const voice = voicesByRef.get(icp.preferredVoiceRef);\n if (voice) return voice;\n }\n }\n\n for (const icp of affectedIcps) {\n if (icp.preferredVoiceRef) {\n const voice = voicesByRef.get(icp.preferredVoiceRef);\n if (voice) return voice;\n }\n }\n\n return null;\n}\n\ninterface LowConfidenceEntry {\n /** Dotted path inside the snapshot. */\n path: string;\n /** Display name of the entity (best-effort: `name` if present, else `ref`). */\n label: string;\n notes?: string;\n}\n\nfunction collectLowConfidenceEntries(params: {\n intent: MarketContextBlockInput['intent'];\n snapshot: MarketSnapshot;\n benefitsInScope: FeatureBenefitConfig[];\n affectedIcps: MarketICPConfig[];\n}): LowConfidenceEntry[] {\n const { intent, snapshot, benefitsInScope, affectedIcps } = params;\n const entries: LowConfidenceEntry[] = [];\n\n if (isLowConfidence(snapshot.category.authored)) {\n entries.push({\n path: 'category',\n label: snapshot.category.name,\n notes: snapshot.category.authored?.notes,\n });\n }\n\n for (const icp of affectedIcps) {\n if (isLowConfidence(icp.authored)) {\n entries.push({\n path: `icps[${snapshot.icps.indexOf(icp)}]`,\n label: icp.name,\n notes: icp.authored?.notes,\n });\n }\n }\n\n for (const benefit of benefitsInScope) {\n if (isLowConfidence(benefit.authored)) {\n entries.push({\n path: `benefits[${snapshot.benefits.indexOf(benefit)}]`,\n label: benefit.claim,\n notes: benefit.authored?.notes,\n });\n }\n }\n\n // Personas: surface LOW-confidence personas whose `belongsToIcpRefs[]`\n // intersects the **affected ICPs** for either intent kind. Under\n // `icp` intent this is the requested ICP itself; under `feature`\n // intent it's any ICP that the renderer surfaced under\n // \"Most-affected ICPs\". Restricting to affected ICPs keeps the\n // section signal-dense — we don't dump every LOW persona in the\n // snapshot, only the ones the LLM is about to write copy for.\n const affectedIcpRefs = new Set(affectedIcps.map(i => i.ref));\n if (affectedIcpRefs.size > 0) {\n for (const persona of snapshot.personas) {\n if (!isLowConfidence(persona.authored)) continue;\n if (!persona.belongsToIcpRefs.some(ref => affectedIcpRefs.has(ref))) continue;\n entries.push({\n path: `personas[${snapshot.personas.indexOf(persona)}]`,\n label: persona.name,\n notes: persona.authored?.notes,\n });\n }\n }\n\n return entries;\n}\n\nfunction isLowConfidence(authored: MarketAuthoredMetadata | undefined): boolean {\n return authored?.confidence === AuthoredConfidence.LOW;\n}\n\nfunction compareByRef<T extends { ref: string }>(a: T, b: T): number {\n return a.ref.localeCompare(b.ref);\n}\n\n// ---------------------------------------------------------------------------\n// Render helpers\n// ---------------------------------------------------------------------------\n\nfunction renderHeader(intent: MarketContextBlockInput['intent']): string {\n const intentLine =\n intent.kind === 'feature'\n ? `(intent: feature \\`${intent.featureRef}\\`)`\n : `(intent: icp \\`${intent.icpRef}\\`)`;\n return `## Market context ${intentLine}`;\n}\n\nfunction renderCategorySection(snapshot: MarketSnapshot): string {\n const { name, definition } = snapshot.category;\n return [\n '### Category',\n `- **Name:** ${name}`,\n `- **Definition:** ${definition}`,\n ].join('\\n');\n}\n\nfunction renderBenefitsSection(benefits: FeatureBenefitConfig[]): string {\n const lines = ['### Benefits in scope'];\n if (benefits.length === 0) {\n lines.push('_(none)_');\n return lines.join('\\n');\n }\n for (const benefit of benefits) {\n const edges: string[] = [];\n for (const e of benefit.relieves) {\n edges.push(`relieves \\`${e.painRef}\\` (degree ${e.degree})`);\n }\n for (const e of benefit.creates) {\n edges.push(`creates \\`${e.gainRef}\\` (degree ${e.degree})`);\n }\n for (const e of benefit.advances) {\n edges.push(`advances \\`${e.jobRef}\\` (degree ${e.degree})`);\n }\n const edgeSummary = edges.length > 0 ? ` — ${edges.join('; ')}` : '';\n lines.push(`- **${benefit.claim}** (\\`${benefit.ref}\\`, role ${benefit.role})${edgeSummary}`);\n }\n return lines.join('\\n');\n}\n\nfunction renderAffectedIcpsSection(\n icps: MarketICPConfig[],\n intent: MarketContextBlockInput['intent'],\n benefitsInScope: FeatureBenefitConfig[],\n): string {\n const heading =\n intent.kind === 'feature'\n ? '### Most-affected ICPs'\n : '### ICP profile';\n const lines = [heading];\n if (icps.length === 0) {\n lines.push('_(none)_');\n return lines.join('\\n');\n }\n\n for (const icp of icps) {\n const relevantImportance = benefitsInScope\n .flatMap(b => b.importanceByICP)\n .filter(imp => imp.icpRef === icp.ref);\n const kanoSummary =\n relevantImportance.length > 0\n ? ` — kano: ${relevantImportance\n .map(i => `${i.kanoCategory}@${i.weight}`)\n .join(', ')}`\n : '';\n lines.push(\n `- **${icp.name}** (\\`${icp.ref}\\`, priority ${icp.priority}, archetype ${icp.archetype})${kanoSummary}`,\n );\n }\n\n return lines.join('\\n');\n}\n\nfunction renderAntiTargetSection(icps: MarketICPConfig[]): string {\n const lines = ['### Anti-target ICPs (do not pitch)'];\n if (icps.length === 0) {\n lines.push('_(none)_');\n return lines.join('\\n');\n }\n for (const icp of icps) {\n lines.push(`- **${icp.name}** (\\`${icp.ref}\\`, archetype ${icp.archetype})`);\n }\n return lines.join('\\n');\n}\n\nfunction renderVoiceSection(voice: ToneOfVoiceConfig | null): string {\n const lines = ['### Tone of voice'];\n if (!voice) {\n lines.push('_(none — fall back to neutral)_');\n return lines.join('\\n');\n }\n lines.push(`- **${voice.name}** (\\`${voice.ref}\\`) — ${voice.description}`);\n lines.push(`- **address:** ${voice.address}`);\n lines.push(`- **do:** ${voice.doExamples.map(s => `\"${s}\"`).join('; ')}`);\n lines.push(`- **don't:** ${voice.dontExamples.map(s => `\"${s}\"`).join('; ')}`);\n return lines.join('\\n');\n}\n\nfunction renderLowConfidenceSection(entries: LowConfidenceEntry[]): string {\n const lines = ['### Open questions / low-confidence entries'];\n for (const entry of entries) {\n const noteSuffix = entry.notes ? ` — ${entry.notes}` : '';\n lines.push(`- \\`${entry.path}\\` **${entry.label}**${noteSuffix}`);\n }\n return lines.join('\\n');\n}\n\n/**\n * Trim and validate an `outputLanguage` value before it lands inside\n * the prompt. Returns `undefined` for missing / empty / whitespace-only\n * inputs (so the section is skipped entirely). Throws for values\n * longer than {@link MAX_OUTPUT_LANGUAGE_LENGTH} — that's a caller\n * misuse (e.g. pasting a paragraph instead of a tag).\n */\nfunction normalizeOutputLanguage(value: string | undefined): string | undefined {\n if (value === undefined) return undefined;\n const trimmed = value.trim();\n if (trimmed.length === 0) return undefined;\n if (trimmed.length > MAX_OUTPUT_LANGUAGE_LENGTH) {\n throw new Error(\n `buildMarketContextBlock: \\`outputLanguage\\` is ${trimmed.length} chars long `\n + `(max ${MAX_OUTPUT_LANGUAGE_LENGTH}). Pass a BCP-47 tag (e.g. \\`'fr'\\`, \\`'pt-BR'\\`), `\n + `not a sentence — translation prose belongs in the LLM output, not the tag.`,\n );\n }\n return trimmed;\n}\n\nfunction renderOutputLanguageSection(outputLanguage: string): string {\n return [\n '### Output language',\n `Produce the final output in \\`${outputLanguage}\\`. The market context above is English on purpose — do not translate it; translate at output time only.`,\n ].join('\\n');\n}\n/** @wildo_source:part:end market.context-block.builder */\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"market-prompt-renderer.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"market-prompt-renderer.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/market-prompt-renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAM1B,KAAK,cAAc,EACpB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAqDzE,MAAM,WAAW,mBAAmB;IAClC,mEAAmE;IACnE,WAAW,EAAE,MAAM,CAAC;IACpB,+DAA+D;IAC/D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mEAAmE;IACnE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uEAAuE;IACvE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uEAAuE;IACvE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2EAA2E;IAC3E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kEAAkE;IAClE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,yBAAyB;IACxC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,kBAAkB;IACjC,mEAAmE;IACnE,MAAM,EAAE,MAAM,CAAC;IACf,6EAA6E;IAC7E,gBAAgB,EAAE,MAAM,CAAC;IACzB,yEAAyE;IACzE,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE;QACL,QAAQ,EAAE,yBAAyB,CAAC;QACpC,OAAO,EAAE,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC,OAAO,CAAC,CAAC;QAC7D,8DAA8D;QAC9D,cAAc,EAAE,MAAM,CAAC;QACvB,oFAAoF;QACpF,cAAc,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;KACjD,CAAC;CACH;AAED,qBAAa,mCAAoC,SAAQ,KAAK;IAC5D,SAAgB,YAAY,EAAE,MAAM,EAAE,CAAC;gBAC3B,YAAY,EAAE,MAAM,EAAE;CAQnC;AAED,qBAAa,qCAAsC,SAAQ,KAAK;IAC9D,SAAgB,OAAO,EAAE,0BAA0B,EAAE,CAAC;gBAC1C,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,0BAA0B,EAAE;CAQvE;AAED,qBAAa,2BAA4B,SAAQ,KAAK;IACpD,SAAgB,UAAU,EAAE,MAAM,CAAC;IACnC,SAAgB,WAAW,EAAE,MAAM,CAAC;gBACxB,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE;CASzE;AAED,qBAAa,iCAAkC,SAAQ,KAAK;gBAC9C,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE;CAOrD;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,cAAc,CAAC;IACzB,OAAO,EAAE,mBAAmB,CAAC;CAC9B;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,GAAG,kBAAkB,CAuFrF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"market-prompt-renderer.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/subprocess/market-prompt-renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,GAO3B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAEzE;;;;;;;;;;;;;;;;;;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,SAAS,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC","sourcesContent":["import {\n MarketMessageRequiredInput,\n type FeatureBenefitConfig,\n type MarketICPConfig,\n type MarketChannelConfig,\n type MarketMessageTemplateConfig,\n type MarketObjectionConfig,\n type MarketSnapshot,\n} from '@wildo-ai/saas-specifications';\n\nimport { buildMarketContextBlock } from './market-context-block.builder';\n\n/**\n * @wildo_source:part:start companion.market.prompt-renderer facet:layer:companion facet:family:market\n *\n * Phase-4.2 market generation prompt renderer.\n *\n * Pure, deterministic, snapshot-in / prompt-out. Lives in the\n * introspection subprocess (the same process that owns\n * `buildMarketContextBlock`) so the parent companion process never\n * has to load `marketSpecification` to compose a prompt.\n *\n * Pipeline (no LLM, no I/O):\n *\n * 1. **Look up the template** by `templateRef`. Throw if absent.\n * 2. **Resolve every `requiredInputs[]` ref** the template declares\n * against the snapshot — throw if any required input is missing\n * from the caller's payload, or if a provided ref is unknown.\n * 3. **Pick the context-block intent**:\n * - `featureRef` provided → `{ kind: 'feature', featureRef }` (the\n * builder already filters benefits-in-scope correctly).\n * - else `icpRef` provided → `{ kind: 'icp', icpRef }`.\n * - else throw — every Phase-4.2 template needs at least one\n * anchor for the context block.\n * 4. **Call `buildMarketContextBlock(...)`** to get the English\n * context block + trace.\n * 5. **Substitute Mustache placeholders** in `template.promptTemplate`\n * using a tiny single-pass `{{path}}` resolver that walks\n * dot-paths against the resolved entity map. `{{output_language}}`\n * is wired specifically (the value comes from the CLI flag, not\n * from a snapshot entity). Unknown placeholders surface a\n * `MarketPromptUnknownPlaceholderError` so authoring drift is\n * caught loudly rather than rendered as the empty string.\n * 6. **Concatenate**: `<context block>\\n\\n<rendered template body>`.\n *\n * The renderer intentionally does NOT call `validateMarketSnapshot`\n * — the caller (`resolveMarketSnapshot` in the handler) already did\n * that with WARN-vs-ERROR semantics. Calling it again here would\n * either duplicate WARN logging or risk a different validation\n * surface drifting from the canonical entry point.\n */\n\n/** Maximum length of the BCP-47 `outputLanguage` tag — defensive guard\n * mirroring `MAX_OUTPUT_LANGUAGE_LENGTH` in `market-context-block.builder.ts`.\n * Long values almost always indicate the operator pasted a sentence\n * instead of a tag (e.g. \"translate the result into Brazilian Portuguese\"). */\nconst MAX_OUTPUT_LANGUAGE_LENGTH = 64;\n\n/** Default `output_language` used when the CLI does not pass `--output-language`.\n * Keeps every template's `{{output_language}}` placeholder render-safe and\n * defaults to the English-authoring contract (D15). */\nconst DEFAULT_OUTPUT_LANGUAGE = 'English';\n\nexport interface MarketPromptRequest {\n /** Required — every render is anchored on exactly one template. */\n templateRef: string;\n /** ICP ref — required when the template declares `ICP_REF`. */\n icpRef?: string;\n /** Feature ref — drives the context-block intent when provided. */\n featureRef?: string;\n /** Benefit ref — required when the template declares `BENEFIT_REF`. */\n benefitRef?: string;\n /** Channel ref — required when the template declares `CHANNEL_REF`. */\n channelRef?: string;\n /** Objection ref — required when the template declares `OBJECTION_REF`. */\n objectionRef?: string;\n /** BCP-47 tag for the LLM's `{{output_language}}` placeholder. */\n outputLanguage?: string;\n}\n\nexport interface MarketPromptTemplateTrace {\n ref: string;\n name: string;\n outputKind: string;\n requiredInputs: string[];\n preferredVoiceRef?: string;\n}\n\nexport interface MarketPromptResult {\n /** Final prompt: `<context block>\\n\\n<rendered template body>`. */\n prompt: string;\n /** Just the rendered template body, post-substitution (useful for trace). */\n renderedTemplate: string;\n /** Just the context block (useful for trace + dry-run / `--explain`). */\n contextBlock: string;\n trace: {\n template: MarketPromptTemplateTrace;\n context: ReturnType<typeof buildMarketContextBlock>['trace'];\n /** The exact `output_language` value that was substituted. */\n outputLanguage: string;\n /** Refs the renderer actually consumed (subset of `MarketMessageRequiredInput`). */\n consumedInputs: { kind: string; ref: string }[];\n };\n}\n\nexport class MarketPromptUnknownPlaceholderError extends Error {\n public readonly placeholders: string[];\n constructor(placeholders: string[]) {\n super(\n `Market generation prompt has unknown placeholder(s): ${placeholders.map(p => `\\`{{${p}}}\\``).join(', ')}. `\n + `Add the corresponding entity to the snapshot, fix the placeholder name, or remove it from the template body.`,\n );\n this.name = 'MarketPromptUnknownPlaceholderError';\n this.placeholders = placeholders;\n }\n}\n\nexport class MarketPromptMissingRequiredInputError extends Error {\n public readonly missing: MarketMessageRequiredInput[];\n constructor(templateRef: string, missing: MarketMessageRequiredInput[]) {\n super(\n `Template \\`${templateRef}\\` declares requiredInputs ${missing.map(m => `\\`${m}\\``).join(', ')} `\n + `but the caller did not provide them. Pass the matching CLI flag(s) (e.g. \\`--icp\\`, \\`--benefit\\`, \\`--objection\\`, \\`--channel\\`).`,\n );\n this.name = 'MarketPromptMissingRequiredInputError';\n this.missing = missing;\n }\n}\n\nexport class MarketPromptUnknownRefError extends Error {\n public readonly entityKind: string;\n public readonly providedRef: string;\n constructor(entityKind: string, providedRef: string, knownRefs: string[]) {\n super(\n `No ${entityKind} found with ref \\`${providedRef}\\` in the authored MarketSnapshot. `\n + `Known ${entityKind} refs: ${knownRefs.length > 0 ? knownRefs.map(r => `\\`${r}\\``).join(', ') : '(none)'}.`,\n );\n this.name = 'MarketPromptUnknownRefError';\n this.entityKind = entityKind;\n this.providedRef = providedRef;\n }\n}\n\nexport class MarketPromptTemplateNotFoundError extends Error {\n constructor(templateRef: string, knownRefs: string[]) {\n super(\n `No MarketMessageTemplate found with ref \\`${templateRef}\\`. `\n + `Known templates: ${knownRefs.length > 0 ? knownRefs.map(r => `\\`${r}\\``).join(', ') : '(none — author one in `specifications/src/market/messaging/`)'}.`,\n );\n this.name = 'MarketPromptTemplateNotFoundError';\n }\n}\n\nexport interface RenderMarketPromptInput {\n snapshot: MarketSnapshot;\n request: MarketPromptRequest;\n}\n\nexport function renderMarketPrompt(input: RenderMarketPromptInput): MarketPromptResult {\n const { snapshot, request } = input;\n const template = lookupTemplate(snapshot, request.templateRef);\n const outputLanguage = normalizeOutputLanguage(request.outputLanguage);\n\n // Resolve only the entities referenced by `requiredInputs`. Extra\n // refs the caller passes (e.g. `--feature` purely for context-block\n // intent) are not enforced as required and are NOT placed into the\n // Mustache substitution map.\n const resolvedEntities: PlaceholderEntities = {};\n const consumedInputs: { kind: string; ref: string }[] = [];\n const missing: MarketMessageRequiredInput[] = [];\n\n for (const requiredInput of template.requiredInputs ?? []) {\n switch (requiredInput) {\n case MarketMessageRequiredInput.ICP_REF: {\n if (!request.icpRef) { missing.push(requiredInput); break; }\n resolvedEntities.icp = lookupIcp(snapshot, request.icpRef);\n resolvedEntities.icpRef = request.icpRef;\n consumedInputs.push({ kind: 'icp', ref: request.icpRef });\n break;\n }\n case MarketMessageRequiredInput.BENEFIT_REF: {\n if (!request.benefitRef) { missing.push(requiredInput); break; }\n resolvedEntities.benefit = lookupBenefit(snapshot, request.benefitRef);\n resolvedEntities.benefitRef = request.benefitRef;\n consumedInputs.push({ kind: 'benefit', ref: request.benefitRef });\n break;\n }\n case MarketMessageRequiredInput.CHANNEL_REF: {\n if (!request.channelRef) { missing.push(requiredInput); break; }\n resolvedEntities.channel = lookupChannel(snapshot, request.channelRef);\n resolvedEntities.channelRef = request.channelRef;\n consumedInputs.push({ kind: 'channel', ref: request.channelRef });\n break;\n }\n case MarketMessageRequiredInput.OBJECTION_REF: {\n if (!request.objectionRef) { missing.push(requiredInput); break; }\n resolvedEntities.objection = lookupObjection(snapshot, request.objectionRef);\n resolvedEntities.objectionRef = request.objectionRef;\n consumedInputs.push({ kind: 'objection', ref: request.objectionRef });\n break;\n }\n }\n }\n\n if (missing.length > 0) {\n throw new MarketPromptMissingRequiredInputError(template.ref, missing);\n }\n\n // Context-block intent — feature wins over icp when both are\n // provided, mirroring `buildMarketContextBlock`'s feature-first\n // semantics (a feature anchor produces a tighter benefit set).\n const intent = pickContextIntent(request);\n const contextBuilt = buildMarketContextBlock({\n snapshot,\n intent,\n outputLanguage: request.outputLanguage,\n });\n\n const renderedTemplate = renderMustache(\n template.promptTemplate,\n {\n ...resolvedEntities,\n output_language: outputLanguage,\n },\n );\n\n const prompt = `${contextBuilt.block}\\n\\n${renderedTemplate}`;\n\n return {\n prompt,\n renderedTemplate,\n contextBlock: contextBuilt.block,\n trace: {\n template: {\n ref: template.ref,\n name: template.name,\n outputKind: String(template.outputKind),\n requiredInputs: (template.requiredInputs ?? []).map(String),\n ...(template.preferredVoiceRef ? { preferredVoiceRef: template.preferredVoiceRef } : {}),\n },\n context: contextBuilt.trace,\n outputLanguage,\n consumedInputs,\n },\n };\n}\n\n/** @wildo_source:part:end companion.market.prompt-renderer */\n\n// ---------------------------------------------------------------------------\n// Internal helpers — kept module-private (no broad export) so the public\n// surface stays focused on `renderMarketPrompt(...)`.\n// ---------------------------------------------------------------------------\n\ninterface PlaceholderEntities {\n icp?: MarketICPConfig;\n icpRef?: string;\n benefit?: FeatureBenefitConfig;\n benefitRef?: string;\n channel?: MarketChannelConfig;\n channelRef?: string;\n objection?: MarketObjectionConfig;\n objectionRef?: string;\n output_language?: string;\n}\n\nfunction lookupTemplate(\n snapshot: MarketSnapshot,\n templateRef: string,\n): MarketMessageTemplateConfig {\n const template = snapshot.messageTemplates.find(t => t.ref === templateRef);\n if (!template) {\n throw new MarketPromptTemplateNotFoundError(\n templateRef,\n snapshot.messageTemplates.map(t => t.ref),\n );\n }\n return template;\n}\n\nfunction lookupIcp(snapshot: MarketSnapshot, ref: string): MarketICPConfig {\n const found = snapshot.icps.find(i => i.ref === ref);\n if (!found) throw new MarketPromptUnknownRefError('ICP', ref, snapshot.icps.map(i => i.ref));\n return found;\n}\n\nfunction lookupBenefit(snapshot: MarketSnapshot, ref: string): FeatureBenefitConfig {\n const found = snapshot.benefits.find(b => b.ref === ref);\n if (!found) throw new MarketPromptUnknownRefError('benefit', ref, snapshot.benefits.map(b => b.ref));\n return found;\n}\n\nfunction lookupChannel(snapshot: MarketSnapshot, ref: string): MarketChannelConfig {\n const found = snapshot.channels.find(c => c.ref === ref);\n if (!found) throw new MarketPromptUnknownRefError('channel', ref, snapshot.channels.map(c => c.ref));\n return found;\n}\n\nfunction lookupObjection(snapshot: MarketSnapshot, ref: string): MarketObjectionConfig {\n const found = snapshot.objections.find(o => o.ref === ref);\n if (!found) throw new MarketPromptUnknownRefError('objection', ref, snapshot.objections.map(o => o.ref));\n return found;\n}\n\nfunction pickContextIntent(\n request: MarketPromptRequest,\n):\n | { kind: 'feature'; featureRef: string }\n | { kind: 'icp'; icpRef: string }\n{\n if (request.featureRef) return { kind: 'feature', featureRef: request.featureRef };\n if (request.icpRef) return { kind: 'icp', icpRef: request.icpRef };\n throw new Error(\n 'market-render-prompt requires either `featureRef` or `icpRef` to anchor the '\n + 'context block. Pass `--feature <ref>` and/or `--icp <ref>` on the CLI.',\n );\n}\n\nfunction normalizeOutputLanguage(value: string | undefined): string {\n if (value === undefined) return DEFAULT_OUTPUT_LANGUAGE;\n const trimmed = value.trim();\n if (trimmed.length === 0) return DEFAULT_OUTPUT_LANGUAGE;\n if (trimmed.length > MAX_OUTPUT_LANGUAGE_LENGTH) {\n throw new Error(\n `renderMarketPrompt: \\`outputLanguage\\` is ${trimmed.length} chars long `\n + `(max ${MAX_OUTPUT_LANGUAGE_LENGTH}). Pass a BCP-47 tag (e.g. \\`'fr'\\`, \\`'pt-BR'\\`), `\n + `not a sentence — translation prose belongs in the LLM output, not the tag.`,\n );\n }\n return trimmed;\n}\n\n/**\n * Tiny single-pass `{{path}}` Mustache renderer.\n *\n * Handles only the subset Phase-4.2 templates use: dot-path lookups\n * (`{{icp.name}}`, `{{benefit.claim}}`), bare entity-ref tokens\n * (`{{icpRef}}`), and the special `{{output_language}}` slot. Section\n * tokens (`{{#…}}` / `{{^…}}` / `{{/…}}`) and comment tokens are\n * intentionally NOT supported — the validator's\n * `MESSAGE_TEMPLATE_PLACEHOLDER_MISMATCH` rule already rejects them\n * implicitly because they don't match the Phase-4 placeholder regex.\n */\nfunction renderMustache(\n body: string,\n context: PlaceholderEntities,\n): string {\n const unknownPlaceholders: string[] = [];\n const rendered = body.replace(/\\{\\{\\s*([^{}#^/!\\s][^{}]*?)\\s*\\}\\}/g, (_match, expr: string) => {\n const value = resolvePath(context as unknown as Record<string, unknown>, expr);\n if (value === undefined) {\n unknownPlaceholders.push(expr);\n return '';\n }\n return stringifyForPrompt(value);\n });\n if (unknownPlaceholders.length > 0) {\n // De-dup so the error surface stays scannable.\n throw new MarketPromptUnknownPlaceholderError([...new Set(unknownPlaceholders)]);\n }\n return rendered;\n}\n\nfunction resolvePath(root: Record<string, unknown>, dottedPath: string): unknown {\n const parts = dottedPath.split('.').map(p => p.trim()).filter(Boolean);\n if (parts.length === 0) return undefined;\n let cursor: unknown = root;\n for (const part of parts) {\n if (cursor === null || cursor === undefined) return undefined;\n if (typeof cursor !== 'object') return undefined;\n cursor = (cursor as Record<string, unknown>)[part];\n }\n return cursor;\n}\n\nfunction stringifyForPrompt(value: unknown): string {\n if (value === null || value === undefined) return '';\n if (typeof value === 'string') return value;\n if (typeof value === 'number' || typeof value === 'boolean' || typeof value === 'bigint') {\n return String(value);\n }\n if (Array.isArray(value)) {\n return value.map(stringifyForPrompt).join(', ');\n }\n // Object — fall back to compact JSON so the operator at least sees\n // structure rather than `[object Object]`.\n try {\n return JSON.stringify(value);\n } catch {\n return '';\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"market-prompt-renderer.js","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/market-prompt-renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,GAO3B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAEzE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH;;;+EAG+E;AAC/E,MAAM,0BAA0B,GAAG,EAAE,CAAC;AAEtC;;uDAEuD;AACvD,MAAM,uBAAuB,GAAG,SAAS,CAAC;AA4C1C,MAAM,OAAO,mCAAoC,SAAQ,KAAK;IAC5C,YAAY,CAAW;IACvC,YAAY,YAAsB;QAChC,K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,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACvE,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IACzC,IAAI,MAAM,GAAY,IAAI,CAAC;IAC3B,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,IAAI,MAAM,KAAK,IAAI,IAAI,MAAM,KAAK,SAAS;YAAE,OAAO,SAAS,CAAC;QAC9D,IAAI,OAAO,MAAM,KAAK,QAAQ;YAAE,OAAO,SAAS,CAAC;QACjD,MAAM,GAAI,MAAkC,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,kBAAkB,CAAC,KAAc;IACxC,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,EAAE,CAAC;IACrD,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC5C,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,SAAS,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACzF,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;IACD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,KAAK,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC;IACD,mEAAmE;IACnE,2CAA2C;IAC3C,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC","sourcesContent":["import {\n MarketMessageRequiredInput,\n type FeatureBenefitConfig,\n type MarketICPConfig,\n type MarketChannelConfig,\n type MarketMessageTemplateConfig,\n type MarketObjectionConfig,\n type MarketSnapshot,\n} from '@wildo-ai/saas-specifications';\n\nimport { buildMarketContextBlock } from './market-context-block.builder';\n\n/**\n * @wildo_source:part:start companion.market.prompt-renderer facet:layer:companion facet:family:market\n *\n * Phase-4.2 market generation prompt renderer.\n *\n * Pure, deterministic, snapshot-in / prompt-out. Lives in the\n * introspection subprocess (the same process that owns\n * `buildMarketContextBlock`) so the parent companion process never\n * has to load `marketSpecification` to compose a prompt.\n *\n * Pipeline (no LLM, no I/O):\n *\n * 1. **Look up the template** by `templateRef`. Throw if absent.\n * 2. **Resolve every `requiredInputs[]` ref** the template declares\n * against the snapshot — throw if any required input is missing\n * from the caller's payload, or if a provided ref is unknown.\n * 3. **Pick the context-block intent**:\n * - `featureRef` provided → `{ kind: 'feature', featureRef }` (the\n * builder already filters benefits-in-scope correctly).\n * - else `icpRef` provided → `{ kind: 'icp', icpRef }`.\n * - else throw — every Phase-4.2 template needs at least one\n * anchor for the context block.\n * 4. **Call `buildMarketContextBlock(...)`** to get the English\n * context block + trace.\n * 5. **Substitute Mustache placeholders** in `template.promptTemplate`\n * using a tiny single-pass `{{path}}` resolver that walks\n * dot-paths against the resolved entity map. `{{output_language}}`\n * is wired specifically (the value comes from the CLI flag, not\n * from a snapshot entity). Unknown placeholders surface a\n * `MarketPromptUnknownPlaceholderError` so authoring drift is\n * caught loudly rather than rendered as the empty string.\n * 6. **Concatenate**: `<context block>\\n\\n<rendered template body>`.\n *\n * The renderer intentionally does NOT call `validateMarketSnapshot`\n * — the caller (`resolveMarketSnapshot` in the handler) already did\n * that with WARN-vs-ERROR semantics. Calling it again here would\n * either duplicate WARN logging or risk a different validation\n * surface drifting from the canonical entry point.\n */\n\n/** Maximum length of the BCP-47 `outputLanguage` tag — defensive guard\n * mirroring `MAX_OUTPUT_LANGUAGE_LENGTH` in `market-context-block.builder.ts`.\n * Long values almost always indicate the operator pasted a sentence\n * instead of a tag (e.g. \"translate the result into Brazilian Portuguese\"). */\nconst MAX_OUTPUT_LANGUAGE_LENGTH = 64;\n\n/** Default `output_language` used when the CLI does not pass `--output-language`.\n * Keeps every template's `{{output_language}}` placeholder render-safe and\n * defaults to the English-authoring contract (D15). */\nconst DEFAULT_OUTPUT_LANGUAGE = 'English';\n\nexport interface MarketPromptRequest {\n /** Required — every render is anchored on exactly one template. */\n templateRef: string;\n /** ICP ref — required when the template declares `ICP_REF`. */\n icpRef?: string;\n /** Feature ref — drives the context-block intent when provided. */\n featureRef?: string;\n /** Benefit ref — required when the template declares `BENEFIT_REF`. */\n benefitRef?: string;\n /** Channel ref — required when the template declares `CHANNEL_REF`. */\n channelRef?: string;\n /** Objection ref — required when the template declares `OBJECTION_REF`. */\n objectionRef?: string;\n /** BCP-47 tag for the LLM's `{{output_language}}` placeholder. */\n outputLanguage?: string;\n}\n\nexport interface MarketPromptTemplateTrace {\n ref: string;\n name: string;\n outputKind: string;\n requiredInputs: string[];\n preferredVoiceRef?: string;\n}\n\nexport interface MarketPromptResult {\n /** Final prompt: `<context block>\\n\\n<rendered template body>`. */\n prompt: string;\n /** Just the rendered template body, post-substitution (useful for trace). */\n renderedTemplate: string;\n /** Just the context block (useful for trace + dry-run / `--explain`). */\n contextBlock: string;\n trace: {\n template: MarketPromptTemplateTrace;\n context: ReturnType<typeof buildMarketContextBlock>['trace'];\n /** The exact `output_language` value that was substituted. */\n outputLanguage: string;\n /** Refs the renderer actually consumed (subset of `MarketMessageRequiredInput`). */\n consumedInputs: { kind: string; ref: string }[];\n };\n}\n\nexport class MarketPromptUnknownPlaceholderError extends Error {\n public readonly placeholders: string[];\n constructor(placeholders: string[]) {\n super(\n `Market generation prompt has unknown placeholder(s): ${placeholders.map(p => `\\`{{${p}}}\\``).join(', ')}. `\n + `Add the corresponding entity to the snapshot, fix the placeholder name, or remove it from the template body.`,\n );\n this.name = 'MarketPromptUnknownPlaceholderError';\n this.placeholders = placeholders;\n }\n}\n\nexport class MarketPromptMissingRequiredInputError extends Error {\n public readonly missing: MarketMessageRequiredInput[];\n constructor(templateRef: string, missing: MarketMessageRequiredInput[]) {\n super(\n `Template \\`${templateRef}\\` declares requiredInputs ${missing.map(m => `\\`${m}\\``).join(', ')} `\n + `but the caller did not provide them. Pass the matching CLI flag(s) (e.g. \\`--icp\\`, \\`--benefit\\`, \\`--objection\\`, \\`--channel\\`).`,\n );\n this.name = 'MarketPromptMissingRequiredInputError';\n this.missing = missing;\n }\n}\n\nexport class MarketPromptUnknownRefError extends Error {\n public readonly entityKind: string;\n public readonly providedRef: string;\n constructor(entityKind: string, providedRef: string, knownRefs: string[]) {\n super(\n `No ${entityKind} found with ref \\`${providedRef}\\` in the authored MarketSnapshot. `\n + `Known ${entityKind} refs: ${knownRefs.length > 0 ? knownRefs.map(r => `\\`${r}\\``).join(', ') : '(none)'}.`,\n );\n this.name = 'MarketPromptUnknownRefError';\n this.entityKind = entityKind;\n this.providedRef = providedRef;\n }\n}\n\nexport class MarketPromptTemplateNotFoundError extends Error {\n constructor(templateRef: string, knownRefs: string[]) {\n super(\n `No MarketMessageTemplate found with ref \\`${templateRef}\\`. `\n + `Known templates: ${knownRefs.length > 0 ? knownRefs.map(r => `\\`${r}\\``).join(', ') : '(none — author one in `specifications/src/market/messaging/`)'}.`,\n );\n this.name = 'MarketPromptTemplateNotFoundError';\n }\n}\n\nexport interface RenderMarketPromptInput {\n snapshot: MarketSnapshot;\n request: MarketPromptRequest;\n}\n\nexport function renderMarketPrompt(input: RenderMarketPromptInput): MarketPromptResult {\n const { snapshot, request } = input;\n const template = lookupTemplate(snapshot, request.templateRef);\n const outputLanguage = normalizeOutputLanguage(request.outputLanguage);\n\n // Resolve only the entities referenced by `requiredInputs`. Extra\n // refs the caller passes (e.g. `--feature` purely for context-block\n // intent) are not enforced as required and are NOT placed into the\n // Mustache substitution map.\n const resolvedEntities: PlaceholderEntities = {};\n const consumedInputs: { kind: string; ref: string }[] = [];\n const missing: MarketMessageRequiredInput[] = [];\n\n for (const requiredInput of template.requiredInputs ?? []) {\n switch (requiredInput) {\n case MarketMessageRequiredInput.ICP_REF: {\n if (!request.icpRef) { missing.push(requiredInput); break; }\n resolvedEntities.icp = lookupIcp(snapshot, request.icpRef);\n resolvedEntities.icpRef = request.icpRef;\n consumedInputs.push({ kind: 'icp', ref: request.icpRef });\n break;\n }\n case MarketMessageRequiredInput.BENEFIT_REF: {\n if (!request.benefitRef) { missing.push(requiredInput); break; }\n resolvedEntities.benefit = lookupBenefit(snapshot, request.benefitRef);\n resolvedEntities.benefitRef = request.benefitRef;\n consumedInputs.push({ kind: 'benefit', ref: request.benefitRef });\n break;\n }\n case MarketMessageRequiredInput.CHANNEL_REF: {\n if (!request.channelRef) { missing.push(requiredInput); break; }\n resolvedEntities.channel = lookupChannel(snapshot, request.channelRef);\n resolvedEntities.channelRef = request.channelRef;\n consumedInputs.push({ kind: 'channel', ref: request.channelRef });\n break;\n }\n case MarketMessageRequiredInput.OBJECTION_REF: {\n if (!request.objectionRef) { missing.push(requiredInput); break; }\n resolvedEntities.objection = lookupObjection(snapshot, request.objectionRef);\n resolvedEntities.objectionRef = request.objectionRef;\n consumedInputs.push({ kind: 'objection', ref: request.objectionRef });\n break;\n }\n }\n }\n\n if (missing.length > 0) {\n throw new MarketPromptMissingRequiredInputError(template.ref, missing);\n }\n\n // Context-block intent — feature wins over icp when both are\n // provided, mirroring `buildMarketContextBlock`'s feature-first\n // semantics (a feature anchor produces a tighter benefit set).\n const intent = pickContextIntent(request);\n const contextBuilt = buildMarketContextBlock({\n snapshot,\n intent,\n outputLanguage: request.outputLanguage,\n });\n\n const renderedTemplate = renderMustache(\n template.promptTemplate,\n {\n ...resolvedEntities,\n output_language: outputLanguage,\n },\n );\n\n const prompt = `${contextBuilt.block}\\n\\n${renderedTemplate}`;\n\n return {\n prompt,\n renderedTemplate,\n contextBlock: contextBuilt.block,\n trace: {\n template: {\n ref: template.ref,\n name: template.name,\n outputKind: String(template.outputKind),\n requiredInputs: (template.requiredInputs ?? []).map(String),\n ...(template.preferredVoiceRef ? { preferredVoiceRef: template.preferredVoiceRef } : {}),\n },\n context: contextBuilt.trace,\n outputLanguage,\n consumedInputs,\n },\n };\n}\n\n/** @wildo_source:part:end companion.market.prompt-renderer */\n\n// ---------------------------------------------------------------------------\n// Internal helpers — kept module-private (no broad export) so the public\n// surface stays focused on `renderMarketPrompt(...)`.\n// ---------------------------------------------------------------------------\n\ninterface PlaceholderEntities {\n icp?: MarketICPConfig;\n icpRef?: string;\n benefit?: FeatureBenefitConfig;\n benefitRef?: string;\n channel?: MarketChannelConfig;\n channelRef?: string;\n objection?: MarketObjectionConfig;\n objectionRef?: string;\n output_language?: string;\n}\n\nfunction lookupTemplate(\n snapshot: MarketSnapshot,\n templateRef: string,\n): MarketMessageTemplateConfig {\n const template = snapshot.messageTemplates.find(t => t.ref === templateRef);\n if (!template) {\n throw new MarketPromptTemplateNotFoundError(\n templateRef,\n snapshot.messageTemplates.map(t => t.ref),\n );\n }\n return template;\n}\n\nfunction lookupIcp(snapshot: MarketSnapshot, ref: string): MarketICPConfig {\n const found = snapshot.icps.find(i => i.ref === ref);\n if (!found) throw new MarketPromptUnknownRefError('ICP', ref, snapshot.icps.map(i => i.ref));\n return found;\n}\n\nfunction lookupBenefit(snapshot: MarketSnapshot, ref: string): FeatureBenefitConfig {\n const found = snapshot.benefits.find(b => b.ref === ref);\n if (!found) throw new MarketPromptUnknownRefError('benefit', ref, snapshot.benefits.map(b => b.ref));\n return found;\n}\n\nfunction lookupChannel(snapshot: MarketSnapshot, ref: string): MarketChannelConfig {\n const found = snapshot.channels.find(c => c.ref === ref);\n if (!found) throw new MarketPromptUnknownRefError('channel', ref, snapshot.channels.map(c => c.ref));\n return found;\n}\n\nfunction lookupObjection(snapshot: MarketSnapshot, ref: string): MarketObjectionConfig {\n const found = snapshot.objections.find(o => o.ref === ref);\n if (!found) throw new MarketPromptUnknownRefError('objection', ref, snapshot.objections.map(o => o.ref));\n return found;\n}\n\nfunction pickContextIntent(\n request: MarketPromptRequest,\n):\n | { kind: 'feature'; featureRef: string }\n | { kind: 'icp'; icpRef: string }\n{\n if (request.featureRef) return { kind: 'feature', featureRef: request.featureRef };\n if (request.icpRef) return { kind: 'icp', icpRef: request.icpRef };\n throw new Error(\n 'market-render-prompt requires either `featureRef` or `icpRef` to anchor the '\n + 'context block. Pass `--feature <ref>` and/or `--icp <ref>` on the CLI.',\n );\n}\n\nfunction normalizeOutputLanguage(value: string | undefined): string {\n if (value === undefined) return DEFAULT_OUTPUT_LANGUAGE;\n const trimmed = value.trim();\n if (trimmed.length === 0) return DEFAULT_OUTPUT_LANGUAGE;\n if (trimmed.length > MAX_OUTPUT_LANGUAGE_LENGTH) {\n throw new Error(\n `renderMarketPrompt: \\`outputLanguage\\` is ${trimmed.length} chars long `\n + `(max ${MAX_OUTPUT_LANGUAGE_LENGTH}). Pass a BCP-47 tag (e.g. \\`'fr'\\`, \\`'pt-BR'\\`), `\n + `not a sentence — translation prose belongs in the LLM output, not the tag.`,\n );\n }\n return trimmed;\n}\n\n/**\n * Tiny single-pass `{{path}}` Mustache renderer.\n *\n * Handles only the subset Phase-4.2 templates use: dot-path lookups\n * (`{{icp.name}}`, `{{benefit.claim}}`), bare entity-ref tokens\n * (`{{icpRef}}`), and the special `{{output_language}}` slot. Section\n * tokens (`{{#…}}` / `{{^…}}` / `{{/…}}`) and comment tokens are\n * intentionally NOT supported — the validator's\n * `MESSAGE_TEMPLATE_PLACEHOLDER_MISMATCH` rule already rejects them\n * implicitly because they don't match the Phase-4 placeholder regex.\n */\nfunction renderMustache(\n body: string,\n context: PlaceholderEntities,\n): string {\n const unknownPlaceholders: string[] = [];\n const rendered = body.replace(/\\{\\{\\s*([^{}#^/!\\s][^{}]*?)\\s*\\}\\}/g, (_match, expr: string) => {\n const value = resolvePath(context as unknown as Record<string, unknown>, expr);\n if (value === undefined) {\n unknownPlaceholders.push(expr);\n return '';\n }\n return stringifyForPrompt(value);\n });\n if (unknownPlaceholders.length > 0) {\n // De-dup so the error surface stays scannable.\n throw new MarketPromptUnknownPlaceholderError([...new Set(unknownPlaceholders)]);\n }\n return rendered;\n}\n\nfunction resolvePath(root: Record<string, unknown>, dottedPath: string): unknown {\n const parts = dottedPath.split('.').map(p => p.trim()).filter(Boolean);\n if (parts.length === 0) return undefined;\n let cursor: unknown = root;\n for (const part of parts) {\n if (cursor === null || cursor === undefined) return undefined;\n if (typeof cursor !== 'object') return undefined;\n cursor = (cursor as Record<string, unknown>)[part];\n }\n return cursor;\n}\n\nfunction stringifyForPrompt(value: unknown): string {\n if (value === null || value === undefined) return '';\n if (typeof value === 'string') return value;\n if (typeof value === 'number' || typeof value === 'boolean' || typeof value === 'bigint') {\n return String(value);\n }\n if (Array.isArray(value)) {\n return value.map(stringifyForPrompt).join(', ');\n }\n // Object — fall back to compact JSON so the operator at least sees\n // structure rather than `[object Object]`.\n try {\n return JSON.stringify(value);\n } catch {\n return '';\n }\n}\n"]}
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
*/
|
|
37
37
|
import { CoreResourceType, type ResourceConfiguration, type ResourceConfiguration_Operation, type ResourceConfiguration_Operation_ApiCall, type ResourceConfiguration_Operation_ApiCallWithCallback, type ResourceConfiguration_Operation_UrlInitiatorInfo, type ResourceRelationship, type FlowActorSystem } from '@wildo-ai/saas-models';
|
|
38
38
|
import { type AnyResourceSpecificationConfig } from '@wildo-ai/saas-specifications';
|
|
39
|
-
import { OpenApiSection, type OperationDoc, type OperationHttpDoc, type OpenApiGenerationProjectorStats, type OperationProjection, type ResourceTag, type ApplicationOrganizationRoleDocumentationSource, type ApplicationOrganizationUnitResourceDocumentation, type ApplicationRoleDocumentationSource, type ApplicationMcpToolSource, type ApplicationWebhookEventSource } from '@wildo-ai/saas-technical-doc/companion';
|
|
39
|
+
import { OpenApiSection, type FieldDoc, type OperationDoc, type OperationHttpDoc, type OpenApiGenerationProjectorStats, type OperationProjection, type ResourceTag, type ApplicationOrganizationRoleDocumentationSource, type ApplicationOrganizationUnitResourceDocumentation, type ApplicationRoleDocumentationSource, type ApplicationMcpToolSource, type ApplicationWebhookEventSource } from '@wildo-ai/saas-technical-doc/companion';
|
|
40
40
|
/**
|
|
41
41
|
* Wire format returned by the `'openapi-generation-input'` subprocess
|
|
42
42
|
* behavior. It carries the JSON-safe facts that require the application module
|
|
@@ -270,6 +270,35 @@ export declare function buildGeneratedPdfRegenerateOperationDoc(specification: A
|
|
|
270
270
|
* specification entry to annotate by hand.
|
|
271
271
|
*/
|
|
272
272
|
export declare function buildGeneratedPdfRegenerateOperationHttpDoc(specification: AnyResourceSpecificationConfig | undefined, operation: ApiBearingOperation): OperationHttpDoc;
|
|
273
|
+
/**
|
|
274
|
+
* Tier-2: enrich a projected operation's request and response bodies, in place, from the
|
|
275
|
+
* resource's authored field documentation. A no-op for a non-object or null body and for a property
|
|
276
|
+
* whose name matches no field specification.
|
|
277
|
+
*
|
|
278
|
+
* A paginated collection re-wraps the resource's own fields one level down — the request's
|
|
279
|
+
* `filters` bag (flattened into query parameters) and the response's `data[]` items — where the
|
|
280
|
+
* top-level pass cannot reach, so those two containers are enriched as well. `pagination` is the
|
|
281
|
+
* signal because `projectOperation` sets it for exactly the LIST and SEARCH-like operations the
|
|
282
|
+
* generator treats as paginated collections.
|
|
283
|
+
*/
|
|
284
|
+
export declare function enrichProjectionBodiesWithFieldDocs(projection: Pick<OperationProjection, 'requestBodySchema' | 'responseBodySchema' | 'pagination'>, fieldDocsByName: Record<string, FieldDoc>): void;
|
|
285
|
+
/**
|
|
286
|
+
* Tier-2 for embedded related records (#1625): describe the fields of every record a context read
|
|
287
|
+
* embeds from the RELATED resource's own documentation, and describe the property that holds it.
|
|
288
|
+
*
|
|
289
|
+
* A context read embeds related records under a name derived from the relationship (`todos`,
|
|
290
|
+
* `user`). Their fields are the related resource's, so the resource being read has no documentation
|
|
291
|
+
* for them, and they were the largest undescribed population in the reference (about 4,000 fields
|
|
292
|
+
* across the two dogfood applications). The DTO builder marks each placeholder with the resource it
|
|
293
|
+
* embeds (`EMBEDDED_RESOURCE_SCHEMA_KEY`), and an aggregate response marks the records it embeds the
|
|
294
|
+
* same way (the billing state's products, prices and promotions); this reads that mark rather than re-deriving the
|
|
295
|
+
* placeholder's name, which the reference's DTO path computes with a different identifier map than
|
|
296
|
+
* the runtime does. The mark is removed once read: it is an input to this step, not published API.
|
|
297
|
+
*
|
|
298
|
+
* An authored description always wins. A marked record whose resource was not projected keeps its
|
|
299
|
+
* fields undescribed, and still loses the mark.
|
|
300
|
+
*/
|
|
301
|
+
export declare function enrichEmbeddedRelatedRecordsWithFieldDocs(projection: Pick<OperationProjection, 'requestBodySchema' | 'responseBodySchema'>, fieldDocsByResource: ReadonlyMap<string, Record<string, FieldDoc>>): void;
|
|
273
302
|
/**
|
|
274
303
|
* Project a single `(operation × initiatorInfo)` pair into the
|
|
275
304
|
* flat `OperationProjection` shape consumed by the OpenAPI
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openapi-generation-input.behavior.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"openapi-generation-input.behavior.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/openapi-generation-input.behavior.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAGH,OAAO,EAcL,gBAAgB,EAoBhB,KAAK,qBAAqB,EAC1B,KAAK,+BAA+B,EACpC,KAAK,uCAAuC,EAC5C,KAAK,mDAAmD,EACxD,KAAK,gDAAgD,EACrD,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACrB,MAAM,uBAAuB,CAAC;AAM/B,OAAO,EAOL,KAAK,8BAA8B,EAEpC,MAAM,+BAA+B,CAAC;AAMvC,OAAO,EAQL,cAAc,EAKd,KAAK,QAAQ,EACb,KAAK,YAAY,EAEjB,KAAK,gBAAgB,EACrB,KAAK,+BAA+B,EACpC,KAAK,mBAAmB,EASxB,KAAK,WAAW,EAEhB,KAAK,8CAA8C,EACnD,KAAK,gDAAgD,EACrD,KAAK,kCAAkC,EAEvC,KAAK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AAE,mBAAmB,GAAG,oBAAoB,GAAG,YAAY,CAAC,EAChG,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,GACxC,IAAI,CAMN;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,yCAAyC,CACvD,UAAU,EAAE,IAAI,CAAC,mBAAmB,EAAE,mBAAmB,GAAG,oBAAoB,CAAC,EACjF,mBAAmB,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,GACjE,IAAI,CAqCN;AA6ED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,mBAAmB,EAC9B,aAAa,EAAE,gDAAgD,EAC/D,cAAc,EAAE,MAAM,EACtB,cAAc,EAAE,MAAM,EACtB,YAAY,GAAE,YAAiB,EAC/B,cAAc,GAAE,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,kCAAkC,EAAE,cAAc,GAAG,mBAAmB,CAAC,CAAa,EAC/H,wBAAwB,UAAQ,GAC/B,mBAAmB,CAiJrB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,mBAAmB,EAC9B,cAAc,EAAE,MAAM,EACtB,cAAc,EAAE,MAAM,GACrB,MAAM,CAqBR"}
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
* a focused projection of the resolved registry into a flat,
|
|
35
35
|
* JSON-safe shape, leaving every other concern to the consumer.
|
|
36
36
|
*/
|
|
37
|
-
import { ResourceOperationIdempotencyKeyRequirement } from '@wildo-ai/saas-models';
|
|
38
|
-
import { Actor_ExecutionMode, buildSharedSaaSModulesRegistry, CORE_APPLICATION_ADMINISTRATION_ROLES, CORE_APP_ROLES, ErrorResponseSchema, MAIN_API_BASE_PATH, MANUAL_CONTROLLER_ROUTES_URLS, ManualControllerRouteKey, coreResourceShared_FieldIdentifier, coreShared_ResourcesConfigurations_FactoryMap, coreSharedResourceRelationship, CoreResourceOperation, ChildLifecycleMode, ChildLifecycleStrategy, resolveChildLifecycleTeardownStrategy, createResourceSearchQueryRequestSchema, FlowActorSystem_Kind, RelationshipLifecycleModel, RelationshipNature, ResourceRelationshipCardinality, ResourceGeneratedOperationKind, isDefaultUrlBearingOperation, ResourceOperationVariantType, ResourcePrimaryScope, ResourcesConfigOperationsDtosBuilderUtils, ResourcesConfigOperationsUrlsBuilderUtils, Resources_SharedUtils, WildoHeaderKeys, } from '@wildo-ai/saas-models';
|
|
37
|
+
import { ResourceOperationIdempotencyKeyRequirement, respondsWithPerItemRowArray } from '@wildo-ai/saas-models';
|
|
38
|
+
import { Actor_ExecutionMode, buildSharedSaaSModulesRegistry, CORE_APPLICATION_ADMINISTRATION_ROLES, CORE_APP_ROLES, isInboundHandlerOnlyRole, ErrorResponseSchema, MAIN_API_BASE_PATH, MANUAL_CONTROLLER_ROUTES_URLS, ManualControllerRouteKey, coreResourceShared_FieldIdentifier, coreShared_ResourcesConfigurations_FactoryMap, coreSharedResourceRelationship, CoreResourceOperation, ChildLifecycleMode, ChildLifecycleStrategy, resolveChildLifecycleTeardownStrategy, createResourceSearchQueryRequestSchema, FlowActorSystem_Kind, RelationshipLifecycleModel, RelationshipNature, ResourceRelationshipCardinality, ResourceGeneratedOperationKind, isDefaultUrlBearingOperation, ResourceOperationVariantType, ResourcePrimaryScope, EMBEDDED_RESOURCE_SCHEMA_KEY, ResourcesConfigOperationsDtosBuilderUtils, ResourcesConfigOperationsUrlsBuilderUtils, Resources_SharedUtils, WildoHeaderKeys, } from '@wildo-ai/saas-models';
|
|
39
39
|
import { MCP_TOOL_NAME_SEPARATOR, isPortableModelToolName, describeCaughtError, } from '@wildo-ai/saas-backend-lib';
|
|
40
40
|
import { ENGINE_RESOURCE_SUB_DOMAIN_DOCUMENTATION, EngineResourceSubDomain, engineResourceSpecificationsByType, extractFieldSpecsFromFieldMap, extractResourceFieldSpecs, HttpResponseStatusCode, } from '@wildo-ai/saas-specifications';
|
|
41
41
|
import { engineMergedCompiledResourceRelationships, engineResourceConfigurationFactoryEntries, } from './engine-resource-population.subprocess.utils.js';
|
|
42
|
-
import { buildOperationDocFromSpec, buildOperationHttpDocFromSpec, createOpenApiOperationIdentity, convertZodSchemaToOpenApiSchema, indexApplicationRoleDocumentationSources, injectFieldDocsIntoJsonSchema, OpenApiSection, OperationProjectionAuthenticationMode, OperationProjectionHttpVerb, OperationProjectionPrimaryScope, OperationProjectionVariantType, projectApplicationOrganizationRoleDocumentationSources, projectManualControllerRouteOperations, ResourceRelationshipDocumentationCardinality, ResourceRelationshipDocumentationDeleteMode, ResourceRelationshipDocumentationDeleteStrategy, ResourceRelationshipDocumentationLifecycleModel, ResourceRelationshipDocumentationNature, projectApplicationOrganizationUnitResourceDocumentation, } from '@wildo-ai/saas-technical-doc/companion';
|
|
42
|
+
import { buildOperationDocFromSpec, buildOperationHttpDocFromSpec, createOpenApiOperationIdentity, convertZodSchemaToOpenApiSchema, indexApplicationRoleDocumentationSources, injectFieldDocsIntoCollectionContract, injectFieldDocsIntoJsonSchema, OpenApiSection, OperationProjectionAuthenticationMode, OperationProjectionHttpVerb, OperationProjectionPrimaryScope, OperationProjectionVariantType, projectApplicationOrganizationRoleDocumentationSources, projectManualControllerRouteOperations, ResourceRelationshipDocumentationCardinality, ResourceRelationshipDocumentationDeleteMode, ResourceRelationshipDocumentationDeleteStrategy, ResourceRelationshipDocumentationLifecycleModel, ResourceRelationshipDocumentationNature, projectApplicationOrganizationUnitResourceDocumentation, } from '@wildo-ai/saas-technical-doc/companion';
|
|
43
43
|
import { resolveSharedLibraryCompanionExports } from './companion-introspection-module-exports.utils.js';
|
|
44
44
|
const VARIANT_TYPE_BY_FRAMEWORK_VALUE = {
|
|
45
45
|
[ResourceOperationVariantType.API_CALL]: OperationProjectionVariantType.API_CALL,
|
|
@@ -66,6 +66,15 @@ const HTTP_VERB_BY_FRAMEWORK_VALUE = {
|
|
|
66
66
|
* from role-name prefixes or internal resource scopes.
|
|
67
67
|
*/
|
|
68
68
|
const APPLICATION_ADMINISTRATION_ROLES = new Set(CORE_APPLICATION_ADMINISTRATION_ROLES);
|
|
69
|
+
/**
|
|
70
|
+
* The roles an HTTP caller can hold among those an operation accepts. A handler-only role (#1629,
|
|
71
|
+
* `INBOUND_HANDLER_ONLY_ROLES`) is the engine's authority for provider events: no person, API key or OAuth client
|
|
72
|
+
* can hold it, so listing it would tell a consumer a role exists that they can never be given. The one reader
|
|
73
|
+
* both projection sites use, so the inventory and the projection cannot disagree about it.
|
|
74
|
+
*/
|
|
75
|
+
function httpCallerRoles(operation) {
|
|
76
|
+
return (operation.roles ?? []).map((role) => String(role)).filter((role) => !isInboundHandlerOnlyRole(role));
|
|
77
|
+
}
|
|
69
78
|
/**
|
|
70
79
|
* Resolves the exact access semantics before OpenAPI exists. In particular,
|
|
71
80
|
* `APP_PUBLIC` wins over every other marker, matching backend authentication;
|
|
@@ -243,6 +252,8 @@ startupProjection) {
|
|
|
243
252
|
const organizationRoles = projectApplicationOrganizationRoleDocumentationSources(sharedRegistry.customRoles, roleSpecsByRef);
|
|
244
253
|
const operations = [];
|
|
245
254
|
const resourceTags = [];
|
|
255
|
+
/** Every projected resource's field documentation, so an embedded related record can use its own (#1625). */
|
|
256
|
+
const fieldDocsByResource = new Map();
|
|
246
257
|
const preparedResources = [];
|
|
247
258
|
/**
|
|
248
259
|
* Project one prepared resource after the complete externally exposed HTTP
|
|
@@ -326,11 +337,7 @@ startupProjection) {
|
|
|
326
337
|
throw new Error(`openapi-generation-input projector: projection no longer preserves the resolved HTTP operation identity for `
|
|
327
338
|
+ `${String(operation.resourceIdentifier)}.${String(operation.operationIdentifier)} ${initiatorInfo.url}.`);
|
|
328
339
|
}
|
|
329
|
-
|
|
330
|
-
// resource's authored field docs (no-op for non-object / null bodies
|
|
331
|
-
// and for properties whose names don't match a field spec).
|
|
332
|
-
injectFieldDocsIntoJsonSchema(projection.requestBodySchema, fieldDocsByName);
|
|
333
|
-
injectFieldDocsIntoJsonSchema(projection.responseBodySchema, fieldDocsByName);
|
|
340
|
+
enrichProjectionBodiesWithFieldDocs(projection, fieldDocsByName);
|
|
334
341
|
// Tier-3: attach the per-operation HTTP documentation (response
|
|
335
342
|
// statuses / error scenarios / idempotency / rate-limit / examples).
|
|
336
343
|
Object.assign(projection, operationHttpDoc);
|
|
@@ -343,12 +350,15 @@ startupProjection) {
|
|
|
343
350
|
return {
|
|
344
351
|
operations: localOperations,
|
|
345
352
|
resourceTags: localResourceTags,
|
|
353
|
+
resourceIdentifier: resourceType,
|
|
354
|
+
fieldDocsByName,
|
|
346
355
|
};
|
|
347
356
|
};
|
|
348
357
|
/** Merge an atomic per-resource projection into the shared output. */
|
|
349
358
|
const mergeResourceProjection = (result) => {
|
|
350
359
|
operations.push(...result.operations);
|
|
351
360
|
resourceTags.push(...result.resourceTags);
|
|
361
|
+
fieldDocsByResource.set(result.resourceIdentifier, result.fieldDocsByName);
|
|
352
362
|
};
|
|
353
363
|
/*
|
|
354
364
|
* Which resources are the APPLICATION'S OWN, by identifier.
|
|
@@ -426,6 +436,9 @@ startupProjection) {
|
|
|
426
436
|
assertNoUnexplainedResolvedHttpRouteCollisions(resolvedExternalHttpOperations);
|
|
427
437
|
for (const preparedResource of preparedResources)
|
|
428
438
|
mergeResourceProjection(projectResource(preparedResource));
|
|
439
|
+
// After every resource is projected, because a context read embeds records of OTHER resources.
|
|
440
|
+
for (const operation of operations)
|
|
441
|
+
enrichEmbeddedRelatedRecordsWithFieldDocs(operation, fieldDocsByResource);
|
|
429
442
|
const consideredOperationCount = preparedResources.reduce((count, resource) => count + resource.documentableApiOperationCount, 0);
|
|
430
443
|
const organizationUnitAwareResources = projectApplicationOrganizationUnitResourceDocumentation(startupProjection?.organizationUnitNarrowing, resourceTags);
|
|
431
444
|
const integrationSurfaces = collectIntegrationSurfaces(preparedResources, resourceConfigs, excludedCoreResourceTypeSet, allResourceFieldIdentifiers, relationships);
|
|
@@ -590,7 +603,7 @@ export function inventoryResolvedExternalHttpOperations(operations) {
|
|
|
590
603
|
throw new Error(`openapi-generation-input projector: API-bearing operation `
|
|
591
604
|
+ `${String(operation.resourceIdentifier)}.${String(operation.operationIdentifier)} has an unsupported HTTP identity.`);
|
|
592
605
|
}
|
|
593
|
-
const roles = (operation
|
|
606
|
+
const roles = httpCallerRoles(operation);
|
|
594
607
|
const section = classifyConsumerApiSection(roles);
|
|
595
608
|
for (const initiatorInfo of initiatorInfos) {
|
|
596
609
|
inventory.push({
|
|
@@ -1023,6 +1036,100 @@ function omitFreeTextSearchRequest(projected) {
|
|
|
1023
1036
|
},
|
|
1024
1037
|
};
|
|
1025
1038
|
}
|
|
1039
|
+
/**
|
|
1040
|
+
* Tier-2: enrich a projected operation's request and response bodies, in place, from the
|
|
1041
|
+
* resource's authored field documentation. A no-op for a non-object or null body and for a property
|
|
1042
|
+
* whose name matches no field specification.
|
|
1043
|
+
*
|
|
1044
|
+
* A paginated collection re-wraps the resource's own fields one level down — the request's
|
|
1045
|
+
* `filters` bag (flattened into query parameters) and the response's `data[]` items — where the
|
|
1046
|
+
* top-level pass cannot reach, so those two containers are enriched as well. `pagination` is the
|
|
1047
|
+
* signal because `projectOperation` sets it for exactly the LIST and SEARCH-like operations the
|
|
1048
|
+
* generator treats as paginated collections.
|
|
1049
|
+
*/
|
|
1050
|
+
export function enrichProjectionBodiesWithFieldDocs(projection, fieldDocsByName) {
|
|
1051
|
+
injectFieldDocsIntoJsonSchema(projection.requestBodySchema, fieldDocsByName);
|
|
1052
|
+
injectFieldDocsIntoJsonSchema(projection.responseBodySchema, fieldDocsByName);
|
|
1053
|
+
if (projection.pagination !== undefined) {
|
|
1054
|
+
injectFieldDocsIntoCollectionContract(projection.requestBodySchema, projection.responseBodySchema, fieldDocsByName);
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
/**
|
|
1058
|
+
* Tier-2 for embedded related records (#1625): describe the fields of every record a context read
|
|
1059
|
+
* embeds from the RELATED resource's own documentation, and describe the property that holds it.
|
|
1060
|
+
*
|
|
1061
|
+
* A context read embeds related records under a name derived from the relationship (`todos`,
|
|
1062
|
+
* `user`). Their fields are the related resource's, so the resource being read has no documentation
|
|
1063
|
+
* for them, and they were the largest undescribed population in the reference (about 4,000 fields
|
|
1064
|
+
* across the two dogfood applications). The DTO builder marks each placeholder with the resource it
|
|
1065
|
+
* embeds (`EMBEDDED_RESOURCE_SCHEMA_KEY`), and an aggregate response marks the records it embeds the
|
|
1066
|
+
* same way (the billing state's products, prices and promotions); this reads that mark rather than re-deriving the
|
|
1067
|
+
* placeholder's name, which the reference's DTO path computes with a different identifier map than
|
|
1068
|
+
* the runtime does. The mark is removed once read: it is an input to this step, not published API.
|
|
1069
|
+
*
|
|
1070
|
+
* An authored description always wins. A marked record whose resource was not projected keeps its
|
|
1071
|
+
* fields undescribed, and still loses the mark.
|
|
1072
|
+
*/
|
|
1073
|
+
export function enrichEmbeddedRelatedRecordsWithFieldDocs(projection, fieldDocsByResource) {
|
|
1074
|
+
const takeMark = (node) => {
|
|
1075
|
+
if (typeof node !== 'object' || node === null || Array.isArray(node))
|
|
1076
|
+
return undefined;
|
|
1077
|
+
const record = node;
|
|
1078
|
+
const resource = record[EMBEDDED_RESOURCE_SCHEMA_KEY];
|
|
1079
|
+
if (typeof resource !== 'string')
|
|
1080
|
+
return undefined;
|
|
1081
|
+
delete record[EMBEDDED_RESOURCE_SCHEMA_KEY];
|
|
1082
|
+
const docs = fieldDocsByResource.get(resource);
|
|
1083
|
+
if (docs !== undefined)
|
|
1084
|
+
injectFieldDocsIntoJsonSchema(record, docs);
|
|
1085
|
+
return resource;
|
|
1086
|
+
};
|
|
1087
|
+
const visit = (node) => {
|
|
1088
|
+
if (Array.isArray(node)) {
|
|
1089
|
+
for (const entry of node)
|
|
1090
|
+
visit(entry);
|
|
1091
|
+
return;
|
|
1092
|
+
}
|
|
1093
|
+
if (typeof node !== 'object' || node === null)
|
|
1094
|
+
return;
|
|
1095
|
+
const record = node;
|
|
1096
|
+
takeMark(record);
|
|
1097
|
+
const properties = record['properties'];
|
|
1098
|
+
if (typeof properties === 'object' && properties !== null && !Array.isArray(properties)) {
|
|
1099
|
+
for (const property of Object.values(properties)) {
|
|
1100
|
+
if (typeof property !== 'object' || property === null)
|
|
1101
|
+
continue;
|
|
1102
|
+
const holder = property;
|
|
1103
|
+
const single = takeMark(holder);
|
|
1104
|
+
const many = single === undefined ? takeMark(holder['items']) : undefined;
|
|
1105
|
+
if (holder['description'] === undefined && (single ?? many) !== undefined) {
|
|
1106
|
+
holder['description'] = single !== undefined
|
|
1107
|
+
? `The related \`${single}\` record this read embeds.`
|
|
1108
|
+
: `The related \`${many}\` records this read embeds.`;
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
for (const value of Object.values(record))
|
|
1113
|
+
visit(value);
|
|
1114
|
+
};
|
|
1115
|
+
visit(projection.requestBodySchema);
|
|
1116
|
+
visit(projection.responseBodySchema);
|
|
1117
|
+
}
|
|
1118
|
+
/**
|
|
1119
|
+
* The documented 200 body of an operation: its response DTO, as an ARRAY of it when the runtime answers one row per
|
|
1120
|
+
* item (#1872).
|
|
1121
|
+
*
|
|
1122
|
+
* `respondsWithPerItemRowArray` is the rule the serializer and both HTTP clients use: CREATE_MANY, UPDATE_MANY, and a
|
|
1123
|
+
* bulk variant of CREATE or UPDATE (`haveBulkOperation`) answer `[row, row, …]`, validated per item against the row
|
|
1124
|
+
* DTO. The DTO itself is the ROW, so publishing it as-is documented one object for a route that returns a list, and a
|
|
1125
|
+
* client generated from the reference mistyped every bulk edit. Reading the same rule keeps the reference and the
|
|
1126
|
+
* wire in step by construction.
|
|
1127
|
+
*/
|
|
1128
|
+
function projectOperationResponseBodySchema(operation) {
|
|
1129
|
+
const rowSchema = convertZodSchemaToOpenApiSchema(operation.responseDto);
|
|
1130
|
+
// An omitted DTO converts to `null`; there is then no row to list.
|
|
1131
|
+
return respondsWithPerItemRowArray(operation) && rowSchema !== null && rowSchema !== undefined ? { type: 'array', items: rowSchema } : rowSchema;
|
|
1132
|
+
}
|
|
1026
1133
|
/**
|
|
1027
1134
|
* Resolve the request schema the HTTP reference must publish.
|
|
1028
1135
|
*
|
|
@@ -1049,15 +1156,7 @@ function projectOperationRequestBodySchema(operation) {
|
|
|
1049
1156
|
if (entries.length === 0) {
|
|
1050
1157
|
return convertZodSchemaToOpenApiSchema(operation.requestDto);
|
|
1051
1158
|
}
|
|
1052
|
-
const filterFields =
|
|
1053
|
-
for (const [fieldName, fieldSchema] of entries) {
|
|
1054
|
-
if (typeof fieldSchema === 'function') {
|
|
1055
|
-
throw new Error(`openapi-generation-input projector: LIST filter '${fieldName}' on `
|
|
1056
|
-
+ `${String(operation.resourceIdentifier)}.${String(operation.operationIdentifier)} `
|
|
1057
|
-
+ 'is function-valued and has no portable query schema.');
|
|
1058
|
-
}
|
|
1059
|
-
filterFields[fieldName] = fieldSchema;
|
|
1060
|
-
}
|
|
1159
|
+
const filterFields = Object.fromEntries(entries);
|
|
1061
1160
|
const projected = convertZodSchemaToOpenApiSchema(createResourceSearchQueryRequestSchema({
|
|
1062
1161
|
filterFields: filterFields,
|
|
1063
1162
|
allowedSortFields: collectionOperation.sortFields ?? [],
|
|
@@ -1109,7 +1208,7 @@ export function projectOperation(operation, initiatorInfo, initiatorIndex, initi
|
|
|
1109
1208
|
+ `on ${String(operation.resourceIdentifier)}.${String(operation.operationIdentifier)}.`);
|
|
1110
1209
|
}
|
|
1111
1210
|
const operationKey = buildOperationKey(operation, initiatorIndex, initiatorCount);
|
|
1112
|
-
const roles = (operation
|
|
1211
|
+
const roles = httpCallerRoles(operation);
|
|
1113
1212
|
const effectiveOperation = operation.resourceOperationLike ?? operation.operationIdentifier;
|
|
1114
1213
|
const acceptsIfMatch = effectiveOperation === CoreResourceOperation.UPDATE
|
|
1115
1214
|
&& !('isBulkOperation' in operation && operation.isBulkOperation === true);
|
|
@@ -1170,8 +1269,17 @@ export function projectOperation(operation, initiatorInfo, initiatorIndex, initi
|
|
|
1170
1269
|
},
|
|
1171
1270
|
}
|
|
1172
1271
|
: {}),
|
|
1272
|
+
// #1985: a declared submission challenge is documented from the declaration, never from prose.
|
|
1273
|
+
...(operation.submissionChallenge !== undefined
|
|
1274
|
+
? {
|
|
1275
|
+
submissionChallenge: {
|
|
1276
|
+
headerName: WildoHeaderKeys.SUBMISSION_CHALLENGE_RESPONSE,
|
|
1277
|
+
proofOfWorkChallengePath: `${MAIN_API_BASE_PATH}${MANUAL_CONTROLLER_ROUTES_URLS[ManualControllerRouteKey.SUBMISSION_CHALLENGE_PROOF_OF_WORK]}`,
|
|
1278
|
+
},
|
|
1279
|
+
}
|
|
1280
|
+
: {}),
|
|
1173
1281
|
requestBodySchema: projectOperationRequestBodySchema(operation),
|
|
1174
|
-
responseBodySchema:
|
|
1282
|
+
responseBodySchema: projectOperationResponseBodySchema(operation),
|
|
1175
1283
|
};
|
|
1176
1284
|
// Paginated-collection contract (LIST / SEARCH-like): the backend controller
|
|
1177
1285
|
// treats every HTTP LIST/SEARCH dispatch — including custom operations
|