@wildo-ai/dev-companion 1.1.5 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/__tests__/asset-noop.d.ts.map +1 -1
- package/dist/esm/__tests__/asset-noop.js.map +1 -1
- package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +1 -1
- package/dist/esm/__tests__/chdir-dogfood-app.setup.js.map +1 -1
- package/dist/esm/__tests__/internal-test-view.d.ts.map +1 -1
- package/dist/esm/__tests__/internal-test-view.js.map +1 -1
- package/dist/esm/brand/models/logo-creative-brief.schemas.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-creative-brief.schemas.js.map +1 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.js +0 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.js.map +1 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.js +0 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
- package/dist/esm/brand/models/logo-judge.schemas.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-judge.schemas.js.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts +8 -0
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.js +6 -0
- package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
- package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts +21 -0
- package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts.map +1 -0
- package/dist/esm/brand/services/brand-propagation.companion.utils.js +33 -0
- package/dist/esm/brand/services/brand-propagation.companion.utils.js.map +1 -0
- package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
- package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
- package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
- package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
- package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
- package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +69 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +84 -3
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
- package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/coding-session-frame-retention.js.map +1 -1
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +8 -4
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js +9 -5
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answer.models.js.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js +1 -1
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -1
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts +4 -0
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js +25 -3
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +1 -1
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +159 -11
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +424 -41
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +333 -60
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +1029 -185
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts +8 -2
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js +8 -2
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts +20 -0
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts.map +1 -0
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js +29 -0
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js.map +1 -0
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts +11 -0
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js +60 -7
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +5 -4
- package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.js +13 -4
- package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
- package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.d.ts.map +1 -1
- package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.js.map +1 -1
- package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.d.ts.map +1 -1
- package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.d.ts +193 -2
- package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.js +20 -1
- package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
- package/dist/esm/companion-api/companion-error-guidance.models.d.ts +25 -0
- package/dist/esm/companion-api/companion-error-guidance.models.d.ts.map +1 -0
- package/dist/esm/companion-api/companion-error-guidance.models.js +26 -0
- package/dist/esm/companion-api/companion-error-guidance.models.js.map +1 -0
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts +44 -0
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts.map +1 -0
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.js +111 -0
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.js.map +1 -0
- package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts +6 -14
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.js +6 -14
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts +12 -0
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts.map +1 -0
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.js +20 -0
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.js.map +1 -0
- package/dist/esm/companion-api/controllers/companion.controller.d.ts +104 -14
- package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.js +516 -122
- package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts.map +1 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.js.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.models.d.ts.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.models.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js +6 -38
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
- package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js.map +1 -1
- package/dist/esm/core/config/primary-language.companion.utils.d.ts +13 -0
- package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/config/primary-language.companion.utils.js +19 -0
- package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
- package/dist/esm/core/context/companion-context.d.ts.map +1 -1
- package/dist/esm/core/context/companion-context.js.map +1 -1
- package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
- package/dist/esm/core/context/companion-package-loaders.companion.js +1 -39
- package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
- package/dist/esm/core/context/draft-family-values.companion.d.ts.map +1 -1
- package/dist/esm/core/context/draft-family-values.companion.js.map +1 -1
- package/dist/esm/core/inject/models/container.d.ts.map +1 -1
- package/dist/esm/core/inject/models/container.js +4 -0
- package/dist/esm/core/inject/models/container.js.map +1 -1
- package/dist/esm/core/inject/models/service-types.d.ts +4 -0
- package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
- package/dist/esm/core/inject/models/service-types.js +4 -0
- package/dist/esm/core/inject/models/service-types.js.map +1 -1
- package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
- package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js +16 -0
- package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
- package/dist/esm/core/introspection/models/companion-introspection.models.d.ts +1 -1
- package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
- package/dist/esm/core/introspection/models/companion-introspection.models.js +6 -0
- package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
- package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts +41 -0
- package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/resources/application-secrets.companion.js +155 -0
- package/dist/esm/core/introspection/resources/application-secrets.companion.js.map +1 -0
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts +76 -0
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.js +197 -0
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -0
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts +47 -0
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.js +199 -0
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.js.map +1 -0
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts +42 -0
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +173 -22
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts +78 -90
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +288 -25
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts +22 -36
- package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js +49 -13
- package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js +10 -15
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/translation-placement.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts +2 -0
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/assertions.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts +4 -0
- package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-hooks.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-register.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-register.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +77 -9
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-child.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-child.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts +45 -3
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js +8 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts +3 -2
- package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js +8 -3
- package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-context-block.builder.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-context-block.builder.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts +30 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js +128 -20
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts +13 -0
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +21 -17
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js.map +1 -1
- package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -1
- package/dist/esm/core/introspection/workspace-elements.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/workspace-elements.companion.js.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.js.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.models.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.models.js.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.schemas.js.map +1 -1
- package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/application-runtime-liveness.companion.js.map +1 -1
- package/dist/esm/core/runtime/companion-endpoint-record.d.ts +8 -0
- package/dist/esm/core/runtime/companion-endpoint-record.d.ts.map +1 -0
- package/dist/esm/core/runtime/companion-endpoint-record.js +23 -0
- package/dist/esm/core/runtime/companion-endpoint-record.js.map +1 -0
- package/dist/esm/core/runtime/companion-env-file.d.ts +30 -0
- package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -0
- package/dist/esm/core/runtime/companion-env-file.js +53 -0
- package/dist/esm/core/runtime/companion-env-file.js.map +1 -0
- package/dist/esm/core/runtime/companion-startup-assembly.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts +5 -0
- package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.js +11 -0
- package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts +56 -0
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts.map +1 -0
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js +97 -0
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js.map +1 -0
- package/dist/esm/core/runtime/models/companion-runtime.models.d.ts.map +1 -1
- package/dist/esm/core/runtime/models/companion-runtime.models.js.map +1 -1
- package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/services/file-storage-initialization.companion.js.map +1 -1
- package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +43 -3
- package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
- package/dist/esm/core/runtime/services/start-companion-application.service.js +127 -22
- package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts +11 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.js +42 -19
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-workbench-topology.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-workbench-topology.js.map +1 -1
- package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.js.map +1 -1
- package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/chart-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/composite-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/cross-registry-rendering.shared.js.map +1 -1
- package/dist/esm/core/specifications/execution-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/execution-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/feature-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/feature-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/frontend-component-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/full-custom-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/guidance-flow-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/milestone-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/milestone-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/non-composite-view-specification-context.shared.js.map +1 -1
- package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/onboarding-element-rendering.shared.js.map +1 -1
- package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/onboarding-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/product-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/product-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/resource-specification-context.factory.js +10 -1
- package/dist/esm/core/specifications/resource-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/role-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/role-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.js.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.models.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.models.js.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.shared.js.map +1 -1
- package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/system-email-template-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
- package/dist/esm/core/specifications/validate-resource-field-completeness.js.map +1 -1
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.models.d.ts +1 -7
- package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.models.js +3 -5
- package/dist/esm/core/traceability/companion-traceability.models.js.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.service.js.map +1 -1
- package/dist/esm/core/utils/atomic-write.utils.d.ts.map +1 -1
- package/dist/esm/core/utils/atomic-write.utils.js.map +1 -1
- package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/utils/derived-input-signature.companion.utils.js.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js +15 -14
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts +0 -23
- package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.function-tools.js +251 -50
- package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -1
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +0 -2
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.js +3 -2
- package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
- package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
- package/dist/esm/deliberations/utils/load-committed-expert-agents.js.map +1 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.js +0 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.js.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.d.ts +5 -3
- package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.js +53 -255
- package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
- package/dist/esm/email/utils/email-labels-file-source.utils.d.ts +12 -0
- package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-labels-file-source.utils.js +62 -3
- package/dist/esm/email/utils/email-labels-file-source.utils.js.map +1 -1
- package/dist/esm/email/utils/email-labels-tree.utils.d.ts +52 -0
- package/dist/esm/email/utils/email-labels-tree.utils.d.ts.map +1 -0
- package/dist/esm/email/utils/email-labels-tree.utils.js +261 -0
- package/dist/esm/email/utils/email-labels-tree.utils.js.map +1 -0
- package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-template-fs-discovery.utils.js.map +1 -1
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts +2 -0
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js +21 -1
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.d.ts +18 -1
- package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.js +187 -46
- package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js +0 -1
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js +0 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.js.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.js +10 -0
- package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
- package/dist/esm/expert-personas/services/persona-source-ownership.d.ts.map +1 -1
- package/dist/esm/expert-personas/services/persona-source-ownership.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts +1 -8
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js +2 -9
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts +2 -0
- package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js +3 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts +32 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js +32 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js.map +1 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts +0 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js +0 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts +0 -7
- package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js +0 -7
- package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts +30 -4
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js +31 -5
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts +0 -2
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js +0 -2
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts +4 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js +5 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts +1 -15
- package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js +1 -15
- package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts +0 -3
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js +0 -3
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts +49 -16
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js +49 -16
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts +0 -5
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js +0 -5
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts +3 -0
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js +4 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts +7 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js +8 -2
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js +2 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js +2 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts +12 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js +12 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js +2 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts +10 -0
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js +11 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts +8 -0
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js +9 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts +3 -0
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js +4 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts +2 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js +3 -2
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts +6 -0
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js +7 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts +1 -0
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js +2 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_announcement.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_announcement.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_banner.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_card.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_card.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist_item.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_modal.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_modal.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_onboarding_view.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_survey.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_tooltip.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_tooltip.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_tour.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_tour.en.js.map +1 -1
- package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_achievement_badge.en.js.map +1 -1
- package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts +0 -2
- package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_milestone_tracker.en.js +0 -2
- package/dist/esm/i18n/components/progression_milestone_tracker.en.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts +1 -0
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.js +123 -19
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.js +12 -0
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.domain-model.en.js.map +1 -1
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts +25 -0
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts.map +1 -0
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.js +26 -0
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.js.map +1 -0
- package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts +26 -3
- package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -1
- package/dist/esm/i18n/errors_messages/errors-messages.en.js +25 -3
- package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -1
- package/dist/esm/i18n/index.d.ts +10 -8
- package/dist/esm/i18n/index.d.ts.map +1 -1
- package/dist/esm/i18n/index.js +10 -8
- package/dist/esm/i18n/index.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts +10 -0
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js +2 -0
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts +97 -0
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js +60 -0
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js.map +1 -0
- package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchAspects.en.js +6 -0
- package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts +5 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js +1 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts +24 -0
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js +8 -0
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDomainResources.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts +30 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +9 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts +17 -4
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js +32 -4
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts +8 -2
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js +6 -2
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts +18 -7
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js +17 -7
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts +28 -3
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.js +13 -3
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts +3 -2
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js +8 -2
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +118 -8
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +42 -16
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts +12 -2
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js +16 -2
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/application-creation.en.d.ts +10 -0
- package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/application-creation.en.js +11 -0
- package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/compliance-programme.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/flows-actors.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/flows-actors.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/market.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/processor-register.en.d.ts +6 -0
- package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/processor-register.en.js +6 -0
- package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/risk-register.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts +4 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.js +5 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts +46 -0
- package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-secrets.en.js +46 -0
- package/dist/esm/i18n/system_enums/workbench-secrets.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts +8 -0
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js +13 -0
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -1
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts +61 -0
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js +22 -0
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js.map +1 -0
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +105 -24
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-unit.models.js +55 -24
- package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js +0 -2
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
- package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts +48 -0
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js +145 -0
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -0
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +70 -18
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +330 -113
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts +45 -0
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js +208 -6
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +11 -2
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +101 -18
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts +64 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +393 -70
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts +9 -5
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts +54 -0
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js +74 -0
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts +3 -3
- package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts +24 -0
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js +34 -0
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/label-file-source.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-file-source.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js +5 -1
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts +76 -0
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js +110 -0
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts +17 -0
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js +23 -0
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts +36 -3
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js +77 -5
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts +38 -0
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js +66 -0
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.js.map +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +9 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/market/services/market-generation.companion.service.d.ts.map +1 -1
- package/dist/esm/market/services/market-generation.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js +0 -1
- package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +1 -3
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts +11 -0
- package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/application-line-catalog.models.js +17 -0
- package/dist/esm/meta-workflows/models/application-line-catalog.models.js.map +1 -0
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js +0 -1
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js +1 -1
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts +14 -0
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js +18 -0
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts +14 -0
- package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/human-decision-settler.models.js +18 -0
- package/dist/esm/meta-workflows/models/human-decision-settler.models.js.map +1 -0
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts +31 -23
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js +36 -5
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js +1 -3
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts +19 -0
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js +38 -6
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts +48 -3
- package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-record.models.js +61 -8
- package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts +15 -1
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js +50 -5
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +52 -9
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +131 -59
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts +19 -0
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js +36 -0
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +9 -0
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +41 -17
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +42 -2
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +121 -4
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts +32 -0
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js +161 -0
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts +2 -0
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js +1 -0
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts +3 -2
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js +12 -3
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +74 -1
- package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/dossier.companion.service.js +227 -30
- package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js.map +1 -1
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts +29 -2
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +68 -5
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts +40 -0
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.js +91 -0
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.js.map +1 -0
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts +25 -0
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js +40 -0
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js.map +1 -0
- package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/landed-module-import.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts +90 -0
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js +307 -0
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +29 -0
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js +44 -4
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +360 -47
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +1424 -246
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js.map +1 -1
- package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts.map +1 -1
- package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
- package/package.json +17 -17
- package/dist/esm/__time-gov.probe.d.mts +0 -0
- package/dist/esm/__time-gov.probe.d.mts.map +0 -0
- package/dist/esm/__time-gov.probe.mjs.map +0 -0
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts +0 -0
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts.map +0 -0
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.js.map +0 -0
- package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts +0 -0
- package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts.map +0 -0
- package/dist/esm/i18n/composite_views/app.creation-board.en.js.map +0 -0
- package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts +0 -0
- package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts.map +0 -0
- package/dist/esm/meta-workflows/services/creator-inputs.companion.service.js.map +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creation-conversation.function-tools.js","sourceRoot":"","sources":["../../../../src/creation-conversation/creation-conversation.function-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,+BAA+B,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,kCAAkC,EAAE,kCAAkC,EAAE,4BAA4B,EAAE,sCAAsC,EAAE,MAAM,gCAAgC,CAAC;AAC9L,OAAO,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AAErF,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAE9E,OAAO,EAAE,iCAAiC,EAAiD,MAAM,yEAAyE,CAAC;AAG3K;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,sBAAsB,EAAE,iCAAiC;IACzD,aAAa,EAAE,wBAAwB;IACvC,YAAY,EAAE,uBAAuB;IACrC,mBAAmB,EAAE,8BAA8B;IACnD,QAAQ,EAAE,mBAAmB;IAC7B,YAAY,EAAE,uBAAuB;IACrC,aAAa,EAAE,wBAAwB;IACvC,kBAAkB,EAAE,6BAA6B;IACjD,aAAa,EAAE,wBAAwB;IACvC,aAAa,EAAE,wBAAwB;IACvC,WAAW,EAAE,sBAAsB;CAC3B,CAAC;AAWX;;;;;;GAMG;AACH,KAAK,UAAU,qBAAqB,CAClC,OAAqC,EACrC,YAA0C;IAE1C,MAAM,MAAM,GAAG,MAAM,+BAA+B,CAAU;QAC5D,GAAG,EAAE,OAAO;QACZ,YAAY;QACZ,mBAAmB,EAAE,qBAAqB,CAAC,IAAI;KAChD,CAAC,CAAC;IACH,IAAI,KAAK,CAAC,OAAO,CAAC,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AA+B,CAAU;YAC9F,GAAG,EAAE,OAAO;YACZ,YAAY,EAAE,4BAA4B,CAAC,gBAAgB;YAC3D,mBAAmB,EAAE,kCAAkC,CAAC,aAAa;YACrE,QAAQ,EAAE,sCAAsC,CAAC,IAAI,CAAC,OAAO,CAAC;YAC9D,wEAAwE;YACxE,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE;SACzE,CAAC;KACH,CAAC;IAEF,MAAM,UAAU,GAAiB;QAC/B,WAAW,EAAE,+BAA+B,CAAC,WAAW;QACxD,WAAW,EACT,yHAAyH;cACvH,oHAAoH;cACpH,uFAAuF;QAC3F,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QACrD,qBAAqB,EAAE,IAAI;QAC3B,OAAO,EAAE,KAAK,EAAE,IAAyB,EAAE,OAAO,EAAE,EAAE,CAAC,+BAA+B,CAAU;YAC9F,GAAG,EAAE,OAAO;YACZ,YAAY,EAAE,4BAA4B,CAAC,gBAAgB;YAC3D,mBAAmB,EAAE,kCAAkC,CAAC,MAAM;YAC9D,QAAQ,EAAE,sCAAsC,CAAC,IAAI,CAAC,OAAO,CAAC;YAC9D,IAAI,EAAE,EAAE;SACT,CAAC;KACH,CAAC;IAEF,OAAO,CAAC,oBAAoB,EAAE,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC;AAC7K,CAAC","sourcesContent":["import { z } from 'zod';\nimport type { FunctionTool, FunctionToolExecutionContext } from '@wildo-ai/saas-backend-lib';\nimport { dispatchResourceOperationAsTool } from '@wildo-ai/saas-backend-lib';\nimport { CoreResourceOperation } from '@wildo-ai/saas-models';\nimport { WorkbenchBuildPlanTasks_Operations, WorkbenchDossierEntries_Operations, WorkbenchShared_ResourceType, sanitizeWorkbenchCreationPlaneIdentity } from '@wildo-ai/platform-core-shared';\nimport { PlaybookClarificationAction } from '@wildo-ai/application-creation-runtime';\n\nimport { COMPANION_SERVICE_TYPES } from '../core/inject/models/service-types';\nimport type { PlaybookRunCompanionService } from '../meta-workflows/services/playbook-run.companion.service';\nimport { ApplicationBuildTaskNotReadyError, type ApplicationBuildDispatchCompanionService } from '../meta-workflows/services/application-build-dispatch.companion.service';\nimport type { ResearchAgentDispatchCompanionService } from '../claude-cli/services/research-agent-dispatch.companion.service';\n\n/**\n * The tools of the creation assistant (#1454, Step 4) — every one a TYPED operation the companion\n * already exposes, reached IN-PROCESS. The assistant never crosses HTTP, so the two-gate problem\n * of the workbench client (a browser session for `/api/v1`, a 0600 file token for `/api/companion`)\n * does not arise: the tool holds the service.\n *\n * The refs are the model-facing names (dots become identifier-safe on the way to the model, so\n * they are authored without dots). The agent's `capabilities.tools.functionRefs` lists exactly this\n * set, from the same constant, so the declared refs and the registered tools cannot drift.\n */\nexport const CREATION_CONVERSATION_TOOL_REFS = {\n READ_APPLICATION_STATE: 'creation_read_application_state',\n READ_ARTIFACT: 'creation_read_artifact',\n RUN_PLAYBOOK: 'creation_run_playbook',\n ANSWER_RUN_QUESTION: 'creation_answer_run_question',\n RESEARCH: 'creation_research',\n READ_DOSSIER: 'creation_read_dossier',\n RECORD_ANSWER: 'creation_record_answer',\n PROPOSE_BUILD_TASK: 'creation_propose_build_task',\n DESCRIBE_TASK: 'creation_describe_task',\n DISPATCH_TASK: 'creation_dispatch_task',\n ACCEPT_TASK: 'creation_accept_task',\n} as const;\n\n/**\n * A lazy service getter rather than the services themselves: the tools are declared at startup\n * ASSEMBLY, before the container has resolved every companion service, and a tool only needs its\n * service when a turn calls it.\n */\nexport interface CreationConversationToolServices {\n readonly get: <T>(identifier: symbol) => T;\n}\n\n/**\n * The rows the WORKBENCH reads, read the same way — the resource's own LIST, dispatched AS THE\n * CALLER through the engine's tool seam (roles and any declared rate limit applied, like every\n * other tool) — so what the assistant says and what the page shows are one derivation. Trimmed by\n * the callers to what a turn needs: the model pays per token and a family's rendered document is\n * not a fact about its state.\n */\nasync function readCreationPlaneRows(\n context: FunctionToolExecutionContext,\n resourceType: WorkbenchShared_ResourceType,\n): Promise<readonly Record<string, unknown>[]> {\n const result = await dispatchResourceOperationAsTool<unknown>({\n ctx: context,\n resourceType,\n operationIdentifier: CoreResourceOperation.LIST,\n });\n if (Array.isArray(result)) return result as readonly Record<string, unknown>[];\n const data = (result as { data?: unknown })?.data;\n return Array.isArray(data) ? (data as readonly Record<string, unknown>[]) : [];\n}\n\nfunction pick<T extends Record<string, unknown>>(row: T, keys: readonly string[]): Record<string, unknown> {\n const out: Record<string, unknown> = {};\n for (const key of keys) if (key in row) out[key] = row[key];\n return out;\n}\n\nexport function buildCreationConversationFunctionTools(services: CreationConversationToolServices): FunctionTool[] {\n const readApplicationState: FunctionTool = {\n functionRef: CREATION_CONVERSATION_TOOL_REFS.READ_APPLICATION_STATE,\n description:\n 'Where the application stands: every specification family with its state (landed_valid, landed_invalid, not_landed) '\n + 'and its concern; every playbook with whether it is eligible to run now, what it waits on, whether it interviews the '\n + 'creator first, and which of its outputs are stale; every build-plan task with its status (ready, landed, blocked). '\n + 'Call this before any statement about what exists or is missing.',\n inputSchema: z.object({}),\n execute: async (_args, context) => {\n const [artifacts, playbooks, tasks] = await Promise.all([\n readCreationPlaneRows(context, WorkbenchShared_ResourceType.SPECIFICATION_ARTIFACTS),\n readCreationPlaneRows(context, WorkbenchShared_ResourceType.PLAYBOOKS),\n readCreationPlaneRows(context, WorkbenchShared_ResourceType.BUILD_PLAN_TASKS),\n ]);\n return {\n families: artifacts.map((row) => pick(row, ['family', 'title', 'state', 'concern', 'errorCount', 'contentSummary'])),\n playbooks: playbooks.map((row) => pick(row, ['playbookRef', 'intent', 'eligible', 'unmet', 'requiresElicitation', 'staleOutputs', 'wouldReplace'])),\n buildTasks: tasks.map((row) => pick(row, ['taskRef', 'objective', 'status'])),\n };\n },\n };\n\n const readArtifact: FunctionTool = {\n functionRef: CREATION_CONVERSATION_TOOL_REFS.READ_ARTIFACT,\n description:\n 'One landed specification family, rendered as a document, by its family id (from the application state). '\n + 'Returns its document and its validator issues; the workbench opens it beside the conversation.',\n inputSchema: z.object({ family: z.string().min(1).describe('The family id, e.g. vision-brief, market-snapshot, domain-plan.') }),\n execute: async (args: { family: string }, context) => {\n const rows = await readCreationPlaneRows(context, WorkbenchShared_ResourceType.SPECIFICATION_ARTIFACTS);\n const row = rows.find((candidate) => candidate.family === args.family);\n if (!row) return { found: false, family: args.family };\n return { found: true, ...pick(row, ['family', 'title', 'state', 'document', 'issues', 'decisionRecord']) };\n },\n };\n\n const runPlaybook: FunctionTool = {\n functionRef: CREATION_CONVERSATION_TOOL_REFS.RUN_PLAYBOOK,\n description:\n 'Start one playbook run in the background and return its run id at once. Costs model calls (one to three minutes, '\n + 'sometimes more) — the person is asked to approve before it starts. Only an eligible playbook can be started. '\n + 'The run then appears in the conversation as a card; its outcome is read there, never assumed.',\n inputSchema: z.object({\n playbookRef: z.string().min(1).describe('The playbook ref from the application state, e.g. top_down.vision-elicitation.'),\n creatorBrief: z.string().optional().describe('What the person said they want from this run, in their words, when they said something specific.'),\n }),\n /* Money: a run generates and judges. The engine suspends the turn until the person approves. */\n requiresHumanApproval: true,\n execute: async (args: { playbookRef: string; creatorBrief?: string }, context) => {\n const playbookRun = services.get<PlaybookRunCompanionService>(COMPANION_SERVICE_TYPES.PlaybookRunService);\n const { playbooks } = await playbookRun.listPlaybookEligibility();\n const eligibility = playbooks.find((candidate) => candidate.playbookRef === args.playbookRef);\n if (!eligibility) return { started: false, reason: 'unknown_playbook', playbookRef: args.playbookRef };\n if (!eligibility.eligible) return { started: false, reason: 'not_eligible', playbookRef: args.playbookRef, unmet: eligibility.unmet };\n const submitted = await playbookRun.submitPlaybookRunDetached({\n playbookRef: args.playbookRef,\n ...(args.creatorBrief ? { creatorBrief: args.creatorBrief } : {}),\n /* The thread this turn belongs to, so the run shows as a card of it. */\n ...(context.executionId ? { conversationId: context.executionId } : {}),\n });\n return { started: true, runId: submitted.runId, playbookRef: submitted.playbookRef, note: submitted.note };\n },\n };\n\n const answerRunQuestion: FunctionTool = {\n functionRef: CREATION_CONVERSATION_TOOL_REFS.ANSWER_RUN_QUESTION,\n description:\n 'Answer a run that stopped on questions, and let it continue. `accept` with the answers (ref by ref, as the run '\n + 'asked them), `decline` to continue on the run\\'s stated assumption, or `cancel` to abandon the run.',\n inputSchema: z.object({\n runId: z.string().min(1),\n action: z.enum(PlaybookClarificationAction),\n answers: z.array(z.object({ ref: z.string().min(1), answer: z.string().min(1) })).optional(),\n }),\n execute: async (args: { runId: string; action: PlaybookClarificationAction; answers?: { ref: string; answer: string }[] }) => {\n const playbookRun = services.get<PlaybookRunCompanionService>(COMPANION_SERVICE_TYPES.PlaybookRunService);\n const outcome = await playbookRun.resumePlaybookRun({ runId: args.runId, action: args.action, ...(args.answers ? { answers: args.answers } : {}) });\n return { runId: args.runId, action: args.action, status: 'status' in outcome ? outcome.status : 'resumed' };\n },\n };\n\n const research: FunctionTool = {\n functionRef: CREATION_CONVERSATION_TOOL_REFS.RESEARCH,\n description:\n 'Find something out from the public web with a read-only research agent, given one clear objective. Takes minutes '\n + 'and costs model calls — the person is asked to approve first. Returns the evidence found and where it was recorded.',\n inputSchema: z.object({ objective: z.string().min(1).describe('What to find out, in one or two sentences.') }),\n requiresHumanApproval: true,\n execute: async (args: { objective: string }) => {\n const dispatch = services.get<ResearchAgentDispatchCompanionService>(COMPANION_SERVICE_TYPES.ResearchAgentDispatchService);\n const result = await dispatch.runResearchTask({ objective: args.objective });\n return { evidence: result.evidence, stopReason: result.stopReason, elapsedMs: result.elapsedMs, persistedEvidencePath: result.persistedEvidencePath };\n },\n };\n\n const readDossier: FunctionTool = {\n functionRef: CREATION_CONVERSATION_TOOL_REFS.READ_DOSSIER,\n description:\n 'The dossier: every question a creation step asks the person, with their answer when they gave one '\n + '(standing from-you) or still-needed when they did not. Each entry names its playbookRef and questionRef. '\n + 'Call this before asking the person anything a step needs — if the dossier already holds it, do not ask again.',\n inputSchema: z.object({\n playbookRef: z.string().min(1).optional().describe('Only this playbook\\'s questions, when the conversation is about one step.'),\n }),\n execute: async (args: { playbookRef?: string }, context) => {\n const rows = await readCreationPlaneRows(context, WorkbenchShared_ResourceType.DOSSIER_ENTRIES);\n const selected = args.playbookRef ? rows.filter((row) => row.playbookRef === args.playbookRef) : rows;\n /* `affectsFamilies` is what an answer reaches (#1454, Step 8) — the assistant says it before asking, as the interview does. */\n return { entries: selected.map((row) => pick(row, ['playbookRef', 'questionRef', 'question', 'kind', 'options', 'standing', 'value', 'playbookEligible', 'affectsFamilies'])) };\n },\n };\n\n const recordAnswer: FunctionTool = {\n functionRef: CREATION_CONVERSATION_TOOL_REFS.RECORD_ANSWER,\n description:\n 'File the person\\'s answer to one dossier question, in their words, so the step that asks it can run '\n + 'without asking again. Refuses a choice outside the question\\'s options or an ambiguous yes/no; the refusal '\n + 'says what to change. Returns the questions of that step still unanswered.',\n inputSchema: z.object({\n playbookRef: z.string().min(1),\n questionRef: z.string().min(1),\n value: z.string().min(1).describe('The answer as the person gave it. For a yes/no question: yes or no.'),\n }),\n /*\n * No approval: recording what the person just said costs nothing and is reversible (the file is\n * a working edit until committed). The one thing it must not do is invent — the instructions\n * forbid filing an answer the person did not give in this conversation.\n */\n execute: async (args: { playbookRef: string; questionRef: string; value: string }, context) => {\n const rowId = `${sanitizeWorkbenchCreationPlaneIdentity(args.playbookRef)}--${sanitizeWorkbenchCreationPlaneIdentity(args.questionRef)}`;\n const result = await dispatchResourceOperationAsTool<unknown>({\n ctx: context,\n resourceType: WorkbenchShared_ResourceType.DOSSIER_ENTRIES,\n operationIdentifier: WorkbenchDossierEntries_Operations.ANSWER,\n recordId: rowId,\n data: { value: args.value },\n });\n return result;\n },\n };\n\n /*\n * CHANGING THE APPLICATION from a session (#1454, Step 7) — four tools, one decision each:\n * propose a task (the person approves, and may change its arguments), see what running it means,\n * run it (money — approved separately), accept what it wrote (a commit — approved separately).\n * \"Keep it for later\" is proposing without dispatching, which is why they are not one tool.\n */\n const proposeBuildTask: FunctionTool = {\n functionRef: CREATION_CONVERSATION_TOOL_REFS.PROPOSE_BUILD_TASK,\n description:\n 'Add ONE build task to the application\\'s plan, for a change the person asked for. The person is shown the task '\n + 'and approves it (or changes its arguments) before it is added — that is the confirmation. Adding does not run it. '\n + 'Name the target precisely: a RESOURCE_STAGE (moduleRef, resourceRef, stage SCHEMA|CONFIG|UI_BEHAVIOR|SPEC), a '\n + 'MODULE (moduleRef), a RELATIONSHIP (moduleRef, relationshipRef) or a SHELL_PLACEMENT (surface). Declare what the '\n + 'task produces so its landing can be proven. Returns the task ref and any advisory findings.',\n inputSchema: z.object({\n objective: z.string().min(1).describe('One sentence: what this task delivers, in the person\\'s terms.'),\n target: z.record(z.string(), z.unknown()).describe('The target, e.g. { kind: \"RESOURCE_STAGE\", moduleRef: \"todos\", resourceRef: \"todo\", stage: \"SCHEMA\" }.'),\n produces: z.array(z.record(z.string(), z.unknown())).describe('The artifacts this task is accountable for, e.g. [{ kind: \"RESOURCE_SCHEMA_FIELDS\", resourceRef: \"todo\", fieldRefs: [\"priority\"] }].'),\n functionalTopic: z.string().min(1).describe('The build phase this task belongs to, e.g. model_domain_graph, define_interaction_semantics, shape_user_experience.'),\n skillRefs: z.array(z.string().min(1)).min(1).describe('The installed skills that carry the how, e.g. [\"resource-add-field\"].'),\n prerequisiteTaskRefs: z.array(z.string().min(1)).optional().describe('Task refs from the state that must land first.'),\n taskRef: z.string().min(1).optional().describe('build-task-<slug>; derived from the objective when omitted.'),\n }),\n /* Approval here is the REVIEW of the task — the person sees and may change what will be added. */\n requiresHumanApproval: true,\n execute: async (args: Record<string, unknown>, context) => dispatchResourceOperationAsTool<unknown>({\n ctx: context,\n resourceType: WorkbenchShared_ResourceType.BUILD_PLAN_TASKS,\n operationIdentifier: WorkbenchBuildPlanTasks_Operations.ADD_TASK,\n data: args,\n }),\n };\n\n const describeTask: FunctionTool = {\n functionRef: CREATION_CONVERSATION_TOOL_REFS.DESCRIBE_TASK,\n description:\n 'What running ONE build task would mean, without running it: where the coding agent may write, which checks it must '\n + 'pass, and roughly how much context it carries (in tokens). Refuses, naming why, when the task is not ready. Call '\n + 'this before asking the person to run a task, and tell them what it costs: a coding-agent run of minutes, paid per token.',\n inputSchema: z.object({ taskRef: z.string().min(1) }),\n execute: async (args: { taskRef: string }) => {\n const buildDispatch = services.get<ApplicationBuildDispatchCompanionService>(COMPANION_SERVICE_TYPES.ApplicationBuildDispatchService);\n try {\n const described = await buildDispatch.describeBuildTaskDispatch(args.taskRef);\n return {\n ready: true,\n taskRef: described.plan.taskRef,\n objective: described.plan.objective,\n allowedPathPrefixes: described.plan.allowedPathPrefixes,\n requiredChecks: described.plan.requiredChecks,\n installedSkillRefs: described.plan.installedSkillRefs,\n ...(described.contextTokens !== undefined ? { contextTokens: described.contextTokens } : {}),\n };\n } catch (error) {\n if (error instanceof ApplicationBuildTaskNotReadyError) {\n return { ready: false, taskRef: args.taskRef, standing: error.standing, unmetPrerequisiteTaskRefs: error.unmetPrerequisiteTaskRefs, reason: error.message };\n }\n throw error;\n }\n },\n };\n\n const dispatchTask: FunctionTool = {\n functionRef: CREATION_CONVERSATION_TOOL_REFS.DISPATCH_TASK,\n description:\n 'Run ONE ready build task with the coding agent. Costs money (a coding-agent run of minutes, paid per token) — the '\n + 'person is asked to approve before it starts. Only a READY task can run; a landed or blocked one is refused with why. '\n + 'Returns at once once the run is admitted; the run then shows in the conversation as a card, and its outcome is read '\n + 'there, never assumed.',\n inputSchema: z.object({ taskRef: z.string().min(1).describe('The task ref from the state or from the proposal.') }),\n requiresHumanApproval: true,\n execute: async (args: { taskRef: string }, context) => dispatchResourceOperationAsTool<unknown>({\n ctx: context,\n resourceType: WorkbenchShared_ResourceType.BUILD_PLAN_TASKS,\n operationIdentifier: WorkbenchBuildPlanTasks_Operations.DISPATCH_TASK,\n recordId: sanitizeWorkbenchCreationPlaneIdentity(args.taskRef),\n /* The thread this turn belongs to, so the run shows as a card of it. */\n data: context.executionId ? { conversationId: context.executionId } : {},\n }),\n };\n\n const acceptTask: FunctionTool = {\n functionRef: CREATION_CONVERSATION_TOOL_REFS.ACCEPT_TASK,\n description:\n 'Accept what a task\\'s latest finished coding run wrote: commit exactly those files, in one commit that names the task. '\n + 'The person is asked to approve first. Files carrying changes from before the run, or edited since, are refused by '\n + 'name and left out; say which. Only after the person has looked at the run\\'s outcome.',\n inputSchema: z.object({ taskRef: z.string().min(1) }),\n requiresHumanApproval: true,\n execute: async (args: { taskRef: string }, context) => dispatchResourceOperationAsTool<unknown>({\n ctx: context,\n resourceType: WorkbenchShared_ResourceType.BUILD_PLAN_TASKS,\n operationIdentifier: WorkbenchBuildPlanTasks_Operations.ACCEPT,\n recordId: sanitizeWorkbenchCreationPlaneIdentity(args.taskRef),\n data: {},\n }),\n };\n\n return [readApplicationState, readArtifact, runPlaybook, answerRunQuestion, research, readDossier, recordAnswer, proposeBuildTask, describeTask, dispatchTask, acceptTask];\n}\n"]}
|
|
1
|
+
{"version":3,"file":"creation-conversation.function-tools.js","sourceRoot":"","sources":["../../../src/creation-conversation/creation-conversation.function-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,+BAA+B,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,kCAAkC,EAAE,iCAAiC,EAAE,kCAAkC,EAAE,4BAA4B,EAAE,sCAAsC,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAChQ,OAAO,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EACL,sCAAsC,EACtC,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AC,gBAAgB;YAC3D,mBAAmB,EAAE,kCAAkC,CAAC,aAAa;YACrE,QAAQ,EAAE,sCAAsC,CAAC,IAAI,CAAC,OAAO,CAAC;YAC9D,wEAAwE;YACxE,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE;SACzE,CAAC;KACH,CAAC;IAEF,MAAM,UAAU,GAAiB;QAC/B,WAAW,EAAE,iCAAiC,CAAC,WAAW;QAC1D,WAAW,EACT,yHAAyH;cACvH,oHAAoH;cACpH,uFAAuF;QAC3F,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QACrD,qBAAqB,EAAE,IAAI;QAC3B,OAAO,EAAE,KAAK,EAAE,IAAyB,EAAE,OAAO,EAAE,EAAE,CAAC,+BAA+B,CAAU;YAC9F,GAAG,EAAE,OAAO;YACZ,YAAY,EAAE,4BAA4B,CAAC,gBAAgB;YAC3D,mBAAmB,EAAE,kCAAkC,CAAC,MAAM;YAC9D,QAAQ,EAAE,sCAAsC,CAAC,IAAI,CAAC,OAAO,CAAC;YAC9D,IAAI,EAAE,EAAE;SACT,CAAC;KACH,CAAC;IAEF,OAAO,CAAC,oBAAoB,EAAE,YAAY,EAAE,WAAW,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,SAAS,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC;AACzQ,CAAC","sourcesContent":["import { z } from 'zod';\nimport type { FunctionTool, FunctionToolExecutionContext } from '@wildo-ai/saas-backend-lib';\nimport { dispatchResourceOperationAsTool } from '@wildo-ai/saas-backend-lib';\nimport { CoreResourceOperation } from '@wildo-ai/saas-models';\nimport { WorkbenchBuildPlanTasks_Operations, WorkbenchCreationConversationTool, WorkbenchDossierEntries_Operations, WorkbenchShared_ResourceType, sanitizeWorkbenchCreationPlaneIdentity, workbenchDossierEntryIdentity } from '@wildo-ai/platform-core-shared';\nimport { getFrameworkKnowledgePlaybook } from '@wildo-ai/framework-knowledge';\nimport {\n APPLICATION_SECONDARY_LINE_DEFINITIONS,\n ApplicationLineDeclarationState,\n ApplicationPlaybookInstanceClosureKind,\n ApplicationSecondaryLine,\n ApplicationSpecificationFamily,\n resolveApplicationLineDeclaration,\n resolveOpenSecondaryLines,\n} from '@wildo-ai/saas-specifications/application-creation';\nimport type { DossierCompanionService } from '../meta-workflows/services/dossier.companion.service';\n\nimport { COMPANION_SERVICE_TYPES } from '../core/inject/models/service-types';\nimport type { PlaybookRunCompanionService } from '../meta-workflows/services/playbook-run.companion.service';\nimport { PlaybookInstanceRefusedError, PlaybookInstanceTreeBusyError, type PlaybookInstanceCompanionService } from '../meta-workflows/services/playbook-instance.companion.service';\nimport { DecisionRecordActor } from '../claude-cli/services/accepted-change-commit.companion.service';\nimport { ApplicationBuildTaskNotReadyError, type ApplicationBuildDispatchCompanionService } from '../meta-workflows/services/application-build-dispatch.companion.service';\nimport type { ResearchAgentDispatchCompanionService } from '../claude-cli/services/research-agent-dispatch.companion.service';\nimport type { CompanionTraceabilityService } from '../core/traceability/companion-traceability.service';\nimport { MetaWorkflow_ClarificationAction } from '@wildo-ai/saas-models/meta-workflows';\n\n/*\n * The tools of the creation assistant (#1454, Step 4) — every one a TYPED operation the companion\n * already exposes, reached IN-PROCESS. The assistant never crosses HTTP, so the two-gate problem\n * of the workbench client (a browser session for `/api/v1`, a 0600 file token for `/api/companion`)\n * does not arise: the tool holds the service.\n *\n * The refs are {@link WorkbenchCreationConversationTool} — shared, because the workbench words a\n * status line and an approval card per tool and cannot see this source. The agent's\n * `capabilities.tools.functionRefs` lists exactly that enum's values, so the declared refs and the\n * registered tools cannot drift.\n */\n\n/**\n * A lazy service getter rather than the services themselves: the tools are declared at startup\n * ASSEMBLY, before the container has resolved every companion service, and a tool only needs its\n * service when a turn calls it.\n */\nexport interface CreationConversationToolServices {\n readonly get: <T>(identifier: symbol) => T;\n}\n\n/**\n * The rows the WORKBENCH reads, read the same way — the resource's own LIST, dispatched AS THE\n * CALLER through the engine's tool seam (roles and any declared rate limit applied, like every\n * other tool) — so what the assistant says and what the page shows are one derivation. Trimmed by\n * the callers to what a turn needs: the model pays per token and a family's rendered document is\n * not a fact about its state.\n */\nasync function readCreationPlaneRows(\n context: FunctionToolExecutionContext,\n resourceType: WorkbenchShared_ResourceType,\n): Promise<readonly Record<string, unknown>[]> {\n const result = await dispatchResourceOperationAsTool<unknown>({\n ctx: context,\n resourceType,\n operationIdentifier: CoreResourceOperation.LIST,\n });\n if (Array.isArray(result)) return result as readonly Record<string, unknown>[];\n const data = (result as { data?: unknown })?.data;\n return Array.isArray(data) ? (data as readonly Record<string, unknown>[]) : [];\n}\n\nfunction pick<T extends Record<string, unknown>>(row: T, keys: readonly string[]): Record<string, unknown> {\n const out: Record<string, unknown> = {};\n for (const key of keys) if (key in row) out[key] = row[key];\n return out;\n}\n\nexport function buildCreationConversationFunctionTools(services: CreationConversationToolServices): FunctionTool[] {\n const readApplicationState: FunctionTool = {\n functionRef: WorkbenchCreationConversationTool.READ_APPLICATION_STATE,\n description:\n 'Where the application stands: every specification family with its state (landed_valid, landed_invalid, not_landed) '\n + 'and its concern; every playbook with whether it is eligible to run now, what it waits on, whether it interviews the '\n + 'creator first, and which of its outputs are stale; every build-plan task with its status (ready, landed, blocked); '\n + 'and every run WAITING on the person, with its run id, the round of questions it is on, and those questions. '\n + 'Call this before any statement about what exists or is missing.',\n inputSchema: z.object({}),\n execute: async (_args, context) => {\n const [artifacts, playbooks, tasks, waiting] = await Promise.all([\n readCreationPlaneRows(context, WorkbenchShared_ResourceType.SPECIFICATION_ARTIFACTS),\n readCreationPlaneRows(context, WorkbenchShared_ResourceType.PLAYBOOKS),\n readCreationPlaneRows(context, WorkbenchShared_ResourceType.BUILD_PLAN_TASKS),\n /*\n * Read on its OWN terms: the waiting runs failing to read must not take the rest of the state with\n * them, and must not read as \"nothing is waiting\" either (#1584 review F3).\n */\n readCreationPlaneRows(context, WorkbenchShared_ResourceType.WAITING_PLAYBOOK_RUNS).then(\n (rows) => ({ rows, readFailed: false as const }),\n () => ({ rows: [] as readonly Record<string, unknown>[], readFailed: true as const }),\n ),\n ]);\n return {\n families: artifacts.map((row) => pick(row, ['family', 'title', 'state', 'concern', 'errorCount', 'contentSummary'])),\n playbooks: playbooks.map((row) => pick(row, ['playbookRef', 'intent', 'eligible', 'unmet', 'requiresElicitation', 'staleOutputs', 'wouldReplace'])),\n buildTasks: tasks.map((row) => pick(row, ['taskRef', 'objective', 'status'])),\n /* What an answer names: the run AND its round, since a run asks again under the same id (#1584). */\n waitingRuns: waiting.rows.filter((row) => row.readable === true).map((row) => pick(row, ['runId', 'playbookRef', 'round', 'requests'])),\n /* A waiting run nobody can answer is still a stuck run the person should hear about — counted, never dropped. */\n unreadableWaitingRunCount: waiting.rows.filter((row) => row.readable !== true).length,\n ...(waiting.readFailed ? { waitingRunsUnavailable: 'The runs waiting on the person could not be read just now; do not say none are waiting.' } : {}),\n };\n },\n };\n\n const readArtifact: FunctionTool = {\n functionRef: WorkbenchCreationConversationTool.READ_ARTIFACT,\n description:\n 'One landed specification family, rendered as a document, by its family id (from the application state). '\n + 'Returns its document, its validator errors (issues) and warnings; the workbench opens it beside the conversation.',\n inputSchema: z.object({ family: z.string().min(1).describe('The family id, e.g. vision-brief, market-snapshot, domain-plan.') }),\n execute: async (args: { family: string }, context) => {\n const rows = await readCreationPlaneRows(context, WorkbenchShared_ResourceType.SPECIFICATION_ARTIFACTS);\n const row = rows.find((candidate) => candidate.family === args.family);\n if (!row) return { found: false, family: args.family };\n return { found: true, ...pick(row, ['family', 'title', 'state', 'document', 'issues', 'warnings', 'decisionRecord']) };\n },\n };\n\n const runPlaybook: FunctionTool = {\n functionRef: WorkbenchCreationConversationTool.RUN_PLAYBOOK,\n description:\n 'Start one playbook run in the background and return its run id at once. Costs model calls (one to three minutes, '\n + 'sometimes more) — the person is asked to approve before it starts. Only an eligible playbook can be started. '\n + 'The run then appears in the conversation as a card; its outcome is read there, never assumed.',\n inputSchema: z.object({\n playbookRef: z.string().min(1).describe('The playbook ref from the application state, e.g. top_down.vision-elicitation.'),\n instanceKey: z.string().optional().describe('The instance to run, when the step was opened as a separate instance for one purpose; omit for the step itself.'),\n creatorBrief: z.string().optional().describe('What the person said they want from this run, in their words, when they said something specific.'),\n }),\n /* Money: a run generates and judges. The engine suspends the turn until the person approves. */\n requiresHumanApproval: true,\n execute: async (args: { playbookRef: string; instanceKey?: string; creatorBrief?: string }, context) => {\n const playbookRun = services.get<PlaybookRunCompanionService>(COMPANION_SERVICE_TYPES.PlaybookRunService);\n const { playbooks } = await playbookRun.listPlaybookEligibility();\n const eligibility = playbooks.find((candidate) => candidate.playbookRef === args.playbookRef);\n if (!eligibility) return { started: false, reason: 'unknown_playbook', playbookRef: args.playbookRef };\n if (!eligibility.eligible) return { started: false, reason: 'not_eligible', playbookRef: args.playbookRef, unmet: eligibility.unmet };\n /*\n * The run's own TRACE, opened here as the HTTP path opens one per request (#1454, gap 3). A run\n * started from a conversation carried none, so its card could not say what it had done or was\n * doing, and its detail had no conversation to show — the two things a creator watching a run\n * reads. The session is in-memory until the run writes to it, as every session is.\n */\n const traceability = services.get<CompanionTraceabilityService>(COMPANION_SERVICE_TYPES.TraceabilityService);\n const session = traceability.createInternalSession({\n label: `creation conversation — ${args.playbookRef}`,\n ...(context.executionId ? { metadata: { conversationId: context.executionId } } : {}),\n });\n const submitted = await playbookRun.submitPlaybookRunDetached({\n playbookRef: args.playbookRef,\n // The INSTANCE (#1609); the run refuses one that was never opened, before any model call.\n ...(args.instanceKey ? { instanceKey: args.instanceKey } : {}),\n session,\n ...(args.creatorBrief ? { creatorBrief: args.creatorBrief } : {}),\n /* The thread this turn belongs to, so the run shows as a card of it. */\n ...(context.executionId ? { conversationId: context.executionId } : {}),\n // The signed-in person the assistant runs it for (#1751): a question the run asks is routed to them.\n ...(context.auth?.initiatorIds?.userId ? { requestedByUserId: context.auth.initiatorIds.userId } : {}),\n });\n return { started: true, runId: submitted.runId, playbookRef: submitted.playbookRef, note: submitted.note };\n },\n };\n\n const openPlaybookInstance: FunctionTool = {\n functionRef: WorkbenchCreationConversationTool.OPEN_PLAYBOOK_INSTANCE,\n description:\n 'Open a SEPARATE instance of a step for one purpose the person named: one market analysis per segment, one '\n + 'refinement per area. It is recorded as a decision about what the application builds and committed at once, so it '\n + 'asks the person to approve first. The step itself keeps running as before; the instance is then run with its key.',\n inputSchema: z.object({\n playbookRef: z.string().min(1).describe('The playbook ref from the application state.'),\n instanceKey: z.string().min(1).describe('A short kebab-case key for the instance, e.g. enterprise-segment.'),\n purpose: z.string().min(1).describe('What this instance is for, in the person\\'s words.'),\n }),\n /* A commit, and a decision about scope: the engine suspends the turn until the person approves. */\n requiresHumanApproval: true,\n execute: async (args: { playbookRef: string; instanceKey: string; purpose: string }) => {\n const instances = services.get<PlaybookInstanceCompanionService>(COMPANION_SERVICE_TYPES.PlaybookInstanceService);\n try {\n const opened = await instances.openInstance({ ...args, actor: DecisionRecordActor.AGENT });\n return { opened: true, instanceId: opened.instanceId, ...(opened.commitSha ? { commitSha: opened.commitSha } : {}), note: opened.note };\n } catch (error) {\n if (error instanceof PlaybookInstanceRefusedError || error instanceof PlaybookInstanceTreeBusyError) {\n return { opened: false, reason: error.message };\n }\n throw error;\n }\n },\n };\n\n /*\n * SECONDARY LINES (#1608). A line is an opened instance of its kind's entry composite, so opening one is\n * the instance door with the entry resolved from the kind: nothing records a line beside the activation.\n */\n const openSecondaryLine: FunctionTool = {\n functionRef: WorkbenchCreationConversationTool.OPEN_SECONDARY_LINE,\n description:\n 'Open a SECONDARY LINE beside the main line to develop one feature the person asked for, once the application exists. '\n + 'It is recorded as a decision about what the application builds and committed at once, so it asks the person to approve '\n + 'first. It starts nothing: run the returned entry playbook with the returned instance key. When the person asked for '\n + 'something the application\\'s kind leaves out (a public website on an internal tool), name the families the feature needs '\n + 'back in `neededFamilies`; only then, and only what the person asked for.',\n inputSchema: z.object({\n // A feature line only: a refinement line names what it refines, through its own tool.\n line: z.literal(ApplicationSecondaryLine.FEATURE_DEVELOPMENT).describe('The kind of line: feature_development.'),\n lineKey: z.string().min(1).describe('A short kebab-case key naming the line, e.g. invoicing.'),\n purpose: z.string().min(1).describe('The feature, in the person\\'s words.'),\n neededFamilies: z.array(z.enum(ApplicationSpecificationFamily)).optional()\n .describe('Families the main line does not apply that this feature needs, e.g. website-plan and market-snapshot for a public website.'),\n }),\n requiresHumanApproval: true,\n execute: async (args: { line: ApplicationSecondaryLine; lineKey: string; purpose: string; neededFamilies?: ApplicationSpecificationFamily[] }) => {\n const instances = services.get<PlaybookInstanceCompanionService>(COMPANION_SERVICE_TYPES.PlaybookInstanceService);\n const entryPlaybookRef = APPLICATION_SECONDARY_LINE_DEFINITIONS[args.line].entryPlaybookRef;\n try {\n const opened = await instances.openInstance({\n playbookRef: entryPlaybookRef, instanceKey: args.lineKey, purpose: args.purpose,\n ...(args.neededFamilies && args.neededFamilies.length > 0 ? { neededFamilies: args.neededFamilies } : {}),\n actor: DecisionRecordActor.AGENT,\n });\n return { opened: true, line: args.line, entryPlaybookRef, instanceKey: args.lineKey, instanceId: opened.instanceId, ...(opened.commitSha ? { commitSha: opened.commitSha } : {}) };\n } catch (error) {\n if (error instanceof PlaybookInstanceRefusedError || error instanceof PlaybookInstanceTreeBusyError) {\n return { opened: false, reason: error.message };\n }\n throw error;\n }\n },\n };\n\n const openRefinementLine: FunctionTool = {\n functionRef: WorkbenchCreationConversationTool.OPEN_REFINEMENT_LINE,\n description:\n 'Open a REFINEMENT line beside the main line, when the person wants something the application already holds made '\n + 'better: tighter requirements, a reworked experience plan, a sharper value proposition. It re-derives each named family '\n + 'from what it already says, guided by the purpose, then refreshes what that made out of date and builds it. Name the '\n + 'families in `refinedFamilies` from what the person asked for; the approval names them, so the person decides. A new '\n + 'feature is a feature line, not a refinement. It starts nothing: run the returned entry playbook with the returned key.',\n inputSchema: z.object({\n lineKey: z.string().min(1).describe('A short kebab-case key naming the line, e.g. onboarding.'),\n purpose: z.string().min(1).describe('What to improve, in the person\\'s words.'),\n refinedFamilies: z.array(z.enum(ApplicationSpecificationFamily)).min(1)\n .describe('The families to refine, e.g. requirements or experience-plan. The value proposition is part of market-snapshot.'),\n }),\n requiresHumanApproval: true,\n execute: async (args: { lineKey: string; purpose: string; refinedFamilies: ApplicationSpecificationFamily[] }) => {\n const instances = services.get<PlaybookInstanceCompanionService>(COMPANION_SERVICE_TYPES.PlaybookInstanceService);\n const entryPlaybookRef = APPLICATION_SECONDARY_LINE_DEFINITIONS[ApplicationSecondaryLine.REFINEMENT].entryPlaybookRef;\n try {\n const opened = await instances.openInstance({\n playbookRef: entryPlaybookRef, instanceKey: args.lineKey, purpose: args.purpose, refinedFamilies: args.refinedFamilies, actor: DecisionRecordActor.AGENT,\n });\n return {\n opened: true, line: ApplicationSecondaryLine.REFINEMENT, entryPlaybookRef, instanceKey: args.lineKey, instanceId: opened.instanceId,\n ...(opened.commitSha ? { commitSha: opened.commitSha } : {}),\n };\n } catch (error) {\n if (error instanceof PlaybookInstanceRefusedError || error instanceof PlaybookInstanceTreeBusyError) {\n return { opened: false, reason: error.message };\n }\n throw error;\n }\n },\n };\n\n const readLines: FunctionTool = {\n functionRef: WorkbenchCreationConversationTool.READ_LINES,\n description:\n 'The application\\'s main line (the kind of application it is), and the secondary lines open beside it, each with its '\n + 'instance key and what it is for.',\n inputSchema: z.object({}),\n execute: async () => {\n const creatorInputs = await services.get<DossierCompanionService>(COMPANION_SERVICE_TYPES.DossierService).readCreatorInputs();\n const declaration = resolveApplicationLineDeclaration(creatorInputs);\n return {\n mainLine: declaration.state === ApplicationLineDeclarationState.DECLARED ? declaration.line : null,\n mainLineState: declaration.state,\n secondaryLines: resolveOpenSecondaryLines(creatorInputs).map((line) => ({\n line: line.line,\n instanceKey: line.instanceKey,\n entryPlaybookRef: APPLICATION_SECONDARY_LINE_DEFINITIONS[line.line].entryPlaybookRef,\n purpose: line.purpose,\n neededFamilies: line.neededFamilies,\n refinedFamilies: line.refinedFamilies,\n })),\n };\n },\n };\n\n const closeSecondaryLine: FunctionTool = {\n functionRef: WorkbenchCreationConversationTool.CLOSE_SECONDARY_LINE,\n description:\n 'Close a secondary line the person says is done (completed) or no longer wanted (abandoned). It is recorded and committed, '\n + 'so it asks the person to approve first. What the line added stays; abandoning also cancels its runs that wait on the person.',\n inputSchema: z.object({\n line: z.enum(ApplicationSecondaryLine).describe('The kind of line, as the lines read returns it: feature_development or refinement.'),\n lineKey: z.string().min(1).describe('The line\\'s key, as the lines read returns it.'),\n outcome: z.enum(ApplicationPlaybookInstanceClosureKind).describe('completed, or abandoned.'),\n reason: z.string().min(1).optional().describe('Why, in the person\\'s words.'),\n }),\n requiresHumanApproval: true,\n execute: async (args: { line: ApplicationSecondaryLine; lineKey: string; outcome: ApplicationPlaybookInstanceClosureKind; reason?: string }) => {\n const instances = services.get<PlaybookInstanceCompanionService>(COMPANION_SERVICE_TYPES.PlaybookInstanceService);\n try {\n const closed = await instances.closeInstance({\n playbookRef: APPLICATION_SECONDARY_LINE_DEFINITIONS[args.line].entryPlaybookRef,\n instanceKey: args.lineKey,\n kind: args.outcome,\n ...(args.reason ? { reason: args.reason } : {}),\n actor: DecisionRecordActor.AGENT,\n });\n return { closed: true, ...closed };\n } catch (error) {\n if (error instanceof PlaybookInstanceRefusedError || error instanceof PlaybookInstanceTreeBusyError) {\n return { closed: false, reason: error.message };\n }\n throw error;\n }\n },\n };\n\n const answerRunQuestion: FunctionTool = {\n functionRef: WorkbenchCreationConversationTool.ANSWER_RUN_QUESTION,\n description:\n 'Answer a run that stopped on questions, and let it continue. `accept` with the answers (ref by ref, as the run '\n + 'asked them), `decline` to continue on the run\\'s stated assumption, or `cancel` to abandon the run. Name the '\n + '`round` whose questions the person answered: a run that has moved to a later round refuses it. Send only answers the '\n + 'person gave in this conversation: they are recorded as the person\\'s own decisions.',\n inputSchema: z.object({\n runId: z.string().min(1),\n round: z.number().int().min(1).describe('The round of questions answered, as the waiting run carries it.'),\n action: z.enum(MetaWorkflow_ClarificationAction),\n answers: z.array(z.object({ ref: z.string().min(1), answer: z.string().min(1) })).optional(),\n }),\n execute: async (args: { runId: string; round: number; action: MetaWorkflow_ClarificationAction; answers?: { ref: string; answer: string }[] }, context) => {\n const playbookRun = services.get<PlaybookRunCompanionService>(COMPANION_SERVICE_TYPES.PlaybookRunService);\n /*\n * WHO answered (#1658): the signed-in person the assistant relays for — the identity the workbench's\n * own resume door records, taken from the server-verified caller and never from the model's arguments.\n */\n const answeredByRef = context.auth?.initiatorIds?.userId;\n const outcome = await playbookRun.resumePlaybookRun({\n runId: args.runId, round: args.round, action: args.action,\n ...(args.answers ? { answers: args.answers } : {}),\n ...(answeredByRef ? { answeredByRef, actingUserId: answeredByRef } : {}),\n });\n /*\n * `status` only when the run SAYS one (#1781): cancelled, or stopped to ask again. A continuation\n * that concluded has none, and inventing a third value ('resumed') for it put a word into the\n * field its named vocabulary does not have.\n */\n return { runId: args.runId, action: args.action, ...('status' in outcome ? { status: outcome.status } : {}) };\n },\n };\n\n const research: FunctionTool = {\n functionRef: WorkbenchCreationConversationTool.RESEARCH,\n description:\n 'Find something out from the public web with a read-only research agent, given one clear objective. Takes minutes '\n + 'and costs model calls — the person is asked to approve first. Returns the evidence found and where it was recorded.',\n inputSchema: z.object({ objective: z.string().min(1).describe('What to find out, in one or two sentences.') }),\n requiresHumanApproval: true,\n execute: async (args: { objective: string }) => {\n const dispatch = services.get<ResearchAgentDispatchCompanionService>(COMPANION_SERVICE_TYPES.ResearchAgentDispatchService);\n const result = await dispatch.runResearchTask({ objective: args.objective });\n return { evidence: result.evidence, stopReason: result.stopReason, elapsedMs: result.elapsedMs, persistedEvidencePath: result.persistedEvidencePath };\n },\n };\n\n const readDossier: FunctionTool = {\n functionRef: WorkbenchCreationConversationTool.READ_DOSSIER,\n description:\n 'The dossier: every question a creation step asks the person, with their answer when they gave one '\n + '(standing from-you) or still-needed when they did not. Each entry names its playbookRef and questionRef. '\n + 'An opened instance of a step asks its questions again under its instanceKey (with what it was opened for); '\n + 'standing from-the-step means it runs on the step\\'s own answer until the person gives it one. '\n + 'Call this before asking the person anything a step needs — if the dossier already holds it, do not ask again.',\n inputSchema: z.object({\n playbookRef: z.string().min(1).optional().describe('Only this playbook\\'s questions, when the conversation is about one step.'),\n }),\n execute: async (args: { playbookRef?: string }, context) => {\n const rows = await readCreationPlaneRows(context, WorkbenchShared_ResourceType.DOSSIER_ENTRIES);\n /*\n * A step's questions include the decisions it SHARES with an earlier step: one row, at the owner\n * (#1454 review, A2). Without them the assistant saw nothing still needed for the fallback step,\n * started it, and had it refused on the shared question.\n */\n const selected = args.playbookRef\n ? rows.filter((row) => row.playbookRef === args.playbookRef || (Array.isArray(row.sharedWithPlaybookRefs) && row.sharedWithPlaybookRefs.includes(args.playbookRef)))\n : rows;\n /* `affectsFamilies` is what an answer reaches (#1454, Step 8) — the assistant says it before asking, as the interview does. */\n return { entries: selected.map((row) => pick(row, ['playbookRef', 'instanceKey', 'instancePurpose', 'questionRef', 'question', 'kind', 'options', 'standing', 'value', 'playbookEligible', 'affectsFamilies', 'sharedWithPlaybookRefs'])) };\n },\n };\n\n const recordAnswer: FunctionTool = {\n functionRef: WorkbenchCreationConversationTool.RECORD_ANSWER,\n description:\n 'File the person\\'s answer to one dossier question, in their words, so the step that asks it can run '\n + 'without asking again. Use the entry\\'s own playbookRef and questionRef, as the dossier returned them. Refuses a choice outside the question\\'s options or an ambiguous yes/no; the refusal '\n + 'says what to change. Returns the questions of that step still unanswered.',\n inputSchema: z.object({\n playbookRef: z.string().min(1),\n questionRef: z.string().min(1),\n instanceKey: z.string().min(1).optional().describe('The instance the question is asked for, when the dossier entry names one; omit for the step itself.'),\n value: z.string().min(1).describe('The answer as the person gave it. For a yes/no question: yes or no.'),\n }),\n /*\n * No approval: recording what the person just said costs nothing and is reversible (the file is\n * a working edit until committed). The one thing it must not do is invent — the instructions\n * forbid filing an answer the person did not give in this conversation.\n */\n execute: async (args: { playbookRef: string; questionRef: string; instanceKey?: string; value: string }, context) => {\n /*\n * A shared decision is ONE row, at its owner (#1454 review, A2): a fallback question with no\n * answer of its own has no row, so an answer addressed to it is filed on the owner's row — the\n * same rule the dossier's own answer operation applies.\n */\n let rowId = workbenchDossierEntryIdentity(args);\n const shared = (getFrameworkKnowledgePlaybook(args.playbookRef)?.playbook as { method?: { elicitation?: { questions?: { ref: string; sameDecisionAs?: { playbookRef: string; questionRef: string } }[] } } } | undefined)\n ?.method?.elicitation?.questions?.find((question) => question.ref === args.questionRef)?.sameDecisionAs;\n /* A shared decision is the step's own and is never asked per instance, so an instance's answer is never redirected. */\n if (shared && args.instanceKey === undefined) {\n const rows = await readCreationPlaneRows(context, WorkbenchShared_ResourceType.DOSSIER_ENTRIES);\n if (!rows.some((row) => row.workbenchDossierEntryId === rowId)) rowId = workbenchDossierEntryIdentity(shared);\n }\n const result = await dispatchResourceOperationAsTool<unknown>({\n ctx: context,\n resourceType: WorkbenchShared_ResourceType.DOSSIER_ENTRIES,\n operationIdentifier: WorkbenchDossierEntries_Operations.ANSWER,\n recordId: rowId,\n data: { value: args.value },\n });\n return result;\n },\n };\n\n /*\n * CHANGING THE APPLICATION from a session (#1454, Step 7) — four tools, one decision each:\n * propose a task (the person approves, and may change its arguments), see what running it means,\n * run it (money — approved separately), accept what it wrote (a commit — approved separately).\n * \"Keep it for later\" is proposing without dispatching, which is why they are not one tool.\n */\n const proposeBuildTask: FunctionTool = {\n functionRef: WorkbenchCreationConversationTool.PROPOSE_BUILD_TASK,\n description:\n 'Add ONE build task to the application\\'s plan, for a change the person asked for. The person is shown the task '\n + 'and approves it (or changes its arguments) before it is added — that is the confirmation. Adding does not run it. '\n + 'Name the target precisely: a RESOURCE_STAGE (moduleRef, resourceRef, stage SCHEMA|CONFIG|UI_BEHAVIOR|SPEC), a '\n + 'MODULE (moduleRef), a RELATIONSHIP (moduleRef, relationshipRef) or a SHELL_PLACEMENT (surface). Declare what the '\n + 'task produces so its landing can be proven. Returns the task ref and any advisory findings.',\n inputSchema: z.object({\n objective: z.string().min(1).describe('One sentence: what this task delivers, in the person\\'s terms.'),\n target: z.record(z.string(), z.unknown()).describe('The target, e.g. { kind: \"RESOURCE_STAGE\", moduleRef: \"todos\", resourceRef: \"todo\", stage: \"SCHEMA\" }.'),\n produces: z.array(z.record(z.string(), z.unknown())).describe('The artifacts this task is accountable for, e.g. [{ kind: \"RESOURCE_SCHEMA_FIELDS\", resourceRef: \"todo\", fieldRefs: [\"priority\"] }].'),\n functionalTopic: z.string().min(1).describe('The build phase this task belongs to, e.g. model_domain_graph, define_interaction_semantics, shape_user_experience.'),\n skillRefs: z.array(z.string().min(1)).min(1).describe('The installed skills that carry the how, e.g. [\"resource-add-field\"].'),\n prerequisiteTaskRefs: z.array(z.string().min(1)).optional().describe('Task refs from the state that must land first.'),\n taskRef: z.string().min(1).optional().describe('build-task-<slug>; derived from the objective when omitted.'),\n }),\n /* Approval here is the REVIEW of the task — the person sees and may change what will be added. */\n requiresHumanApproval: true,\n execute: async (args: Record<string, unknown>, context) => dispatchResourceOperationAsTool<unknown>({\n ctx: context,\n resourceType: WorkbenchShared_ResourceType.BUILD_PLAN_TASKS,\n operationIdentifier: WorkbenchBuildPlanTasks_Operations.ADD_TASK,\n data: args,\n }),\n };\n\n const describeTask: FunctionTool = {\n functionRef: WorkbenchCreationConversationTool.DESCRIBE_TASK,\n description:\n 'What running ONE build task would mean, without running it: where the coding agent may write, which checks it must '\n + 'pass, and roughly how much context it carries (in tokens). Refuses, naming why, when the task is not ready. Call '\n + 'this before asking the person to run a task, and tell them what it costs: a coding-agent run of minutes, paid per token.',\n inputSchema: z.object({ taskRef: z.string().min(1) }),\n execute: async (args: { taskRef: string }) => {\n const buildDispatch = services.get<ApplicationBuildDispatchCompanionService>(COMPANION_SERVICE_TYPES.ApplicationBuildDispatchService);\n try {\n const described = await buildDispatch.describeBuildTaskDispatch(args.taskRef);\n return {\n ready: true,\n taskRef: described.plan.taskRef,\n objective: described.plan.objective,\n allowedPathPrefixes: described.plan.allowedPathPrefixes,\n requiredChecks: described.plan.requiredChecks,\n installedSkillRefs: described.plan.installedSkillRefs,\n ...(described.contextTokens !== undefined ? { contextTokens: described.contextTokens } : {}),\n };\n } catch (error) {\n if (error instanceof ApplicationBuildTaskNotReadyError) {\n return { ready: false, taskRef: args.taskRef, standing: error.standing, unmetPrerequisiteTaskRefs: error.unmetPrerequisiteTaskRefs, reason: error.message };\n }\n throw error;\n }\n },\n };\n\n const dispatchTask: FunctionTool = {\n functionRef: WorkbenchCreationConversationTool.DISPATCH_TASK,\n description:\n 'Run ONE ready build task with the coding agent. Costs money (a coding-agent run of minutes, paid per token) — the '\n + 'person is asked to approve before it starts. Only a READY task can run; a landed or blocked one is refused with why. '\n + 'Returns at once once the run is admitted; the run then shows in the conversation as a card, and its outcome is read '\n + 'there, never assumed.',\n inputSchema: z.object({ taskRef: z.string().min(1).describe('The task ref from the state or from the proposal.') }),\n requiresHumanApproval: true,\n execute: async (args: { taskRef: string }, context) => dispatchResourceOperationAsTool<unknown>({\n ctx: context,\n resourceType: WorkbenchShared_ResourceType.BUILD_PLAN_TASKS,\n operationIdentifier: WorkbenchBuildPlanTasks_Operations.DISPATCH_TASK,\n recordId: sanitizeWorkbenchCreationPlaneIdentity(args.taskRef),\n /* The thread this turn belongs to, so the run shows as a card of it. */\n data: context.executionId ? { conversationId: context.executionId } : {},\n }),\n };\n\n const acceptTask: FunctionTool = {\n functionRef: WorkbenchCreationConversationTool.ACCEPT_TASK,\n description:\n 'Accept what a task\\'s latest finished coding run wrote: commit exactly those files, in one commit that names the task. '\n + 'The person is asked to approve first. Files carrying changes from before the run, or edited since, are refused by '\n + 'name and left out; say which. Only after the person has looked at the run\\'s outcome.',\n inputSchema: z.object({ taskRef: z.string().min(1) }),\n requiresHumanApproval: true,\n execute: async (args: { taskRef: string }, context) => dispatchResourceOperationAsTool<unknown>({\n ctx: context,\n resourceType: WorkbenchShared_ResourceType.BUILD_PLAN_TASKS,\n operationIdentifier: WorkbenchBuildPlanTasks_Operations.ACCEPT,\n recordId: sanitizeWorkbenchCreationPlaneIdentity(args.taskRef),\n data: {},\n }),\n };\n\n return [readApplicationState, readArtifact, runPlaybook, openPlaybookInstance, openSecondaryLine, openRefinementLine, readLines, closeSecondaryLine, answerRunQuestion, research, readDossier, recordAnswer, proposeBuildTask, describeTask, dispatchTask, acceptTask];\n}\n"]}
|
package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deliberation-agents.actors-system.definitions.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"deliberation-agents.actors-system.definitions.d.ts","sourceRoot":"","sources":["../../../../src/deliberations/models/deliberation-agents.actors-system.definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAUrF;;;;;;;;;;;;;;;;GAgBG;AAEH,mEAAmE;AACnE,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE7D;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,oBAAoB,GAAG,iBAAiB,CAsEjF;AAED;;;;;GAKG;AACH,eAAO,MAAM,oCAAoC,qCAAqC,CAAC;AAEvF,QAAA,MAAM,qCAAqC;;iBAGzC,CAAC;AACH,eAAO,MAAM,oCAAoC,EAAE,OAAO,qCACnB,CAAC;AACxC,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AACnG,QAAA,MAAM,2CAA2C;;kBAAiD,CAAC;AACnG,eAAO,MAAM,0CAA0C,EAAE,OAAO,2CACnB,CAAC;AAE9C,wBAAgB,kCAAkC,IAAI,iBAAiB,CAmDtE"}
|
|
@@ -51,7 +51,6 @@ export function buildExpertAgent(profile) {
|
|
|
51
51
|
maxTokens: 16000,
|
|
52
52
|
accessControl: [{
|
|
53
53
|
primaryScope: ResourcePrimaryScope.APPLICATION,
|
|
54
|
-
requiresApproval: false,
|
|
55
54
|
}],
|
|
56
55
|
riskLevel: ResourceOperationRiskLevel.LOW,
|
|
57
56
|
},
|
|
@@ -123,7 +122,6 @@ export function buildDeliberationTextProducerAgent() {
|
|
|
123
122
|
maxTokens: 16000,
|
|
124
123
|
accessControl: [{
|
|
125
124
|
primaryScope: ResourcePrimaryScope.APPLICATION,
|
|
126
|
-
requiresApproval: false,
|
|
127
125
|
}],
|
|
128
126
|
riskLevel: ResourceOperationRiskLevel.LOW,
|
|
129
127
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deliberation-agents.actors-system.definitions.js","sourceRoot":"","sources":["../../../../../src/deliberations/models/deliberation-agents.actors-system.definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,EACxB,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,yCAAyC,EAAE,0CAA0C,EAAE,uCAAuC,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAGzO;;;;;;;;;;;;;;;;GAgBG;AAEH,mEAAmE;AACnE,MAAM,UAAU,qBAAqB,CAAC,OAAe;IACnD,OAAO,UAAU,OAAO,QAAQ,CAAC;AACnC,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,OAA6B;IAC5D,MAAM,eAAe,GAAG;QACtB,OAAO,CAAC,YAAY;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,uBAAuB,CAAC,aAAa;YACzD,YAAY,EAAE,wBAAwB,CAAC,mBAAmB;YAC1D,SAAS,EAAE,KAAK;YAChB,aAAa,EAAE,CAAC;oBACd,YAAY,EAAE,oBAAoB,CAAC,WAAW;oBAC9C,gBAAgB,EAAE,KAAK;iBACxB,CAAC;YACF,SAAS,EAAE,0BAA0B,CAAC,GAAG;SAC1C;QACD,mBAAmB,EAAE;YACnB,YAAY,EAAE,wBAAwB,CAAC,mBAAmB;YAC1D,WAAW,EAAE,WAAW;YACxB,WAAW,EAAE,yCAAyC;YACtD,YAAY,EAAE,0CAA0C;YACxD,sBAAsB,EAAE,uCAAuC;SAClB;QAC/C,UAAU,EAAE;YACV,IAAI,EACF,4FAA4F;kBAC1F,qEAAqE;YACzE,OAAO,EACL,uFAAuF;kBACrF,4FAA4F;kBAC5F,kDAAkD;YACtD,SAAS,EAAE,4BAA4B,CAAC,UAAU;YAClD;;;;;;;;;;eAUG;YACH,YAAY,EAAE,EAAE;SACjB;QACD,SAAS,EAAE,0BAA0B;KACtC,CAAC;AACJ,CAAC","sourcesContent":["import { z } from 'zod';\nimport type { FlowsActors_Agent, RuntimeExpertProfile } from '@wildo-ai/saas-models';\nimport {\n FlowsActors_Agent_Skill_Type,\n FlowsActors_Agent_Status,\n ResourceOperationRiskLevel,\n ResourcePrimaryScope,\n} from '@wildo-ai/saas-models';\nimport { LLMProvider_GenerateStructuredInputSchema, LLMProvider_GenerateStructuredOutputSchema, LLMProvider_OperationContext_BaseSchema, LLMProvider_OperationKey, LLM_Model_Applicability } from '@wildo-ai/external-connectors-models';\nimport type { LLMProvider_OperationDefinitionBase } from '@wildo-ai/external-connectors-models';\n\n/**\n * Deliberation agent factories (agentic deliberation system, Step 3).\n *\n * **Expert agents are BUILT FROM COMMITTED CHARTERS at companion startup**\n * (RF-6): one agent per accepted `ExpertPersonaCharter`, its promptSpec\n * compiled from the DERIVED persona (prose + priorities + taboos +\n * qualityBar + reviewProtocol) — the anti-taste-as-code payoff: the judge's\n * voice comes from the app's own specification, never from framework code.\n * A charter accepted AFTER startup has no agent until the companion\n * restarts (the registry indexes agents at startup) — the deliberation\n * composer fail-closes with exactly that instruction.\n *\n * All on `anthropic/claude-fable-5` with explicit `maxTokens` (the Claude 5\n * family rejects sampling params, and @ai-sdk/anthropic@3.0.67 defaults\n * unknown models to a 4096-token cap that truncates long structured\n * outputs — both learned live 2026-07-16).\n */\n\n/** The agent ref an expert charter's agent is registered under. */\nexport function expertAgentRefForRole(roleRef: string): string {\n return `expert.${roleRef}.agent`;\n}\n\nexport function buildExpertAgent(profile: RuntimeExpertProfile): FlowsActors_Agent {\n const personaSections = [\n profile.personaProse,\n `Your ordered judgment priorities (most important first):\\n${profile.priorities.map((p) => `- ${p}`).join('\\n')}`,\n profile.taboos.length > 0\n ? `Hard taboos you never reward or produce:\\n${profile.taboos.map((t) => `- ${t}`).join('\\n')}`\n : '',\n profile.qualityBar && profile.qualityBar.length > 0\n ? `What a 95+ candidate looks like for this application:\\n${profile.qualityBar.map((q) => `- ${q}`).join('\\n')}`\n : '',\n ].filter((section) => section.length > 0).join('\\n\\n');\n\n return {\n ref: expertAgentRefForRole(profile.roleRef),\n displayName: `Expert: ${profile.roleRef}`,\n status: FlowsActors_Agent_Status.ACTIVE,\n config: {\n providerRef: 'anthropic',\n // DEEP_JUDGMENT: the enum names \"deliberation\" among its own examples (#439). Resolves to\n // `claude-fable-5` on `anthropic` today — the model both of these pinned. The text producer\n // takes the same class as the experts deliberately: STRUCTURED_AUTHORING would read as the\n // tidier label and would resolve to `claude-sonnet-5`, changing which model writes the\n // deliberation's conclusion. A relabelling should not move a model.\n modelApplicability: LLM_Model_Applicability.DEEP_JUDGMENT,\n operationKey: LLMProvider_OperationKey.GENERATE_STRUCTURED,\n // No sampling params (Claude 5 rejects them); explicit output budget\n // (SDK unknown-model default is 4096 and truncates mid-JSON).\n maxTokens: 16000,\n accessControl: [{\n primaryScope: ResourcePrimaryScope.APPLICATION,\n requiresApproval: false,\n }],\n riskLevel: ResourceOperationRiskLevel.LOW,\n },\n operationDefinition: {\n operationKey: LLMProvider_OperationKey.GENERATE_STRUCTURED,\n providerRef: 'anthropic',\n inputSchema: LLMProvider_GenerateStructuredInputSchema,\n outputSchema: LLMProvider_GenerateStructuredOutputSchema,\n operationContextSchema: LLMProvider_OperationContext_BaseSchema,\n } satisfies LLMProvider_OperationDefinitionBase,\n promptSpec: {\n role:\n 'You sit on a creative deliberation panel for this application. Depending on the task you '\n + 'derive evaluation rubrics, review candidates against a rubric, coordinate rounds, or '\n + 'synthesize a final decision — always emitting output that conforms EXACTLY to the provided '\n + 'schema, always grounded in what the task material actually shows.',\n persona: personaSections,\n skillType: FlowsActors_Agent_Skill_Type.DECISION,\n /*\n * The FRAMEWORK slice — the craft of reviewing on a rubric, reusable across every work domain\n * and every application. It was EMPTY, and the persona above is the other slice: charter prose,\n * priorities, taboos and quality bar, all derived from THIS application. So a reviewer knew what\n * this product cares about and nothing about how to review.\n *\n * Kept separate rather than folded into the persona, per `app-creation-dynamic-context.md`\n * design 5: application knowledge says what and why, framework knowledge says how, and merging\n * them lets one application's charter quietly redefine what reviewing means.\n */\n instructions: [\n 'Score EVERY criterion the rubric declares, and no others. A criterion you skip is not a low score — it is a missing measurement, and the aggregate cannot tell the difference.',\n 'A score without a reason is not a review. Say what in the candidate produced the number, quoting or pointing at the specific part.',\n 'Critiques must be ACTIONABLE: name what to change, not what you disliked. \"The tagline buries the outcome\" is usable; \"weak copy\" is not.',\n 'Judge against the brief and the rubric, never against your own taste. \"Not how I would have done it\" is not a finding; \"misses a criterion the rubric declares\" is.',\n 'Your dissent is PRESERVED, not averaged away. If you disagree with where the panel is heading, say so plainly rather than converging — a panel that agrees because it expects to agree has measured one lens, not several.',\n 'Never reward what the taboos forbid, however well executed. A polished violation is still a violation.',\n 'If the candidate is genuinely good, say so. A reviewer who never accepts is as uninformative as one who never refuses.',\n ],\n },\n createdAt: '2026-07-16T00:00:00.000Z',\n };\n}\n\n/**\n * The TEXT revision producer — the deliberation's revise step for TEXT\n * subjects (RF-4: text revises the draft; the IMAGE path regenerates via\n * the brand pipeline instead, wired in the brand refit). Deliberately a\n * separate GENERATION agent, not an expert: producing is not judging.\n */\nexport const DELIBERATION_TEXT_PRODUCER_AGENT_REF = 'deliberation.text-producer.agent';\n\nconst _DeliberationTextRevisionOutputSchema = z.object({\n /** The full revised candidate text (wholesale replacement). */\n revisedText: z.string(),\n});\nexport const DeliberationTextRevisionOutputSchema: typeof _DeliberationTextRevisionOutputSchema =\n _DeliberationTextRevisionOutputSchema;\nexport type DeliberationTextRevisionOutput = z.infer<typeof _DeliberationTextRevisionOutputSchema>;\nconst _DeliberationTextRevisionOutputStrictSchema = _DeliberationTextRevisionOutputSchema.strict();\nexport const DeliberationTextRevisionOutputStrictSchema: typeof _DeliberationTextRevisionOutputStrictSchema =\n _DeliberationTextRevisionOutputStrictSchema;\n\nexport function buildDeliberationTextProducerAgent(): FlowsActors_Agent {\n return {\n ref: DELIBERATION_TEXT_PRODUCER_AGENT_REF,\n displayName: 'Deliberation Text Producer Agent',\n status: FlowsActors_Agent_Status.ACTIVE,\n config: {\n providerRef: 'anthropic',\n // DEEP_JUDGMENT: the enum names \"deliberation\" among its own examples (#439). Resolves to\n // `claude-fable-5` on `anthropic` today — the model both of these pinned. The text producer\n // takes the same class as the experts deliberately: STRUCTURED_AUTHORING would read as the\n // tidier label and would resolve to `claude-sonnet-5`, changing which model writes the\n // deliberation's conclusion. A relabelling should not move a model.\n modelApplicability: LLM_Model_Applicability.DEEP_JUDGMENT,\n operationKey: LLMProvider_OperationKey.GENERATE_STRUCTURED,\n maxTokens: 16000,\n accessControl: [{\n primaryScope: ResourcePrimaryScope.APPLICATION,\n requiresApproval: false,\n }],\n riskLevel: ResourceOperationRiskLevel.LOW,\n },\n operationDefinition: {\n operationKey: LLMProvider_OperationKey.GENERATE_STRUCTURED,\n providerRef: 'anthropic',\n inputSchema: LLMProvider_GenerateStructuredInputSchema,\n outputSchema: LLMProvider_GenerateStructuredOutputSchema,\n operationContextSchema: LLMProvider_OperationContext_BaseSchema,\n } satisfies LLMProvider_OperationDefinitionBase,\n promptSpec: {\n role:\n 'You revise a TEXT work-product candidate per a creative panel\\'s critiques, returning the '\n + 'full revised text conforming EXACTLY to the provided output schema.',\n persona:\n 'You are a disciplined reviser: you address EVERY panel critique concretely, you keep '\n + 'everything the panel did not challenge (this is a revision, not a rewrite), and you never '\n + 'introduce new claims the brief does not support.',\n skillType: FlowsActors_Agent_Skill_Type.GENERATION,\n /*\n * DELIBERATELY EMPTY, and stated rather than left silent.\n *\n * This is the second `instructions: []` in this file and it is NOT the same defect as the\n * expert agent's above. The producer's craft — address every critique concretely, keep what the\n * panel did not challenge, introduce no claim the brief does not support — is already written\n * into its persona two fields up, and that craft is three sentences rather than a body of\n * knowledge. Duplicating it here would create two places to edit and one to forget.\n *\n * If it grows beyond what a persona can carry, it belongs here, in the framework slice.\n */\n instructions: [],\n },\n createdAt: '2026-07-16T00:00:00.000Z',\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"deliberation-agents.actors-system.definitions.js","sourceRoot":"","sources":["../../../../src/deliberations/models/deliberation-agents.actors-system.definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,EACxB,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,yCAAyC,EAAE,0CAA0C,EAAE,uCAAuC,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAGzO;;;;;;;;;;;;;;;;GAgBG;AAEH,mEAAmE;AACnE,MAAM,UAAU,qBAAqB,CAAC,OAAe;IACnD,OAAO,UAAU,OAAO,QAAQ,CAAC;AACnC,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,OAA6B;IAC5D,MAAM,eAAe,GAAG;QACtB,OAAO,CAAC,YAA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D,YAAY,EAAE,wBAAwB,CAAC,mBAAmB;YAC1D,SAAS,EAAE,KAAK;YAChB,aAAa,EAAE,CAAC;oBACd,YAAY,EAAE,oBAAoB,CAAC,WAAW;iBAC/C,CAAC;YACF,SAAS,EAAE,0BAA0B,CAAC,GAAG;SAC1C;QACD,mBAAmB,EAAE;YACnB,YAAY,EAAE,wBAAwB,CAAC,mBAAmB;YAC1D,WAAW,EAAE,WAAW;YACxB,WAAW,EAAE,yCAAyC;YACtD,YAAY,EAAE,0CAA0C;YACxD,sBAAsB,EAAE,uCAAuC;SAClB;QAC/C,UAAU,EAAE;YACV,IAAI,EACF,4FAA4F;kBAC1F,qEAAqE;YACzE,OAAO,EACL,uFAAuF;kBACrF,4FAA4F;kBAC5F,kDAAkD;YACtD,SAAS,EAAE,4BAA4B,CAAC,UAAU;YAClD;;;;;;;;;;eAUG;YACH,YAAY,EAAE,EAAE;SACjB;QACD,SAAS,EAAE,0BAA0B;KACtC,CAAC;AACJ,CAAC","sourcesContent":["import { z } from 'zod';\nimport type { FlowsActors_Agent, RuntimeExpertProfile } from '@wildo-ai/saas-models';\nimport {\n FlowsActors_Agent_Skill_Type,\n FlowsActors_Agent_Status,\n ResourceOperationRiskLevel,\n ResourcePrimaryScope,\n} from '@wildo-ai/saas-models';\nimport { LLMProvider_GenerateStructuredInputSchema, LLMProvider_GenerateStructuredOutputSchema, LLMProvider_OperationContext_BaseSchema, LLMProvider_OperationKey, LLM_Model_Applicability } from '@wildo-ai/external-connectors-models';\nimport type { LLMProvider_OperationDefinitionBase } from '@wildo-ai/external-connectors-models';\n\n/**\n * Deliberation agent factories (agentic deliberation system, Step 3).\n *\n * **Expert agents are BUILT FROM COMMITTED CHARTERS at companion startup**\n * (RF-6): one agent per accepted `ExpertPersonaCharter`, its promptSpec\n * compiled from the DERIVED persona (prose + priorities + taboos +\n * qualityBar + reviewProtocol) — the anti-taste-as-code payoff: the judge's\n * voice comes from the app's own specification, never from framework code.\n * A charter accepted AFTER startup has no agent until the companion\n * restarts (the registry indexes agents at startup) — the deliberation\n * composer fail-closes with exactly that instruction.\n *\n * All on `anthropic/claude-fable-5` with explicit `maxTokens` (the Claude 5\n * family rejects sampling params, and @ai-sdk/anthropic@3.0.67 defaults\n * unknown models to a 4096-token cap that truncates long structured\n * outputs — both learned live 2026-07-16).\n */\n\n/** The agent ref an expert charter's agent is registered under. */\nexport function expertAgentRefForRole(roleRef: string): string {\n return `expert.${roleRef}.agent`;\n}\n\nexport function buildExpertAgent(profile: RuntimeExpertProfile): FlowsActors_Agent {\n const personaSections = [\n profile.personaProse,\n `Your ordered judgment priorities (most important first):\\n${profile.priorities.map((p) => `- ${p}`).join('\\n')}`,\n profile.taboos.length > 0\n ? `Hard taboos you never reward or produce:\\n${profile.taboos.map((t) => `- ${t}`).join('\\n')}`\n : '',\n profile.qualityBar && profile.qualityBar.length > 0\n ? `What a 95+ candidate looks like for this application:\\n${profile.qualityBar.map((q) => `- ${q}`).join('\\n')}`\n : '',\n ].filter((section) => section.length > 0).join('\\n\\n');\n\n return {\n ref: expertAgentRefForRole(profile.roleRef),\n displayName: `Expert: ${profile.roleRef}`,\n status: FlowsActors_Agent_Status.ACTIVE,\n config: {\n providerRef: 'anthropic',\n // DEEP_JUDGMENT: the enum names \"deliberation\" among its own examples (#439). Resolves to\n // `claude-fable-5` on `anthropic` today — the model both of these pinned. The text producer\n // takes the same class as the experts deliberately: STRUCTURED_AUTHORING would read as the\n // tidier label and would resolve to `claude-sonnet-5`, changing which model writes the\n // deliberation's conclusion. A relabelling should not move a model.\n modelApplicability: LLM_Model_Applicability.DEEP_JUDGMENT,\n operationKey: LLMProvider_OperationKey.GENERATE_STRUCTURED,\n // No sampling params (Claude 5 rejects them); explicit output budget\n // (SDK unknown-model default is 4096 and truncates mid-JSON).\n maxTokens: 16000,\n accessControl: [{\n primaryScope: ResourcePrimaryScope.APPLICATION,\n }],\n riskLevel: ResourceOperationRiskLevel.LOW,\n },\n operationDefinition: {\n operationKey: LLMProvider_OperationKey.GENERATE_STRUCTURED,\n providerRef: 'anthropic',\n inputSchema: LLMProvider_GenerateStructuredInputSchema,\n outputSchema: LLMProvider_GenerateStructuredOutputSchema,\n operationContextSchema: LLMProvider_OperationContext_BaseSchema,\n } satisfies LLMProvider_OperationDefinitionBase,\n promptSpec: {\n role:\n 'You sit on a creative deliberation panel for this application. Depending on the task you '\n + 'derive evaluation rubrics, review candidates against a rubric, coordinate rounds, or '\n + 'synthesize a final decision — always emitting output that conforms EXACTLY to the provided '\n + 'schema, always grounded in what the task material actually shows.',\n persona: personaSections,\n skillType: FlowsActors_Agent_Skill_Type.DECISION,\n /*\n * The FRAMEWORK slice — the craft of reviewing on a rubric, reusable across every work domain\n * and every application. It was EMPTY, and the persona above is the other slice: charter prose,\n * priorities, taboos and quality bar, all derived from THIS application. So a reviewer knew what\n * this product cares about and nothing about how to review.\n *\n * Kept separate rather than folded into the persona, per `app-creation-dynamic-context.md`\n * design 5: application knowledge says what and why, framework knowledge says how, and merging\n * them lets one application's charter quietly redefine what reviewing means.\n */\n instructions: [\n 'Score EVERY criterion the rubric declares, and no others. A criterion you skip is not a low score — it is a missing measurement, and the aggregate cannot tell the difference.',\n 'A score without a reason is not a review. Say what in the candidate produced the number, quoting or pointing at the specific part.',\n 'Critiques must be ACTIONABLE: name what to change, not what you disliked. \"The tagline buries the outcome\" is usable; \"weak copy\" is not.',\n 'Judge against the brief and the rubric, never against your own taste. \"Not how I would have done it\" is not a finding; \"misses a criterion the rubric declares\" is.',\n 'Your dissent is PRESERVED, not averaged away. If you disagree with where the panel is heading, say so plainly rather than converging — a panel that agrees because it expects to agree has measured one lens, not several.',\n 'Never reward what the taboos forbid, however well executed. A polished violation is still a violation.',\n 'If the candidate is genuinely good, say so. A reviewer who never accepts is as uninformative as one who never refuses.',\n ],\n },\n createdAt: '2026-07-16T00:00:00.000Z',\n };\n}\n\n/**\n * The TEXT revision producer — the deliberation's revise step for TEXT\n * subjects (RF-4: text revises the draft; the IMAGE path regenerates via\n * the brand pipeline instead, wired in the brand refit). Deliberately a\n * separate GENERATION agent, not an expert: producing is not judging.\n */\nexport const DELIBERATION_TEXT_PRODUCER_AGENT_REF = 'deliberation.text-producer.agent';\n\nconst _DeliberationTextRevisionOutputSchema = z.object({\n /** The full revised candidate text (wholesale replacement). */\n revisedText: z.string(),\n});\nexport const DeliberationTextRevisionOutputSchema: typeof _DeliberationTextRevisionOutputSchema =\n _DeliberationTextRevisionOutputSchema;\nexport type DeliberationTextRevisionOutput = z.infer<typeof _DeliberationTextRevisionOutputSchema>;\nconst _DeliberationTextRevisionOutputStrictSchema = _DeliberationTextRevisionOutputSchema.strict();\nexport const DeliberationTextRevisionOutputStrictSchema: typeof _DeliberationTextRevisionOutputStrictSchema =\n _DeliberationTextRevisionOutputStrictSchema;\n\nexport function buildDeliberationTextProducerAgent(): FlowsActors_Agent {\n return {\n ref: DELIBERATION_TEXT_PRODUCER_AGENT_REF,\n displayName: 'Deliberation Text Producer Agent',\n status: FlowsActors_Agent_Status.ACTIVE,\n config: {\n providerRef: 'anthropic',\n // DEEP_JUDGMENT: the enum names \"deliberation\" among its own examples (#439). Resolves to\n // `claude-fable-5` on `anthropic` today — the model both of these pinned. The text producer\n // takes the same class as the experts deliberately: STRUCTURED_AUTHORING would read as the\n // tidier label and would resolve to `claude-sonnet-5`, changing which model writes the\n // deliberation's conclusion. A relabelling should not move a model.\n modelApplicability: LLM_Model_Applicability.DEEP_JUDGMENT,\n operationKey: LLMProvider_OperationKey.GENERATE_STRUCTURED,\n maxTokens: 16000,\n accessControl: [{\n primaryScope: ResourcePrimaryScope.APPLICATION,\n }],\n riskLevel: ResourceOperationRiskLevel.LOW,\n },\n operationDefinition: {\n operationKey: LLMProvider_OperationKey.GENERATE_STRUCTURED,\n providerRef: 'anthropic',\n inputSchema: LLMProvider_GenerateStructuredInputSchema,\n outputSchema: LLMProvider_GenerateStructuredOutputSchema,\n operationContextSchema: LLMProvider_OperationContext_BaseSchema,\n } satisfies LLMProvider_OperationDefinitionBase,\n promptSpec: {\n role:\n 'You revise a TEXT work-product candidate per a creative panel\\'s critiques, returning the '\n + 'full revised text conforming EXACTLY to the provided output schema.',\n persona:\n 'You are a disciplined reviser: you address EVERY panel critique concretely, you keep '\n + 'everything the panel did not challenge (this is a revision, not a rewrite), and you never '\n + 'introduce new claims the brief does not support.',\n skillType: FlowsActors_Agent_Skill_Type.GENERATION,\n /*\n * DELIBERATELY EMPTY, and stated rather than left silent.\n *\n * This is the second `instructions: []` in this file and it is NOT the same defect as the\n * expert agent's above. The producer's craft — address every critique concretely, keep what the\n * panel did not challenge, introduce no claim the brief does not support — is already written\n * into its persona two fields up, and that craft is three sentences rather than a body of\n * knowledge. Duplicating it here would create two places to edit and one to forget.\n *\n * If it grows beyond what a persona can carry, it belongs here, in the framework slice.\n */\n instructions: [],\n },\n createdAt: '2026-07-16T00:00:00.000Z',\n };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deliberation.companion.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"deliberation.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/deliberations/services/deliberation.companion.service.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,aAAa,EAEb,KAAK,oBAAoB,EAC1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGL,gBAAgB,EAEhB,KAAK,iBAAiB,EAEtB,KAAK,yBAAyB,EAE9B,KAAK,kBAAkB,EAGxB,MAAM,uBAAuB,CAAC;AAK/B,OAAO,EAKL,KAAK,oBAAoB,EAC1B,MAAM,+BAA+B,CAAC;AAMvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,6BAA6B,EAAE,MAAM,6EAA6E,CAAC;AAQ5H,8FAA8F;AAC9F,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,gBAAgB,CAAC;IAC7B,kEAAkE;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M,EACf,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,oBAAoB,CAAC,EAChD,IAAI,EAAE;QAAE,SAAS,CAAC,EAAE,gBAAgB,CAAC;QAAC,YAAY,CAAC,EAAE,gBAAgB,CAAA;KAAE;IACvE;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GACnB,yBAAyB;IAwD5B;;;;;OAKG;IACU,qBAAqB,IAAI,OAAO,CAAC,oBAAoB,EAAE,CAAC;IAqCrE,uEAAuE;YACzD,UAAU;CAuCzB"}
|
|
@@ -16,7 +16,7 @@ import { resolve } from 'node:path';
|
|
|
16
16
|
import { inject, injectable } from 'inversify';
|
|
17
17
|
import { ActorsSystemBackendService, ErrorBuilderBackendService, LoggerService, SAAS_SERVICE_TYPES, } from '@wildo-ai/saas-backend-lib';
|
|
18
18
|
import { ErrorCustomMessageReference, ErrorType, FlowsActors_IO_PartKind, } from '@wildo-ai/saas-models';
|
|
19
|
-
import { ExpertPersonaCharterSchema, getExpertRoleTemplate, } from '@wildo-ai/saas-specifications';
|
|
19
|
+
import { ExpertPersonaCharterSchema, getExpertRoleTemplate, resolveNotApplicableFamilies, } from '@wildo-ai/saas-specifications';
|
|
20
20
|
import { composeExpertRoleContext, decidedFamilyValuesFromCompanionExports } from '@wildo-ai/application-creation-runtime';
|
|
21
21
|
import { loadSpecificationsCompanionExports } from '../../core/context/companion-package-loaders.companion.js';
|
|
22
22
|
import { loadDraftFamilyValues } from '../../core/context/draft-family-values.companion.js';
|
|
@@ -200,11 +200,12 @@ let DeliberationCompanionService = class DeliberationCompanionService {
|
|
|
200
200
|
...Object.fromEntries(await loadDraftFamilyValues(this.companionContext.resolvedSpecifications?.packageRoot)),
|
|
201
201
|
...decidedFamilyValuesFromCompanionExports(companionExports),
|
|
202
202
|
};
|
|
203
|
+
const notApplicableFamilies = resolveNotApplicableFamilies(companionExports.creatorInputs);
|
|
203
204
|
for (const roleRef of new Set(roleRefs.filter((ref) => ref !== undefined))) {
|
|
204
205
|
const template = getExpertRoleTemplate(roleRef);
|
|
205
206
|
if (!template)
|
|
206
207
|
continue;
|
|
207
|
-
const composed = composeExpertRoleContext({ shapingInputKinds: template.shapingInputKinds, valuesByFamily });
|
|
208
|
+
const composed = composeExpertRoleContext({ shapingInputKinds: template.shapingInputKinds, valuesByFamily, notApplicableFamilies });
|
|
208
209
|
if (composed !== undefined)
|
|
209
210
|
contexts.set(roleRef, composed);
|
|
210
211
|
}
|
|
@@ -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,GAEtB,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;AAC5H,OAAO,EACL,oCAAoC,EACpC,oCAAoC,EACpC,0CAA0C,EAC1C,qBAAqB,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,CAAC,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACnE,MAAM,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,SAAS,CAAC,QAAQ,EAAE,SAAS,EAAE;gBAChE,sBAAsB,EAAE,2BAA2B,CAAC,QAAQ;gBAC5D,OAAO,EAAE;oBACP,OAAO,EAAE,iFAAiF;iBAC3F;aACF,CAAC,CAAC;QACL,CAAC;QACD,OAAO,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC;IACjC,CAAC;CACF,CAAA;AA3VY,4BAA4B;IADxC,UAAU,EAAE;IAKR,WAAA,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAA;IAE9C,WAAA,MAAM,CAAC,kBAAkB,CAAC,0BAA0B,CAAC,CAAA;IAErD,WAAA,MAAM,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,CAAA;IAE/C,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;IAEhD,WAAA,MAAM,CAAC,uBAAuB,CAAC,oBAAoB,CAAC,CAAA;qCATO,aAAa;QAE1C,0BAA0B;QAEnB,0BAA0B,oBAMhB,6BAA6B;GAdpE,4BAA4B,CA2VxC","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 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 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 });\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,K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,CAAA;AA9VY,4BAA4B;IADxC,UAAU,EAAE;IAKR,WAAA,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAA;IAE9C,WAAA,MAAM,CAAC,kBAAkB,CAAC,0BAA0B,CAAC,CAAA;IAErD,WAAA,MAAM,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,CAAA;IAE/C,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;IAEhD,WAAA,MAAM,CAAC,uBAAuB,CAAC,oBAAoB,CAAC,CAAA;qCATO,aAAa;QAE1C,0BAA0B;QAEnB,0BAA0B,oBAMhB,6BAA6B;GAdpE,4BAA4B,CA8VxC","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 +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,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