@wildo-ai/dev-companion 1.1.8 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/companion-supervisor.d.mts +33 -0
- package/bin/companion-supervisor.mjs +174 -0
- package/bin/wildo-dev-companion-supervised.mjs +16 -0
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/brand/models/accepted-brand-mark.models.d.ts +46 -0
- package/dist/esm/brand/models/accepted-brand-mark.models.d.ts.map +1 -0
- package/dist/esm/brand/models/accepted-brand-mark.models.js +89 -0
- package/dist/esm/brand/models/accepted-brand-mark.models.js.map +1 -0
- package/dist/esm/brand/models/logo-creative-brief.schemas.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-creative-brief.schemas.js.map +1 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.js +8 -2
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.js.map +1 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.js +8 -2
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
- package/dist/esm/brand/models/logo-judge.schemas.d.ts +5 -3
- package/dist/esm/brand/models/logo-judge.schemas.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-judge.schemas.js +5 -3
- package/dist/esm/brand/models/logo-judge.schemas.js.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.js +9 -11
- package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
- package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-propagation.companion.utils.js.map +1 -1
- package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/logo-deliberation.companion.service.js +10 -7
- package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
- package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
- package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
- package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
- package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
- package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts +21 -0
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js +33 -1
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +130 -2
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +176 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-usage-limit.models.d.ts +52 -0
- package/dist/esm/claude-cli/models/coding-agent-usage-limit.models.d.ts.map +1 -0
- package/dist/esm/claude-cli/models/coding-agent-usage-limit.models.js +206 -0
- package/dist/esm/claude-cli/models/coding-agent-usage-limit.models.js.map +1 -0
- package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/coding-session-frame-retention.js.map +1 -1
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +38 -3
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js +48 -4
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answer.models.js.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -1
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +165 -8
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +536 -28
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/accepted-change-import-closure.companion.d.ts +53 -0
- package/dist/esm/claude-cli/services/accepted-change-import-closure.companion.d.ts.map +1 -0
- package/dist/esm/claude-cli/services/accepted-change-import-closure.companion.js +193 -0
- package/dist/esm/claude-cli/services/accepted-change-import-closure.companion.js.map +1 -0
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +164 -6
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +468 -41
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js.map +1 -1
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +15 -2
- package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.js +36 -4
- package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
- package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.d.ts.map +1 -1
- package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.js.map +1 -1
- package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.d.ts.map +1 -1
- package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.d.ts +360 -339
- package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.js +13 -2
- package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
- package/dist/esm/companion-api/companion-error-guidance.models.d.ts.map +1 -1
- package/dist/esm/companion-api/companion-error-guidance.models.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.d.ts +88 -13
- package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.js +448 -51
- package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts.map +1 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.js.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.models.d.ts.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.models.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
- package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js.map +1 -1
- package/dist/esm/core/config/primary-language.companion.utils.d.ts +5 -4
- package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/config/primary-language.companion.utils.js +5 -4
- package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
- package/dist/esm/core/context/application-module-generations.companion.d.ts +103 -0
- package/dist/esm/core/context/application-module-generations.companion.d.ts.map +1 -0
- package/dist/esm/core/context/application-module-generations.companion.js +313 -0
- package/dist/esm/core/context/application-module-generations.companion.js.map +1 -0
- package/dist/esm/core/context/companion-context.d.ts.map +1 -1
- package/dist/esm/core/context/companion-context.js.map +1 -1
- package/dist/esm/core/context/companion-package-loaders.companion.d.ts +19 -19
- package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
- package/dist/esm/core/context/companion-package-loaders.companion.js +52 -40
- package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
- package/dist/esm/core/context/draft-family-values.companion.d.ts.map +1 -1
- package/dist/esm/core/context/draft-family-values.companion.js.map +1 -1
- package/dist/esm/core/inject/models/container.d.ts.map +1 -1
- package/dist/esm/core/inject/models/container.js +4 -0
- package/dist/esm/core/inject/models/container.js.map +1 -1
- package/dist/esm/core/inject/models/service-types.d.ts +4 -0
- package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
- package/dist/esm/core/inject/models/service-types.js +4 -0
- package/dist/esm/core/inject/models/service-types.js.map +1 -1
- package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
- package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
- package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
- package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
- package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/application-secrets.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts +15 -1
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.js +38 -3
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts +21 -0
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.js +71 -25
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts +10 -0
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.js +58 -2
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts +0 -28
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +197 -20
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +49 -7
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/launch-blockers.companion.d.ts +51 -0
- package/dist/esm/core/introspection/resources/launch-blockers.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/resources/launch-blockers.companion.js +124 -0
- package/dist/esm/core/introspection/resources/launch-blockers.companion.js.map +1 -0
- package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts +14 -3
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.js +91 -5
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts +186 -11
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js +437 -35
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-input-closure.companion.d.ts +44 -0
- package/dist/esm/core/introspection/services/introspection-input-closure.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/services/introspection-input-closure.companion.js +104 -0
- package/dist/esm/core/introspection/services/introspection-input-closure.companion.js.map +1 -0
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts +123 -24
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js +281 -54
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts +22 -6
- package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js +38 -7
- package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/translation-placement.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts +9 -0
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js +29 -9
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/assertions.behavior.js +10 -10
- package/dist/esm/core/introspection/subprocess/assertions.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-hooks.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-register.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-register.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +20 -19
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-child.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-child.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts +7 -1
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js +13 -4
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js +9 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-context-block.builder.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-context-block.builder.js +2 -1
- package/dist/esm/core/introspection/subprocess/market-context-block.builder.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts +4 -3
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.js +14 -8
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js +17 -4
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +7 -0
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js.map +1 -1
- package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -1
- package/dist/esm/core/introspection/workspace-elements.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/workspace-elements.companion.js.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.js.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.models.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.models.js.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts +4 -4
- package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.schemas.js.map +1 -1
- package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts +35 -0
- package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/application-runtime-liveness.companion.js +74 -0
- package/dist/esm/core/runtime/application-runtime-liveness.companion.js.map +1 -1
- package/dist/esm/core/runtime/companion-endpoint-record.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-endpoint-record.js.map +1 -1
- package/dist/esm/core/runtime/companion-env-file.d.ts +39 -9
- package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-env-file.js +75 -16
- package/dist/esm/core/runtime/companion-env-file.js.map +1 -1
- package/dist/esm/core/runtime/companion-self-restart.companion.d.ts +38 -0
- package/dist/esm/core/runtime/companion-self-restart.companion.d.ts.map +1 -0
- package/dist/esm/core/runtime/companion-self-restart.companion.js +110 -0
- package/dist/esm/core/runtime/companion-self-restart.companion.js.map +1 -0
- package/dist/esm/core/runtime/companion-startup-assembly.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-startup-assembly.js +7 -1
- package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts +12 -0
- package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.js +15 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
- package/dist/esm/core/runtime/event-loop-stall-monitor.companion.d.ts +83 -0
- package/dist/esm/core/runtime/event-loop-stall-monitor.companion.d.ts.map +1 -0
- package/dist/esm/core/runtime/event-loop-stall-monitor.companion.js +150 -0
- package/dist/esm/core/runtime/event-loop-stall-monitor.companion.js.map +1 -0
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js.map +1 -1
- package/dist/esm/core/runtime/models/companion-runtime.models.d.ts.map +1 -1
- package/dist/esm/core/runtime/models/companion-runtime.models.js.map +1 -1
- package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/services/file-storage-initialization.companion.js.map +1 -1
- package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +30 -4
- package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
- package/dist/esm/core/runtime/services/start-companion-application.service.js +78 -12
- package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-workbench-topology.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-workbench-topology.js.map +1 -1
- package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.js.map +1 -1
- package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/chart-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/composite-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/cross-registry-rendering.shared.js.map +1 -1
- package/dist/esm/core/specifications/execution-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/execution-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/feature-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/feature-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/frontend-component-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/full-custom-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/guidance-flow-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/milestone-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/milestone-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/non-composite-view-specification-context.shared.js.map +1 -1
- package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/onboarding-element-rendering.shared.js.map +1 -1
- package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/onboarding-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/product-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/product-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/resource-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/role-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/role-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.js.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.models.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.models.js.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.shared.js.map +1 -1
- package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/system-email-template-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
- package/dist/esm/core/specifications/validate-resource-field-completeness.js.map +1 -1
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.models.js.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.service.js.map +1 -1
- package/dist/esm/core/utils/atomic-write.utils.d.ts.map +1 -1
- package/dist/esm/core/utils/atomic-write.utils.js.map +1 -1
- package/dist/esm/core/utils/bounded-concurrency.utils.d.ts +17 -0
- package/dist/esm/core/utils/bounded-concurrency.utils.d.ts.map +1 -0
- package/dist/esm/core/utils/bounded-concurrency.utils.js +37 -0
- package/dist/esm/core/utils/bounded-concurrency.utils.js.map +1 -0
- package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts +10 -1
- package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/utils/derived-input-signature.companion.utils.js +9 -2
- package/dist/esm/core/utils/derived-input-signature.companion.utils.js.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js +2 -0
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.function-tools.js +69 -7
- package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -1
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts +0 -17
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +17 -12
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.d.ts +10 -5
- package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.js +31 -21
- package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
- package/dist/esm/deliberations/utils/expert-agent-registration.d.ts +56 -0
- package/dist/esm/deliberations/utils/expert-agent-registration.d.ts.map +1 -0
- package/dist/esm/deliberations/utils/expert-agent-registration.js +74 -0
- package/dist/esm/deliberations/utils/expert-agent-registration.js.map +1 -0
- package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts +9 -5
- package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
- package/dist/esm/deliberations/utils/load-committed-expert-agents.js +11 -15
- package/dist/esm/deliberations/utils/load-committed-expert-agents.js.map +1 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.js.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.d.ts +6 -1
- package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.js +4 -1
- package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
- package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-labels-file-source.utils.js.map +1 -1
- package/dist/esm/email/utils/email-labels-tree.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-labels-tree.utils.js.map +1 -1
- package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-template-fs-discovery.utils.js.map +1 -1
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js +8 -2
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js +8 -2
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts +5 -3
- package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.js +5 -3
- package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.js.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts +17 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.js +51 -14
- package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
- package/dist/esm/expert-personas/services/persona-source-ownership.d.ts.map +1 -1
- package/dist/esm/expert-personas/services/persona-source-ownership.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_announcement.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_announcement.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_banner.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_card.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_card.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist_item.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_modal.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_modal.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_onboarding_view.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_survey.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_tooltip.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_tooltip.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_tour.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_tour.en.js.map +1 -1
- package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_achievement_badge.en.js.map +1 -1
- package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_milestone_tracker.en.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts +1 -0
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.js +55 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.domain-model.en.js.map +1 -1
- package/dist/esm/i18n/control-plane-label-blocks.d.ts +344 -0
- package/dist/esm/i18n/control-plane-label-blocks.d.ts.map +1 -0
- package/dist/esm/i18n/control-plane-label-blocks.js +115 -0
- package/dist/esm/i18n/control-plane-label-blocks.js.map +1 -0
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts.map +1 -1
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.js.map +1 -1
- package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -1
- package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -1
- package/dist/esm/i18n/index.d.ts.map +1 -1
- package/dist/esm/i18n/index.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts +410 -0
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js +13 -145
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts +65 -0
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js +4 -37
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts +65 -0
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js +4 -37
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchAspects.en.js +11 -0
- package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts +5 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js +5 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js +2 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDomainResources.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts +56 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +15 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +553 -0
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +187 -5
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/application-creation.en.d.ts +60 -0
- package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/application-creation.en.js +66 -1
- package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/compliance-programme.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/flows-actors.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/flows-actors.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/localization.en.d.ts +82 -0
- package/dist/esm/i18n/system_enums/localization.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/localization.en.js +82 -0
- package/dist/esm/i18n/system_enums/localization.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/market.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/risk-register.en.d.ts +1 -0
- package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/risk-register.en.js +1 -0
- package/dist/esm/i18n/system_enums/risk-register.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts +1 -0
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.js +2 -0
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts +10 -0
- package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.js +13 -0
- package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-secrets.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -1
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-progress.models.d.ts +43 -0
- package/dist/esm/i18n-labelling/models/labelling-progress.models.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/models/labelling-progress.models.js +34 -0
- package/dist/esm/i18n-labelling/models/labelling-progress.models.js.map +1 -0
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +29 -2
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-unit.models.js +17 -0
- package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
- package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +5 -0
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +44 -4
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +8 -0
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +97 -56
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts +18 -0
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +269 -153
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-file-source.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-file-source.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.d.ts +41 -0
- package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.js +47 -0
- package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts +12 -0
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js +10 -2
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts +8 -1
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js +9 -2
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.d.ts +89 -0
- package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.js +229 -0
- package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts +13 -7
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js +13 -7
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.js.map +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/market/services/market-generation.companion.service.d.ts.map +1 -1
- package/dist/esm/market/services/market-generation.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +3 -3
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-line-catalog.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts +85 -1
- package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/build-task-rearm.models.js +101 -0
- package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/creation-intervention.models.d.ts +308 -0
- package/dist/esm/meta-workflows/models/creation-intervention.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/creation-intervention.models.js +365 -0
- package/dist/esm/meta-workflows/models/creation-intervention.models.js.map +1 -0
- package/dist/esm/meta-workflows/models/generation-step-progress.models.d.ts +61 -0
- package/dist/esm/meta-workflows/models/generation-step-progress.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/generation-step-progress.models.js +58 -0
- package/dist/esm/meta-workflows/models/generation-step-progress.models.js.map +1 -0
- package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/human-decision-settler.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts +10 -6
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js +11 -6
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts +3 -0
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js +8 -1
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts +26 -0
- package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-record.models.js +66 -10
- package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/website-copy-review.actors-system.definitions.d.ts +36 -0
- package/dist/esm/meta-workflows/models/website-copy-review.actors-system.definitions.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/website-copy-review.actors-system.definitions.js +97 -0
- package/dist/esm/meta-workflows/models/website-copy-review.actors-system.definitions.js.map +1 -0
- package/dist/esm/meta-workflows/models/website-copy-review.models.d.ts +124 -0
- package/dist/esm/meta-workflows/models/website-copy-review.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/website-copy-review.models.js +74 -0
- package/dist/esm/meta-workflows/models/website-copy-review.models.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.d.ts +13 -0
- package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.js +33 -0
- package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.d.ts +145 -0
- package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.js +179 -0
- package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +672 -24
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +1887 -74
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +232 -14
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +407 -55
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +158 -3
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +446 -18
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts +130 -2
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js +266 -10
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-website-copy-review.companion.service.d.ts +122 -0
- package/dist/esm/meta-workflows/services/application-build-website-copy-review.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-build-website-copy-review.companion.service.js +295 -0
- package/dist/esm/meta-workflows/services/application-build-website-copy-review.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-enabled-surface-brief.companion.utils.d.ts +22 -0
- package/dist/esm/meta-workflows/services/application-enabled-surface-brief.companion.utils.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-enabled-surface-brief.companion.utils.js +45 -0
- package/dist/esm/meta-workflows/services/application-enabled-surface-brief.companion.utils.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js +10 -11
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.d.ts +53 -0
- package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.js +97 -0
- package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.js.map +1 -0
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js +10 -11
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.d.ts +82 -0
- package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js +291 -0
- package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.d.ts +76 -0
- package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.js +88 -0
- package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts +53 -0
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js +164 -0
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.d.ts +37 -0
- package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.js +52 -0
- package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.js.map +1 -0
- package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +79 -14
- package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/dossier.companion.service.js +185 -29
- package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js.map +1 -1
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts +52 -4
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +134 -62
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.d.ts +67 -0
- package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.js +64 -0
- package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.js.map +1 -0
- package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/landed-module-import.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js +61 -20
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +134 -4
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js +390 -7
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +166 -7
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +703 -116
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts +62 -1
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js +152 -2
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js.map +1 -1
- package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts.map +1 -1
- package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
- package/package.json +22 -18
- package/dist/esm/__tests__/asset-noop.d.ts +0 -3
- package/dist/esm/__tests__/asset-noop.d.ts.map +0 -1
- package/dist/esm/__tests__/asset-noop.js +0 -2
- package/dist/esm/__tests__/asset-noop.js.map +0 -1
- package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts +0 -2
- package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +0 -1
- package/dist/esm/__tests__/chdir-dogfood-app.setup.js +0 -44
- package/dist/esm/__tests__/chdir-dogfood-app.setup.js.map +0 -1
- package/dist/esm/__tests__/internal-test-view.d.ts +0 -39
- package/dist/esm/__tests__/internal-test-view.d.ts.map +0 -1
- package/dist/esm/__tests__/internal-test-view.js +0 -2
- package/dist/esm/__tests__/internal-test-view.js.map +0 -1
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts +0 -50
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +0 -1
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js +0 -157
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +0 -1
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts +0 -8
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +0 -1
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js +0 -43
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js.map +0 -1
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts +0 -79
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +0 -1
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js +0 -193
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +0 -1
|
@@ -14,7 +14,7 @@ import { randomUUID } from 'node:crypto';
|
|
|
14
14
|
import { mkdir, writeFile } from 'node:fs/promises';
|
|
15
15
|
import { resolve } from 'node:path';
|
|
16
16
|
import { inject, injectable } from 'inversify';
|
|
17
|
-
import { ActorsSystemBackendService, ErrorBuilderBackendService, LoggerService, SAAS_SERVICE_TYPES, } from '@wildo-ai/saas-backend-lib';
|
|
17
|
+
import { ActorsSystemBackendService, ErrorBuilderBackendService, FlowsActorsRegistryService, LoggerService, SAAS_SERVICE_TYPES, } from '@wildo-ai/saas-backend-lib';
|
|
18
18
|
import { ErrorCustomMessageReference, ErrorType, FlowsActors_IO_PartKind, } from '@wildo-ai/saas-models';
|
|
19
19
|
import { ExpertPersonaCharterSchema, getExpertRoleTemplate, resolveNotApplicableFamilies, } from '@wildo-ai/saas-specifications';
|
|
20
20
|
import { composeExpertRoleContext, decidedFamilyValuesFromCompanionExports } from '@wildo-ai/application-creation-runtime';
|
|
@@ -22,7 +22,8 @@ import { loadSpecificationsCompanionExports } from '../../core/context/companion
|
|
|
22
22
|
import { loadDraftFamilyValues } from '../../core/context/draft-family-values.companion.js';
|
|
23
23
|
import { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types.js';
|
|
24
24
|
import { CompanionIntrospectionService } from '../../core/introspection/services/companion-introspection.companion.service.js';
|
|
25
|
-
import { DELIBERATION_TEXT_PRODUCER_AGENT_REF, DeliberationTextRevisionOutputSchema, DeliberationTextRevisionOutputStrictSchema,
|
|
25
|
+
import { DELIBERATION_TEXT_PRODUCER_AGENT_REF, DeliberationTextRevisionOutputSchema, DeliberationTextRevisionOutputStrictSchema, } from '../models/deliberation-agents.actors-system.definitions.js';
|
|
26
|
+
import { ExpertAgentRegistration, ensureExpertAgentRegistered, runtimeExpertProfileFromCharter } from '../utils/expert-agent-registration.js';
|
|
26
27
|
const DELIBERATIONS_DIR_SEGMENTS = ['.wildo-saas', 'generated', 'deliberations'];
|
|
27
28
|
/**
|
|
28
29
|
* Deliberation COMPOSER (agentic deliberation system, Step 3) — the
|
|
@@ -42,9 +43,9 @@ const DELIBERATIONS_DIR_SEGMENTS = ['.wildo-saas', 'generated', 'deliberations']
|
|
|
42
43
|
* the returned `DeliberationRecord` (RF-2).
|
|
43
44
|
*
|
|
44
45
|
* Fail-closed posture (RF-6): a reviewer/coordinator role without a
|
|
45
|
-
* committed charter aborts with "derive + accept the charter first"
|
|
46
|
-
* charter accepted after startup
|
|
47
|
-
*
|
|
46
|
+
* committed charter aborts with "derive + accept the charter first". A
|
|
47
|
+
* charter accepted after startup needs NO restart: binding a seat registers
|
|
48
|
+
* (or refreshes) the agent built from the charter it read (#2349).
|
|
48
49
|
*/
|
|
49
50
|
let DeliberationCompanionService = class DeliberationCompanionService {
|
|
50
51
|
logger;
|
|
@@ -53,14 +54,16 @@ let DeliberationCompanionService = class DeliberationCompanionService {
|
|
|
53
54
|
agentsService;
|
|
54
55
|
companionContext;
|
|
55
56
|
companionIntrospectionService;
|
|
57
|
+
flowsActorsRegistry;
|
|
56
58
|
logDebug;
|
|
57
|
-
constructor(logger, errorBuilder, actorsSystemService, agentsService, companionContext, companionIntrospectionService) {
|
|
59
|
+
constructor(logger, errorBuilder, actorsSystemService, agentsService, companionContext, companionIntrospectionService, flowsActorsRegistry) {
|
|
58
60
|
this.logger = logger;
|
|
59
61
|
this.errorBuilder = errorBuilder;
|
|
60
62
|
this.actorsSystemService = actorsSystemService;
|
|
61
63
|
this.agentsService = agentsService;
|
|
62
64
|
this.companionContext = companionContext;
|
|
63
65
|
this.companionIntrospectionService = companionIntrospectionService;
|
|
66
|
+
this.flowsActorsRegistry = flowsActorsRegistry;
|
|
64
67
|
this.logDebug = this.logger.debugByType('DeliberationCompanionService');
|
|
65
68
|
this.logger.setDebugTypeLogging('DeliberationCompanionService', true);
|
|
66
69
|
}
|
|
@@ -223,6 +226,10 @@ let DeliberationCompanionService = class DeliberationCompanionService {
|
|
|
223
226
|
* a guardian/strategist reviews a mark through its own lens without
|
|
224
227
|
* owning marks) — + charter→runtime-profile mapping (domains from the
|
|
225
228
|
* framework TEMPLATE; substance from the derived charter).
|
|
229
|
+
*
|
|
230
|
+
* Binding also makes the seat's agent EXIST (#2349): the registry is brought to the agent built
|
|
231
|
+
* from the charter this bind just read, so the charters read live and the agents the engine will
|
|
232
|
+
* invoke cannot disagree. Every adopter of this seam (this composer, the logo panel) gets it.
|
|
226
233
|
*/
|
|
227
234
|
bindExpert(roleRef, charterByRole, gate,
|
|
228
235
|
/**
|
|
@@ -264,24 +271,20 @@ let DeliberationCompanionService = class DeliberationCompanionService {
|
|
|
264
271
|
customMessageReference: ErrorCustomMessageReference.VALIDATION,
|
|
265
272
|
context: {
|
|
266
273
|
message: `Role '${roleRef}' has no COMMITTED charter — derive + accept it first `
|
|
267
|
-
+ `(
|
|
268
|
-
+ `registers
|
|
274
|
+
+ `(\`wildo creation persona derive ${roleRef}\`, then \`wildo creation persona accept ${roleRef}\`). `
|
|
275
|
+
+ `No restart is needed: the next deliberation registers its agent. If it was just accepted, `
|
|
276
|
+
+ `the specifications package may not have rebuilt yet; the charter is read from its build.`,
|
|
269
277
|
},
|
|
270
278
|
});
|
|
271
279
|
}
|
|
272
|
-
const profile =
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
priorities: charter.priorities,
|
|
278
|
-
taboos: charter.taboos,
|
|
279
|
-
...(charter.qualityBar !== undefined ? { qualityBar: charter.qualityBar } : {}),
|
|
280
|
-
...(charter.reviewProtocol !== undefined ? { reviewProtocol: charter.reviewProtocol } : {}),
|
|
281
|
-
};
|
|
280
|
+
const profile = runtimeExpertProfileFromCharter(charter, template);
|
|
281
|
+
const { agentRef, registration } = ensureExpertAgentRegistered(this.flowsActorsRegistry, profile);
|
|
282
|
+
if (registration !== ExpertAgentRegistration.CURRENT) {
|
|
283
|
+
this.logger.info('Expert agent built from its live charter', { roleRef, charterRef: charter.charterRef, agentRef, registration });
|
|
284
|
+
}
|
|
282
285
|
return {
|
|
283
286
|
profile,
|
|
284
|
-
agentRef
|
|
287
|
+
agentRef,
|
|
285
288
|
...(roleContext !== undefined && roleContext.trim() !== '' ? { roleContext } : {}),
|
|
286
289
|
};
|
|
287
290
|
}
|
|
@@ -300,11 +303,16 @@ let DeliberationCompanionService = class DeliberationCompanionService {
|
|
|
300
303
|
context: { message: 'No backend service available to resolve the expert-persona-charters behavior.' },
|
|
301
304
|
});
|
|
302
305
|
}
|
|
306
|
+
/*
|
|
307
|
+
* Checked against the build as it stands now (#2364), because both things done with this answer act
|
|
308
|
+
* on it: a role it lacks is REFUSED, and a role it carries has its agent BUILT from it (#2349). A held
|
|
309
|
+
* answer from before the last accept would refuse a charter that exists, or seat an older persona.
|
|
310
|
+
*/
|
|
303
311
|
const introspection = await this.companionIntrospectionService.requestInfo({
|
|
304
312
|
serviceKey: backendServiceKey,
|
|
305
313
|
behavior: 'expert-persona-charters',
|
|
306
314
|
input: {},
|
|
307
|
-
});
|
|
315
|
+
}, { verifyAgainstSource: true });
|
|
308
316
|
if (introspection.success === false) {
|
|
309
317
|
const failure = introspection;
|
|
310
318
|
throw this.errorBuilder.buildError(ErrorType.INTERNAL, undefined, {
|
|
@@ -368,9 +376,11 @@ DeliberationCompanionService = __decorate([
|
|
|
368
376
|
__param(3, inject(SAAS_SERVICE_TYPES.AgentsBackendService)),
|
|
369
377
|
__param(4, inject(COMPANION_SERVICE_TYPES.CompanionContext)),
|
|
370
378
|
__param(5, inject(COMPANION_SERVICE_TYPES.IntrospectionService)),
|
|
379
|
+
__param(6, inject(SAAS_SERVICE_TYPES.FlowsActorsRegistryService)),
|
|
371
380
|
__metadata("design:paramtypes", [LoggerService,
|
|
372
381
|
ErrorBuilderBackendService,
|
|
373
|
-
ActorsSystemBackendService, Function, Object, CompanionIntrospectionService
|
|
382
|
+
ActorsSystemBackendService, Function, Object, CompanionIntrospectionService,
|
|
383
|
+
FlowsActorsRegistryService])
|
|
374
384
|
], DeliberationCompanionService);
|
|
375
385
|
export { DeliberationCompanionService };
|
|
376
386
|
//# sourceMappingURL=deliberation.companion.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deliberation.companion.service.js","sourceRoot":"","sources":["../../../../../src/deliberations/services/deliberation.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,aAAa,EACb,kBAAkB,GAEnB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,2BAA2B,EAC3B,SAAS,EAET,uBAAuB,GAQxB,MAAM,uBAAuB,CAAC;AAK/B,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACrB,4BAA4B,GAG7B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,wBAAwB,EAAE,uCAAuC,EAAE,MAAM,wCAAwC,C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xC","sourcesContent":["import { randomUUID } from 'node:crypto';\nimport { mkdir, writeFile } from 'node:fs/promises';\nimport { resolve } from 'node:path';\n\nimport { inject, injectable } from 'inversify';\nimport {\n ActorsSystemBackendService,\n ErrorBuilderBackendService,\n LoggerService,\n SAAS_SERVICE_TYPES,\n type AgentsBackendService,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n ErrorCustomMessageReference,\n ErrorType,\n ExpertWorkDomain,\n FlowsActors_IO_PartKind,\n type AgentTraceContext,\n type DeliberationCandidateInput,\n type DeliberationExpertBinding,\n type DeliberationPlan,\n type DeliberationRecord,\n type FlowsActors_Agent_Invocation,\n type RuntimeExpertProfile,\n} from '@wildo-ai/saas-models';\nimport {\n LLMProvider_GenerateStructuredInputSchema,\n LLMProvider_GenerateStructuredOutputSchema,\n} from '@wildo-ai/external-connectors-models';\nimport {\n ExpertPersonaCharterSchema,\n getExpertRoleTemplate,\n resolveNotApplicableFamilies,\n type ApplicationCreatorInputs,\n type ExpertPersonaCharter,\n} from '@wildo-ai/saas-specifications';\n\nimport { composeExpertRoleContext, decidedFamilyValuesFromCompanionExports } from '@wildo-ai/application-creation-runtime';\nimport { loadSpecificationsCompanionExports } from '../../core/context/companion-package-loaders.companion';\nimport { loadDraftFamilyValues } from '../../core/context/draft-family-values.companion';\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { CompanionIntrospectionService } from '../../core/introspection/services/companion-introspection.companion.service';\nimport {\n DELIBERATION_TEXT_PRODUCER_AGENT_REF,\n DeliberationTextRevisionOutputSchema,\n DeliberationTextRevisionOutputStrictSchema,\n expertAgentRefForRole,\n} from '../models/deliberation-agents.actors-system.definitions';\n\n/** A TEXT-subject deliberation request (the v1 route; IMAGE arrives with the brand refit). */\nexport interface DeliberationRunOptions {\n workDomain: ExpertWorkDomain;\n /** The assembled work-product brief every pass is grounded on. */\n briefContext: string;\n /** The initial candidate set (inline text; the service persists the bytes). */\n candidates: Array<{ ref: string; text: string }>;\n /** Panel roles — each must have a committed charter AND cover the work domain. */\n reviewerRoleRefs: string[];\n /** Coordinator role — the manager hat; NOT domain-gated (documented in the plan). */\n coordinatorRoleRef: string;\n /** Rubric-deriving role (default: the first reviewer — the domain owner). */\n rubricDeriverRoleRef?: string;\n roundBudget?: number;\n shortlistSize?: number;\n}\n\nexport interface DeliberationRunResult {\n record: DeliberationRecord;\n /** saasRoot-relative path of the persisted record. */\n recordPath: string;\n}\n\nconst DELIBERATIONS_DIR_SEGMENTS = ['.wildo-saas', 'generated', 'deliberations'] as const;\n\n/**\n * Deliberation COMPOSER (agentic deliberation system, Step 3) — the\n * companion half of the split: it owns charters, agents, candidate BYTES\n * and record persistence; the ENGINE (`ActorsSystemBackendService.\n * executeDeliberation`) owns the orchestration semantics.\n *\n * Composition steps: read the committed charters (introspection read-back,\n * Zod-validated) → enforce NARROWNESS fail-closed (every reviewer's role\n * must declare the deliberation's work domain; the coordinator is the\n * manager hat and is not domain-gated) → map charters to runtime profiles\n * (workDomains come from the TEMPLATE — the charter carries substance, the\n * framework carries routing) → persist the initial candidate bytes under\n * `.wildo-saas/generated/deliberations/<ref>/candidates/` → hand the engine\n * a plan whose PRODUCER callback revises TEXT candidates through the\n * `deliberation.text-producer.agent` and persists each revision → persist\n * the returned `DeliberationRecord` (RF-2).\n *\n * Fail-closed posture (RF-6): a reviewer/coordinator role without a\n * committed charter aborts with \"derive + accept the charter first\"; a\n * charter accepted after startup has no registered agent until the\n * companion restarts — the error says exactly that.\n */\n@injectable()\nexport class DeliberationCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(SAAS_SERVICE_TYPES.ErrorBuilderService)\n private readonly errorBuilder: ErrorBuilderBackendService,\n @inject(SAAS_SERVICE_TYPES.ActorsSystemBackendService)\n private readonly actorsSystemService: ActorsSystemBackendService,\n @inject(SAAS_SERVICE_TYPES.AgentsBackendService)\n private readonly agentsService: AgentsBackendService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext)\n private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.IntrospectionService)\n private readonly companionIntrospectionService: CompanionIntrospectionService,\n ) {\n this.logDebug = this.logger.debugByType('DeliberationCompanionService');\n this.logger.setDebugTypeLogging('DeliberationCompanionService', true);\n }\n\n public async run(\n options: DeliberationRunOptions,\n traceContext?: AgentTraceContext,\n ): Promise<DeliberationRunResult> {\n this.validateOptions(options);\n const deliberationRef = `delib-${options.workDomain.toLowerCase()}-${randomUUID().slice(0, 8)}`;\n const deliberationDirAbs = resolve(\n this.companionContext.saasRoot, ...DELIBERATIONS_DIR_SEGMENTS, deliberationRef,\n );\n const candidatesDirAbs = resolve(deliberationDirAbs, 'candidates');\n await mkdir(candidatesDirAbs, { recursive: true });\n\n // ── Experts: committed charters → narrowness-gated bindings ──\n const charters = await this.readCommittedCharters();\n const charterByRole = new Map(charters.map((charter) => [charter.roleRef, charter]));\n const rubricDeriverRole = options.rubricDeriverRoleRef ?? options.reviewerRoleRefs[0];\n /*\n * Each seat's OWN context (#1423), composed once per run from the roles actually seated. Before\n * this, the panel's narrowness lived only in charter prose: every seat received one identical\n * brief, so a design-system guardian and a brand strategist judged the same words.\n */\n const roleContexts = await this.composeExpertRoleContextsByRole([\n ...options.reviewerRoleRefs,\n options.coordinatorRoleRef,\n ...(rubricDeriverRole ? [rubricDeriverRole] : []),\n ]);\n const reviewers = options.reviewerRoleRefs.map((roleRef) =>\n this.bindExpert(roleRef, charterByRole, { reviewDomain: options.workDomain }, roleContexts.get(roleRef)));\n const coordinator = this.bindExpert(options.coordinatorRoleRef, charterByRole, {}, roleContexts.get(options.coordinatorRoleRef));\n const rubricDeriver = this.bindExpert(rubricDeriverRole, charterByRole, {\n ownDomain: options.workDomain,\n }, rubricDeriverRole === undefined ? undefined : roleContexts.get(rubricDeriverRole));\n\n // ── Initial candidates: persist bytes, hand locators+payload to the engine ──\n const relDir = `${DELIBERATIONS_DIR_SEGMENTS.join('/')}/${deliberationRef}/candidates`;\n const initialCandidates: DeliberationCandidateInput[] = [];\n for (const candidate of options.candidates) {\n const fileName = `${candidate.ref}.txt`;\n await writeFile(resolve(candidatesDirAbs, fileName), candidate.text, 'utf8');\n initialCandidates.push({\n ref: candidate.ref,\n storageRef: `${relDir}/${fileName}`,\n content: { kind: FlowsActors_IO_PartKind.TEXT, text: candidate.text },\n });\n }\n\n // ── Producer: TEXT revision via the producer agent + byte persistence ──\n let revisionSequence = 0;\n const producer = {\n produceRevision: async (\n parent: DeliberationCandidateInput,\n revisionPrompt: string,\n ): Promise<DeliberationCandidateInput> => {\n if (parent.content.kind !== FlowsActors_IO_PartKind.TEXT) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: 'The TEXT deliberation route cannot revise non-text candidates.' },\n });\n }\n const revised = await this.reviseText(parent.content.text, revisionPrompt, options.briefContext, traceContext);\n revisionSequence += 1;\n const ref = `${parent.ref}-rev${revisionSequence}`;\n const fileName = `${ref}.txt`;\n await writeFile(resolve(candidatesDirAbs, fileName), revised, 'utf8');\n return {\n ref,\n storageRef: `${relDir}/${fileName}`,\n content: { kind: FlowsActors_IO_PartKind.TEXT, text: revised },\n };\n },\n };\n\n const plan: DeliberationPlan = {\n deliberationRef,\n workDomain: options.workDomain,\n subjectKind: FlowsActors_IO_PartKind.TEXT,\n briefContext: options.briefContext,\n reviewers,\n coordinator,\n rubricDeriver,\n producerAgentRef: DELIBERATION_TEXT_PRODUCER_AGENT_REF,\n producer,\n initialCandidates,\n roundBudget: options.roundBudget ?? 2,\n shortlistSize: options.shortlistSize ?? 2,\n };\n\n this.logDebug('deliberation composed', {\n deliberationRef,\n reviewers: reviewers.map((binding) => binding.profile.roleRef),\n coordinator: coordinator.profile.roleRef,\n candidates: initialCandidates.length,\n });\n\n // ── Engine orchestration → persist the record (RF-2) ────────\n const record = await this.actorsSystemService.executeDeliberation(plan, traceContext);\n const recordPath = `${DELIBERATIONS_DIR_SEGMENTS.join('/')}/${deliberationRef}/record.json`;\n await writeFile(\n resolve(deliberationDirAbs, 'record.json'),\n `${JSON.stringify(record, null, 2)}\\n`,\n 'utf8',\n );\n this.logDebug('deliberation record persisted', {\n deliberationRef,\n status: record.status,\n rounds: record.rounds.length,\n winnerRef: record.synthesis?.winnerRef,\n recordPath,\n });\n return { record, recordPath };\n }\n\n private validateOptions(options: DeliberationRunOptions): void {\n /*\n * The SAME floor the engine enforces (`validateDeliberationPlan`), raised here too\n * so the composer refuses before spending a charter read — and, more importantly,\n * so the two sites do not disagree about what a panel IS. Two floors for one\n * invariant is how a rule ends up half-applied\n * (`invariant-call-site-enumeration.md`); if this bound moves, move both.\n */\n if (options.candidates.length === 0 || options.reviewerRoleRefs.length < 2) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: 'A deliberation needs ≥1 candidate and ≥2 reviewer roles — a panel of one is a judge, '\n + 'not a deliberation, and its record would carry an always-empty dissent.',\n },\n });\n }\n const refs = new Set(options.candidates.map((candidate) => candidate.ref));\n if (refs.size !== options.candidates.length) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: 'Candidate refs must be unique.' },\n });\n }\n }\n\n /**\n * What each seated role reads beyond the shared brief, keyed by role ref (#1423).\n *\n * Resolves each role's DECLARED `shapingInputKinds` against this application's landed families, so\n * per-role selection happens at RUN time rather than being frozen into charter prose at derivation.\n * It is selection from a declaration, not a planner choosing per agent (#251).\n *\n * Best-effort by construction: an unreadable specifications package leaves every seat with the shared\n * brief, which is exactly the behaviour before this existed. A deliberation must not fail because a\n * seat's extra context could not be composed.\n */\n private async composeExpertRoleContextsByRole(roleRefs: readonly (string | undefined)[]): Promise<Map<string, string>> {\n const contexts = new Map<string, string>();\n try {\n const companionExports = await loadSpecificationsCompanionExports(this.companionContext);\n const valuesByFamily = {\n ...Object.fromEntries(await loadDraftFamilyValues(this.companionContext.resolvedSpecifications?.packageRoot)),\n ...decidedFamilyValuesFromCompanionExports(companionExports as unknown as Record<string, unknown>),\n };\n const notApplicableFamilies = resolveNotApplicableFamilies(\n (companionExports as unknown as { creatorInputs?: ApplicationCreatorInputs }).creatorInputs,\n );\n for (const roleRef of new Set(roleRefs.filter((ref): ref is string => ref !== undefined))) {\n const template = getExpertRoleTemplate(roleRef);\n if (!template) continue;\n const composed = composeExpertRoleContext({ shapingInputKinds: template.shapingInputKinds, valuesByFamily, notApplicableFamilies });\n if (composed !== undefined) contexts.set(roleRef, composed);\n }\n } catch (error) {\n this.logger.warn('Per-role deliberation context omitted; every seat reads the shared brief', { error: String(error) });\n }\n return contexts;\n }\n\n /**\n * Resolve one expert seat: committed charter (fail-closed, RF-6) +\n * NARROWNESS enforcement on the right axis — `ownDomain` gates OWNERSHIP\n * (rubric derivation / brief authoring: `template.workDomains`),\n * `reviewDomain` gates PANEL PARTICIPATION (`template.reviewScopes` —\n * a guardian/strategist reviews a mark through its own lens without\n * owning marks) — + charter→runtime-profile mapping (domains from the\n * framework TEMPLATE; substance from the derived charter).\n */\n public bindExpert(\n roleRef: string,\n charterByRole: Map<string, ExpertPersonaCharter>,\n gate: { ownDomain?: ExpertWorkDomain; reviewDomain?: ExpertWorkDomain },\n /**\n * What this seat reads beyond the shared brief (#1423) — see {@link composeExpertRoleContextsByRole}.\n * Optional so the other composer that reuses this seam (the brand/logo IMAGE flow) is unchanged\n * until it supplies one, and a seat without it reads the shared brief alone, as every seat did.\n */\n roleContext?: string,\n ): DeliberationExpertBinding {\n const template = getExpertRoleTemplate(roleRef);\n if (!template) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: `Unknown expert role '${roleRef}' — no such template in EXPERT_ROLE_TEMPLATES.` },\n });\n }\n if (gate.ownDomain !== undefined && !template.workDomains.includes(gate.ownDomain)) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `NARROWNESS (ownership): role '${roleRef}' does not OWN work domain '${gate.ownDomain}' `\n + `(owns [${template.workDomains.join(', ')}]) — only the domain owner authors briefs and `\n + `derives rubrics. Use the owning role instead.`,\n },\n });\n }\n if (gate.reviewDomain !== undefined && !template.reviewScopes.includes(gate.reviewDomain)) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `NARROWNESS (lens): role '${roleRef}' does not review work domain '${gate.reviewDomain}' `\n + `(review scopes: [${template.reviewScopes.join(', ')}]) — an expert never sits on a panel `\n + `outside its lens reach. Convene a role whose review scope covers the domain.`,\n },\n });\n }\n const charter = charterByRole.get(roleRef);\n if (!charter) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `Role '${roleRef}' has no COMMITTED charter — derive + accept it first `\n + `(POST /expert-personas/derive then /accept), then RESTART the companion so its agent `\n + `registers (agents are indexed at startup).`,\n },\n });\n }\n const profile: RuntimeExpertProfile = {\n charterRef: charter.charterRef,\n roleRef: charter.roleRef,\n workDomains: template.workDomains,\n personaProse: charter.personaProse,\n priorities: charter.priorities,\n taboos: charter.taboos,\n ...(charter.qualityBar !== undefined ? { qualityBar: charter.qualityBar } : {}),\n ...(charter.reviewProtocol !== undefined ? { reviewProtocol: charter.reviewProtocol } : {}),\n };\n return {\n profile,\n agentRef: expertAgentRefForRole(roleRef),\n ...(roleContext !== undefined && roleContext.trim() !== '' ? { roleContext } : {}),\n };\n }\n\n /**\n * Committed charters via the read-back behavior, Zod-validated at the\n * seam. PUBLIC on purpose: this + `bindExpert` are the shared composer\n * seams other deliberation adopters (e.g. the brand/logo IMAGE flow)\n * reuse instead of duplicating charter/narrowness logic.\n */\n public async readCommittedCharters(): Promise<ExpertPersonaCharter[]> {\n const backendServiceKey = Object.entries(this.companionContext.servicesByKey)\n .find(([, service]) => !service.frontendType)?.[0];\n if (!backendServiceKey) {\n throw this.errorBuilder.buildError(ErrorType.CONFIGURATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.CONFIGURATION,\n context: { message: 'No backend service available to resolve the expert-persona-charters behavior.' },\n });\n }\n const introspection = await this.companionIntrospectionService.requestInfo({\n serviceKey: backendServiceKey,\n behavior: 'expert-persona-charters',\n input: {},\n });\n if (introspection.success === false) {\n const failure = introspection;\n throw this.errorBuilder.buildError(ErrorType.INTERNAL, undefined, {\n customMessageReference: ErrorCustomMessageReference.INTERNAL,\n context: { message: failure.error.message, behavior: failure.behavior },\n });\n }\n const raw = (introspection.data as { charters?: unknown[] }).charters ?? [];\n return raw.map((candidate, index) => {\n const parsed = ExpertPersonaCharterSchema.safeParse(candidate);\n if (!parsed.success) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `Committed charter at index ${index} is structurally invalid: `\n + parsed.error.issues.map((issue) => `${issue.path.join('.')}: ${issue.message}`).join('; '),\n },\n });\n }\n return parsed.data;\n });\n }\n\n /** One TEXT revision through the producer agent (strict-validated). */\n private async reviseText(\n currentText: string,\n revisionPrompt: string,\n briefContext: string,\n traceContext?: AgentTraceContext,\n ): Promise<string> {\n const prompt = [\n briefContext,\n '',\n '# Current candidate text',\n currentText,\n '',\n revisionPrompt,\n ].join('\\n');\n const invocation: FlowsActors_Agent_Invocation<\n typeof LLMProvider_GenerateStructuredInputSchema,\n typeof LLMProvider_GenerateStructuredOutputSchema\n > = {\n agentRef: DELIBERATION_TEXT_PRODUCER_AGENT_REF,\n initiator: {},\n invocationContext: [],\n input: { prompt, schema: DeliberationTextRevisionOutputSchema },\n output: { object: {} },\n executionContext: {},\n artifactBindings: [],\n };\n const response = await this.agentsService.invokeAgent(invocation, traceContext);\n const raw = (response.output as { object?: unknown } | undefined)?.object;\n const parsed = DeliberationTextRevisionOutputStrictSchema.safeParse(raw);\n if (!parsed.success || parsed.data.revisedText.trim().length === 0) {\n throw this.errorBuilder.buildError(ErrorType.INTERNAL, undefined, {\n customMessageReference: ErrorCustomMessageReference.INTERNAL,\n context: {\n message: 'The text producer returned an invalid/empty revision — re-run the deliberation.',\n },\n });\n }\n return parsed.data.revisedText;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"deliberation.companion.service.js","sourceRoot":"","sources":["../../../../src/deliberations/services/deliberation.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,0BAA0B,EAC1B,aAAa,EACb,kBAAkB,GAEnB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,2BAA2B,EAC3B,SAAS,EAET,uBAAuB,GAOxB,MAAM,uBAAuB,CAAC;AAK/B,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACrB,4BAA4B,GAG7B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,wBAAwB,EAAE,uCAAuC,EAAE,MAAM,wCAAwC,CAAC;AAC3H,OAAO,EAAE,kCAAkC,EAAE,MAAM,wDAAwD,CAAC;AAC5G,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AACzF,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAEjF,OAAO,EAAE,6BAA6B,EAAE,MAAM,6EAA6E,CAAC;AAC5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inject, injectable } from 'inversify';\nimport {\n ActorsSystemBackendService,\n ErrorBuilderBackendService,\n FlowsActorsRegistryService,\n LoggerService,\n SAAS_SERVICE_TYPES,\n type AgentsBackendService,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n ErrorCustomMessageReference,\n ErrorType,\n ExpertWorkDomain,\n FlowsActors_IO_PartKind,\n type AgentTraceContext,\n type DeliberationCandidateInput,\n type DeliberationExpertBinding,\n type DeliberationPlan,\n type DeliberationRecord,\n type FlowsActors_Agent_Invocation,\n} from '@wildo-ai/saas-models';\nimport {\n LLMProvider_GenerateStructuredInputSchema,\n LLMProvider_GenerateStructuredOutputSchema,\n} from '@wildo-ai/external-connectors-models';\nimport {\n ExpertPersonaCharterSchema,\n getExpertRoleTemplate,\n resolveNotApplicableFamilies,\n type ApplicationCreatorInputs,\n type ExpertPersonaCharter,\n} from '@wildo-ai/saas-specifications';\n\nimport { composeExpertRoleContext, decidedFamilyValuesFromCompanionExports } from '@wildo-ai/application-creation-runtime';\nimport { loadSpecificationsCompanionExports } from '../../core/context/companion-package-loaders.companion';\nimport { loadDraftFamilyValues } from '../../core/context/draft-family-values.companion';\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { CompanionIntrospectionService } from '../../core/introspection/services/companion-introspection.companion.service';\nimport {\n DELIBERATION_TEXT_PRODUCER_AGENT_REF,\n DeliberationTextRevisionOutputSchema,\n DeliberationTextRevisionOutputStrictSchema,\n} from '../models/deliberation-agents.actors-system.definitions';\nimport { ExpertAgentRegistration, ensureExpertAgentRegistered, runtimeExpertProfileFromCharter } from '../utils/expert-agent-registration';\n\n/** A TEXT-subject deliberation request (the v1 route; IMAGE arrives with the brand refit). */\nexport interface DeliberationRunOptions {\n workDomain: ExpertWorkDomain;\n /** The assembled work-product brief every pass is grounded on. */\n briefContext: string;\n /** The initial candidate set (inline text; the service persists the bytes). */\n candidates: Array<{ ref: string; text: string }>;\n /** Panel roles — each must have a committed charter AND cover the work domain. */\n reviewerRoleRefs: string[];\n /** Coordinator role — the manager hat; NOT domain-gated (documented in the plan). */\n coordinatorRoleRef: string;\n /** Rubric-deriving role (default: the first reviewer — the domain owner). */\n rubricDeriverRoleRef?: string;\n roundBudget?: number;\n shortlistSize?: number;\n}\n\nexport interface DeliberationRunResult {\n record: DeliberationRecord;\n /** saasRoot-relative path of the persisted record. */\n recordPath: string;\n}\n\nconst DELIBERATIONS_DIR_SEGMENTS = ['.wildo-saas', 'generated', 'deliberations'] as const;\n\n/**\n * Deliberation COMPOSER (agentic deliberation system, Step 3) — the\n * companion half of the split: it owns charters, agents, candidate BYTES\n * and record persistence; the ENGINE (`ActorsSystemBackendService.\n * executeDeliberation`) owns the orchestration semantics.\n *\n * Composition steps: read the committed charters (introspection read-back,\n * Zod-validated) → enforce NARROWNESS fail-closed (every reviewer's role\n * must declare the deliberation's work domain; the coordinator is the\n * manager hat and is not domain-gated) → map charters to runtime profiles\n * (workDomains come from the TEMPLATE — the charter carries substance, the\n * framework carries routing) → persist the initial candidate bytes under\n * `.wildo-saas/generated/deliberations/<ref>/candidates/` → hand the engine\n * a plan whose PRODUCER callback revises TEXT candidates through the\n * `deliberation.text-producer.agent` and persists each revision → persist\n * the returned `DeliberationRecord` (RF-2).\n *\n * Fail-closed posture (RF-6): a reviewer/coordinator role without a\n * committed charter aborts with \"derive + accept the charter first\". A\n * charter accepted after startup needs NO restart: binding a seat registers\n * (or refreshes) the agent built from the charter it read (#2349).\n */\n@injectable()\nexport class DeliberationCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(SAAS_SERVICE_TYPES.ErrorBuilderService)\n private readonly errorBuilder: ErrorBuilderBackendService,\n @inject(SAAS_SERVICE_TYPES.ActorsSystemBackendService)\n private readonly actorsSystemService: ActorsSystemBackendService,\n @inject(SAAS_SERVICE_TYPES.AgentsBackendService)\n private readonly agentsService: AgentsBackendService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext)\n private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.IntrospectionService)\n private readonly companionIntrospectionService: CompanionIntrospectionService,\n @inject(SAAS_SERVICE_TYPES.FlowsActorsRegistryService)\n private readonly flowsActorsRegistry: FlowsActorsRegistryService,\n ) {\n this.logDebug = this.logger.debugByType('DeliberationCompanionService');\n this.logger.setDebugTypeLogging('DeliberationCompanionService', true);\n }\n\n public async run(\n options: DeliberationRunOptions,\n traceContext?: AgentTraceContext,\n ): Promise<DeliberationRunResult> {\n this.validateOptions(options);\n const deliberationRef = `delib-${options.workDomain.toLowerCase()}-${randomUUID().slice(0, 8)}`;\n const deliberationDirAbs = resolve(\n this.companionContext.saasRoot, ...DELIBERATIONS_DIR_SEGMENTS, deliberationRef,\n );\n const candidatesDirAbs = resolve(deliberationDirAbs, 'candidates');\n await mkdir(candidatesDirAbs, { recursive: true });\n\n // ── Experts: committed charters → narrowness-gated bindings ──\n const charters = await this.readCommittedCharters();\n const charterByRole = new Map(charters.map((charter) => [charter.roleRef, charter]));\n const rubricDeriverRole = options.rubricDeriverRoleRef ?? options.reviewerRoleRefs[0];\n /*\n * Each seat's OWN context (#1423), composed once per run from the roles actually seated. Before\n * this, the panel's narrowness lived only in charter prose: every seat received one identical\n * brief, so a design-system guardian and a brand strategist judged the same words.\n */\n const roleContexts = await this.composeExpertRoleContextsByRole([\n ...options.reviewerRoleRefs,\n options.coordinatorRoleRef,\n ...(rubricDeriverRole ? [rubricDeriverRole] : []),\n ]);\n const reviewers = options.reviewerRoleRefs.map((roleRef) =>\n this.bindExpert(roleRef, charterByRole, { reviewDomain: options.workDomain }, roleContexts.get(roleRef)));\n const coordinator = this.bindExpert(options.coordinatorRoleRef, charterByRole, {}, roleContexts.get(options.coordinatorRoleRef));\n const rubricDeriver = this.bindExpert(rubricDeriverRole, charterByRole, {\n ownDomain: options.workDomain,\n }, rubricDeriverRole === undefined ? undefined : roleContexts.get(rubricDeriverRole));\n\n // ── Initial candidates: persist bytes, hand locators+payload to the engine ──\n const relDir = `${DELIBERATIONS_DIR_SEGMENTS.join('/')}/${deliberationRef}/candidates`;\n const initialCandidates: DeliberationCandidateInput[] = [];\n for (const candidate of options.candidates) {\n const fileName = `${candidate.ref}.txt`;\n await writeFile(resolve(candidatesDirAbs, fileName), candidate.text, 'utf8');\n initialCandidates.push({\n ref: candidate.ref,\n storageRef: `${relDir}/${fileName}`,\n content: { kind: FlowsActors_IO_PartKind.TEXT, text: candidate.text },\n });\n }\n\n // ── Producer: TEXT revision via the producer agent + byte persistence ──\n let revisionSequence = 0;\n const producer = {\n produceRevision: async (\n parent: DeliberationCandidateInput,\n revisionPrompt: string,\n ): Promise<DeliberationCandidateInput> => {\n if (parent.content.kind !== FlowsActors_IO_PartKind.TEXT) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: 'The TEXT deliberation route cannot revise non-text candidates.' },\n });\n }\n const revised = await this.reviseText(parent.content.text, revisionPrompt, options.briefContext, traceContext);\n revisionSequence += 1;\n const ref = `${parent.ref}-rev${revisionSequence}`;\n const fileName = `${ref}.txt`;\n await writeFile(resolve(candidatesDirAbs, fileName), revised, 'utf8');\n return {\n ref,\n storageRef: `${relDir}/${fileName}`,\n content: { kind: FlowsActors_IO_PartKind.TEXT, text: revised },\n };\n },\n };\n\n const plan: DeliberationPlan = {\n deliberationRef,\n workDomain: options.workDomain,\n subjectKind: FlowsActors_IO_PartKind.TEXT,\n briefContext: options.briefContext,\n reviewers,\n coordinator,\n rubricDeriver,\n producerAgentRef: DELIBERATION_TEXT_PRODUCER_AGENT_REF,\n producer,\n initialCandidates,\n roundBudget: options.roundBudget ?? 2,\n shortlistSize: options.shortlistSize ?? 2,\n };\n\n this.logDebug('deliberation composed', {\n deliberationRef,\n reviewers: reviewers.map((binding) => binding.profile.roleRef),\n coordinator: coordinator.profile.roleRef,\n candidates: initialCandidates.length,\n });\n\n // ── Engine orchestration → persist the record (RF-2) ────────\n const record = await this.actorsSystemService.executeDeliberation(plan, traceContext);\n const recordPath = `${DELIBERATIONS_DIR_SEGMENTS.join('/')}/${deliberationRef}/record.json`;\n await writeFile(\n resolve(deliberationDirAbs, 'record.json'),\n `${JSON.stringify(record, null, 2)}\\n`,\n 'utf8',\n );\n this.logDebug('deliberation record persisted', {\n deliberationRef,\n status: record.status,\n rounds: record.rounds.length,\n winnerRef: record.synthesis?.winnerRef,\n recordPath,\n });\n return { record, recordPath };\n }\n\n private validateOptions(options: DeliberationRunOptions): void {\n /*\n * The SAME floor the engine enforces (`validateDeliberationPlan`), raised here too\n * so the composer refuses before spending a charter read — and, more importantly,\n * so the two sites do not disagree about what a panel IS. Two floors for one\n * invariant is how a rule ends up half-applied\n * (`invariant-call-site-enumeration.md`); if this bound moves, move both.\n */\n if (options.candidates.length === 0 || options.reviewerRoleRefs.length < 2) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: 'A deliberation needs ≥1 candidate and ≥2 reviewer roles — a panel of one is a judge, '\n + 'not a deliberation, and its record would carry an always-empty dissent.',\n },\n });\n }\n const refs = new Set(options.candidates.map((candidate) => candidate.ref));\n if (refs.size !== options.candidates.length) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: 'Candidate refs must be unique.' },\n });\n }\n }\n\n /**\n * What each seated role reads beyond the shared brief, keyed by role ref (#1423).\n *\n * Resolves each role's DECLARED `shapingInputKinds` against this application's landed families, so\n * per-role selection happens at RUN time rather than being frozen into charter prose at derivation.\n * It is selection from a declaration, not a planner choosing per agent (#251).\n *\n * Best-effort by construction: an unreadable specifications package leaves every seat with the shared\n * brief, which is exactly the behaviour before this existed. A deliberation must not fail because a\n * seat's extra context could not be composed.\n */\n private async composeExpertRoleContextsByRole(roleRefs: readonly (string | undefined)[]): Promise<Map<string, string>> {\n const contexts = new Map<string, string>();\n try {\n const companionExports = await loadSpecificationsCompanionExports(this.companionContext);\n const valuesByFamily = {\n ...Object.fromEntries(await loadDraftFamilyValues(this.companionContext.resolvedSpecifications?.packageRoot)),\n ...decidedFamilyValuesFromCompanionExports(companionExports as unknown as Record<string, unknown>),\n };\n const notApplicableFamilies = resolveNotApplicableFamilies(\n (companionExports as unknown as { creatorInputs?: ApplicationCreatorInputs }).creatorInputs,\n );\n for (const roleRef of new Set(roleRefs.filter((ref): ref is string => ref !== undefined))) {\n const template = getExpertRoleTemplate(roleRef);\n if (!template) continue;\n const composed = composeExpertRoleContext({ shapingInputKinds: template.shapingInputKinds, valuesByFamily, notApplicableFamilies });\n if (composed !== undefined) contexts.set(roleRef, composed);\n }\n } catch (error) {\n this.logger.warn('Per-role deliberation context omitted; every seat reads the shared brief', { error: String(error) });\n }\n return contexts;\n }\n\n /**\n * Resolve one expert seat: committed charter (fail-closed, RF-6) +\n * NARROWNESS enforcement on the right axis — `ownDomain` gates OWNERSHIP\n * (rubric derivation / brief authoring: `template.workDomains`),\n * `reviewDomain` gates PANEL PARTICIPATION (`template.reviewScopes` —\n * a guardian/strategist reviews a mark through its own lens without\n * owning marks) — + charter→runtime-profile mapping (domains from the\n * framework TEMPLATE; substance from the derived charter).\n *\n * Binding also makes the seat's agent EXIST (#2349): the registry is brought to the agent built\n * from the charter this bind just read, so the charters read live and the agents the engine will\n * invoke cannot disagree. Every adopter of this seam (this composer, the logo panel) gets it.\n */\n public bindExpert(\n roleRef: string,\n charterByRole: Map<string, ExpertPersonaCharter>,\n gate: { ownDomain?: ExpertWorkDomain; reviewDomain?: ExpertWorkDomain },\n /**\n * What this seat reads beyond the shared brief (#1423) — see {@link composeExpertRoleContextsByRole}.\n * Optional so the other composer that reuses this seam (the brand/logo IMAGE flow) is unchanged\n * until it supplies one, and a seat without it reads the shared brief alone, as every seat did.\n */\n roleContext?: string,\n ): DeliberationExpertBinding {\n const template = getExpertRoleTemplate(roleRef);\n if (!template) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: `Unknown expert role '${roleRef}' — no such template in EXPERT_ROLE_TEMPLATES.` },\n });\n }\n if (gate.ownDomain !== undefined && !template.workDomains.includes(gate.ownDomain)) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `NARROWNESS (ownership): role '${roleRef}' does not OWN work domain '${gate.ownDomain}' `\n + `(owns [${template.workDomains.join(', ')}]) — only the domain owner authors briefs and `\n + `derives rubrics. Use the owning role instead.`,\n },\n });\n }\n if (gate.reviewDomain !== undefined && !template.reviewScopes.includes(gate.reviewDomain)) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `NARROWNESS (lens): role '${roleRef}' does not review work domain '${gate.reviewDomain}' `\n + `(review scopes: [${template.reviewScopes.join(', ')}]) — an expert never sits on a panel `\n + `outside its lens reach. Convene a role whose review scope covers the domain.`,\n },\n });\n }\n const charter = charterByRole.get(roleRef);\n if (!charter) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `Role '${roleRef}' has no COMMITTED charter — derive + accept it first `\n + `(\\`wildo creation persona derive ${roleRef}\\`, then \\`wildo creation persona accept ${roleRef}\\`). `\n + `No restart is needed: the next deliberation registers its agent. If it was just accepted, `\n + `the specifications package may not have rebuilt yet; the charter is read from its build.`,\n },\n });\n }\n const profile = runtimeExpertProfileFromCharter(charter, template);\n const { agentRef, registration } = ensureExpertAgentRegistered(this.flowsActorsRegistry, profile);\n if (registration !== ExpertAgentRegistration.CURRENT) {\n this.logger.info('Expert agent built from its live charter', { roleRef, charterRef: charter.charterRef, agentRef, registration });\n }\n return {\n profile,\n agentRef,\n ...(roleContext !== undefined && roleContext.trim() !== '' ? { roleContext } : {}),\n };\n }\n\n /**\n * Committed charters via the read-back behavior, Zod-validated at the\n * seam. PUBLIC on purpose: this + `bindExpert` are the shared composer\n * seams other deliberation adopters (e.g. the brand/logo IMAGE flow)\n * reuse instead of duplicating charter/narrowness logic.\n */\n public async readCommittedCharters(): Promise<ExpertPersonaCharter[]> {\n const backendServiceKey = Object.entries(this.companionContext.servicesByKey)\n .find(([, service]) => !service.frontendType)?.[0];\n if (!backendServiceKey) {\n throw this.errorBuilder.buildError(ErrorType.CONFIGURATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.CONFIGURATION,\n context: { message: 'No backend service available to resolve the expert-persona-charters behavior.' },\n });\n }\n /*\n * Checked against the build as it stands now (#2364), because both things done with this answer act\n * on it: a role it lacks is REFUSED, and a role it carries has its agent BUILT from it (#2349). A held\n * answer from before the last accept would refuse a charter that exists, or seat an older persona.\n */\n const introspection = await this.companionIntrospectionService.requestInfo({\n serviceKey: backendServiceKey,\n behavior: 'expert-persona-charters',\n input: {},\n }, { verifyAgainstSource: true });\n if (introspection.success === false) {\n const failure = introspection;\n throw this.errorBuilder.buildError(ErrorType.INTERNAL, undefined, {\n customMessageReference: ErrorCustomMessageReference.INTERNAL,\n context: { message: failure.error.message, behavior: failure.behavior },\n });\n }\n const raw = (introspection.data as { charters?: unknown[] }).charters ?? [];\n return raw.map((candidate, index) => {\n const parsed = ExpertPersonaCharterSchema.safeParse(candidate);\n if (!parsed.success) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `Committed charter at index ${index} is structurally invalid: `\n + parsed.error.issues.map((issue) => `${issue.path.join('.')}: ${issue.message}`).join('; '),\n },\n });\n }\n return parsed.data;\n });\n }\n\n /** One TEXT revision through the producer agent (strict-validated). */\n private async reviseText(\n currentText: string,\n revisionPrompt: string,\n briefContext: string,\n traceContext?: AgentTraceContext,\n ): Promise<string> {\n const prompt = [\n briefContext,\n '',\n '# Current candidate text',\n currentText,\n '',\n revisionPrompt,\n ].join('\\n');\n const invocation: FlowsActors_Agent_Invocation<\n typeof LLMProvider_GenerateStructuredInputSchema,\n typeof LLMProvider_GenerateStructuredOutputSchema\n > = {\n agentRef: DELIBERATION_TEXT_PRODUCER_AGENT_REF,\n initiator: {},\n invocationContext: [],\n input: { prompt, schema: DeliberationTextRevisionOutputSchema },\n output: { object: {} },\n executionContext: {},\n artifactBindings: [],\n };\n const response = await this.agentsService.invokeAgent(invocation, traceContext);\n const raw = (response.output as { object?: unknown } | undefined)?.object;\n const parsed = DeliberationTextRevisionOutputStrictSchema.safeParse(raw);\n if (!parsed.success || parsed.data.revisedText.trim().length === 0) {\n throw this.errorBuilder.buildError(ErrorType.INTERNAL, undefined, {\n customMessageReference: ErrorCustomMessageReference.INTERNAL,\n context: {\n message: 'The text producer returned an invalid/empty revision — re-run the deliberation.',\n },\n });\n }\n return parsed.data.revisedText;\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structured-deliberation.companion.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"structured-deliberation.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/deliberations/services/structured-deliberation.companion.service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iCAAiC,EACvC,MAAM,sCAAsC,CAAC;AAM9C,OAAO,EACL,0BAA0B,EAC1B,aAAa,EAEb,0BAA0B,EAC3B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAIL,KAAK,iBAAiB,EAItB,KAAK,kBAAkB,EACxB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAIhF,2GAA2G;AAC3G,MAAM,WAAW,2BA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AAQ,CAAC,QAAQ,EAAE,2BAA2B,CAAC;QAC/C,QAAQ,CAAC,YAAY,CAAC,EAAE,iBAAiB,CAAC;KAC3C,GAAG,OAAO,CAAC,4BAA4B,CAAC;CA6I1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structured-deliberation.companion.service.js","sourceRoot":"","sources":["../../../../../src/deliberations/services/structured-deliberation.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EACL,0BAA0B,EAC1B,aAAa,EACb,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,2BAA2B,EAC3B,SAAS,EACT,uBAAuB,EAIvB,kBAAkB,GAEnB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAEjF,OAAO,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAEhF,MAAM,0BAA0B,GAAG,CAAC,aAAa,EAAE,WAAW,EAAE,eAAe,CAAU,CAAC;AA+B1F;;;;;;;;;;;;;GAaG;AAEI,IAAM,sCAAsC,GAA5C,MAAM,sCAAsC;IAIK;IAEnC;IAEA;IAEA;IAEA;IAXF,QAAQ,CAA+D;IAExF,YACsD,MAAqB,EAExD,YAAwC,EAExC,mBAA+C,EAE/C,gBAAkC,EAElC,oBAAkD;QARf,WAAM,GAAN,MAAM,CAAe;QAExD,iBAAY,GAAZ,YAAY,CAA4B;QAExC,wBAAmB,GAAnB,mBAAmB,CAA4B;QAE/C,qBAAgB,GAAhB,gBAAgB,CAAkB;QAElC,yBAAoB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C,WAAA,MAAM,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAA;IAE9C,WAAA,MAAM,CAAC,kBAAkB,CAAC,0BAA0B,CAAC,CAAA;IAErD,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;IAEhD,WAAA,MAAM,CAAC,uBAAuB,CAAC,mBAAmB,CAAC,CAAA;qCAPQ,aAAa;QAE1C,0BAA0B;QAEnB,0BAA0B,UAIzB,4BAA4B;GAZ1D,sCAAsC,CAwKlD","sourcesContent":["import {\n type MetaWorkflow_PlaybookDeliberation,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport { randomUUID } from 'node:crypto';\nimport { mkdir, writeFile } from 'node:fs/promises';\nimport { resolve } from 'node:path';\n\nimport { inject, injectable } from 'inversify';\nimport {\n ErrorBuilderBackendService,\n LoggerService,\n SAAS_SERVICE_TYPES,\n ActorsSystemBackendService,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n ErrorCustomMessageReference,\n ErrorType,\n FlowsActors_IO_PartKind,\n type AgentTraceContext,\n type DeliberationCandidateInput,\n type DeliberationPlan,\n DeliberationStatus,\n type DeliberationRecord,\n} from '@wildo-ai/saas-models';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { DeliberationCompanionService } from './deliberation.companion.service';\n\nconst DELIBERATIONS_DIR_SEGMENTS = ['.wildo-saas', 'generated', 'deliberations'] as const;\n\n/** How one structured candidate is produced or revised — supplied by the caller, which owns the schema. */\nexport interface StructuredCandidateProducer {\n /** Identity of the agent used by the caller's initial/revision callbacks. The caller owns registry resolution; this service retains its nonempty identity in the review record. */\n readonly agentRef: string;\n /**\n * Produce candidate `index` of `total`. The caller varies its own prompt so the\n * candidates genuinely differ; this service never composes prompts, because the\n * brief belongs to whatever family is being deliberated.\n */\n produceInitial(index: number, total: number): Promise<unknown>;\n /** Revise `parent` against the coordinator's deterministic revision prompt. */\n produceRevision(parent: unknown, revisionPrompt: string): Promise<unknown>;\n /**\n * OPTIONAL human-readable framing rendered ABOVE the candidate's JSON — never\n * instead of it. See `DeliberationCandidateContent`: the engine always renders the\n * value, so a projection that drifts cannot cause the panel to score prose while\n * the winner is data.\n */\n project?(value: unknown): string | undefined;\n}\n\nexport interface StructuredDeliberationResult {\n /** The winning candidate's value — what the caller lands. */\n readonly winner: unknown;\n readonly record: DeliberationRecord;\n /** saasRoot-relative path of the persisted record. */\n readonly recordPath: string;\n}\n\n/**\n * Runs an expert panel over STRUCTURED candidates.\n *\n * The sibling of `LogoDeliberationCompanionService` for the third subject kind, and\n * built the same way: charter reading and narrowness gating are delegated to the\n * shared `DeliberationCompanionService` seams (`readCommittedCharters`, `bindExpert`),\n * so the working TEXT route is untouched and there is one implementation of \"who may\n * sit on this panel\".\n *\n * Deliberately GENERIC over the family. It knows nothing about placement, or any\n * other artifact: the caller owns the schema, the brief and the prompts, and hands in\n * a producer. That keeps this service from accumulating a per-family branch every\n * time another artifact becomes worth arguing over.\n */\n@injectable()\nexport class StructuredDeliberationCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(SAAS_SERVICE_TYPES.ErrorBuilderService)\n private readonly errorBuilder: ErrorBuilderBackendService,\n @inject(SAAS_SERVICE_TYPES.ActorsSystemBackendService)\n private readonly actorsSystemService: ActorsSystemBackendService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext)\n private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.DeliberationService)\n private readonly deliberationComposer: DeliberationCompanionService,\n ) {\n this.logDebug = this.logger.debugByType('StructuredDeliberationCompanionService');\n this.logger.setDebugTypeLogging('StructuredDeliberationCompanionService', true);\n }\n\n public async run(input: {\n /** The panel, as the playbook declared it. */\n readonly panel: MetaWorkflow_PlaybookDeliberation;\n /** The assembled brief every pass is grounded on — the caller's, not this service's. */\n readonly briefContext: string;\n /** Correlation label, e.g. `placement-plan`. Used in the deliberation ref. */\n readonly label: string;\n readonly producer: StructuredCandidateProducer;\n readonly traceContext?: AgentTraceContext;\n }): Promise<StructuredDeliberationResult> {\n const { panel, producer } = input;\n if (typeof producer.agentRef !== 'string' || producer.agentRef.trim().length === 0) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: 'A structured deliberation must name the agent that produces its candidates and revisions.' },\n });\n }\n const deliberationRef = `delib-${input.label.toLowerCase().replace(/[^a-z0-9]+/g, '-')}-${randomUUID().slice(0, 8)}`;\n const deliberationDirAbs = resolve(this.companionContext.saasRoot, ...DELIBERATIONS_DIR_SEGMENTS, deliberationRef);\n const candidatesDirAbs = resolve(deliberationDirAbs, 'candidates');\n await mkdir(candidatesDirAbs, { recursive: true });\n const relDir = `${DELIBERATIONS_DIR_SEGMENTS.join('/')}/${deliberationRef}/candidates`;\n\n // ── Panel: committed charters → narrowness-gated bindings (shared seams) ──\n const charters = await this.deliberationComposer.readCommittedCharters();\n const charterByRole = new Map(charters.map((charter) => [charter.roleRef, charter]));\n const reviewers = panel.reviewerRoleRefs.map((roleRef) =>\n this.deliberationComposer.bindExpert(roleRef, charterByRole, { reviewDomain: panel.workDomain }));\n const coordinator = this.deliberationComposer.bindExpert(panel.coordinatorRoleRef, charterByRole, {});\n const rubricDeriverRole = panel.rubricDeriverRoleRef ?? panel.reviewerRoleRefs[0]!;\n const rubricDeriver = this.deliberationComposer.bindExpert(rubricDeriverRole, charterByRole, {\n ownDomain: panel.workDomain,\n });\n\n // ── Initial candidates: persist bytes, hand locators + payload to the engine ──\n /*\n * Every candidate VALUE this run produced, keyed by ref — initial and revised alike.\n *\n * Necessary because the persisted `DeliberationRecord` carries only refs and\n * storage locators, never payloads (the engine never holds candidate bytes, RF-2).\n * A first cut resolved the winner from `record.rounds[].candidateSet` and would\n * have resolved any REVISED winner to `undefined` — which is most of them, since\n * revision is the point of a multi-round panel.\n */\n const valueByRef = new Map<string, unknown>();\n\n const persist = async (ref: string, value: unknown): Promise<DeliberationCandidateInput> => {\n const fileName = `${ref}.json`;\n await writeFile(resolve(candidatesDirAbs, fileName), `${JSON.stringify(value, null, 2)}\\n`, 'utf8');\n valueByRef.set(ref, value);\n const projection = producer.project?.(value);\n return {\n ref,\n storageRef: `${relDir}/${fileName}`,\n content: {\n kind: FlowsActors_IO_PartKind.STRUCTURED,\n value,\n ...(projection === undefined ? {} : { projection }),\n },\n };\n };\n\n const initialCandidates: DeliberationCandidateInput[] = [];\n for (let index = 0; index < panel.candidateCount; index += 1) {\n const value = await producer.produceInitial(index, panel.candidateCount);\n initialCandidates.push(await persist(`c${index + 1}`, value));\n }\n if (initialCandidates.length === 0) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: 'A structured deliberation produced no candidates — there is nothing to deliberate over.' },\n });\n }\n\n let revisionSequence = 0;\n const plan: DeliberationPlan = {\n deliberationRef,\n workDomain: panel.workDomain,\n subjectKind: FlowsActors_IO_PartKind.STRUCTURED,\n briefContext: input.briefContext,\n reviewers,\n coordinator,\n rubricDeriver,\n // The revision producer is the CALLER's structured generator, not the text\n // producer agent; this ref is the audit stamp for who produced revisions, and\n // naming the text agent would be a lie about what ran.\n producerAgentRef: producer.agentRef,\n producer: {\n produceRevision: async (parent, revisionPrompt) => {\n if (parent.content.kind !== FlowsActors_IO_PartKind.STRUCTURED) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: 'The STRUCTURED deliberation route cannot revise a non-structured candidate.' },\n });\n }\n const revised = await producer.produceRevision(parent.content.value, revisionPrompt);\n revisionSequence += 1;\n return persist(`${parent.ref}-rev${revisionSequence}`, revised);\n },\n },\n initialCandidates,\n roundBudget: panel.roundBudget ?? 2,\n shortlistSize: panel.shortlistSize ?? 2,\n };\n\n const record = await this.actorsSystemService.executeDeliberation(plan, input.traceContext);\n const recordPath = `${DELIBERATIONS_DIR_SEGMENTS.join('/')}/${deliberationRef}/record.json`;\n await writeFile(resolve(deliberationDirAbs, 'record.json'), `${JSON.stringify(record, null, 2)}\\n`, 'utf8');\n\n /*\n * Resolve the winner from the values THIS RUN produced, and fail loudly when the\n * ref does not resolve: a coordinator naming a candidate that does not exist must\n * never land an `undefined` artifact.\n */\n /*\n * A REJECTED panel is a RESULT, and it must not surface as \"something went wrong\".\n * The engine completed, every lens was heard, and the answer is \"none of these\" —\n * so the message says that, names the rejected count, and points at the record\n * where the critiques are. Reporting it as a missing winner would send the reader\n * looking for a defect in the machinery instead of at the candidates.\n */\n if (record.status === DeliberationStatus.REJECTED) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `The panel REJECTED every one of the ${initialCandidates.length} candidate(s) for `\n + `'${input.label}' — this is a verdict, not a failure. Nothing is landed. The reviewers' `\n + `critiques are in ${recordPath}; widen the brief or the candidate set and re-run.`,\n },\n });\n }\n\n const winnerRef = record.synthesis?.winnerRef;\n const winner = winnerRef === undefined ? undefined : valueByRef.get(winnerRef);\n if (winnerRef === undefined || winner === undefined) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `The deliberation produced no resolvable winner (synthesis ref ${winnerRef ?? 'absent'}); `\n + `record at ${recordPath}. A run that cannot name its winner has decided nothing, and landing `\n + 'anything here would attribute an unargued artifact to a panel.',\n },\n });\n }\n\n this.logDebug('structured deliberation complete', {\n deliberationRef, status: record.status, rounds: record.rounds.length, winnerRef, recordPath,\n });\n return { winner, record, recordPath };\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"structured-deliberation.companion.service.js","sourceRoot":"","sources":["../../../../src/deliberations/services/structured-deliberation.companion.service.ts"],"names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B;QAEnB,0BAA0B,UAIzB,4BAA4B;GAZ1D,sCAAsC,CAwKlD","sourcesContent":["import {\n type MetaWorkflow_PlaybookDeliberation,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport { randomUUID } from 'node:crypto';\nimport { mkdir, writeFile } from 'node:fs/promises';\nimport { resolve } from 'node:path';\n\nimport { inject, injectable } from 'inversify';\nimport {\n ErrorBuilderBackendService,\n LoggerService,\n SAAS_SERVICE_TYPES,\n ActorsSystemBackendService,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n ErrorCustomMessageReference,\n ErrorType,\n FlowsActors_IO_PartKind,\n type AgentTraceContext,\n type DeliberationCandidateInput,\n type DeliberationPlan,\n DeliberationStatus,\n type DeliberationRecord,\n} from '@wildo-ai/saas-models';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { DeliberationCompanionService } from './deliberation.companion.service';\n\nconst DELIBERATIONS_DIR_SEGMENTS = ['.wildo-saas', 'generated', 'deliberations'] as const;\n\n/** How one structured candidate is produced or revised — supplied by the caller, which owns the schema. */\nexport interface StructuredCandidateProducer {\n /** Identity of the agent used by the caller's initial/revision callbacks. The caller owns registry resolution; this service retains its nonempty identity in the review record. */\n readonly agentRef: string;\n /**\n * Produce candidate `index` of `total`. The caller varies its own prompt so the\n * candidates genuinely differ; this service never composes prompts, because the\n * brief belongs to whatever family is being deliberated.\n */\n produceInitial(index: number, total: number): Promise<unknown>;\n /** Revise `parent` against the coordinator's deterministic revision prompt. */\n produceRevision(parent: unknown, revisionPrompt: string): Promise<unknown>;\n /**\n * OPTIONAL human-readable framing rendered ABOVE the candidate's JSON — never\n * instead of it. See `DeliberationCandidateContent`: the engine always renders the\n * value, so a projection that drifts cannot cause the panel to score prose while\n * the winner is data.\n */\n project?(value: unknown): string | undefined;\n}\n\nexport interface StructuredDeliberationResult {\n /** The winning candidate's value — what the caller lands. */\n readonly winner: unknown;\n readonly record: DeliberationRecord;\n /** saasRoot-relative path of the persisted record. */\n readonly recordPath: string;\n}\n\n/**\n * Runs an expert panel over STRUCTURED candidates.\n *\n * The sibling of `LogoDeliberationCompanionService` for the third subject kind, and\n * built the same way: charter reading and narrowness gating are delegated to the\n * shared `DeliberationCompanionService` seams (`readCommittedCharters`, `bindExpert`),\n * so the working TEXT route is untouched and there is one implementation of \"who may\n * sit on this panel\".\n *\n * Deliberately GENERIC over the family. It knows nothing about placement, or any\n * other artifact: the caller owns the schema, the brief and the prompts, and hands in\n * a producer. That keeps this service from accumulating a per-family branch every\n * time another artifact becomes worth arguing over.\n */\n@injectable()\nexport class StructuredDeliberationCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(SAAS_SERVICE_TYPES.ErrorBuilderService)\n private readonly errorBuilder: ErrorBuilderBackendService,\n @inject(SAAS_SERVICE_TYPES.ActorsSystemBackendService)\n private readonly actorsSystemService: ActorsSystemBackendService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext)\n private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.DeliberationService)\n private readonly deliberationComposer: DeliberationCompanionService,\n ) {\n this.logDebug = this.logger.debugByType('StructuredDeliberationCompanionService');\n this.logger.setDebugTypeLogging('StructuredDeliberationCompanionService', true);\n }\n\n public async run(input: {\n /** The panel, as the playbook declared it. */\n readonly panel: MetaWorkflow_PlaybookDeliberation;\n /** The assembled brief every pass is grounded on — the caller's, not this service's. */\n readonly briefContext: string;\n /** Correlation label, e.g. `placement-plan`. Used in the deliberation ref. */\n readonly label: string;\n readonly producer: StructuredCandidateProducer;\n readonly traceContext?: AgentTraceContext;\n }): Promise<StructuredDeliberationResult> {\n const { panel, producer } = input;\n if (typeof producer.agentRef !== 'string' || producer.agentRef.trim().length === 0) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: 'A structured deliberation must name the agent that produces its candidates and revisions.' },\n });\n }\n const deliberationRef = `delib-${input.label.toLowerCase().replace(/[^a-z0-9]+/g, '-')}-${randomUUID().slice(0, 8)}`;\n const deliberationDirAbs = resolve(this.companionContext.saasRoot, ...DELIBERATIONS_DIR_SEGMENTS, deliberationRef);\n const candidatesDirAbs = resolve(deliberationDirAbs, 'candidates');\n await mkdir(candidatesDirAbs, { recursive: true });\n const relDir = `${DELIBERATIONS_DIR_SEGMENTS.join('/')}/${deliberationRef}/candidates`;\n\n // ── Panel: committed charters → narrowness-gated bindings (shared seams) ──\n const charters = await this.deliberationComposer.readCommittedCharters();\n const charterByRole = new Map(charters.map((charter) => [charter.roleRef, charter]));\n const reviewers = panel.reviewerRoleRefs.map((roleRef) =>\n this.deliberationComposer.bindExpert(roleRef, charterByRole, { reviewDomain: panel.workDomain }));\n const coordinator = this.deliberationComposer.bindExpert(panel.coordinatorRoleRef, charterByRole, {});\n const rubricDeriverRole = panel.rubricDeriverRoleRef ?? panel.reviewerRoleRefs[0]!;\n const rubricDeriver = this.deliberationComposer.bindExpert(rubricDeriverRole, charterByRole, {\n ownDomain: panel.workDomain,\n });\n\n // ── Initial candidates: persist bytes, hand locators + payload to the engine ──\n /*\n * Every candidate VALUE this run produced, keyed by ref — initial and revised alike.\n *\n * Necessary because the persisted `DeliberationRecord` carries only refs and\n * storage locators, never payloads (the engine never holds candidate bytes, RF-2).\n * A first cut resolved the winner from `record.rounds[].candidateSet` and would\n * have resolved any REVISED winner to `undefined` — which is most of them, since\n * revision is the point of a multi-round panel.\n */\n const valueByRef = new Map<string, unknown>();\n\n const persist = async (ref: string, value: unknown): Promise<DeliberationCandidateInput> => {\n const fileName = `${ref}.json`;\n await writeFile(resolve(candidatesDirAbs, fileName), `${JSON.stringify(value, null, 2)}\\n`, 'utf8');\n valueByRef.set(ref, value);\n const projection = producer.project?.(value);\n return {\n ref,\n storageRef: `${relDir}/${fileName}`,\n content: {\n kind: FlowsActors_IO_PartKind.STRUCTURED,\n value,\n ...(projection === undefined ? {} : { projection }),\n },\n };\n };\n\n const initialCandidates: DeliberationCandidateInput[] = [];\n for (let index = 0; index < panel.candidateCount; index += 1) {\n const value = await producer.produceInitial(index, panel.candidateCount);\n initialCandidates.push(await persist(`c${index + 1}`, value));\n }\n if (initialCandidates.length === 0) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: 'A structured deliberation produced no candidates — there is nothing to deliberate over.' },\n });\n }\n\n let revisionSequence = 0;\n const plan: DeliberationPlan = {\n deliberationRef,\n workDomain: panel.workDomain,\n subjectKind: FlowsActors_IO_PartKind.STRUCTURED,\n briefContext: input.briefContext,\n reviewers,\n coordinator,\n rubricDeriver,\n // The revision producer is the CALLER's structured generator, not the text\n // producer agent; this ref is the audit stamp for who produced revisions, and\n // naming the text agent would be a lie about what ran.\n producerAgentRef: producer.agentRef,\n producer: {\n produceRevision: async (parent, revisionPrompt) => {\n if (parent.content.kind !== FlowsActors_IO_PartKind.STRUCTURED) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: 'The STRUCTURED deliberation route cannot revise a non-structured candidate.' },\n });\n }\n const revised = await producer.produceRevision(parent.content.value, revisionPrompt);\n revisionSequence += 1;\n return persist(`${parent.ref}-rev${revisionSequence}`, revised);\n },\n },\n initialCandidates,\n roundBudget: panel.roundBudget ?? 2,\n shortlistSize: panel.shortlistSize ?? 2,\n };\n\n const record = await this.actorsSystemService.executeDeliberation(plan, input.traceContext);\n const recordPath = `${DELIBERATIONS_DIR_SEGMENTS.join('/')}/${deliberationRef}/record.json`;\n await writeFile(resolve(deliberationDirAbs, 'record.json'), `${JSON.stringify(record, null, 2)}\\n`, 'utf8');\n\n /*\n * Resolve the winner from the values THIS RUN produced, and fail loudly when the\n * ref does not resolve: a coordinator naming a candidate that does not exist must\n * never land an `undefined` artifact.\n */\n /*\n * A REJECTED panel is a RESULT, and it must not surface as \"something went wrong\".\n * The engine completed, every lens was heard, and the answer is \"none of these\" —\n * so the message says that, names the rejected count, and points at the record\n * where the critiques are. Reporting it as a missing winner would send the reader\n * looking for a defect in the machinery instead of at the candidates.\n */\n if (record.status === DeliberationStatus.REJECTED) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `The panel REJECTED every one of the ${initialCandidates.length} candidate(s) for `\n + `'${input.label}' — this is a verdict, not a failure. Nothing is landed. The reviewers' `\n + `critiques are in ${recordPath}; widen the brief or the candidate set and re-run.`,\n },\n });\n }\n\n const winnerRef = record.synthesis?.winnerRef;\n const winner = winnerRef === undefined ? undefined : valueByRef.get(winnerRef);\n if (winnerRef === undefined || winner === undefined) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `The deliberation produced no resolvable winner (synthesis ref ${winnerRef ?? 'absent'}); `\n + `record at ${recordPath}. A run that cannot name its winner has decided nothing, and landing `\n + 'anything here would attribute an unargued artifact to a panel.',\n },\n });\n }\n\n this.logDebug('structured deliberation complete', {\n deliberationRef, status: record.status, rounds: record.rounds.length, winnerRef, recordPath,\n });\n return { winner, record, recordPath };\n }\n}\n"]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { FlowsActorsRegistryService } from '@wildo-ai/saas-backend-lib';
|
|
2
|
+
import type { RuntimeExpertProfile } from '@wildo-ai/saas-models';
|
|
3
|
+
import type { ExpertPersonaCharter, ExpertRoleTemplate } from '@wildo-ai/saas-specifications';
|
|
4
|
+
/**
|
|
5
|
+
* The runtime profile a deliberation seat carries: the work domains come from the framework TEMPLATE,
|
|
6
|
+
* everything else from the application's derived CHARTER. One mapping, used by the startup loader and
|
|
7
|
+
* by `DeliberationCompanionService.bindExpert`, so the agent registered at startup and the one a
|
|
8
|
+
* deliberation binds are built from the same projection.
|
|
9
|
+
*/
|
|
10
|
+
export declare function runtimeExpertProfileFromCharter(charter: ExpertPersonaCharter, template: ExpertRoleTemplate): RuntimeExpertProfile;
|
|
11
|
+
/** What {@link ensureExpertAgentRegistered} did. */
|
|
12
|
+
export declare enum ExpertAgentRegistration {
|
|
13
|
+
/** The registered agent was already built from this charter. Nothing was written. */
|
|
14
|
+
CURRENT = "current",
|
|
15
|
+
/** No agent was registered for the role: the charter was accepted after the companion started. */
|
|
16
|
+
REGISTERED = "registered",
|
|
17
|
+
/** An agent was registered from an OLDER charter of the role, and was replaced. */
|
|
18
|
+
REFRESHED = "refreshed"
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Make the registry hold the agent built from THIS profile, and return its ref (#2349).
|
|
22
|
+
*
|
|
23
|
+
* ## Why the registry follows the charter here
|
|
24
|
+
*
|
|
25
|
+
* Charters had two readers. The startup loader built one agent per committed charter, ONCE, and
|
|
26
|
+
* nothing registered an agent afterwards. Every deliberation read the charters LIVE and bound
|
|
27
|
+
* `expertAgentRefForRole(roleRef)`. So a charter accepted after startup was bound to an agent that did
|
|
28
|
+
* not exist, the rubric pass hit the registry's bare NOT_FOUND, and the run was refused as
|
|
29
|
+
* `not_found`, while the journey (which also reads live) called the playbook eligible. Only a restart
|
|
30
|
+
* could recover, and a restart kills every unattended loop in flight.
|
|
31
|
+
*
|
|
32
|
+
* `buildExpertAgent` is pure and the profile is already in hand at bind time, so the agent is built
|
|
33
|
+
* here, where it is used. The live charter read is now the one source; the startup registration is
|
|
34
|
+
* just this function having run early.
|
|
35
|
+
*
|
|
36
|
+
* ## What counts as current
|
|
37
|
+
*
|
|
38
|
+
* The built agent's `promptSpec` is compared with the registered one. Everything a charter contributes
|
|
39
|
+
* to an agent lives there (the persona), so a re-accepted charter with new prose is REFRESHED and an
|
|
40
|
+
* unchanged one writes nothing. A provider or model change is a framework change and arrives with a
|
|
41
|
+
* restart, as every other framework change does.
|
|
42
|
+
*
|
|
43
|
+
* ## Residual, stated rather than discovered
|
|
44
|
+
*
|
|
45
|
+
* The engine resolves an agent per CALL, by ref. If a role's charter changes while a deliberation that
|
|
46
|
+
* seats it is mid-run, and a second deliberation binds the role, the first run's remaining calls use
|
|
47
|
+
* the new persona. Its record still names the charterRef it bound, which is unchanged across
|
|
48
|
+
* re-acceptance (`<role>-charter`). Keying agents by charter revision would close it, and was not done:
|
|
49
|
+
* it needs a revision identity the charter does not carry, and the window is a re-acceptance during a
|
|
50
|
+
* concurrent run of the same role.
|
|
51
|
+
*/
|
|
52
|
+
export declare function ensureExpertAgentRegistered(registry: Pick<FlowsActorsRegistryService, 'getAgent' | 'registerAgent'>, profile: RuntimeExpertProfile): {
|
|
53
|
+
agentRef: string;
|
|
54
|
+
registration: ExpertAgentRegistration;
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=expert-agent-registration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expert-agent-registration.d.ts","sourceRoot":"","sources":["../../../../src/deliberations/utils/expert-agent-registration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAI9F;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAAC,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,kBAAkB,GAAG,oBAAoB,CAWjI;AAED,oDAAoD;AACpD,oBAAY,uBAAuB;IACjC,qFAAqF;IACrF,OAAO,YAAY;IACnB,kGAAkG;IAClG,UAAU,eAAe;IACzB,mFAAmF;IACnF,SAAS,cAAc;CACxB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,IAAI,CAAC,0BAA0B,EAAE,UAAU,GAAG,eAAe,CAAC,EACxE,OAAO,EAAE,oBAAoB,GAC5B;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,uBAAuB,CAAA;CAAE,CAW7D"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { buildExpertAgent } from '../models/deliberation-agents.actors-system.definitions.js';
|
|
2
|
+
/**
|
|
3
|
+
* The runtime profile a deliberation seat carries: the work domains come from the framework TEMPLATE,
|
|
4
|
+
* everything else from the application's derived CHARTER. One mapping, used by the startup loader and
|
|
5
|
+
* by `DeliberationCompanionService.bindExpert`, so the agent registered at startup and the one a
|
|
6
|
+
* deliberation binds are built from the same projection.
|
|
7
|
+
*/
|
|
8
|
+
export function runtimeExpertProfileFromCharter(charter, template) {
|
|
9
|
+
return {
|
|
10
|
+
charterRef: charter.charterRef,
|
|
11
|
+
roleRef: charter.roleRef,
|
|
12
|
+
workDomains: template.workDomains,
|
|
13
|
+
personaProse: charter.personaProse,
|
|
14
|
+
priorities: charter.priorities,
|
|
15
|
+
taboos: charter.taboos,
|
|
16
|
+
...(charter.qualityBar !== undefined ? { qualityBar: charter.qualityBar } : {}),
|
|
17
|
+
...(charter.reviewProtocol !== undefined ? { reviewProtocol: charter.reviewProtocol } : {}),
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
/** What {@link ensureExpertAgentRegistered} did. */
|
|
21
|
+
export var ExpertAgentRegistration;
|
|
22
|
+
(function (ExpertAgentRegistration) {
|
|
23
|
+
/** The registered agent was already built from this charter. Nothing was written. */
|
|
24
|
+
ExpertAgentRegistration["CURRENT"] = "current";
|
|
25
|
+
/** No agent was registered for the role: the charter was accepted after the companion started. */
|
|
26
|
+
ExpertAgentRegistration["REGISTERED"] = "registered";
|
|
27
|
+
/** An agent was registered from an OLDER charter of the role, and was replaced. */
|
|
28
|
+
ExpertAgentRegistration["REFRESHED"] = "refreshed";
|
|
29
|
+
})(ExpertAgentRegistration || (ExpertAgentRegistration = {}));
|
|
30
|
+
/**
|
|
31
|
+
* Make the registry hold the agent built from THIS profile, and return its ref (#2349).
|
|
32
|
+
*
|
|
33
|
+
* ## Why the registry follows the charter here
|
|
34
|
+
*
|
|
35
|
+
* Charters had two readers. The startup loader built one agent per committed charter, ONCE, and
|
|
36
|
+
* nothing registered an agent afterwards. Every deliberation read the charters LIVE and bound
|
|
37
|
+
* `expertAgentRefForRole(roleRef)`. So a charter accepted after startup was bound to an agent that did
|
|
38
|
+
* not exist, the rubric pass hit the registry's bare NOT_FOUND, and the run was refused as
|
|
39
|
+
* `not_found`, while the journey (which also reads live) called the playbook eligible. Only a restart
|
|
40
|
+
* could recover, and a restart kills every unattended loop in flight.
|
|
41
|
+
*
|
|
42
|
+
* `buildExpertAgent` is pure and the profile is already in hand at bind time, so the agent is built
|
|
43
|
+
* here, where it is used. The live charter read is now the one source; the startup registration is
|
|
44
|
+
* just this function having run early.
|
|
45
|
+
*
|
|
46
|
+
* ## What counts as current
|
|
47
|
+
*
|
|
48
|
+
* The built agent's `promptSpec` is compared with the registered one. Everything a charter contributes
|
|
49
|
+
* to an agent lives there (the persona), so a re-accepted charter with new prose is REFRESHED and an
|
|
50
|
+
* unchanged one writes nothing. A provider or model change is a framework change and arrives with a
|
|
51
|
+
* restart, as every other framework change does.
|
|
52
|
+
*
|
|
53
|
+
* ## Residual, stated rather than discovered
|
|
54
|
+
*
|
|
55
|
+
* The engine resolves an agent per CALL, by ref. If a role's charter changes while a deliberation that
|
|
56
|
+
* seats it is mid-run, and a second deliberation binds the role, the first run's remaining calls use
|
|
57
|
+
* the new persona. Its record still names the charterRef it bound, which is unchanged across
|
|
58
|
+
* re-acceptance (`<role>-charter`). Keying agents by charter revision would close it, and was not done:
|
|
59
|
+
* it needs a revision identity the charter does not carry, and the window is a re-acceptance during a
|
|
60
|
+
* concurrent run of the same role.
|
|
61
|
+
*/
|
|
62
|
+
export function ensureExpertAgentRegistered(registry, profile) {
|
|
63
|
+
const built = buildExpertAgent(profile);
|
|
64
|
+
const existing = registry.getAgent(built.ref);
|
|
65
|
+
if (existing !== undefined && JSON.stringify(existing.promptSpec) === JSON.stringify(built.promptSpec)) {
|
|
66
|
+
return { agentRef: built.ref, registration: ExpertAgentRegistration.CURRENT };
|
|
67
|
+
}
|
|
68
|
+
registry.registerAgent(built);
|
|
69
|
+
return {
|
|
70
|
+
agentRef: built.ref,
|
|
71
|
+
registration: existing === undefined ? ExpertAgentRegistration.REGISTERED : ExpertAgentRegistration.REFRESHED,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=expert-agent-registration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expert-agent-registration.js","sourceRoot":"","sources":["../../../../src/deliberations/utils/expert-agent-registration.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yDAAyD,CAAC;AAE3F;;;;;GAKG;AACH,MAAM,UAAU,+BAA+B,CAAC,OAA6B,EAAE,QAA4B;IACzG,OAAO;QACL,UAAU,EAAE,OAAO,CAAC,UAAU;QAC9B,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,WAAW,EAAE,QAAQ,CAAC,WAAW;QACjC,YAAY,EAAE,OAAO,CAAC,YAAY;QAClC,UAAU,EAAE,OAAO,CAAC,UAAU;QAC9B,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,GAAG,CAAC,OAAO,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/E,GAAG,CAAC,OAAO,CAAC,cAAc,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC5F,CAAC;AACJ,CAAC;AAED,oDAAoD;AACpD,MAAM,CAAN,IAAY,uBAOX;AAPD,WAAY,uBAAuB;IACjC,qFAAqF;IACrF,8CAAmB,CAAA;IACnB,kGAAkG;IAClG,oDAAyB,CAAA;IACzB,mFAAmF;IACnF,kDAAuB,CAAA;AACzB,CAAC,EAPW,uBAAuB,KAAvB,uBAAuB,QAOlC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,UAAU,2BAA2B,CACzC,QAAwE,EACxE,OAA6B;IAE7B,MAAM,KAAK,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACxC,MAAM,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC9C,IAAI,QAAQ,KAAK,SAAS,IAAI,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC;QACvG,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,GAAG,EAAE,YAAY,EAAE,uBAAuB,CAAC,OAAO,EAAE,CAAC;IAChF,CAAC;IACD,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC9B,OAAO;QACL,QAAQ,EAAE,KAAK,CAAC,GAAG;QACnB,YAAY,EAAE,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC,CAAC,uBAAuB,CAAC,SAAS;KAC9G,CAAC;AACJ,CAAC","sourcesContent":["import type { FlowsActorsRegistryService } from '@wildo-ai/saas-backend-lib';\nimport type { RuntimeExpertProfile } from '@wildo-ai/saas-models';\nimport type { ExpertPersonaCharter, ExpertRoleTemplate } from '@wildo-ai/saas-specifications';\n\nimport { buildExpertAgent } from '../models/deliberation-agents.actors-system.definitions';\n\n/**\n * The runtime profile a deliberation seat carries: the work domains come from the framework TEMPLATE,\n * everything else from the application's derived CHARTER. One mapping, used by the startup loader and\n * by `DeliberationCompanionService.bindExpert`, so the agent registered at startup and the one a\n * deliberation binds are built from the same projection.\n */\nexport function runtimeExpertProfileFromCharter(charter: ExpertPersonaCharter, template: ExpertRoleTemplate): RuntimeExpertProfile {\n return {\n charterRef: charter.charterRef,\n roleRef: charter.roleRef,\n workDomains: template.workDomains,\n personaProse: charter.personaProse,\n priorities: charter.priorities,\n taboos: charter.taboos,\n ...(charter.qualityBar !== undefined ? { qualityBar: charter.qualityBar } : {}),\n ...(charter.reviewProtocol !== undefined ? { reviewProtocol: charter.reviewProtocol } : {}),\n };\n}\n\n/** What {@link ensureExpertAgentRegistered} did. */\nexport enum ExpertAgentRegistration {\n /** The registered agent was already built from this charter. Nothing was written. */\n CURRENT = 'current',\n /** No agent was registered for the role: the charter was accepted after the companion started. */\n REGISTERED = 'registered',\n /** An agent was registered from an OLDER charter of the role, and was replaced. */\n REFRESHED = 'refreshed',\n}\n\n/**\n * Make the registry hold the agent built from THIS profile, and return its ref (#2349).\n *\n * ## Why the registry follows the charter here\n *\n * Charters had two readers. The startup loader built one agent per committed charter, ONCE, and\n * nothing registered an agent afterwards. Every deliberation read the charters LIVE and bound\n * `expertAgentRefForRole(roleRef)`. So a charter accepted after startup was bound to an agent that did\n * not exist, the rubric pass hit the registry's bare NOT_FOUND, and the run was refused as\n * `not_found`, while the journey (which also reads live) called the playbook eligible. Only a restart\n * could recover, and a restart kills every unattended loop in flight.\n *\n * `buildExpertAgent` is pure and the profile is already in hand at bind time, so the agent is built\n * here, where it is used. The live charter read is now the one source; the startup registration is\n * just this function having run early.\n *\n * ## What counts as current\n *\n * The built agent's `promptSpec` is compared with the registered one. Everything a charter contributes\n * to an agent lives there (the persona), so a re-accepted charter with new prose is REFRESHED and an\n * unchanged one writes nothing. A provider or model change is a framework change and arrives with a\n * restart, as every other framework change does.\n *\n * ## Residual, stated rather than discovered\n *\n * The engine resolves an agent per CALL, by ref. If a role's charter changes while a deliberation that\n * seats it is mid-run, and a second deliberation binds the role, the first run's remaining calls use\n * the new persona. Its record still names the charterRef it bound, which is unchanged across\n * re-acceptance (`<role>-charter`). Keying agents by charter revision would close it, and was not done:\n * it needs a revision identity the charter does not carry, and the window is a re-acceptance during a\n * concurrent run of the same role.\n */\nexport function ensureExpertAgentRegistered(\n registry: Pick<FlowsActorsRegistryService, 'getAgent' | 'registerAgent'>,\n profile: RuntimeExpertProfile,\n): { agentRef: string; registration: ExpertAgentRegistration } {\n const built = buildExpertAgent(profile);\n const existing = registry.getAgent(built.ref);\n if (existing !== undefined && JSON.stringify(existing.promptSpec) === JSON.stringify(built.promptSpec)) {\n return { agentRef: built.ref, registration: ExpertAgentRegistration.CURRENT };\n }\n registry.registerAgent(built);\n return {\n agentRef: built.ref,\n registration: existing === undefined ? ExpertAgentRegistration.REGISTERED : ExpertAgentRegistration.REFRESHED,\n };\n}\n"]}
|
|
@@ -5,11 +5,15 @@ import type { FlowsActors_Agent, RuntimeExpertProfile } from '@wildo-ai/saas-mod
|
|
|
5
5
|
* (which carries the asset-noop loader, so importing the specifications
|
|
6
6
|
* dist is safe) BEFORE the agents registry initializes.
|
|
7
7
|
*
|
|
8
|
-
* FAIL-OPEN here
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
8
|
+
* FAIL-OPEN here: an app with no specs dist / no charters must still boot
|
|
9
|
+
* (every other companion capability works), so a missing module or empty set
|
|
10
|
+
* returns `[]` with a WARN.
|
|
11
|
+
*
|
|
12
|
+
* This is NOT the authority on which experts exist (#2349). The deliberation
|
|
13
|
+
* composer reads the charters live and registers or refreshes each seat's
|
|
14
|
+
* agent through `ensureExpertAgentRegistered`, so a charter accepted after
|
|
15
|
+
* startup convenes without a restart. Registering here only does that work
|
|
16
|
+
* early, for the charters that were already committed at boot.
|
|
13
17
|
*
|
|
14
18
|
* A charter whose `roleRef` no longer exists in the framework template
|
|
15
19
|
* catalog (orphan) is SKIPPED with a warn — it cannot carry workDomains,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-committed-expert-agents.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"load-committed-expert-agents.d.ts","sourceRoot":"","sources":["../../../../src/deliberations/utils/load-committed-expert-agents.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAUrF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,yBAAyB,CAC7C,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC;IAAE,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAAC,QAAQ,EAAE,oBAAoB,EAAE,CAAA;CAAE,CAAC,CAmC5E"}
|