@wildo-ai/dev-companion 1.1.9 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/.tsbuildinfo +1 -0
- package/dist/esm/brand/models/accepted-brand-mark.models.d.ts +46 -0
- package/dist/esm/brand/models/accepted-brand-mark.models.d.ts.map +1 -0
- package/dist/esm/brand/models/accepted-brand-mark.models.js +89 -0
- package/dist/esm/brand/models/accepted-brand-mark.models.js.map +1 -0
- package/dist/esm/brand/models/logo-creative-brief.schemas.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-creative-brief.schemas.js.map +1 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.js.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.map +1 -1
- package/dist/esm/brand/models/logo-judge.schemas.d.ts +5 -3
- package/dist/esm/brand/models/logo-judge.schemas.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-judge.schemas.js +5 -3
- package/dist/esm/brand/models/logo-judge.schemas.js.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
- package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-propagation.companion.utils.js.map +1 -1
- package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/logo-deliberation.companion.service.js +10 -7
- package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
- package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
- package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
- package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
- package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
- package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.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 +89 -0
- 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 +133 -0
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-usage-limit.models.d.ts +52 -0
- package/dist/esm/claude-cli/models/coding-agent-usage-limit.models.d.ts.map +1 -0
- package/dist/esm/claude-cli/models/coding-agent-usage-limit.models.js +206 -0
- package/dist/esm/claude-cli/models/coding-agent-usage-limit.models.js.map +1 -0
- package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/coding-session-frame-retention.js.map +1 -1
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +38 -3
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js +48 -4
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answer.models.js.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -1
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +108 -7
- 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 +461 -27
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/accepted-change-import-closure.companion.d.ts +53 -0
- package/dist/esm/claude-cli/services/accepted-change-import-closure.companion.d.ts.map +1 -0
- package/dist/esm/claude-cli/services/accepted-change-import-closure.companion.js +193 -0
- package/dist/esm/claude-cli/services/accepted-change-import-closure.companion.js.map +1 -0
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +74 -1
- 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 +246 -39
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js.map +1 -1
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +15 -2
- package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.js +36 -4
- package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
- package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.d.ts.map +1 -1
- package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.js.map +1 -1
- package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.d.ts.map +1 -1
- package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.d.ts +337 -337
- package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
- package/dist/esm/companion-api/companion-error-guidance.models.d.ts.map +1 -1
- package/dist/esm/companion-api/companion-error-guidance.models.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.d.ts +25 -6
- package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.js +136 -15
- package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts.map +1 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.js.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.models.d.ts.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.models.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
- package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js.map +1 -1
- package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
- package/dist/esm/core/context/application-module-generations.companion.d.ts.map +1 -1
- package/dist/esm/core/context/application-module-generations.companion.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.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.map +1 -1
- package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
- package/dist/esm/core/inject/models/service-types.js.map +1 -1
- package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
- package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
- package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
- package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
- package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/application-secrets.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.js +8 -1
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts +10 -0
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.js +56 -2
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +7 -3
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +22 -2
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/launch-blockers.companion.d.ts +7 -3
- package/dist/esm/core/introspection/resources/launch-blockers.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/launch-blockers.companion.js +28 -2
- package/dist/esm/core/introspection/resources/launch-blockers.companion.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 +8 -2
- 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 +72 -5
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts +153 -4
- 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 +383 -30
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-input-closure.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-input-closure.companion.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts +82 -2
- 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 +220 -10
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts +22 -6
- package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js +38 -7
- package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/translation-placement.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts +9 -0
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js +29 -9
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/assertions.behavior.js +10 -10
- package/dist/esm/core/introspection/subprocess/assertions.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-hooks.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-register.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-register.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +20 -19
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-child.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-child.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.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 +9 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-context-block.builder.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-context-block.builder.js +2 -1
- package/dist/esm/core/introspection/subprocess/market-context-block.builder.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts +4 -3
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.js +14 -8
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js +17 -4
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.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 +35 -0
- package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/application-runtime-liveness.companion.js +74 -0
- package/dist/esm/core/runtime/application-runtime-liveness.companion.js.map +1 -1
- package/dist/esm/core/runtime/companion-endpoint-record.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-endpoint-record.js.map +1 -1
- package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-env-file.js.map +1 -1
- package/dist/esm/core/runtime/companion-self-restart.companion.d.ts +38 -0
- package/dist/esm/core/runtime/companion-self-restart.companion.d.ts.map +1 -0
- package/dist/esm/core/runtime/companion-self-restart.companion.js +110 -0
- package/dist/esm/core/runtime/companion-self-restart.companion.js.map +1 -0
- package/dist/esm/core/runtime/companion-startup-assembly.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-startup-assembly.js +7 -1
- package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts +12 -0
- package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.js +15 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
- package/dist/esm/core/runtime/event-loop-stall-monitor.companion.d.ts +83 -0
- package/dist/esm/core/runtime/event-loop-stall-monitor.companion.d.ts.map +1 -0
- package/dist/esm/core/runtime/event-loop-stall-monitor.companion.js +150 -0
- package/dist/esm/core/runtime/event-loop-stall-monitor.companion.js.map +1 -0
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js.map +1 -1
- package/dist/esm/core/runtime/models/companion-runtime.models.d.ts.map +1 -1
- package/dist/esm/core/runtime/models/companion-runtime.models.js.map +1 -1
- package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/services/file-storage-initialization.companion.js.map +1 -1
- package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +23 -1
- 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 +50 -2
- package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-workbench-topology.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-workbench-topology.js.map +1 -1
- package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.js.map +1 -1
- package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/chart-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/composite-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/cross-registry-rendering.shared.js.map +1 -1
- package/dist/esm/core/specifications/execution-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/execution-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/feature-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/feature-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/frontend-component-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/full-custom-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/guidance-flow-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/milestone-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/milestone-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/non-composite-view-specification-context.shared.js.map +1 -1
- package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/onboarding-element-rendering.shared.js.map +1 -1
- package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/onboarding-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/product-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/product-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/resource-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/role-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/role-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.js.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.models.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.models.js.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.shared.js.map +1 -1
- package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/system-email-template-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
- package/dist/esm/core/specifications/validate-resource-field-completeness.js.map +1 -1
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.models.js.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.service.js.map +1 -1
- package/dist/esm/core/utils/atomic-write.utils.d.ts.map +1 -1
- package/dist/esm/core/utils/atomic-write.utils.js.map +1 -1
- package/dist/esm/core/utils/bounded-concurrency.utils.d.ts.map +1 -1
- package/dist/esm/core/utils/bounded-concurrency.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.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.function-tools.js +4 -2
- 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 +7 -8
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.d.ts +10 -5
- package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.js +31 -21
- package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
- package/dist/esm/deliberations/utils/expert-agent-registration.d.ts +56 -0
- package/dist/esm/deliberations/utils/expert-agent-registration.d.ts.map +1 -0
- package/dist/esm/deliberations/utils/expert-agent-registration.js +74 -0
- package/dist/esm/deliberations/utils/expert-agent-registration.js.map +1 -0
- package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts +9 -5
- package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
- package/dist/esm/deliberations/utils/load-committed-expert-agents.js +11 -15
- package/dist/esm/deliberations/utils/load-committed-expert-agents.js.map +1 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.js.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
- package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-labels-file-source.utils.js.map +1 -1
- package/dist/esm/email/utils/email-labels-tree.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-labels-tree.utils.js.map +1 -1
- package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-template-fs-discovery.utils.js.map +1 -1
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.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.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts +5 -3
- package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.js +5 -3
- package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.js.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts +17 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.js +47 -10
- package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
- package/dist/esm/expert-personas/services/persona-source-ownership.d.ts.map +1 -1
- package/dist/esm/expert-personas/services/persona-source-ownership.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_announcement.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_announcement.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_banner.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_card.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_card.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist_item.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_modal.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_modal.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_onboarding_view.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_survey.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_tooltip.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_tooltip.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_tour.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_tour.en.js.map +1 -1
- package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_achievement_badge.en.js.map +1 -1
- package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_milestone_tracker.en.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts +1 -0
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.js +14 -0
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.domain-model.en.js.map +1 -1
- package/dist/esm/i18n/control-plane-label-blocks.d.ts +344 -0
- package/dist/esm/i18n/control-plane-label-blocks.d.ts.map +1 -0
- package/dist/esm/i18n/control-plane-label-blocks.js +115 -0
- package/dist/esm/i18n/control-plane-label-blocks.js.map +1 -0
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts.map +1 -1
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.js.map +1 -1
- package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -1
- package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -1
- package/dist/esm/i18n/index.d.ts.map +1 -1
- package/dist/esm/i18n/index.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts +410 -0
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js +13 -145
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts +65 -0
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js +4 -37
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts +65 -0
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js +4 -37
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchAspects.en.js +4 -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.map +1 -1
- 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.map +1 -1
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDomainResources.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts +10 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +3 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +287 -0
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +97 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/application-creation.en.d.ts +19 -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 +21 -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/localization.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/localization.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.map +1 -1
- package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/risk-register.en.d.ts.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 +1 -0
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.js +2 -0
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -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.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-secrets.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -1
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-progress.models.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-progress.models.js.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +29 -2
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-unit.models.js +17 -0
- package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
- package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +5 -0
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +44 -4
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-file-source.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-file-source.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/labelling-concurrency.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.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.map +1 -1
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts +8 -1
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js +9 -2
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts +13 -7
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js +13 -7
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.js.map +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/market/services/market-generation.companion.service.d.ts.map +1 -1
- package/dist/esm/market/services/market-generation.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +3 -3
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-line-catalog.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts +18 -0
- 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 +37 -0
- package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/creation-intervention.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/creation-intervention.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/generation-step-progress.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/generation-step-progress.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/human-decision-settler.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/website-copy-review.actors-system.definitions.d.ts +36 -0
- package/dist/esm/meta-workflows/models/website-copy-review.actors-system.definitions.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/website-copy-review.actors-system.definitions.js +97 -0
- package/dist/esm/meta-workflows/models/website-copy-review.actors-system.definitions.js.map +1 -0
- package/dist/esm/meta-workflows/models/website-copy-review.models.d.ts +124 -0
- package/dist/esm/meta-workflows/models/website-copy-review.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/website-copy-review.models.js +74 -0
- package/dist/esm/meta-workflows/models/website-copy-review.models.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +297 -8
- 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 +1089 -42
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +143 -11
- 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 +277 -42
- 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 +38 -0
- 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 +123 -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 +130 -2
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js +251 -4
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-website-copy-review.companion.service.d.ts +122 -0
- package/dist/esm/meta-workflows/services/application-build-website-copy-review.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-build-website-copy-review.companion.service.js +295 -0
- package/dist/esm/meta-workflows/services/application-build-website-copy-review.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-enabled-surface-brief.companion.utils.d.ts +22 -0
- package/dist/esm/meta-workflows/services/application-enabled-surface-brief.companion.utils.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-enabled-surface-brief.companion.utils.js +45 -0
- package/dist/esm/meta-workflows/services/application-enabled-surface-brief.companion.utils.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.d.ts +53 -0
- package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.js +97 -0
- package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.js.map +1 -0
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.d.ts +17 -1
- package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.js +25 -3
- package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.js.map +1 -1
- package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +5 -0
- package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/dossier.companion.service.js +5 -1
- 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 +50 -1
- 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 +132 -54
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/landed-module-import.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js +50 -17
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +42 -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 +62 -0
- 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 +61 -1
- 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 +398 -81
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translate-orchestrator.companion.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"translate-orchestrator.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/i18n-labelling/services/translate-orchestrator.companion.service.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAClB,KAAK,0BAA0B,EAEhC,MAAM,4BAA4B,CAAC;AAapC,OAAO,EAAE,iBAAiB,EAAqB,MAAM,qCAAqC,CAAC;AAE3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,gCAAgC,EAAa,MAAM,uCAAuC,CAAC;AACpG,OAAO,EAAE,2CAA2C,EAAE,MAAM,oDAAoD,CAAC;AAEjH,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAkBlG,OAAO,EAGL,KAAK,yBAAyB,EAE/B,MAAM,qCAAqC,CAAC;AAO7C,OAAO,EACL,iBAAiB,EAKlB,MAAM,iCAAiC,CAAC;AAiBzC,OAAO,EAAE,4BAA4B,EAAE,MAAM,wDAAwD,CAAC;AACtG,OAAO,EAEL,KAAK,gCAAgC,EAEtC,MAAM,uDAAuD,CAAC;AAE/D,MAAM,WAAW,gBAAgB;IAC/B,aAAa,EAAE,iBAAiB,EAAE,CAAC;IACnC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;OAIG;IACH,Y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IAKlF;;;OAGG;IACU,SAAS,CACpB,OAAO,EAAE,gBAAgB,EACzB,eAAe,CAAC,EAAE,gCAAgC,GACjD,OAAO,CAAC,kBAAkB,CAAC;IAW9B;;;;OAIG;IACU,uBAAuB,CAClC,OAAO,EAAE;QACP,aAAa,EAAE,iBAAiB,EAAE,CAAC;QACnC,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;QACjC,QAAQ,CAAC,EAAE,yBAAyB,CAAC;KACtC,EACD,eAAe,CAAC,EAAE,gCAAgC,GACjD,OAAO,CAAC,kBAAkB,CAAC;YAgBhB,YAAY;IA+H1B;;;;;OAKG;YACW,8BAA8B;IAwF5C,+DAA+D;YACjD,qBAAqB;IAOnC,OAAO,CAAC,WAAW;IASnB;;;;;;;OAOG;YACW,oBAAoB;IAoDlC;;;OAGG;YACW,uCAAuC;IAiErD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;YACW,mCAAmC;YA+InC,sBAAsB;YA+NtB,cAAc;IAkB5B;;;;;;;OAOG;IACH,OAAO,CAAC,oBAAoB;IAgI5B;;;OAGG;YACW,yBAAyB;IA8CvC;;;;;;OAMG;YACW,kBAAkB;YA+LlB,sBAAsB;IAUpC,OAAO,CAAC,eAAe;CAcxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translate-orchestrator.companion.service.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/services/translate-orchestrator.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,EACL,kBAAkB,EAKlB,mBAAmB,GACpB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGL,mCAAmC,EACnC,+BAA+B,GAChC,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B,CAAC,OAAuC;IACjE,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,KAAK,iBAAiB,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AACxH,CAAC","sourcesContent":["import * as fs from 'node:fs/promises';\nimport * as path from 'node:path';\nimport { inject, injectable } from 'inversify';\nimport { z } from 'zod';\nimport {\n SAAS_SERVICE_TYPES,\n type AgentsBackendService,\n type AppConfigurationService,\n type LoggerService,\n type ErrorBuilderBackendService,\n describeCaughtError,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n LLMProvider_GenerateStructuredInputSchema,\n LLMProvider_GenerateStructuredOutputSchema,\n describeStructuredGenerationFailure,\n readStructuredGenerationFailure,\n} from '@wildo-ai/external-connectors-models';\nimport {\n ErrorCustomMessageReference,\n ErrorType,\n type AgentTraceContext,\n type FlowsActors_Agent_Invocation,\n} from '@wildo-ai/saas-models';\nimport { AvailableLanguage, LANGUAGE_INFO_MAP } from '@wildo-ai/presets-components-models';\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { LabellingPlannerCompanionService, chunkKeys } from './labelling-planner.companion.service';\nimport { EmailTemplateLabellingUnitsCompanionService } from './email-template-labelling-units.companion.service';\nimport { getCompanionConfiguredPrimaryLanguage } from '../../core/config/primary-language.companion.utils';\nimport { WildoSaasLockCompanionService } from '../../core/lock/wildo-saas-lock.companion.service';\nimport type { I18nLockLocaleEntry, I18nLockUnitEntry } from '../../core/lock/wildo-saas-lock.models';\nimport { writeFileAtomic } from '../../core/utils/atomic-write.utils';\nimport { mapWithBoundedConcurrency } from '../../core/utils/bounded-concurrency.utils';\nimport {\n resolvePerUnitFilePath,\n readPerUnitLabels,\n renderPerUnitLabels,\n writePerUnitLabels,\n} from '../utils/per-unit-file.utils';\nimport { rejectPrimaryLocaleTarget } from '../utils/translate-locale-contract.utils';\nimport { incompletePlanRefusal } from '../utils/incomplete-plan-refusal.utils';\nimport { resolveLabellingConcurrency } from '../utils/labelling-concurrency.utils';\nimport {\n StagedLabelFileWriter,\n adoptAbandonedLabelStaging,\n withUnwrittenFilesFailed,\n} from '../utils/staged-label-file-writer.utils';\nimport {\n LabellingProgressPhase,\n reportLabellingProgress,\n type LabellingProgressReporter,\n type LabellingProgressUnitOutcome,\n} from '../models/labelling-progress.models';\nimport {\n assembleTranslatedChunkResult,\n extractLabelPlaceholderTokens,\n type PlaceholderDrift,\n type TranslatedChunkAssembly,\n} from '../utils/label-placeholder-drift.utils';\nimport {\n I18nUnitRunStatus,\n LabellingUnitCategory,\n type LabellingUnit,\n type LabellingUnitChunk,\n type LabellingUnitSpecContext,\n} from '../models/labelling-unit.models';\nimport {\n EMAIL_TEMPLATE_LABELLING_BUCKET,\n emailTemplateLabellingUnitId,\n isEmailTemplateLabellingUnitId,\n type EmailTemplateLabellingUnit,\n} from '../models/email-template-labelling-unit.models';\nimport { completeStructuredChunkKeys, labelValueCarriesControlCharacter } from '../utils/structured-chunk-completion.utils';\nimport { judgeEmailTranslation } from '../utils/email-template-translation.utils';\nimport {\n flattenEmailLabelsTree,\n formatTranslatedEmailLabelsFile,\n mapEmailLabelsTreeLeaves,\n parseEmailLabelsTreeSource,\n type ParsedEmailLabelsTreeFile,\n} from '../../email/utils/email-labels-tree.utils';\nimport { labelsFilePath } from '../../email/utils/email-template-fs-discovery.utils';\nimport { CompanionTraceabilityService } from '../../core/traceability/companion-traceability.service';\nimport {\n CompanionTraceabilityLevel,\n type CompanionExecutionSessionContext,\n type CompanionTraceStepContext,\n} from '../../core/traceability/companion-traceability.models';\n\nexport interface TranslateOptions {\n targetLocales: AvailableLanguage[];\n forceRetranslate?: boolean;\n /**\n * Unit ids to limit the run to. May mix both lanes: an i18n unit id (`resource:todos`) and an email\n * template unit id (`email_template:system.welcome_email`). A lane none of whose ids is named is not\n * planned at all, so a filtered run does not pay for introspecting the other lane.\n */\n unitIdFilter?: string[];\n /** Told how far the run is, per lane and locale (#2215). Absent for a run nobody is watching. */\n progress?: LabellingProgressReporter;\n}\n\n/** Which of the translate pipeline's lanes a run covers. */\ninterface TranslateLaneSelection {\n /** The generated per-unit i18n files (`planAllUnits()`). */\n readonly i18nUnits: boolean;\n /** Every email template's `labels.<locale>.ts` (#1908). */\n readonly emailTemplates: boolean;\n}\n\n/**\n * What the shared translation core needs to know about a unit: who it is, for the prompt, the traces and\n * the log lines. Narrower than `LabellingUnit` on purpose — an email unit has no `filePathHint`, and the\n * core never needed one.\n */\ntype TranslatableUnitIdentity = Pick<LabellingUnit, 'id' | 'category' | 'displayLabel'>;\n\n/** Mutable tally shared by both lanes of one run. */\ninterface TranslateRunTally {\n details: TranslateUnitResult[];\n updated: number;\n fresh: number;\n failed: number;\n skipped: number;\n}\n\nexport interface TranslateUnitResult {\n unitId: string;\n targetLocale: AvailableLanguage;\n filePath: string;\n status: I18nUnitRunStatus;\n error?: string;\n}\n\nexport interface TranslateRunResult {\n primaryLocale: AvailableLanguage;\n totalRoundtrips: number;\n updated: number;\n fresh: number;\n failed: number;\n skipped: number;\n details: TranslateUnitResult[];\n}\n\n/**\n * Per-unit, per-locale translator.\n *\n * For each unit × target locale:\n * - Read primary file content and compute its SHA.\n * - If lock entry says (inputSha, primarySha) match the locale's\n * last successful state and the locale output file SHA still\n * matches => fresh, skip.\n * - Else: rebuild the same chunk schemas, ship the source labels +\n * the SAME spec context the labellize step used + the primary\n * values to the agent, write the per-unit translated file, and\n * update the lock with the new locale entry.\n *\n * \"Same context + primary value\" is the user-mandated invariant: the\n * translator must not see less context than the labellizer.\n */\n@injectable()\nexport class TranslateOrchestratorCompanionService {\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) private readonly errorBuilder: ErrorBuilderBackendService,\n @inject(SAAS_SERVICE_TYPES.AgentsBackendService) private readonly agentsService: AgentsBackendService,\n @inject(SAAS_SERVICE_TYPES.AppConfigService)\n private readonly appConfigService: AppConfigurationService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.LabellingPlannerService) private readonly planner: LabellingPlannerCompanionService,\n @inject(COMPANION_SERVICE_TYPES.WildoSaasLockService) private readonly lockService: WildoSaasLockCompanionService,\n @inject(COMPANION_SERVICE_TYPES.TraceabilityService) private readonly traceability: CompanionTraceabilityService,\n @inject(COMPANION_SERVICE_TYPES.EmailTemplateLabellingUnitsService)\n private readonly emailTemplateUnits: EmailTemplateLabellingUnitsCompanionService,\n ) {\n this.logDebug = this.logger.debugByType('TranslateOrchestrator');\n }\n\n /**\n * Translate every planned unit into `targetLocales` — the generated i18n units AND, since #1908, every\n * email template's words. `unitIdFilter` may name units of either lane (see {@link TranslateOptions}).\n */\n public async translate(\n options: TranslateOptions,\n providedSession?: CompanionExecutionSessionContext,\n ): Promise<TranslateRunResult> {\n const filterIds = options.unitIdFilter ?? null;\n const lanes: TranslateLaneSelection = filterIds === null\n ? { i18nUnits: true, emailTemplates: true }\n : {\n i18nUnits: filterIds.some((id) => !isEmailTemplateLabellingUnitId(id)),\n emailTemplates: filterIds.some((id) => isEmailTemplateLabellingUnitId(id)),\n };\n return await this.runTranslate(options, lanes, providedSession);\n }\n\n /**\n * Translate ONLY email templates — every one, or the `templateRefs` named. The door the email\n * generation step and `wildo generate email translate` go through, so they run the very lane\n * `wildo generate translate` runs, with its lock, rather than a second translator of the same files.\n */\n public async translateEmailTemplates(\n options: {\n targetLocales: AvailableLanguage[];\n forceRetranslate?: boolean;\n templateRefs?: readonly string[];\n progress?: LabellingProgressReporter;\n },\n providedSession?: CompanionExecutionSessionContext,\n ): Promise<TranslateRunResult> {\n const { targetLocales, forceRetranslate, templateRefs, progress } = options;\n return await this.runTranslate(\n {\n targetLocales,\n ...(forceRetranslate !== undefined ? { forceRetranslate } : {}),\n ...(progress !== undefined ? { progress } : {}),\n ...(templateRefs && templateRefs.length > 0\n ? { unitIdFilter: templateRefs.map((templateRef) => emailTemplateLabellingUnitId(templateRef)) }\n : {}),\n },\n { i18nUnits: false, emailTemplates: true },\n providedSession,\n );\n }\n\n private async runTranslate(\n options: TranslateOptions,\n lanes: TranslateLaneSelection,\n providedSession?: CompanionExecutionSessionContext,\n ): Promise<TranslateRunResult> {\n const primaryLocale = getCompanionConfiguredPrimaryLanguage(this.appConfigService.config);\n const targetLocales = [...new Set(options.targetLocales ?? [])];\n if (targetLocales.length === 0) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: 'targetLocales is required and must be a non-empty array' },\n });\n }\n rejectPrimaryLocaleTarget(targetLocales, primaryLocale, this.errorBuilder);\n\n const filter = options.unitIdFilter ? new Set(options.unitIdFilter) : null;\n\n // Trace under the CALLER's session when provided (controller's per-request\n // `POST /labelling/translate` session) so artifacts land in the session the\n // user inspects; fall back to a self-owned `internal` session for\n // direct/CLI/test callers. Gated no-op at the default NONE level (translated\n // output byte-identical). At DEBUG_VERBOSE it captures, per unit×locale, the\n // source strings + replayed spec context + the exact prompt + the LLM\n // response + token usage.\n const traceSession = providedSession ?? this.traceability.createInternalSession({\n label: 'translate-run',\n metadata: {\n run: 'translate',\n primaryLocale,\n targetLocales,\n forceRetranslate: options.forceRetranslate === true,\n unitIdFilter: options.unitIdFilter ?? null,\n lanes,\n },\n });\n\n const tally: TranslateRunTally = { details: [], updated: 0, fresh: 0, failed: 0, skipped: 0 };\n let unitCount = 0;\n\n // Generated files are staged outside the application and moved into place in one burst when the run\n // ends, so a run of hundreds of units restarts the backend once, not once per file (#2213). What a run\n // that died left staged is moved in first, so the freshness checks below see it.\n await this.adoptAbandonedStaging();\n const writer = await StagedLabelFileWriter.open(this.companionContext.saasRoot);\n let unwritten: ReadonlyMap<string, string> = new Map();\n try {\n if (lanes.i18nUnits) {\n const i18nRoot = this.resolveI18nRoot();\n const allUnits = await this.planner.planAllUnits();\n const units = filter ? allUnits.filter((u) => filter.has(u.id)) : allUnits;\n unitCount += units.length;\n reportLabellingProgress(options.progress, (reporter) => reporter.planned(LabellingProgressPhase.TRANSLATE, units.length, targetLocales));\n\n // Units run side by side, each unit's locales one after another — see `labelling-concurrency.utils.ts`\n // for why the unit is the parallel axis (#2211). Results come back in plan order.\n const perUnit = await mapWithBoundedConcurrency(units, resolveLabellingConcurrency(), async (unit) => {\n const results = await this.translateI18nUnitAcrossLocales({\n unit,\n i18nRoot,\n primaryLocale,\n targetLocales,\n forceRetranslate: options.forceRetranslate === true,\n traceSession,\n writer,\n });\n reportLabellingProgress(options.progress, (reporter) => reporter.unitSettled(LabellingProgressPhase.TRANSLATE, toProgressOutcomes(results)));\n return results;\n });\n for (const results of perUnit) {\n for (const result of results) {\n tally.details.push(result);\n this.countResult(tally, result.status);\n }\n }\n }\n\n if (lanes.emailTemplates) {\n unitCount += await this.runEmailTemplateLane({\n filter,\n primaryLocale,\n targetLocales,\n forceRetranslate: options.forceRetranslate === true,\n traceSession,\n tally,\n progress: options.progress,\n writer,\n });\n }\n } finally {\n unwritten = await writer.close();\n }\n if (unwritten.size > 0) {\n // A unit whose file could not be written is FAILED, whatever its translation did.\n const settled = withUnwrittenFilesFailed(tally.details, unwritten, I18nUnitRunStatus.FAILED);\n Object.assign(tally, { details: [], updated: 0, fresh: 0, failed: 0, skipped: 0 });\n for (const result of settled) {\n tally.details.push(result);\n this.countResult(tally, result.status);\n }\n }\n\n const { details, updated, fresh, failed, skipped } = tally;\n await this.traceability.traceEvent({\n session: traceSession,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'translate-run-complete',\n summary: `Translated ${unitCount} unit(s) → [${targetLocales.join(', ')}]: ${updated} updated, ${fresh} fresh, ${skipped} skipped, ${failed} failed`,\n payload: { primaryLocale, targetLocales, totalRoundtrips: details.length, updated, fresh, skipped, failed },\n });\n if (traceSession.traceabilityLevel !== CompanionTraceabilityLevel.NONE) {\n this.logger.info('Translate trace session written', {\n sessionId: traceSession.sessionId,\n sessionDir: traceSession.sessionDirPath,\n });\n }\n\n return {\n primaryLocale,\n totalRoundtrips: details.length,\n updated,\n fresh,\n failed,\n skipped,\n details,\n };\n }\n\n /**\n * Every target locale of one generated i18n unit, in locale order — the worker the i18n lane runs\n * through the bounded pool. Returns one result per locale; a unit that cannot be translated at all\n * (refused plan, unreadable source) yields one FAILED or SKIPPED row per locale, exactly as the\n * sequential loop recorded it.\n */\n private async translateI18nUnitAcrossLocales(args: {\n unit: LabellingUnit;\n i18nRoot: string;\n primaryLocale: AvailableLanguage;\n targetLocales: readonly AvailableLanguage[];\n forceRetranslate: boolean;\n traceSession: CompanionExecutionSessionContext;\n writer: StagedLabelFileWriter;\n }): Promise<TranslateUnitResult[]> {\n const { unit, i18nRoot, primaryLocale, targetLocales, forceRetranslate, traceSession, writer } = args;\n const results: TranslateUnitResult[] = [];\n /*\n * Translation prunes every target-locale key the plan does not hold and records the locale\n * `fresh`, so a unit planned from incomplete inputs would lose its words in every locale and\n * never be revisited. Refused here exactly as labellize refuses it — see `incompletePlanRefusal`.\n */\n const refusal = incompletePlanRefusal(unit);\n if (refusal) {\n for (const targetLocale of targetLocales) {\n results.push({ unitId: unit.id, targetLocale, filePath: '', status: I18nUnitRunStatus.FAILED, error: refusal });\n }\n this.logger.warn('Translate unit refused — planned from incomplete inputs', {\n unitId: unit.id,\n reasons: unit.plannedFromIncompleteInputs,\n });\n return results;\n }\n const sourceFilePath = resolvePerUnitFilePath({ i18nRoot, unit, localeCode: primaryLocale });\n let sourceFlat: Record<string, string>;\n try {\n sourceFlat = await readPerUnitLabels(sourceFilePath);\n } catch (err: unknown) {\n const message = describeCaughtError(err);\n for (const targetLocale of targetLocales) {\n results.push({\n unitId: unit.id,\n targetLocale,\n filePath: '',\n status: I18nUnitRunStatus.FAILED,\n error: `Failed to read source: ${message}`,\n });\n }\n return results;\n }\n\n if (Object.keys(sourceFlat).length === 0) {\n for (const targetLocale of targetLocales) {\n results.push({\n unitId: unit.id,\n targetLocale,\n filePath: resolvePerUnitFilePath({ i18nRoot, unit, localeCode: targetLocale }),\n status: I18nUnitRunStatus.SKIPPED,\n });\n }\n return results;\n }\n\n // Spec context is loaded ONCE per unit and reused across locales.\n const specContext = await unit.loadSpecContext();\n\n for (const targetLocale of targetLocales) {\n try {\n const result = await this.translateUnitForLocale({\n unit,\n sourceLocale: primaryLocale,\n targetLocale,\n sourceFlat,\n specContext,\n i18nRoot,\n forceRetranslate,\n traceSession,\n writer,\n });\n results.push(result);\n } catch (err: unknown) {\n const message = describeCaughtError(err);\n results.push({\n unitId: unit.id,\n targetLocale,\n filePath: '',\n status: I18nUnitRunStatus.FAILED,\n error: message,\n });\n }\n }\n return results;\n }\n\n /** Move in what a dead run left staged, and say so (#2213). */\n private async adoptAbandonedStaging(): Promise<void> {\n const { adopted, discarded } = await adoptAbandonedLabelStaging(this.companionContext.saasRoot);\n if (adopted.length > 0 || discarded.length > 0) {\n this.logger.info('Label files left staged by an earlier run were moved into place', { adopted: adopted.length, discardedAsOlderThanTheFileInPlace: discarded.length });\n }\n }\n\n private countResult(tally: TranslateRunTally, status: I18nUnitRunStatus): void {\n if (status === I18nUnitRunStatus.FRESH) tally.fresh++;\n else if (status === I18nUnitRunStatus.UPDATED) tally.updated++;\n else if (status === I18nUnitRunStatus.SKIPPED) tally.skipped++;\n else tally.failed++;\n }\n\n // ─── Email lane (#1908) ────────────────────────────────────────────────────\n\n /**\n * Translate every planned email template into `targetLocales`, adding each roundtrip to `tally`.\n * Returns the number of email units considered.\n *\n * A planning failure (the backend introspection that locates email roots could not answer) is one\n * FAILED roundtrip per locale under the lane's bucket name rather than a thrown run: the i18n lane of\n * the same run may already have written its files, and the caller must still be told both outcomes.\n */\n private async runEmailTemplateLane(args: {\n filter: ReadonlySet<string> | null;\n primaryLocale: AvailableLanguage;\n targetLocales: readonly AvailableLanguage[];\n forceRetranslate: boolean;\n traceSession: CompanionExecutionSessionContext;\n tally: TranslateRunTally;\n progress: LabellingProgressReporter | undefined;\n writer: StagedLabelFileWriter;\n }): Promise<number> {\n const { filter, primaryLocale, targetLocales, forceRetranslate, traceSession, tally, progress, writer } = args;\n\n let units: EmailTemplateLabellingUnit[];\n try {\n units = (await this.emailTemplateUnits.planEmailTemplateUnits()).units;\n } catch (err: unknown) {\n const message = describeCaughtError(err);\n this.logger.error('Email template translation could not be planned', { error: message });\n for (const targetLocale of targetLocales) {\n tally.failed++;\n tally.details.push({\n unitId: EMAIL_TEMPLATE_LABELLING_BUCKET,\n targetLocale,\n filePath: '',\n status: I18nUnitRunStatus.FAILED,\n error: `Could not locate the application's email templates: ${message}`,\n });\n }\n return 0;\n }\n if (filter) units = units.filter((unit) => filter.has(unit.id));\n const plannedUnits = units;\n reportLabellingProgress(progress, (reporter) =>\n reporter.planned(LabellingProgressPhase.TRANSLATE_EMAIL_TEMPLATES, plannedUnits.length, targetLocales));\n\n // Templates run side by side, each template's locales in turn (#2211) — the same axis and the same\n // reason as the i18n lane: a template's lock row holds all its locales and is written whole.\n const perUnit = await mapWithBoundedConcurrency(units, resolveLabellingConcurrency(), async (unit) => {\n const results = await this.translateEmailTemplateUnitAcrossLocales({ unit, primaryLocale, targetLocales, forceRetranslate, traceSession, writer });\n reportLabellingProgress(progress, (reporter) =>\n reporter.unitSettled(LabellingProgressPhase.TRANSLATE_EMAIL_TEMPLATES, toProgressOutcomes(results)));\n return results;\n });\n for (const results of perUnit) {\n for (const result of results) {\n tally.details.push(result);\n this.countResult(tally, result.status);\n }\n }\n return units.length;\n }\n\n /**\n * Every target locale of one email template, in locale order — the worker the email lane runs\n * through the bounded pool. One result per locale, as the sequential loop recorded them.\n */\n private async translateEmailTemplateUnitAcrossLocales(args: {\n unit: EmailTemplateLabellingUnit;\n primaryLocale: AvailableLanguage;\n targetLocales: readonly AvailableLanguage[];\n forceRetranslate: boolean;\n traceSession: CompanionExecutionSessionContext;\n writer: StagedLabelFileWriter;\n }): Promise<TranslateUnitResult[]> {\n const { unit, primaryLocale, targetLocales, forceRetranslate, traceSession, writer } = args;\n const results: TranslateUnitResult[] = [];\n const sourcePath = labelsFilePath(unit.templateDirectory, primaryLocale);\n let source: { content: string; parsed: ParsedEmailLabelsTreeFile; words: Record<string, string> };\n try {\n const content = await fs.readFile(sourcePath, 'utf-8');\n const parsed = parseEmailLabelsTreeSource(content);\n source = { content, parsed, words: flattenEmailLabelsTree(parsed.tree) };\n } catch (err: unknown) {\n const message = (err as NodeJS.ErrnoException)?.code === 'ENOENT'\n ? `The template has no primary-locale words to translate: ${sourcePath} does not exist`\n : `Failed to read ${sourcePath}: ${describeCaughtError(err)}`;\n for (const targetLocale of targetLocales) {\n results.push({ unitId: unit.id, targetLocale, filePath: '', status: I18nUnitRunStatus.FAILED, error: message });\n }\n return results;\n }\n\n if (Object.keys(source.words).length === 0) {\n for (const targetLocale of targetLocales) {\n results.push({\n unitId: unit.id,\n targetLocale,\n filePath: labelsFilePath(unit.templateDirectory, targetLocale),\n status: I18nUnitRunStatus.SKIPPED,\n });\n }\n return results;\n }\n\n const specContext = await unit.loadSpecContext();\n for (const targetLocale of targetLocales) {\n try {\n const result = await this.translateEmailTemplateUnitForLocale({\n unit,\n source,\n sourceLocale: primaryLocale,\n targetLocale,\n specContext,\n forceRetranslate,\n traceSession,\n writer,\n });\n results.push(result);\n } catch (err: unknown) {\n results.push({\n unitId: unit.id,\n targetLocale,\n filePath: '',\n status: I18nUnitRunStatus.FAILED,\n error: describeCaughtError(err),\n });\n }\n }\n return results;\n }\n\n /**\n * One email template × one locale.\n *\n * ## Freshness\n *\n * The lock row is `units[\"email_template:<ref>\"]`. Both hashes are of the AUTHORED primary file:\n * `inputSha` and `primarySha` are that file's SHA, because for an authored source the file IS the\n * input. A locale is fresh when the recorded source SHA and the locale file's SHA both still match\n * the disk — an unchanged English file is not re-translated, and a hand edit to either side is not\n * silently honoured.\n *\n * When the English file changed, every OTHER locale of the unit is marked `stale` in the same write,\n * which is what labellize does to a generated unit whose primary changed. Without it, translating\n * `fr` would record the new source SHA and leave `de` reading as fresh against words it never saw.\n *\n * ## Why the whole email is re-translated when its English changes\n *\n * The i18n lane translates only the keys whose primary words changed (`staleKeys`, #1409), because\n * the labeller knows which ones did. Nothing records the previous English of an authored email, so\n * the only per-key alternative is storing a hash per key in the lock — rejected: an email is ONE\n * message of a few dozen words read top to bottom, and re-translating it whole keeps its register\n * consistent, where patching one sentence into an older translation can leave the message reading\n * as two voices.\n *\n * ## Written whole, or not at all\n *\n * See `judgeEmailTranslation`: a missing key or a placeholder that did not survive fails the\n * roundtrip and leaves any previous file untouched, because the file's existence is what the backend\n * counts as \"this email covers the locale\".\n */\n private async translateEmailTemplateUnitForLocale(args: {\n unit: EmailTemplateLabellingUnit;\n source: { content: string; parsed: ParsedEmailLabelsTreeFile; words: Record<string, string> };\n sourceLocale: AvailableLanguage;\n targetLocale: AvailableLanguage;\n specContext: LabellingUnitSpecContext | undefined;\n forceRetranslate: boolean;\n traceSession: CompanionExecutionSessionContext;\n /** Stages the file for a burst (#2213); absent = written at once. */\n writer?: StagedLabelFileWriter;\n }): Promise<TranslateUnitResult> {\n const { unit, source, sourceLocale, targetLocale, specContext, forceRetranslate, traceSession, writer } = args;\n const targetPath = labelsFilePath(unit.templateDirectory, targetLocale);\n const sourceSha = this.lockService.hashString(source.content);\n\n const step = this.traceability.createStep(traceSession, {\n kind: 'translate-unit',\n label: `${unit.id}->${targetLocale}`,\n });\n\n const section = await this.lockService.readI18nSection();\n const existing = section?.units[unit.id];\n const localeEntry = existing?.locales[targetLocale];\n\n if (!forceRetranslate && existing?.primarySha === sourceSha && localeEntry?.status === 'fresh' && localeEntry.outputSha) {\n const onDiskTargetSha = await this.computeFileShaIfExists(targetPath);\n if (onDiskTargetSha === localeEntry.outputSha) {\n await this.traceability.traceEvent({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'translate-unit-fresh',\n summary: `Unit ${unit.id} → ${targetLocale} fresh — no LLM call`,\n payload: { unitId: unit.id, targetLocale },\n });\n return { unitId: unit.id, targetLocale, filePath: targetPath, status: I18nUnitRunStatus.FRESH };\n }\n this.logDebug('Email locale lock says fresh but the locale file drifted — re-translating', {\n unitId: unit.id,\n targetLocale,\n });\n }\n\n // The context replayed into the prompt, recorded like the i18n lane's so a reviewer can confirm the\n // translator saw the email's purpose and not only its words.\n await this.traceability.writeArtifact({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: 'spec-context.json',\n content: {\n unitId: unit.id,\n category: unit.category,\n targetLocale,\n hasSpecContext: specContext !== undefined,\n description: specContext?.description ?? null,\n origin: specContext?.origin ?? null,\n },\n });\n\n const keys = Object.keys(source.words);\n const assemblies: TranslatedChunkAssembly[] = [];\n for (const chunk of chunkKeys(unit.id, keys)) {\n const chunkSource: Record<string, string> = {};\n for (const key of chunk.keys) chunkSource[key] = source.words[key]!;\n assemblies.push(await this.translateChunkKeys({\n unit,\n chunk,\n sourceLocale,\n targetLocale,\n specContext,\n sourceEntries: chunkSource,\n traceSession,\n step,\n }));\n }\n\n const verdict = judgeEmailTranslation({ keys, sourceWords: source.words, assemblies });\n if (!verdict.accepted) {\n this.logger.error('Email translation refused — nothing written for this locale', {\n unitId: unit.id,\n targetLocale,\n reason: verdict.reason,\n });\n return {\n unitId: unit.id,\n targetLocale,\n filePath: targetPath,\n status: I18nUnitRunStatus.FAILED,\n error: `Refused to write ${targetPath}: ${verdict.reason}`,\n };\n }\n const corrupt = Object.entries(verdict.words).filter(([, value]) => labelValueCarriesControlCharacter(value)).map(([key]) => key);\n if (corrupt.length > 0) {\n return {\n unitId: unit.id,\n targetLocale,\n filePath: targetPath,\n status: I18nUnitRunStatus.FAILED,\n error: `Refused to write ${targetPath}: ${corrupt.length} translated value(s) carry a control character (${corrupt.join(', ')})`,\n };\n }\n\n const content = formatTranslatedEmailLabelsFile({\n localeCode: targetLocale,\n localeDisplayName: LANGUAGE_INFO_MAP[targetLocale]?.name ?? targetLocale,\n sourceFileName: path.basename(labelsFilePath(unit.templateDirectory, sourceLocale)),\n tree: mapEmailLabelsTreeLeaves(source.parsed.tree, verdict.words),\n labelsTypeName: source.parsed.labelsTypeName,\n usesAsConst: source.parsed.usesAsConst,\n });\n if (writer) await writer.stage(targetPath, content);\n else await writeFileAtomic(targetPath, content);\n\n const sourceChanged = existing?.primarySha !== undefined && existing.primarySha !== sourceSha;\n const locales: Record<string, I18nLockLocaleEntry> = {};\n for (const [locale, entry] of Object.entries(existing?.locales ?? {})) {\n locales[locale] = sourceChanged ? { ...entry, status: 'stale' } : entry;\n }\n locales[targetLocale] = {\n status: 'fresh',\n outputSha: this.lockService.hashString(content),\n lastTranslatedAt: new Date().toISOString(),\n };\n const entry: I18nLockUnitEntry = {\n category: unit.category,\n displayLabel: unit.displayLabel,\n inputSha: sourceSha,\n primarySha: sourceSha,\n locales,\n };\n await this.lockService.upsertI18nUnit(\n unit.id,\n entry,\n // Only a missing section is created here, with the configured primary locale; an existing one\n // keeps the primary locale labellize recorded (translation never rewrites that identity).\n section ? undefined : sourceLocale,\n Array.from(new Set([...(section?.trackedLocales ?? []), targetLocale])),\n );\n\n return { unitId: unit.id, targetLocale, filePath: targetPath, status: I18nUnitRunStatus.UPDATED };\n }\n\n private async translateUnitForLocale(args: {\n unit: LabellingUnit;\n sourceLocale: AvailableLanguage;\n targetLocale: AvailableLanguage;\n sourceFlat: Record<string, string>;\n specContext: LabellingUnitSpecContext | undefined;\n i18nRoot: string;\n forceRetranslate: boolean;\n traceSession: CompanionExecutionSessionContext;\n /** Stages the file for a burst (#2213); absent = written at once. */\n writer?: StagedLabelFileWriter;\n }): Promise<TranslateUnitResult> {\n const { unit, sourceLocale, targetLocale, sourceFlat, specContext, i18nRoot, forceRetranslate, traceSession, writer } = args;\n\n const targetPath = resolvePerUnitFilePath({ i18nRoot, unit, localeCode: targetLocale });\n const sourcePath = resolvePerUnitFilePath({ i18nRoot, unit, localeCode: sourceLocale });\n\n // One trace step per unit×locale; the source strings + prompt + response\n // land under it (materialized only when a gated write actually fires).\n const step = this.traceability.createStep(traceSession, {\n kind: 'translate-unit',\n label: `${unit.id}->${targetLocale}`,\n });\n\n const section = await this.lockService.readI18nSection();\n const existing = section?.units[unit.id];\n const localeEntry = existing?.locales[targetLocale];\n\n if (\n !forceRetranslate\n && existing?.primarySha\n && localeEntry?.status === 'fresh'\n && localeEntry.outputSha\n ) {\n // Verify both the on-disk source AND target file hashes still\n // match what's recorded. A hand-edit / branch switch / `git\n // checkout` of either file out-of-band must NOT be silently\n // honored as \"fresh\".\n const onDiskSourceSha = await this.computeFileShaIfExists(sourcePath);\n const onDiskTargetSha = await this.computeFileShaIfExists(targetPath);\n const sourceMatches = onDiskSourceSha === existing.primarySha;\n const targetMatches = onDiskTargetSha === localeEntry.outputSha;\n if (sourceMatches && targetMatches) {\n this.logDebug('Locale fresh — skipping agent call', {\n unitId: unit.id,\n targetLocale,\n });\n await this.traceability.traceEvent({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'translate-unit-fresh',\n summary: `Unit ${unit.id} → ${targetLocale} fresh — no LLM call`,\n payload: { unitId: unit.id, targetLocale },\n });\n return { unitId: unit.id, targetLocale, filePath: targetPath, status: I18nUnitRunStatus.FRESH };\n }\n this.logDebug('Locale lock says fresh but on-disk content drifted — re-translating', {\n unitId: unit.id,\n targetLocale,\n sourceMatches,\n targetMatches,\n });\n }\n\n // We refuse to translate a unit that was never labellized. The\n // primary file's hash space (formatted TS file content, set by\n // labellize) is NOT interchangeable with the source-flat JSON hash\n // we'd otherwise have to fabricate here, and lying about it\n // permanently invalidates the labellize cache for this unit.\n if (!existing?.inputSha || !existing?.primarySha) {\n await this.traceability.traceEvent({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'translate-unit-skipped',\n summary: `Unit ${unit.id} → ${targetLocale} skipped — no labellize state`,\n payload: { unitId: unit.id, targetLocale },\n });\n return {\n unitId: unit.id,\n targetLocale,\n filePath: targetPath,\n status: I18nUnitRunStatus.SKIPPED,\n error: 'Unit has no recorded labellize state; run labellize first',\n };\n }\n\n /*\n * The words being translated must be the ones labellize recorded. Since #2213 labellize records a unit\n * BEFORE its file reaches disk (the file waits for a burst), so a translate run overlapping that window\n * — a coding agent's `wildo generate labels`, an operator's CLI run — would read the OLD primary file,\n * miss every key it lacks, and record the locale `fresh` against the NEW primarySha. Once the burst lands\n * that reads as fresh forever and the new keys are never translated. The fresh branch above already\n * compares the source on disk; this path must too. A primary file edited by hand lands here as well, and\n * labellize is what reconciles it, so the answer is the same: skip, record nothing, say why.\n */\n const onDiskSourceSha = await this.computeFileShaIfExists(sourcePath);\n if (onDiskSourceSha !== existing.primarySha) {\n await this.traceability.traceEvent({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'translate-unit-skipped',\n summary: `Unit ${unit.id} → ${targetLocale} skipped — primary file does not match the labellize record`,\n payload: { unitId: unit.id, targetLocale },\n });\n return {\n unitId: unit.id,\n targetLocale,\n filePath: targetPath,\n status: I18nUnitRunStatus.SKIPPED,\n error: 'The primary-locale file does not match what labellize recorded (not written yet, or edited by hand); run labellize first',\n };\n }\n\n const existingTargetFlat = await readPerUnitLabels(targetPath);\n const targetFlat: Record<string, string> = { ...existingTargetFlat };\n\n // The spec context replayed into the translation prompt (the same one the\n // labellize step used) — recorded so a reviewer can confirm the translator\n // saw no less context than the labellizer (the user-mandated invariant).\n await this.traceability.writeArtifact({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: 'spec-context.json',\n content: {\n unitId: unit.id,\n category: unit.category,\n targetLocale,\n hasSpecContext: specContext !== undefined,\n description: specContext?.description ?? null,\n hints: specContext?.hints ?? null,\n origin: specContext?.origin ?? null,\n },\n });\n\n /*\n * Which keys to translate (#1409). When the labeller recorded exactly which primary words changed,\n * only those are sent, plus any key this locale has no word for yet; every other translation is\n * kept. Re-translating an unchanged word only re-words it — measured on the security-settings unit,\n * where adding six English keys re-worded the whole French file. Absent `staleKeys` means the\n * change could not be named (a forced run, a hand edit, an older lock), so everything is sent.\n */\n const onlyKeys = !forceRetranslate && localeEntry?.status === 'stale' && Array.isArray(localeEntry.staleKeys)\n ? new Set(localeEntry.staleKeys)\n : undefined;\n const needsTranslation = (key: string): boolean =>\n onlyKeys === undefined\n || onlyKeys.has(key)\n || typeof existingTargetFlat[key] !== 'string'\n || existingTargetFlat[key]!.trim() === '';\n\n for (const chunk of unit.chunks) {\n const chunkSourceEntries: Record<string, string> = {};\n for (const key of chunk.keys) {\n if (!needsTranslation(key)) continue;\n const v = sourceFlat[key];\n if (typeof v === 'string') chunkSourceEntries[key] = v;\n }\n if (Object.keys(chunkSourceEntries).length === 0) continue;\n\n const chunkResult = await this.translateChunk({\n unit,\n // Narrowed to the keys being sent: the chunk's key list is what the model is asked to return,\n // and asking for a key it was given no source for invites an invented word.\n chunk: { ...chunk, keys: Object.keys(chunkSourceEntries) },\n sourceLocale,\n targetLocale,\n specContext,\n sourceEntries: chunkSourceEntries,\n traceSession,\n step,\n });\n Object.assign(targetFlat, chunkResult);\n }\n\n const plannedSet = new Set(unit.chunks.flatMap((chunk) => chunk.keys));\n for (const key of Object.keys(targetFlat)) {\n if (!plannedSet.has(key)) delete targetFlat[key];\n }\n\n const localeDisplayName = LANGUAGE_INFO_MAP[targetLocale]?.name ?? targetLocale;\n const fileArgs = { filePath: targetPath, localeCode: targetLocale, localeDisplayName, isPrimaryLocale: false, flatEntries: targetFlat };\n let writtenContent: string;\n if (writer) {\n writtenContent = renderPerUnitLabels(fileArgs);\n await writer.stage(targetPath, writtenContent);\n } else {\n writtenContent = await writePerUnitLabels(fileArgs);\n }\n\n const outputSha = this.lockService.hashString(writtenContent);\n const updatedLocales = { ...(existing?.locales ?? {}) };\n updatedLocales[targetLocale] = {\n status: 'fresh',\n outputSha,\n lastTranslatedAt: new Date().toISOString(),\n };\n\n // `existing` is guaranteed non-null by the early-return guard above;\n // we never fabricate `inputSha` / `primarySha` here because they\n // belong to the labellize hash space, not translate's.\n const updatedEntry: I18nLockUnitEntry = {\n category: existing.category,\n displayLabel: existing.displayLabel,\n inputSha: existing.inputSha,\n primarySha: existing.primarySha,\n lastLabellizedAt: existing.lastLabellizedAt,\n locales: updatedLocales,\n };\n\n await this.lockService.upsertI18nUnit(\n unit.id,\n updatedEntry,\n undefined,\n Array.from(new Set([...(section?.trackedLocales ?? []), targetLocale])),\n );\n\n return { unitId: unit.id, targetLocale, filePath: targetPath, status: I18nUnitRunStatus.UPDATED };\n }\n\n private async translateChunk(args: {\n unit: LabellingUnit;\n chunk: LabellingUnitChunk;\n sourceLocale: AvailableLanguage;\n targetLocale: AvailableLanguage;\n specContext: LabellingUnitSpecContext | undefined;\n sourceEntries: Record<string, string>;\n traceSession: CompanionExecutionSessionContext;\n step: CompanionTraceStepContext;\n }): Promise<Record<string, string>> {\n const { unit, chunk, sourceLocale, targetLocale, specContext, sourceEntries, traceSession, step } = args;\n // The i18n lane keeps the source-word fallback the assembly already applied (see\n // `assembleTranslatedChunkResult`); only the email lane refuses on a gap.\n return (await this.translateChunkKeys({\n unit, chunk, sourceLocale, targetLocale, specContext, sourceEntries, traceSession, step,\n })).values;\n }\n\n /**\n * Build the translation prompt for `requestedKeys`.\n *\n * `requestedKeys` is the whole chunk on the first pass and only the outstanding\n * keys on a repair pass, so the source block, the variable-key contract and the\n * omission correction all narrow together — a three-key repair request must not\n * re-send eighty-seven strings it is not being asked to translate.\n */\n private buildTranslatePrompt(args: {\n unit: TranslatableUnitIdentity;\n chunk: LabellingUnitChunk;\n sourceLocale: AvailableLanguage;\n targetLocale: AvailableLanguage;\n specContext: LabellingUnitSpecContext | undefined;\n sourceEntries: Record<string, string>;\n requestedKeys: readonly string[];\n omittedKeys: readonly string[];\n /**\n * Placeholder drift measured on the previous response, rendered as an\n * explicit per-key correction. Mirrors the labellize prompt's retry block:\n * naming the exact tokens to add/remove is what makes the repair pass\n * reliable, rather than restating the general contract and hoping.\n */\n priorDrift?: readonly PlaceholderDrift[];\n }): string {\n const { unit, chunk, sourceLocale, targetLocale, specContext, requestedKeys, omittedKeys, priorDrift } = args;\n const sourceEntries = Object.fromEntries(\n requestedKeys.filter((key) => args.sourceEntries[key] !== undefined).map((key) => [key, args.sourceEntries[key]!]),\n );\n\n const sourceLanguage = LANGUAGE_INFO_MAP[sourceLocale]?.name ?? sourceLocale;\n const targetLanguage = LANGUAGE_INFO_MAP[targetLocale]?.name ?? targetLocale;\n\n // Scan the SOURCE values for runtime variable keys (the `{token}`s). Done by\n // scanning — not chunk.keyParams — so it's accurate to exactly what is being\n // translated and works for EVERY bucket, not just keyParam-threaded\n // components. Listing them explicitly + \"these are variables, not words\" is\n // the strongest guard against the model translating `{limit}` → `{limite}`.\n //\n // The scan goes through the shared extractor so the set stated in the prompt\n // and the set the answer is VALIDATED against are produced by one grammar —\n // a prompt that promised different tokens from the ones the check enforces\n // would fail every repair pass for a reason nobody could read.\n const varsByKey: Array<{ key: string; tokens: string[] }> = [];\n for (const [key, value] of Object.entries(sourceEntries)) {\n const tokens = extractLabelPlaceholderTokens(value);\n if (tokens.length > 0) varsByKey.push({ key, tokens });\n }\n\n const lines: string[] = [\n unit.category === LabellingUnitCategory.EMAIL_TEMPLATE\n // An email is read as a message, not scanned as interface chrome: say so, or the model\n // applies UI brevity rules to a paragraph a recipient reads top to bottom.\n ? `Translate the words of one transactional email from ${sourceLanguage} to ${targetLanguage} for a professional SaaS application (${unit.displayLabel}). Keep the email's tone and completeness; subject lines and buttons stay as short as the source's.`\n : `Translate these UI labels from ${sourceLanguage} to ${targetLanguage} for a professional SaaS web app (${unit.category} \"${unit.displayLabel}\").`,\n ];\n\n // Same context the labellizer saw (terminology + tone), replayed for\n // consistency. No structured-hints dump — the description carries it.\n if (specContext?.description) {\n lines.push('', '# Context (for terminology & tone)', specContext.description.trim());\n }\n\n // Variable-key contract — the placeholders are NOT words to translate.\n if (varsByKey.length > 0) {\n lines.push(\n '',\n '# Variable keys — DO NOT translate',\n 'The single-brace tokens below are runtime VARIABLE KEYS: the app substitutes live values for them at render time. They are NOT words. Copy each one into your translation EXACTLY as written (identical spelling, identical { } braces) — never translate, localize, rename, reorder away, add, or drop one. Each translated value MUST contain exactly the same variable keys as its source — no more, no fewer.',\n 'Variable keys by source string:',\n );\n const keyMeta = chunk.keyMeta ?? {};\n for (const { key, tokens } of varsByKey) {\n const meanings = keyMeta[key]?.paramMeanings;\n const rendered = tokens.map((t) => {\n const m = meanings?.[t];\n return m ? `{${t}} (${m})` : `{${t}}`;\n }).join(' ');\n lines.push(` ${key} → ${rendered}`);\n }\n }\n\n const isEmail = unit.category === LabellingUnitCategory.EMAIL_TEMPLATE;\n lines.push(\n '',\n '# Rules',\n `- Use natural ${targetLanguage} ${isEmail ? 'email' : 'UI'} conventions: do NOT copy English Title Case — apply the casing ${targetLanguage} uses (most languages, including French, use sentence case: capitalize only the first word and proper nouns).`,\n `- Apply ${targetLanguage} typography (e.g. French uses a narrow no-break space before : ; ! ? and « guillemets » for quotes).`,\n // The UI brevity rule would tell the model to cut an email paragraph down to a label; an email is\n // read top to bottom, so it keeps its sentences and only its short parts stay short (#1908).\n isEmail\n ? \"- Keep the email's completeness and tone: translate every sentence of a paragraph, add nothing the source does not say, and keep subject lines, headings, buttons and field names as short as the source's.\"\n : \"- Match the source's brevity: translate as the SHORTEST natural UI copy — never lengthen, never add words the source omits, never re-introduce filler. A 2-word source label becomes a 2-word target label, not a sentence.\",\n '- Never introduce internal/framework jargon the source avoids (e.g. resource/ressource, entity/entité, record/enregistrement): mirror the register + wording the source uses.',\n `- Preserve the SOURCE's register: if the source reads as operator/admin-console or developer/technical copy (not casual consumer wording), keep that same register in ${targetLanguage} — don't casualize it, and don't make end-user copy more technical.`,\n `- A label that names a relationship to another thing stays a relationship NAME in ${targetLanguage} (e.g. \"Assignee\" → \"Responsable\" / \"Assigné\", \"Owner\" → \"Propriétaire\") — never an identifier, never reintroduce \"ID\" / \"Id\" or a technical reference term.`,\n '- Keep terminology consistent across every key; aria phrases stay self-contained and natural to read aloud.',\n );\n\n lines.push(\n '',\n '# Source (translate the values)',\n JSON.stringify(sourceEntries, null, 2),\n '',\n 'Return a translated value for every key. Do not omit any field.',\n );\n\n // Omission correction — the model silently dropped these keys from its\n // previous response. They are the only keys in the source block above.\n if (omittedKeys.length > 0) {\n lines.push(\n '',\n `# Correction — your previous response left out ${omittedKeys.length} key(s). They are the ONLY keys above. Return every one of them.`,\n );\n }\n\n // Placeholder-drift correction — the model DID answer these keys and got the\n // variable keys wrong. Distinct from the omission block above on purpose: a\n // \"you left this out\" instruction against a key that was answered reads as\n // contradicting the model's own transcript and is the weakest possible\n // correction. Name the exact tokens instead.\n const relevantDrift = (priorDrift ?? []).filter((drift) => requestedKeys.includes(drift.key));\n if (relevantDrift.length > 0) {\n lines.push('', '# Correction — your previous translation used the wrong variable keys. Fix EXACTLY these keys:');\n for (const drift of relevantDrift) {\n const expected = drift.expected.length ? drift.expected.map((token) => `{${token}}`).join(' ') : 'no variable keys at all';\n const fixes = [`use ${expected}`];\n if (drift.unexpected.length > 0) fixes.push(`remove ${drift.unexpected.map((token) => `{${token}}`).join(' ')}`);\n if (drift.missing.length > 0) fixes.push(`add ${drift.missing.map((token) => `{${token}}`).join(' ')}`);\n lines.push(` ${drift.key}: ${fixes.join('; ')}`);\n }\n }\n\n return lines.join('\\n');\n }\n\n /**\n * Run one physical translation call for `requestedKeys` and return the raw\n * parsed object. Filtering and fallback belong to the caller.\n */\n private async invokeTranslateChunkAgent(args: {\n unit: TranslatableUnitIdentity;\n chunk: LabellingUnitChunk;\n targetLocale: AvailableLanguage;\n requestedKeys: readonly string[];\n prompt: string;\n traceContext: AgentTraceContext | undefined;\n }): Promise<Record<string, unknown>> {\n const { unit, chunk, targetLocale, requestedKeys, prompt, traceContext } = args;\n const schema = chunk.buildOutputSchema(requestedKeys);\n const invocation: FlowsActors_Agent_Invocation<\n typeof LLMProvider_GenerateStructuredInputSchema,\n typeof LLMProvider_GenerateStructuredOutputSchema,\n z.ZodSchema<Record<string, string | undefined>>\n > = {\n agentRef: 'labelling.translation.agent',\n initiator: {},\n invocationContext: [],\n input: { prompt, schema },\n output: { object: {} },\n executionContext: {},\n artifactBindings: [],\n };\n\n const response = await this.agentsService.invokeAgent(invocation, traceContext);\n const parsed = (response.output as { object?: Record<string, unknown> })?.object;\n if (!parsed || typeof parsed !== 'object') {\n // The engine now says WHY there is no object; carry it into the message an operator\n // actually sees. Without this the reason existed only in the companion's own log\n // (the preceding `GENERATE_STRUCTURED` line), so the CLI summary — the surface a\n // human reads — reported a bare \"invalid output\" for a truncated completion, a\n // refusal, and a schema the model half-filled, alike. `validationIssues` names the\n // exact paths that failed and is the single most useful half.\n const failure = readStructuredGenerationFailure(response.executionContext);\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.SERVICE_RESOURCE_VALIDATION_FAILED,\n context: {\n message: `Invalid translation output for unit ${unit.id} chunk ${chunk.chunkId} -> ${targetLocale}`\n + (failure ? ` — ${describeStructuredGenerationFailure(failure)}` : ''),\n ...(failure ? { structuredGenerationFailure: failure } : {}),\n },\n });\n }\n return parsed;\n }\n\n /**\n * Translate one chunk into `targetLocale`, re-requesting any key the model\n * omits. A non-strict provider can silently drop leaves from a large flat\n * object, and the response schema now tolerates that (see\n * `LabellingUnitChunk.buildOutputSchema`) — so the gap is repaired here\n * instead of failing the whole unit.\n */\n private async translateChunkKeys(args: {\n unit: TranslatableUnitIdentity;\n chunk: LabellingUnitChunk;\n sourceLocale: AvailableLanguage;\n targetLocale: AvailableLanguage;\n specContext: LabellingUnitSpecContext | undefined;\n sourceEntries: Record<string, string>;\n traceSession: CompanionExecutionSessionContext;\n step: CompanionTraceStepContext;\n }): Promise<TranslatedChunkAssembly> {\n const { unit, chunk, sourceLocale, targetLocale, specContext, sourceEntries, traceSession, step } = args;\n\n /**\n * One physical translate call. Factored out because it is now driven from\n * TWO loops — the omission-repair loop and the placeholder-repair round —\n * and a second hand-written copy of the prompt/trace wiring is exactly how\n * the two would come to send different prompts for the same contract.\n */\n const invokeTranslatePass = async (pass: {\n requestedKeys: readonly string[];\n omittedByPreviousPass: readonly string[];\n priorDrift?: readonly PlaceholderDrift[];\n /** Trace label suffix identifying which loop and which pass this call is. */\n labelSuffix: string;\n /** Flat pass counter carried into the trace attributes. */\n passIndex: number;\n }): Promise<Record<string, unknown>> => {\n const prompt = this.buildTranslatePrompt({\n unit, chunk, sourceLocale, targetLocale, specContext, sourceEntries,\n requestedKeys: pass.requestedKeys,\n omittedKeys: pass.omittedByPreviousPass,\n priorDrift: pass.priorDrift,\n });\n // Correlate this chunk×locale×pass so the engine AgentCallTraceSink writes\n // the prompt + output (+usage/latency) into THIS unit's step. The caller\n // keeps only its DOMAIN artifact — the translated labels + source strings.\n const traceContext: AgentTraceContext | undefined = traceSession && step\n ? {\n sessionRef: traceSession.sessionId,\n stepRef: step.stepId,\n label: `translate.chunk-${chunk.chunkId}.${targetLocale}${pass.labelSuffix}`,\n attributes: {\n unitId: unit.id,\n chunkId: chunk.chunkId,\n targetLocale,\n keyCount: pass.requestedKeys.length,\n pass: pass.passIndex,\n },\n }\n : undefined;\n return await this.invokeTranslateChunkAgent({\n unit, chunk, targetLocale, requestedKeys: pass.requestedKeys, prompt, traceContext,\n });\n };\n\n const completion = await completeStructuredChunkKeys({\n keys: chunk.keys,\n invoke: async ({ requestedKeys, omittedByPreviousPass, pass }) => await invokeTranslatePass({\n requestedKeys,\n omittedByPreviousPass,\n labelSuffix: pass === 1 ? '' : `.repair-${pass - 1}`,\n passIndex: pass,\n }),\n });\n\n if (completion.refusedKeys.length > 0) {\n // A corrupt answer, not an incomplete one (#1109): the value carried a control character and\n // was re-requested. Named separately from omissions, because a provider that mangles escapes\n // is a different failure from one that drops leaves, and only this line says which happened.\n this.logger.warn('Translation values carried control characters — refused and re-requested', {\n unitId: unit.id,\n chunkId: chunk.chunkId,\n targetLocale,\n refusedKeys: completion.refusedKeys,\n });\n }\n if (completion.missingKeys.length > 0) {\n // Repair budget spent. These keys fall back to the SOURCE-locale string, so\n // the file stays complete but shows untranslated text — name them, or the\n // only evidence is a reader noticing English in a French UI.\n this.logger.error('Translation keys still missing after repair passes — falling back to source text', {\n unitId: unit.id,\n chunkId: chunk.chunkId,\n targetLocale,\n passes: completion.passes,\n missingKeys: completion.missingKeys,\n });\n } else if (completion.passes > 1) {\n this.logger.warn('Structured translation response omitted keys — recovered by follow-up call(s)', {\n unitId: unit.id,\n chunkId: chunk.chunkId,\n targetLocale,\n passes: completion.passes,\n keyCount: chunk.keys.length,\n });\n }\n\n // Assemble, enforcing the placeholder contract the prompt states. Until this\n // check existed, a key the model DID return with a mangled variable key —\n // `{limite}` for `{limit}`, or the token dropped entirely — was written\n // straight to the locale file with no signal of any kind. (The OMISSION case\n // was already reported at error level below; drift on a returned key was the\n // genuinely silent one.)\n let assembly = assembleTranslatedChunkResult({ keys: chunk.keys, sourceEntries, translatedValues: completion.values });\n\n // One bounded repair round over just the drifted keys, mirroring the\n // labellize orchestrator's drift retry. Scoped to the offenders rather than\n // re-translating the whole chunk: a three-key request naming the exact\n // tokens to fix is both cheaper and more reliable than re-rolling ninety\n // strings, and every clean translation in this chunk is already good.\n if (assembly.rejectedDrifts.length > 0) {\n const priorDrift = assembly.rejectedDrifts;\n this.logDebug('Translation placeholder drift detected — re-requesting the offending keys', {\n unitId: unit.id,\n chunkId: chunk.chunkId,\n targetLocale,\n offenders: priorDrift.map((drift) => drift.key),\n });\n const repair = await completeStructuredChunkKeys({\n keys: priorDrift.map((drift) => drift.key),\n invoke: async ({ requestedKeys, omittedByPreviousPass, pass }) => await invokeTranslatePass({\n requestedKeys,\n omittedByPreviousPass,\n priorDrift,\n labelSuffix: `.placeholder-repair${pass === 1 ? '' : `.repair-${pass - 1}`}`,\n passIndex: completion.passes + pass,\n }),\n });\n // Re-assemble from the MERGED values: a key the repair round answered\n // cleanly is adopted, a key it answered badly is rejected again, and a key\n // it omitted keeps its original (still-drifted, still-rejected) value. All\n // three land correctly because the assembler re-checks everything.\n assembly = assembleTranslatedChunkResult({\n keys: chunk.keys,\n sourceEntries,\n translatedValues: { ...completion.values, ...repair.values },\n });\n }\n\n if (assembly.rejectedDrifts.length > 0) {\n // Repair spent and the variable keys still do not match the source. These\n // keys fall back to the SOURCE-locale string — untranslated, but with\n // working placeholders — rather than shipping text that renders `{limite}`\n // literally to a user and drops the value it was meant to carry. Name\n // them, exactly as the missing-key path does: otherwise the only evidence\n // is a reader noticing English in a French UI.\n this.logger.error('Translated placeholders still drifted after the repair round — falling back to source text', {\n unitId: unit.id,\n chunkId: chunk.chunkId,\n targetLocale,\n drift: assembly.rejectedDrifts,\n });\n }\n\n const result = assembly.values;\n\n // Caller-owned domain artifact: the translated labels + the source strings\n // for this chunk×locale (the engine sink owns the raw prompt/output/usage\n // record). `translate-chunk` stays a domain event; usage now lives only in\n // the engine sink's agent-call-success event for this step.\n await this.traceability.writeArtifact({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: `chunk-${chunk.chunkId}.${targetLocale}.labels.json`,\n content: {\n object: result,\n sourceStrings: sourceEntries,\n // The drift that SURVIVED the repair round, so a reviewer reading the\n // artifact can tell a source-string fallback caused by a mangled\n // placeholder from one caused by a key the model never returned.\n drift: assembly.rejectedDrifts,\n },\n });\n await this.traceability.traceEvent({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'translate-chunk',\n summary: `Chunk ${chunk.chunkId} → ${targetLocale}: ${chunk.keys.length} key(s), ${assembly.rejectedDrifts.length} placeholder drift`,\n payload: {\n chunkId: chunk.chunkId,\n targetLocale,\n keyCount: chunk.keys.length,\n driftKeys: assembly.rejectedDrifts.map((drift) => drift.key),\n },\n });\n\n return assembly;\n }\n\n private async computeFileShaIfExists(filePath: string): Promise<string | undefined> {\n try {\n const content = await fs.readFile(filePath, 'utf-8');\n return this.lockService.hashString(content);\n } catch (err: unknown) {\n if ((err as NodeJS.ErrnoException)?.code === 'ENOENT') return undefined;\n throw err;\n }\n }\n\n private resolveI18nRoot(): string {\n const backendService = Object.values(this.companionContext.backendServices)[0];\n if (!backendService) {\n throw this.errorBuilder.buildFromStandardError(\n new Error('No backend service configured for per-unit i18n output'),\n undefined,\n {\n customMessageReference: ErrorCustomMessageReference.INTERNAL,\n context: { operation: 'TranslateOrchestrator.resolveI18nRoot' },\n },\n );\n }\n return path.resolve(this.companionContext.saasRoot, backendService.path, 'src/engine/i18n');\n }\n}\n\n/** A unit's per-locale results as progress outcomes. SKIPPED is not a failure: a unit with no words owes none. */\nfunction toProgressOutcomes(results: readonly TranslateUnitResult[]): LabellingProgressUnitOutcome[] {\n return results.map((result) => ({ locale: result.targetLocale, failed: result.status === I18nUnitRunStatus.FAILED }));\n}\n"]}
|
|
1
|
+
{"version":3,"file":"translate-orchestrator.companion.service.js","sourceRoot":"","sources":["../../../../src/i18n-labelling/services/translate-orchestrator.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,EACL,kBAAkB,EAKlB,mBAAmB,GACpB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,2BAA2B,EAC3B,SAAS,GAGV,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAqB,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAC3F,OAAO,EAAE,uBAAuB,EAAE,MA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C,MAAM,EAAE,CAAC,CAAC,CAAC;AACxH,CAAC","sourcesContent":["import * as fs from 'node:fs/promises';\nimport * as path from 'node:path';\nimport { inject, injectable } from 'inversify';\nimport { z } from 'zod';\nimport {\n SAAS_SERVICE_TYPES,\n type AgentsBackendService,\n type AppConfigurationService,\n type LoggerService,\n type ErrorBuilderBackendService,\n describeCaughtError,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n LLMProvider_GenerateStructuredInputSchema,\n LLMProvider_GenerateStructuredOutputSchema,\n describeStructuredGenerationFailure,\n readStructuredGenerationFailure,\n} from '@wildo-ai/external-connectors-models';\nimport {\n ErrorCustomMessageReference,\n ErrorType,\n type AgentTraceContext,\n type FlowsActors_Agent_Invocation,\n} from '@wildo-ai/saas-models';\nimport { AvailableLanguage, LANGUAGE_INFO_MAP } from '@wildo-ai/presets-components-models';\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { LabellingPlannerCompanionService, chunkKeys } from './labelling-planner.companion.service';\nimport { EmailTemplateLabellingUnitsCompanionService } from './email-template-labelling-units.companion.service';\nimport { getCompanionConfiguredPrimaryLanguage } from '../../core/config/primary-language.companion.utils';\nimport { WildoSaasLockCompanionService } from '../../core/lock/wildo-saas-lock.companion.service';\nimport type { I18nLockLocaleEntry, I18nLockUnitEntry } from '../../core/lock/wildo-saas-lock.models';\nimport { writeFileAtomic } from '../../core/utils/atomic-write.utils';\nimport { mapWithBoundedConcurrency } from '../../core/utils/bounded-concurrency.utils';\nimport {\n resolvePerUnitFilePath,\n readPerUnitLabels,\n renderPerUnitLabels,\n writePerUnitLabels,\n} from '../utils/per-unit-file.utils';\nimport { rejectPrimaryLocaleTarget } from '../utils/translate-locale-contract.utils';\nimport { incompletePlanRefusal } from '../utils/incomplete-plan-refusal.utils';\nimport { resolveLabellingConcurrency } from '../utils/labelling-concurrency.utils';\nimport {\n StagedLabelFileWriter,\n adoptAbandonedLabelStaging,\n withUnwrittenFilesFailed,\n} from '../utils/staged-label-file-writer.utils';\nimport {\n LabellingProgressPhase,\n reportLabellingProgress,\n type LabellingProgressReporter,\n type LabellingProgressUnitOutcome,\n} from '../models/labelling-progress.models';\nimport {\n assembleTranslatedChunkResult,\n extractLabelPlaceholderTokens,\n type PlaceholderDrift,\n type TranslatedChunkAssembly,\n} from '../utils/label-placeholder-drift.utils';\nimport {\n I18nUnitRunStatus,\n LabellingUnitCategory,\n type LabellingUnit,\n type LabellingUnitChunk,\n type LabellingUnitSpecContext,\n} from '../models/labelling-unit.models';\nimport {\n EMAIL_TEMPLATE_LABELLING_BUCKET,\n emailTemplateLabellingUnitId,\n isEmailTemplateLabellingUnitId,\n type EmailTemplateLabellingUnit,\n} from '../models/email-template-labelling-unit.models';\nimport { completeStructuredChunkKeys, labelValueCarriesControlCharacter } from '../utils/structured-chunk-completion.utils';\nimport { judgeEmailTranslation } from '../utils/email-template-translation.utils';\nimport {\n flattenEmailLabelsTree,\n formatTranslatedEmailLabelsFile,\n mapEmailLabelsTreeLeaves,\n parseEmailLabelsTreeSource,\n type ParsedEmailLabelsTreeFile,\n} from '../../email/utils/email-labels-tree.utils';\nimport { labelsFilePath } from '../../email/utils/email-template-fs-discovery.utils';\nimport { CompanionTraceabilityService } from '../../core/traceability/companion-traceability.service';\nimport {\n CompanionTraceabilityLevel,\n type CompanionExecutionSessionContext,\n type CompanionTraceStepContext,\n} from '../../core/traceability/companion-traceability.models';\n\nexport interface TranslateOptions {\n targetLocales: AvailableLanguage[];\n forceRetranslate?: boolean;\n /**\n * Unit ids to limit the run to. May mix both lanes: an i18n unit id (`resource:todos`) and an email\n * template unit id (`email_template:system.welcome_email`). A lane none of whose ids is named is not\n * planned at all, so a filtered run does not pay for introspecting the other lane.\n */\n unitIdFilter?: string[];\n /** Told how far the run is, per lane and locale (#2215). Absent for a run nobody is watching. */\n progress?: LabellingProgressReporter;\n}\n\n/** Which of the translate pipeline's lanes a run covers. */\ninterface TranslateLaneSelection {\n /** The generated per-unit i18n files (`planAllUnits()`). */\n readonly i18nUnits: boolean;\n /** Every email template's `labels.<locale>.ts` (#1908). */\n readonly emailTemplates: boolean;\n}\n\n/**\n * What the shared translation core needs to know about a unit: who it is, for the prompt, the traces and\n * the log lines. Narrower than `LabellingUnit` on purpose — an email unit has no `filePathHint`, and the\n * core never needed one.\n */\ntype TranslatableUnitIdentity = Pick<LabellingUnit, 'id' | 'category' | 'displayLabel'>;\n\n/** Mutable tally shared by both lanes of one run. */\ninterface TranslateRunTally {\n details: TranslateUnitResult[];\n updated: number;\n fresh: number;\n failed: number;\n skipped: number;\n}\n\nexport interface TranslateUnitResult {\n unitId: string;\n targetLocale: AvailableLanguage;\n filePath: string;\n status: I18nUnitRunStatus;\n error?: string;\n}\n\nexport interface TranslateRunResult {\n primaryLocale: AvailableLanguage;\n totalRoundtrips: number;\n updated: number;\n fresh: number;\n failed: number;\n skipped: number;\n details: TranslateUnitResult[];\n}\n\n/**\n * Per-unit, per-locale translator.\n *\n * For each unit × target locale:\n * - Read primary file content and compute its SHA.\n * - If lock entry says (inputSha, primarySha) match the locale's\n * last successful state and the locale output file SHA still\n * matches => fresh, skip.\n * - Else: rebuild the same chunk schemas, ship the source labels +\n * the SAME spec context the labellize step used + the primary\n * values to the agent, write the per-unit translated file, and\n * update the lock with the new locale entry.\n *\n * \"Same context + primary value\" is the user-mandated invariant: the\n * translator must not see less context than the labellizer.\n */\n@injectable()\nexport class TranslateOrchestratorCompanionService {\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) private readonly errorBuilder: ErrorBuilderBackendService,\n @inject(SAAS_SERVICE_TYPES.AgentsBackendService) private readonly agentsService: AgentsBackendService,\n @inject(SAAS_SERVICE_TYPES.AppConfigService)\n private readonly appConfigService: AppConfigurationService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.LabellingPlannerService) private readonly planner: LabellingPlannerCompanionService,\n @inject(COMPANION_SERVICE_TYPES.WildoSaasLockService) private readonly lockService: WildoSaasLockCompanionService,\n @inject(COMPANION_SERVICE_TYPES.TraceabilityService) private readonly traceability: CompanionTraceabilityService,\n @inject(COMPANION_SERVICE_TYPES.EmailTemplateLabellingUnitsService)\n private readonly emailTemplateUnits: EmailTemplateLabellingUnitsCompanionService,\n ) {\n this.logDebug = this.logger.debugByType('TranslateOrchestrator');\n }\n\n /**\n * Translate every planned unit into `targetLocales` — the generated i18n units AND, since #1908, every\n * email template's words. `unitIdFilter` may name units of either lane (see {@link TranslateOptions}).\n */\n public async translate(\n options: TranslateOptions,\n providedSession?: CompanionExecutionSessionContext,\n ): Promise<TranslateRunResult> {\n const filterIds = options.unitIdFilter ?? null;\n const lanes: TranslateLaneSelection = filterIds === null\n ? { i18nUnits: true, emailTemplates: true }\n : {\n i18nUnits: filterIds.some((id) => !isEmailTemplateLabellingUnitId(id)),\n emailTemplates: filterIds.some((id) => isEmailTemplateLabellingUnitId(id)),\n };\n return await this.runTranslate(options, lanes, providedSession);\n }\n\n /**\n * Translate ONLY email templates — every one, or the `templateRefs` named. The door the email\n * generation step and `wildo generate email translate` go through, so they run the very lane\n * `wildo generate translate` runs, with its lock, rather than a second translator of the same files.\n */\n public async translateEmailTemplates(\n options: {\n targetLocales: AvailableLanguage[];\n forceRetranslate?: boolean;\n templateRefs?: readonly string[];\n progress?: LabellingProgressReporter;\n },\n providedSession?: CompanionExecutionSessionContext,\n ): Promise<TranslateRunResult> {\n const { targetLocales, forceRetranslate, templateRefs, progress } = options;\n return await this.runTranslate(\n {\n targetLocales,\n ...(forceRetranslate !== undefined ? { forceRetranslate } : {}),\n ...(progress !== undefined ? { progress } : {}),\n ...(templateRefs && templateRefs.length > 0\n ? { unitIdFilter: templateRefs.map((templateRef) => emailTemplateLabellingUnitId(templateRef)) }\n : {}),\n },\n { i18nUnits: false, emailTemplates: true },\n providedSession,\n );\n }\n\n private async runTranslate(\n options: TranslateOptions,\n lanes: TranslateLaneSelection,\n providedSession?: CompanionExecutionSessionContext,\n ): Promise<TranslateRunResult> {\n const primaryLocale = getCompanionConfiguredPrimaryLanguage(this.appConfigService.config);\n const targetLocales = [...new Set(options.targetLocales ?? [])];\n if (targetLocales.length === 0) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: 'targetLocales is required and must be a non-empty array' },\n });\n }\n rejectPrimaryLocaleTarget(targetLocales, primaryLocale, this.errorBuilder);\n\n const filter = options.unitIdFilter ? new Set(options.unitIdFilter) : null;\n\n // Trace under the CALLER's session when provided (controller's per-request\n // `POST /labelling/translate` session) so artifacts land in the session the\n // user inspects; fall back to a self-owned `internal` session for\n // direct/CLI/test callers. Gated no-op at the default NONE level (translated\n // output byte-identical). At DEBUG_VERBOSE it captures, per unit×locale, the\n // source strings + replayed spec context + the exact prompt + the LLM\n // response + token usage.\n const traceSession = providedSession ?? this.traceability.createInternalSession({\n label: 'translate-run',\n metadata: {\n run: 'translate',\n primaryLocale,\n targetLocales,\n forceRetranslate: options.forceRetranslate === true,\n unitIdFilter: options.unitIdFilter ?? null,\n lanes,\n },\n });\n\n const tally: TranslateRunTally = { details: [], updated: 0, fresh: 0, failed: 0, skipped: 0 };\n let unitCount = 0;\n\n // Generated files are staged outside the application and moved into place in one burst when the run\n // ends, so a run of hundreds of units restarts the backend once, not once per file (#2213). What a run\n // that died left staged is moved in first, so the freshness checks below see it.\n await this.adoptAbandonedStaging();\n const writer = await StagedLabelFileWriter.open(this.companionContext.saasRoot);\n let unwritten: ReadonlyMap<string, string> = new Map();\n try {\n if (lanes.i18nUnits) {\n const i18nRoot = this.resolveI18nRoot();\n const allUnits = await this.planner.planAllUnits();\n const units = filter ? allUnits.filter((u) => filter.has(u.id)) : allUnits;\n unitCount += units.length;\n reportLabellingProgress(options.progress, (reporter) => reporter.planned(LabellingProgressPhase.TRANSLATE, units.length, targetLocales));\n\n // Units run side by side, each unit's locales one after another — see `labelling-concurrency.utils.ts`\n // for why the unit is the parallel axis (#2211). Results come back in plan order.\n const perUnit = await mapWithBoundedConcurrency(units, resolveLabellingConcurrency(), async (unit) => {\n const results = await this.translateI18nUnitAcrossLocales({\n unit,\n i18nRoot,\n primaryLocale,\n targetLocales,\n forceRetranslate: options.forceRetranslate === true,\n traceSession,\n writer,\n });\n reportLabellingProgress(options.progress, (reporter) => reporter.unitSettled(LabellingProgressPhase.TRANSLATE, toProgressOutcomes(results)));\n return results;\n });\n for (const results of perUnit) {\n for (const result of results) {\n tally.details.push(result);\n this.countResult(tally, result.status);\n }\n }\n }\n\n if (lanes.emailTemplates) {\n unitCount += await this.runEmailTemplateLane({\n filter,\n primaryLocale,\n targetLocales,\n forceRetranslate: options.forceRetranslate === true,\n traceSession,\n tally,\n progress: options.progress,\n writer,\n });\n }\n } finally {\n unwritten = await writer.close();\n }\n if (unwritten.size > 0) {\n // A unit whose file could not be written is FAILED, whatever its translation did.\n const settled = withUnwrittenFilesFailed(tally.details, unwritten, I18nUnitRunStatus.FAILED);\n Object.assign(tally, { details: [], updated: 0, fresh: 0, failed: 0, skipped: 0 });\n for (const result of settled) {\n tally.details.push(result);\n this.countResult(tally, result.status);\n }\n }\n\n const { details, updated, fresh, failed, skipped } = tally;\n await this.traceability.traceEvent({\n session: traceSession,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'translate-run-complete',\n summary: `Translated ${unitCount} unit(s) → [${targetLocales.join(', ')}]: ${updated} updated, ${fresh} fresh, ${skipped} skipped, ${failed} failed`,\n payload: { primaryLocale, targetLocales, totalRoundtrips: details.length, updated, fresh, skipped, failed },\n });\n if (traceSession.traceabilityLevel !== CompanionTraceabilityLevel.NONE) {\n this.logger.info('Translate trace session written', {\n sessionId: traceSession.sessionId,\n sessionDir: traceSession.sessionDirPath,\n });\n }\n\n return {\n primaryLocale,\n totalRoundtrips: details.length,\n updated,\n fresh,\n failed,\n skipped,\n details,\n };\n }\n\n /**\n * Every target locale of one generated i18n unit, in locale order — the worker the i18n lane runs\n * through the bounded pool. Returns one result per locale; a unit that cannot be translated at all\n * (refused plan, unreadable source) yields one FAILED or SKIPPED row per locale, exactly as the\n * sequential loop recorded it.\n */\n private async translateI18nUnitAcrossLocales(args: {\n unit: LabellingUnit;\n i18nRoot: string;\n primaryLocale: AvailableLanguage;\n targetLocales: readonly AvailableLanguage[];\n forceRetranslate: boolean;\n traceSession: CompanionExecutionSessionContext;\n writer: StagedLabelFileWriter;\n }): Promise<TranslateUnitResult[]> {\n const { unit, i18nRoot, primaryLocale, targetLocales, forceRetranslate, traceSession, writer } = args;\n const results: TranslateUnitResult[] = [];\n /*\n * Translation prunes every target-locale key the plan does not hold and records the locale\n * `fresh`, so a unit planned from incomplete inputs would lose its words in every locale and\n * never be revisited. Refused here exactly as labellize refuses it — see `incompletePlanRefusal`.\n */\n const refusal = incompletePlanRefusal(unit);\n if (refusal) {\n for (const targetLocale of targetLocales) {\n results.push({ unitId: unit.id, targetLocale, filePath: '', status: I18nUnitRunStatus.FAILED, error: refusal });\n }\n this.logger.warn('Translate unit refused — planned from incomplete inputs', {\n unitId: unit.id,\n reasons: unit.plannedFromIncompleteInputs,\n });\n return results;\n }\n const sourceFilePath = resolvePerUnitFilePath({ i18nRoot, unit, localeCode: primaryLocale });\n let sourceFlat: Record<string, string>;\n try {\n sourceFlat = await readPerUnitLabels(sourceFilePath);\n } catch (err: unknown) {\n const message = describeCaughtError(err);\n for (const targetLocale of targetLocales) {\n results.push({\n unitId: unit.id,\n targetLocale,\n filePath: '',\n status: I18nUnitRunStatus.FAILED,\n error: `Failed to read source: ${message}`,\n });\n }\n return results;\n }\n\n if (Object.keys(sourceFlat).length === 0) {\n for (const targetLocale of targetLocales) {\n results.push({\n unitId: unit.id,\n targetLocale,\n filePath: resolvePerUnitFilePath({ i18nRoot, unit, localeCode: targetLocale }),\n status: I18nUnitRunStatus.SKIPPED,\n });\n }\n return results;\n }\n\n // Spec context is loaded ONCE per unit and reused across locales.\n const specContext = await unit.loadSpecContext();\n\n for (const targetLocale of targetLocales) {\n try {\n const result = await this.translateUnitForLocale({\n unit,\n sourceLocale: primaryLocale,\n targetLocale,\n sourceFlat,\n specContext,\n i18nRoot,\n forceRetranslate,\n traceSession,\n writer,\n });\n results.push(result);\n } catch (err: unknown) {\n const message = describeCaughtError(err);\n results.push({\n unitId: unit.id,\n targetLocale,\n filePath: '',\n status: I18nUnitRunStatus.FAILED,\n error: message,\n });\n }\n }\n return results;\n }\n\n /** Move in what a dead run left staged, and say so (#2213). */\n private async adoptAbandonedStaging(): Promise<void> {\n const { adopted, discarded } = await adoptAbandonedLabelStaging(this.companionContext.saasRoot);\n if (adopted.length > 0 || discarded.length > 0) {\n this.logger.info('Label files left staged by an earlier run were moved into place', { adopted: adopted.length, discardedAsOlderThanTheFileInPlace: discarded.length });\n }\n }\n\n private countResult(tally: TranslateRunTally, status: I18nUnitRunStatus): void {\n if (status === I18nUnitRunStatus.FRESH) tally.fresh++;\n else if (status === I18nUnitRunStatus.UPDATED) tally.updated++;\n else if (status === I18nUnitRunStatus.SKIPPED) tally.skipped++;\n else tally.failed++;\n }\n\n // ─── Email lane (#1908) ────────────────────────────────────────────────────\n\n /**\n * Translate every planned email template into `targetLocales`, adding each roundtrip to `tally`.\n * Returns the number of email units considered.\n *\n * A planning failure (the backend introspection that locates email roots could not answer) is one\n * FAILED roundtrip per locale under the lane's bucket name rather than a thrown run: the i18n lane of\n * the same run may already have written its files, and the caller must still be told both outcomes.\n */\n private async runEmailTemplateLane(args: {\n filter: ReadonlySet<string> | null;\n primaryLocale: AvailableLanguage;\n targetLocales: readonly AvailableLanguage[];\n forceRetranslate: boolean;\n traceSession: CompanionExecutionSessionContext;\n tally: TranslateRunTally;\n progress: LabellingProgressReporter | undefined;\n writer: StagedLabelFileWriter;\n }): Promise<number> {\n const { filter, primaryLocale, targetLocales, forceRetranslate, traceSession, tally, progress, writer } = args;\n\n let units: EmailTemplateLabellingUnit[];\n try {\n units = (await this.emailTemplateUnits.planEmailTemplateUnits()).units;\n } catch (err: unknown) {\n const message = describeCaughtError(err);\n this.logger.error('Email template translation could not be planned', { error: message });\n for (const targetLocale of targetLocales) {\n tally.failed++;\n tally.details.push({\n unitId: EMAIL_TEMPLATE_LABELLING_BUCKET,\n targetLocale,\n filePath: '',\n status: I18nUnitRunStatus.FAILED,\n error: `Could not locate the application's email templates: ${message}`,\n });\n }\n return 0;\n }\n if (filter) units = units.filter((unit) => filter.has(unit.id));\n const plannedUnits = units;\n reportLabellingProgress(progress, (reporter) =>\n reporter.planned(LabellingProgressPhase.TRANSLATE_EMAIL_TEMPLATES, plannedUnits.length, targetLocales));\n\n // Templates run side by side, each template's locales in turn (#2211) — the same axis and the same\n // reason as the i18n lane: a template's lock row holds all its locales and is written whole.\n const perUnit = await mapWithBoundedConcurrency(units, resolveLabellingConcurrency(), async (unit) => {\n const results = await this.translateEmailTemplateUnitAcrossLocales({ unit, primaryLocale, targetLocales, forceRetranslate, traceSession, writer });\n reportLabellingProgress(progress, (reporter) =>\n reporter.unitSettled(LabellingProgressPhase.TRANSLATE_EMAIL_TEMPLATES, toProgressOutcomes(results)));\n return results;\n });\n for (const results of perUnit) {\n for (const result of results) {\n tally.details.push(result);\n this.countResult(tally, result.status);\n }\n }\n return units.length;\n }\n\n /**\n * Every target locale of one email template, in locale order — the worker the email lane runs\n * through the bounded pool. One result per locale, as the sequential loop recorded them.\n */\n private async translateEmailTemplateUnitAcrossLocales(args: {\n unit: EmailTemplateLabellingUnit;\n primaryLocale: AvailableLanguage;\n targetLocales: readonly AvailableLanguage[];\n forceRetranslate: boolean;\n traceSession: CompanionExecutionSessionContext;\n writer: StagedLabelFileWriter;\n }): Promise<TranslateUnitResult[]> {\n const { unit, primaryLocale, targetLocales, forceRetranslate, traceSession, writer } = args;\n const results: TranslateUnitResult[] = [];\n const sourcePath = labelsFilePath(unit.templateDirectory, primaryLocale);\n let source: { content: string; parsed: ParsedEmailLabelsTreeFile; words: Record<string, string> };\n try {\n const content = await fs.readFile(sourcePath, 'utf-8');\n const parsed = parseEmailLabelsTreeSource(content);\n source = { content, parsed, words: flattenEmailLabelsTree(parsed.tree) };\n } catch (err: unknown) {\n const message = (err as NodeJS.ErrnoException)?.code === 'ENOENT'\n ? `The template has no primary-locale words to translate: ${sourcePath} does not exist`\n : `Failed to read ${sourcePath}: ${describeCaughtError(err)}`;\n for (const targetLocale of targetLocales) {\n results.push({ unitId: unit.id, targetLocale, filePath: '', status: I18nUnitRunStatus.FAILED, error: message });\n }\n return results;\n }\n\n if (Object.keys(source.words).length === 0) {\n for (const targetLocale of targetLocales) {\n results.push({\n unitId: unit.id,\n targetLocale,\n filePath: labelsFilePath(unit.templateDirectory, targetLocale),\n status: I18nUnitRunStatus.SKIPPED,\n });\n }\n return results;\n }\n\n const specContext = await unit.loadSpecContext();\n for (const targetLocale of targetLocales) {\n try {\n const result = await this.translateEmailTemplateUnitForLocale({\n unit,\n source,\n sourceLocale: primaryLocale,\n targetLocale,\n specContext,\n forceRetranslate,\n traceSession,\n writer,\n });\n results.push(result);\n } catch (err: unknown) {\n results.push({\n unitId: unit.id,\n targetLocale,\n filePath: '',\n status: I18nUnitRunStatus.FAILED,\n error: describeCaughtError(err),\n });\n }\n }\n return results;\n }\n\n /**\n * One email template × one locale.\n *\n * ## Freshness\n *\n * The lock row is `units[\"email_template:<ref>\"]`. Both hashes are of the AUTHORED primary file:\n * `inputSha` and `primarySha` are that file's SHA, because for an authored source the file IS the\n * input. A locale is fresh when the recorded source SHA and the locale file's SHA both still match\n * the disk — an unchanged English file is not re-translated, and a hand edit to either side is not\n * silently honoured.\n *\n * When the English file changed, every OTHER locale of the unit is marked `stale` in the same write,\n * which is what labellize does to a generated unit whose primary changed. Without it, translating\n * `fr` would record the new source SHA and leave `de` reading as fresh against words it never saw.\n *\n * ## Why the whole email is re-translated when its English changes\n *\n * The i18n lane translates only the keys whose primary words changed (`staleKeys`, #1409), because\n * the labeller knows which ones did. Nothing records the previous English of an authored email, so\n * the only per-key alternative is storing a hash per key in the lock — rejected: an email is ONE\n * message of a few dozen words read top to bottom, and re-translating it whole keeps its register\n * consistent, where patching one sentence into an older translation can leave the message reading\n * as two voices.\n *\n * ## Written whole, or not at all\n *\n * See `judgeEmailTranslation`: a missing key or a placeholder that did not survive fails the\n * roundtrip and leaves any previous file untouched, because the file's existence is what the backend\n * counts as \"this email covers the locale\".\n */\n private async translateEmailTemplateUnitForLocale(args: {\n unit: EmailTemplateLabellingUnit;\n source: { content: string; parsed: ParsedEmailLabelsTreeFile; words: Record<string, string> };\n sourceLocale: AvailableLanguage;\n targetLocale: AvailableLanguage;\n specContext: LabellingUnitSpecContext | undefined;\n forceRetranslate: boolean;\n traceSession: CompanionExecutionSessionContext;\n /** Stages the file for a burst (#2213); absent = written at once. */\n writer?: StagedLabelFileWriter;\n }): Promise<TranslateUnitResult> {\n const { unit, source, sourceLocale, targetLocale, specContext, forceRetranslate, traceSession, writer } = args;\n const targetPath = labelsFilePath(unit.templateDirectory, targetLocale);\n const sourceSha = this.lockService.hashString(source.content);\n\n const step = this.traceability.createStep(traceSession, {\n kind: 'translate-unit',\n label: `${unit.id}->${targetLocale}`,\n });\n\n const section = await this.lockService.readI18nSection();\n const existing = section?.units[unit.id];\n const localeEntry = existing?.locales[targetLocale];\n\n if (!forceRetranslate && existing?.primarySha === sourceSha && localeEntry?.status === 'fresh' && localeEntry.outputSha) {\n const onDiskTargetSha = await this.computeFileShaIfExists(targetPath);\n if (onDiskTargetSha === localeEntry.outputSha) {\n await this.traceability.traceEvent({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'translate-unit-fresh',\n summary: `Unit ${unit.id} → ${targetLocale} fresh — no LLM call`,\n payload: { unitId: unit.id, targetLocale },\n });\n return { unitId: unit.id, targetLocale, filePath: targetPath, status: I18nUnitRunStatus.FRESH };\n }\n this.logDebug('Email locale lock says fresh but the locale file drifted — re-translating', {\n unitId: unit.id,\n targetLocale,\n });\n }\n\n // The context replayed into the prompt, recorded like the i18n lane's so a reviewer can confirm the\n // translator saw the email's purpose and not only its words.\n await this.traceability.writeArtifact({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: 'spec-context.json',\n content: {\n unitId: unit.id,\n category: unit.category,\n targetLocale,\n hasSpecContext: specContext !== undefined,\n description: specContext?.description ?? null,\n origin: specContext?.origin ?? null,\n },\n });\n\n const keys = Object.keys(source.words);\n const assemblies: TranslatedChunkAssembly[] = [];\n for (const chunk of chunkKeys(unit.id, keys)) {\n const chunkSource: Record<string, string> = {};\n for (const key of chunk.keys) chunkSource[key] = source.words[key]!;\n assemblies.push(await this.translateChunkKeys({\n unit,\n chunk,\n sourceLocale,\n targetLocale,\n specContext,\n sourceEntries: chunkSource,\n traceSession,\n step,\n }));\n }\n\n const verdict = judgeEmailTranslation({ keys, sourceWords: source.words, assemblies });\n if (!verdict.accepted) {\n this.logger.error('Email translation refused — nothing written for this locale', {\n unitId: unit.id,\n targetLocale,\n reason: verdict.reason,\n });\n return {\n unitId: unit.id,\n targetLocale,\n filePath: targetPath,\n status: I18nUnitRunStatus.FAILED,\n error: `Refused to write ${targetPath}: ${verdict.reason}`,\n };\n }\n const corrupt = Object.entries(verdict.words).filter(([, value]) => labelValueCarriesControlCharacter(value)).map(([key]) => key);\n if (corrupt.length > 0) {\n return {\n unitId: unit.id,\n targetLocale,\n filePath: targetPath,\n status: I18nUnitRunStatus.FAILED,\n error: `Refused to write ${targetPath}: ${corrupt.length} translated value(s) carry a control character (${corrupt.join(', ')})`,\n };\n }\n\n const content = formatTranslatedEmailLabelsFile({\n localeCode: targetLocale,\n localeDisplayName: LANGUAGE_INFO_MAP[targetLocale]?.name ?? targetLocale,\n sourceFileName: path.basename(labelsFilePath(unit.templateDirectory, sourceLocale)),\n tree: mapEmailLabelsTreeLeaves(source.parsed.tree, verdict.words),\n labelsTypeName: source.parsed.labelsTypeName,\n usesAsConst: source.parsed.usesAsConst,\n });\n if (writer) await writer.stage(targetPath, content);\n else await writeFileAtomic(targetPath, content);\n\n const sourceChanged = existing?.primarySha !== undefined && existing.primarySha !== sourceSha;\n const locales: Record<string, I18nLockLocaleEntry> = {};\n for (const [locale, entry] of Object.entries(existing?.locales ?? {})) {\n locales[locale] = sourceChanged ? { ...entry, status: 'stale' } : entry;\n }\n locales[targetLocale] = {\n status: 'fresh',\n outputSha: this.lockService.hashString(content),\n lastTranslatedAt: new Date().toISOString(),\n };\n const entry: I18nLockUnitEntry = {\n category: unit.category,\n displayLabel: unit.displayLabel,\n inputSha: sourceSha,\n primarySha: sourceSha,\n locales,\n };\n await this.lockService.upsertI18nUnit(\n unit.id,\n entry,\n // Only a missing section is created here, with the configured primary locale; an existing one\n // keeps the primary locale labellize recorded (translation never rewrites that identity).\n section ? undefined : sourceLocale,\n Array.from(new Set([...(section?.trackedLocales ?? []), targetLocale])),\n );\n\n return { unitId: unit.id, targetLocale, filePath: targetPath, status: I18nUnitRunStatus.UPDATED };\n }\n\n private async translateUnitForLocale(args: {\n unit: LabellingUnit;\n sourceLocale: AvailableLanguage;\n targetLocale: AvailableLanguage;\n sourceFlat: Record<string, string>;\n specContext: LabellingUnitSpecContext | undefined;\n i18nRoot: string;\n forceRetranslate: boolean;\n traceSession: CompanionExecutionSessionContext;\n /** Stages the file for a burst (#2213); absent = written at once. */\n writer?: StagedLabelFileWriter;\n }): Promise<TranslateUnitResult> {\n const { unit, sourceLocale, targetLocale, sourceFlat, specContext, i18nRoot, forceRetranslate, traceSession, writer } = args;\n\n const targetPath = resolvePerUnitFilePath({ i18nRoot, unit, localeCode: targetLocale });\n const sourcePath = resolvePerUnitFilePath({ i18nRoot, unit, localeCode: sourceLocale });\n\n // One trace step per unit×locale; the source strings + prompt + response\n // land under it (materialized only when a gated write actually fires).\n const step = this.traceability.createStep(traceSession, {\n kind: 'translate-unit',\n label: `${unit.id}->${targetLocale}`,\n });\n\n const section = await this.lockService.readI18nSection();\n const existing = section?.units[unit.id];\n const localeEntry = existing?.locales[targetLocale];\n\n if (\n !forceRetranslate\n && existing?.primarySha\n && localeEntry?.status === 'fresh'\n && localeEntry.outputSha\n ) {\n // Verify both the on-disk source AND target file hashes still\n // match what's recorded. A hand-edit / branch switch / `git\n // checkout` of either file out-of-band must NOT be silently\n // honored as \"fresh\".\n const onDiskSourceSha = await this.computeFileShaIfExists(sourcePath);\n const onDiskTargetSha = await this.computeFileShaIfExists(targetPath);\n const sourceMatches = onDiskSourceSha === existing.primarySha;\n const targetMatches = onDiskTargetSha === localeEntry.outputSha;\n if (sourceMatches && targetMatches) {\n this.logDebug('Locale fresh — skipping agent call', {\n unitId: unit.id,\n targetLocale,\n });\n await this.traceability.traceEvent({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'translate-unit-fresh',\n summary: `Unit ${unit.id} → ${targetLocale} fresh — no LLM call`,\n payload: { unitId: unit.id, targetLocale },\n });\n return { unitId: unit.id, targetLocale, filePath: targetPath, status: I18nUnitRunStatus.FRESH };\n }\n this.logDebug('Locale lock says fresh but on-disk content drifted — re-translating', {\n unitId: unit.id,\n targetLocale,\n sourceMatches,\n targetMatches,\n });\n }\n\n // We refuse to translate a unit that was never labellized. The\n // primary file's hash space (formatted TS file content, set by\n // labellize) is NOT interchangeable with the source-flat JSON hash\n // we'd otherwise have to fabricate here, and lying about it\n // permanently invalidates the labellize cache for this unit.\n if (!existing?.inputSha || !existing?.primarySha) {\n await this.traceability.traceEvent({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'translate-unit-skipped',\n summary: `Unit ${unit.id} → ${targetLocale} skipped — no labellize state`,\n payload: { unitId: unit.id, targetLocale },\n });\n return {\n unitId: unit.id,\n targetLocale,\n filePath: targetPath,\n status: I18nUnitRunStatus.SKIPPED,\n error: 'Unit has no recorded labellize state; run labellize first',\n };\n }\n\n /*\n * The words being translated must be the ones labellize recorded. Since #2213 labellize records a unit\n * BEFORE its file reaches disk (the file waits for a burst), so a translate run overlapping that window\n * — a coding agent's `wildo generate labels`, an operator's CLI run — would read the OLD primary file,\n * miss every key it lacks, and record the locale `fresh` against the NEW primarySha. Once the burst lands\n * that reads as fresh forever and the new keys are never translated. The fresh branch above already\n * compares the source on disk; this path must too. A primary file edited by hand lands here as well, and\n * labellize is what reconciles it, so the answer is the same: skip, record nothing, say why.\n */\n const onDiskSourceSha = await this.computeFileShaIfExists(sourcePath);\n if (onDiskSourceSha !== existing.primarySha) {\n await this.traceability.traceEvent({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'translate-unit-skipped',\n summary: `Unit ${unit.id} → ${targetLocale} skipped — primary file does not match the labellize record`,\n payload: { unitId: unit.id, targetLocale },\n });\n return {\n unitId: unit.id,\n targetLocale,\n filePath: targetPath,\n status: I18nUnitRunStatus.SKIPPED,\n error: 'The primary-locale file does not match what labellize recorded (not written yet, or edited by hand); run labellize first',\n };\n }\n\n const existingTargetFlat = await readPerUnitLabels(targetPath);\n const targetFlat: Record<string, string> = { ...existingTargetFlat };\n\n // The spec context replayed into the translation prompt (the same one the\n // labellize step used) — recorded so a reviewer can confirm the translator\n // saw no less context than the labellizer (the user-mandated invariant).\n await this.traceability.writeArtifact({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: 'spec-context.json',\n content: {\n unitId: unit.id,\n category: unit.category,\n targetLocale,\n hasSpecContext: specContext !== undefined,\n description: specContext?.description ?? null,\n hints: specContext?.hints ?? null,\n origin: specContext?.origin ?? null,\n },\n });\n\n /*\n * Which keys to translate (#1409). When the labeller recorded exactly which primary words changed,\n * only those are sent, plus any key this locale has no word for yet; every other translation is\n * kept. Re-translating an unchanged word only re-words it — measured on the security-settings unit,\n * where adding six English keys re-worded the whole French file. Absent `staleKeys` means the\n * change could not be named (a forced run, a hand edit, an older lock), so everything is sent.\n */\n const onlyKeys = !forceRetranslate && localeEntry?.status === 'stale' && Array.isArray(localeEntry.staleKeys)\n ? new Set(localeEntry.staleKeys)\n : undefined;\n const needsTranslation = (key: string): boolean =>\n onlyKeys === undefined\n || onlyKeys.has(key)\n || typeof existingTargetFlat[key] !== 'string'\n || existingTargetFlat[key]!.trim() === '';\n\n for (const chunk of unit.chunks) {\n const chunkSourceEntries: Record<string, string> = {};\n for (const key of chunk.keys) {\n if (!needsTranslation(key)) continue;\n const v = sourceFlat[key];\n if (typeof v === 'string') chunkSourceEntries[key] = v;\n }\n if (Object.keys(chunkSourceEntries).length === 0) continue;\n\n const chunkResult = await this.translateChunk({\n unit,\n // Narrowed to the keys being sent: the chunk's key list is what the model is asked to return,\n // and asking for a key it was given no source for invites an invented word.\n chunk: { ...chunk, keys: Object.keys(chunkSourceEntries) },\n sourceLocale,\n targetLocale,\n specContext,\n sourceEntries: chunkSourceEntries,\n traceSession,\n step,\n });\n Object.assign(targetFlat, chunkResult);\n }\n\n const plannedSet = new Set(unit.chunks.flatMap((chunk) => chunk.keys));\n for (const key of Object.keys(targetFlat)) {\n if (!plannedSet.has(key)) delete targetFlat[key];\n }\n\n const localeDisplayName = LANGUAGE_INFO_MAP[targetLocale]?.name ?? targetLocale;\n const fileArgs = { filePath: targetPath, localeCode: targetLocale, localeDisplayName, isPrimaryLocale: false, flatEntries: targetFlat };\n let writtenContent: string;\n if (writer) {\n writtenContent = renderPerUnitLabels(fileArgs);\n await writer.stage(targetPath, writtenContent);\n } else {\n writtenContent = await writePerUnitLabels(fileArgs);\n }\n\n const outputSha = this.lockService.hashString(writtenContent);\n const updatedLocales = { ...(existing?.locales ?? {}) };\n updatedLocales[targetLocale] = {\n status: 'fresh',\n outputSha,\n lastTranslatedAt: new Date().toISOString(),\n };\n\n // `existing` is guaranteed non-null by the early-return guard above;\n // we never fabricate `inputSha` / `primarySha` here because they\n // belong to the labellize hash space, not translate's.\n const updatedEntry: I18nLockUnitEntry = {\n category: existing.category,\n displayLabel: existing.displayLabel,\n inputSha: existing.inputSha,\n primarySha: existing.primarySha,\n lastLabellizedAt: existing.lastLabellizedAt,\n locales: updatedLocales,\n };\n\n await this.lockService.upsertI18nUnit(\n unit.id,\n updatedEntry,\n undefined,\n Array.from(new Set([...(section?.trackedLocales ?? []), targetLocale])),\n );\n\n return { unitId: unit.id, targetLocale, filePath: targetPath, status: I18nUnitRunStatus.UPDATED };\n }\n\n private async translateChunk(args: {\n unit: LabellingUnit;\n chunk: LabellingUnitChunk;\n sourceLocale: AvailableLanguage;\n targetLocale: AvailableLanguage;\n specContext: LabellingUnitSpecContext | undefined;\n sourceEntries: Record<string, string>;\n traceSession: CompanionExecutionSessionContext;\n step: CompanionTraceStepContext;\n }): Promise<Record<string, string>> {\n const { unit, chunk, sourceLocale, targetLocale, specContext, sourceEntries, traceSession, step } = args;\n // The i18n lane keeps the source-word fallback the assembly already applied (see\n // `assembleTranslatedChunkResult`); only the email lane refuses on a gap.\n return (await this.translateChunkKeys({\n unit, chunk, sourceLocale, targetLocale, specContext, sourceEntries, traceSession, step,\n })).values;\n }\n\n /**\n * Build the translation prompt for `requestedKeys`.\n *\n * `requestedKeys` is the whole chunk on the first pass and only the outstanding\n * keys on a repair pass, so the source block, the variable-key contract and the\n * omission correction all narrow together — a three-key repair request must not\n * re-send eighty-seven strings it is not being asked to translate.\n */\n private buildTranslatePrompt(args: {\n unit: TranslatableUnitIdentity;\n chunk: LabellingUnitChunk;\n sourceLocale: AvailableLanguage;\n targetLocale: AvailableLanguage;\n specContext: LabellingUnitSpecContext | undefined;\n sourceEntries: Record<string, string>;\n requestedKeys: readonly string[];\n omittedKeys: readonly string[];\n /**\n * Placeholder drift measured on the previous response, rendered as an\n * explicit per-key correction. Mirrors the labellize prompt's retry block:\n * naming the exact tokens to add/remove is what makes the repair pass\n * reliable, rather than restating the general contract and hoping.\n */\n priorDrift?: readonly PlaceholderDrift[];\n }): string {\n const { unit, chunk, sourceLocale, targetLocale, specContext, requestedKeys, omittedKeys, priorDrift } = args;\n const sourceEntries = Object.fromEntries(\n requestedKeys.filter((key) => args.sourceEntries[key] !== undefined).map((key) => [key, args.sourceEntries[key]!]),\n );\n\n const sourceLanguage = LANGUAGE_INFO_MAP[sourceLocale]?.name ?? sourceLocale;\n const targetLanguage = LANGUAGE_INFO_MAP[targetLocale]?.name ?? targetLocale;\n\n // Scan the SOURCE values for runtime variable keys (the `{token}`s). Done by\n // scanning — not chunk.keyParams — so it's accurate to exactly what is being\n // translated and works for EVERY bucket, not just keyParam-threaded\n // components. Listing them explicitly + \"these are variables, not words\" is\n // the strongest guard against the model translating `{limit}` → `{limite}`.\n //\n // The scan goes through the shared extractor so the set stated in the prompt\n // and the set the answer is VALIDATED against are produced by one grammar —\n // a prompt that promised different tokens from the ones the check enforces\n // would fail every repair pass for a reason nobody could read.\n const varsByKey: Array<{ key: string; tokens: string[] }> = [];\n for (const [key, value] of Object.entries(sourceEntries)) {\n const tokens = extractLabelPlaceholderTokens(value);\n if (tokens.length > 0) varsByKey.push({ key, tokens });\n }\n\n const lines: string[] = [\n unit.category === LabellingUnitCategory.EMAIL_TEMPLATE\n // An email is read as a message, not scanned as interface chrome: say so, or the model\n // applies UI brevity rules to a paragraph a recipient reads top to bottom.\n ? `Translate the words of one transactional email from ${sourceLanguage} to ${targetLanguage} for a professional SaaS application (${unit.displayLabel}). Keep the email's tone and completeness; subject lines and buttons stay as short as the source's.`\n : `Translate these UI labels from ${sourceLanguage} to ${targetLanguage} for a professional SaaS web app (${unit.category} \"${unit.displayLabel}\").`,\n ];\n\n // Same context the labellizer saw (terminology + tone), replayed for\n // consistency. No structured-hints dump — the description carries it.\n if (specContext?.description) {\n lines.push('', '# Context (for terminology & tone)', specContext.description.trim());\n }\n\n // Variable-key contract — the placeholders are NOT words to translate.\n if (varsByKey.length > 0) {\n lines.push(\n '',\n '# Variable keys — DO NOT translate',\n 'The single-brace tokens below are runtime VARIABLE KEYS: the app substitutes live values for them at render time. They are NOT words. Copy each one into your translation EXACTLY as written (identical spelling, identical { } braces) — never translate, localize, rename, reorder away, add, or drop one. Each translated value MUST contain exactly the same variable keys as its source — no more, no fewer.',\n 'Variable keys by source string:',\n );\n const keyMeta = chunk.keyMeta ?? {};\n for (const { key, tokens } of varsByKey) {\n const meanings = keyMeta[key]?.paramMeanings;\n const rendered = tokens.map((t) => {\n const m = meanings?.[t];\n return m ? `{${t}} (${m})` : `{${t}}`;\n }).join(' ');\n lines.push(` ${key} → ${rendered}`);\n }\n }\n\n const isEmail = unit.category === LabellingUnitCategory.EMAIL_TEMPLATE;\n lines.push(\n '',\n '# Rules',\n `- Use natural ${targetLanguage} ${isEmail ? 'email' : 'UI'} conventions: do NOT copy English Title Case — apply the casing ${targetLanguage} uses (most languages, including French, use sentence case: capitalize only the first word and proper nouns).`,\n `- Apply ${targetLanguage} typography (e.g. French uses a narrow no-break space before : ; ! ? and « guillemets » for quotes).`,\n // The UI brevity rule would tell the model to cut an email paragraph down to a label; an email is\n // read top to bottom, so it keeps its sentences and only its short parts stay short (#1908).\n isEmail\n ? \"- Keep the email's completeness and tone: translate every sentence of a paragraph, add nothing the source does not say, and keep subject lines, headings, buttons and field names as short as the source's.\"\n : \"- Match the source's brevity: translate as the SHORTEST natural UI copy — never lengthen, never add words the source omits, never re-introduce filler. A 2-word source label becomes a 2-word target label, not a sentence.\",\n '- Never introduce internal/framework jargon the source avoids (e.g. resource/ressource, entity/entité, record/enregistrement): mirror the register + wording the source uses.',\n `- Preserve the SOURCE's register: if the source reads as operator/admin-console or developer/technical copy (not casual consumer wording), keep that same register in ${targetLanguage} — don't casualize it, and don't make end-user copy more technical.`,\n `- A label that names a relationship to another thing stays a relationship NAME in ${targetLanguage} (e.g. \"Assignee\" → \"Responsable\" / \"Assigné\", \"Owner\" → \"Propriétaire\") — never an identifier, never reintroduce \"ID\" / \"Id\" or a technical reference term.`,\n '- Keep terminology consistent across every key; aria phrases stay self-contained and natural to read aloud.',\n );\n\n lines.push(\n '',\n '# Source (translate the values)',\n JSON.stringify(sourceEntries, null, 2),\n '',\n 'Return a translated value for every key. Do not omit any field.',\n );\n\n // Omission correction — the model silently dropped these keys from its\n // previous response. They are the only keys in the source block above.\n if (omittedKeys.length > 0) {\n lines.push(\n '',\n `# Correction — your previous response left out ${omittedKeys.length} key(s). They are the ONLY keys above. Return every one of them.`,\n );\n }\n\n // Placeholder-drift correction — the model DID answer these keys and got the\n // variable keys wrong. Distinct from the omission block above on purpose: a\n // \"you left this out\" instruction against a key that was answered reads as\n // contradicting the model's own transcript and is the weakest possible\n // correction. Name the exact tokens instead.\n const relevantDrift = (priorDrift ?? []).filter((drift) => requestedKeys.includes(drift.key));\n if (relevantDrift.length > 0) {\n lines.push('', '# Correction — your previous translation used the wrong variable keys. Fix EXACTLY these keys:');\n for (const drift of relevantDrift) {\n const expected = drift.expected.length ? drift.expected.map((token) => `{${token}}`).join(' ') : 'no variable keys at all';\n const fixes = [`use ${expected}`];\n if (drift.unexpected.length > 0) fixes.push(`remove ${drift.unexpected.map((token) => `{${token}}`).join(' ')}`);\n if (drift.missing.length > 0) fixes.push(`add ${drift.missing.map((token) => `{${token}}`).join(' ')}`);\n lines.push(` ${drift.key}: ${fixes.join('; ')}`);\n }\n }\n\n return lines.join('\\n');\n }\n\n /**\n * Run one physical translation call for `requestedKeys` and return the raw\n * parsed object. Filtering and fallback belong to the caller.\n */\n private async invokeTranslateChunkAgent(args: {\n unit: TranslatableUnitIdentity;\n chunk: LabellingUnitChunk;\n targetLocale: AvailableLanguage;\n requestedKeys: readonly string[];\n prompt: string;\n traceContext: AgentTraceContext | undefined;\n }): Promise<Record<string, unknown>> {\n const { unit, chunk, targetLocale, requestedKeys, prompt, traceContext } = args;\n const schema = chunk.buildOutputSchema(requestedKeys);\n const invocation: FlowsActors_Agent_Invocation<\n typeof LLMProvider_GenerateStructuredInputSchema,\n typeof LLMProvider_GenerateStructuredOutputSchema,\n z.ZodSchema<Record<string, string | undefined>>\n > = {\n agentRef: 'labelling.translation.agent',\n initiator: {},\n invocationContext: [],\n input: { prompt, schema },\n output: { object: {} },\n executionContext: {},\n artifactBindings: [],\n };\n\n const response = await this.agentsService.invokeAgent(invocation, traceContext);\n const parsed = (response.output as { object?: Record<string, unknown> })?.object;\n if (!parsed || typeof parsed !== 'object') {\n // The engine now says WHY there is no object; carry it into the message an operator\n // actually sees. Without this the reason existed only in the companion's own log\n // (the preceding `GENERATE_STRUCTURED` line), so the CLI summary — the surface a\n // human reads — reported a bare \"invalid output\" for a truncated completion, a\n // refusal, and a schema the model half-filled, alike. `validationIssues` names the\n // exact paths that failed and is the single most useful half.\n const failure = readStructuredGenerationFailure(response.executionContext);\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.SERVICE_RESOURCE_VALIDATION_FAILED,\n context: {\n message: `Invalid translation output for unit ${unit.id} chunk ${chunk.chunkId} -> ${targetLocale}`\n + (failure ? ` — ${describeStructuredGenerationFailure(failure)}` : ''),\n ...(failure ? { structuredGenerationFailure: failure } : {}),\n },\n });\n }\n return parsed;\n }\n\n /**\n * Translate one chunk into `targetLocale`, re-requesting any key the model\n * omits. A non-strict provider can silently drop leaves from a large flat\n * object, and the response schema now tolerates that (see\n * `LabellingUnitChunk.buildOutputSchema`) — so the gap is repaired here\n * instead of failing the whole unit.\n */\n private async translateChunkKeys(args: {\n unit: TranslatableUnitIdentity;\n chunk: LabellingUnitChunk;\n sourceLocale: AvailableLanguage;\n targetLocale: AvailableLanguage;\n specContext: LabellingUnitSpecContext | undefined;\n sourceEntries: Record<string, string>;\n traceSession: CompanionExecutionSessionContext;\n step: CompanionTraceStepContext;\n }): Promise<TranslatedChunkAssembly> {\n const { unit, chunk, sourceLocale, targetLocale, specContext, sourceEntries, traceSession, step } = args;\n\n /**\n * One physical translate call. Factored out because it is now driven from\n * TWO loops — the omission-repair loop and the placeholder-repair round —\n * and a second hand-written copy of the prompt/trace wiring is exactly how\n * the two would come to send different prompts for the same contract.\n */\n const invokeTranslatePass = async (pass: {\n requestedKeys: readonly string[];\n omittedByPreviousPass: readonly string[];\n priorDrift?: readonly PlaceholderDrift[];\n /** Trace label suffix identifying which loop and which pass this call is. */\n labelSuffix: string;\n /** Flat pass counter carried into the trace attributes. */\n passIndex: number;\n }): Promise<Record<string, unknown>> => {\n const prompt = this.buildTranslatePrompt({\n unit, chunk, sourceLocale, targetLocale, specContext, sourceEntries,\n requestedKeys: pass.requestedKeys,\n omittedKeys: pass.omittedByPreviousPass,\n priorDrift: pass.priorDrift,\n });\n // Correlate this chunk×locale×pass so the engine AgentCallTraceSink writes\n // the prompt + output (+usage/latency) into THIS unit's step. The caller\n // keeps only its DOMAIN artifact — the translated labels + source strings.\n const traceContext: AgentTraceContext | undefined = traceSession && step\n ? {\n sessionRef: traceSession.sessionId,\n stepRef: step.stepId,\n label: `translate.chunk-${chunk.chunkId}.${targetLocale}${pass.labelSuffix}`,\n attributes: {\n unitId: unit.id,\n chunkId: chunk.chunkId,\n targetLocale,\n keyCount: pass.requestedKeys.length,\n pass: pass.passIndex,\n },\n }\n : undefined;\n return await this.invokeTranslateChunkAgent({\n unit, chunk, targetLocale, requestedKeys: pass.requestedKeys, prompt, traceContext,\n });\n };\n\n const completion = await completeStructuredChunkKeys({\n keys: chunk.keys,\n invoke: async ({ requestedKeys, omittedByPreviousPass, pass }) => await invokeTranslatePass({\n requestedKeys,\n omittedByPreviousPass,\n labelSuffix: pass === 1 ? '' : `.repair-${pass - 1}`,\n passIndex: pass,\n }),\n });\n\n if (completion.refusedKeys.length > 0) {\n // A corrupt answer, not an incomplete one (#1109): the value carried a control character and\n // was re-requested. Named separately from omissions, because a provider that mangles escapes\n // is a different failure from one that drops leaves, and only this line says which happened.\n this.logger.warn('Translation values carried control characters — refused and re-requested', {\n unitId: unit.id,\n chunkId: chunk.chunkId,\n targetLocale,\n refusedKeys: completion.refusedKeys,\n });\n }\n if (completion.missingKeys.length > 0) {\n // Repair budget spent. These keys fall back to the SOURCE-locale string, so\n // the file stays complete but shows untranslated text — name them, or the\n // only evidence is a reader noticing English in a French UI.\n this.logger.error('Translation keys still missing after repair passes — falling back to source text', {\n unitId: unit.id,\n chunkId: chunk.chunkId,\n targetLocale,\n passes: completion.passes,\n missingKeys: completion.missingKeys,\n });\n } else if (completion.passes > 1) {\n this.logger.warn('Structured translation response omitted keys — recovered by follow-up call(s)', {\n unitId: unit.id,\n chunkId: chunk.chunkId,\n targetLocale,\n passes: completion.passes,\n keyCount: chunk.keys.length,\n });\n }\n\n // Assemble, enforcing the placeholder contract the prompt states. Until this\n // check existed, a key the model DID return with a mangled variable key —\n // `{limite}` for `{limit}`, or the token dropped entirely — was written\n // straight to the locale file with no signal of any kind. (The OMISSION case\n // was already reported at error level below; drift on a returned key was the\n // genuinely silent one.)\n let assembly = assembleTranslatedChunkResult({ keys: chunk.keys, sourceEntries, translatedValues: completion.values });\n\n // One bounded repair round over just the drifted keys, mirroring the\n // labellize orchestrator's drift retry. Scoped to the offenders rather than\n // re-translating the whole chunk: a three-key request naming the exact\n // tokens to fix is both cheaper and more reliable than re-rolling ninety\n // strings, and every clean translation in this chunk is already good.\n if (assembly.rejectedDrifts.length > 0) {\n const priorDrift = assembly.rejectedDrifts;\n this.logDebug('Translation placeholder drift detected — re-requesting the offending keys', {\n unitId: unit.id,\n chunkId: chunk.chunkId,\n targetLocale,\n offenders: priorDrift.map((drift) => drift.key),\n });\n const repair = await completeStructuredChunkKeys({\n keys: priorDrift.map((drift) => drift.key),\n invoke: async ({ requestedKeys, omittedByPreviousPass, pass }) => await invokeTranslatePass({\n requestedKeys,\n omittedByPreviousPass,\n priorDrift,\n labelSuffix: `.placeholder-repair${pass === 1 ? '' : `.repair-${pass - 1}`}`,\n passIndex: completion.passes + pass,\n }),\n });\n // Re-assemble from the MERGED values: a key the repair round answered\n // cleanly is adopted, a key it answered badly is rejected again, and a key\n // it omitted keeps its original (still-drifted, still-rejected) value. All\n // three land correctly because the assembler re-checks everything.\n assembly = assembleTranslatedChunkResult({\n keys: chunk.keys,\n sourceEntries,\n translatedValues: { ...completion.values, ...repair.values },\n });\n }\n\n if (assembly.rejectedDrifts.length > 0) {\n // Repair spent and the variable keys still do not match the source. These\n // keys fall back to the SOURCE-locale string — untranslated, but with\n // working placeholders — rather than shipping text that renders `{limite}`\n // literally to a user and drops the value it was meant to carry. Name\n // them, exactly as the missing-key path does: otherwise the only evidence\n // is a reader noticing English in a French UI.\n this.logger.error('Translated placeholders still drifted after the repair round — falling back to source text', {\n unitId: unit.id,\n chunkId: chunk.chunkId,\n targetLocale,\n drift: assembly.rejectedDrifts,\n });\n }\n\n const result = assembly.values;\n\n // Caller-owned domain artifact: the translated labels + the source strings\n // for this chunk×locale (the engine sink owns the raw prompt/output/usage\n // record). `translate-chunk` stays a domain event; usage now lives only in\n // the engine sink's agent-call-success event for this step.\n await this.traceability.writeArtifact({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: `chunk-${chunk.chunkId}.${targetLocale}.labels.json`,\n content: {\n object: result,\n sourceStrings: sourceEntries,\n // The drift that SURVIVED the repair round, so a reviewer reading the\n // artifact can tell a source-string fallback caused by a mangled\n // placeholder from one caused by a key the model never returned.\n drift: assembly.rejectedDrifts,\n },\n });\n await this.traceability.traceEvent({\n session: traceSession,\n step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'translate-chunk',\n summary: `Chunk ${chunk.chunkId} → ${targetLocale}: ${chunk.keys.length} key(s), ${assembly.rejectedDrifts.length} placeholder drift`,\n payload: {\n chunkId: chunk.chunkId,\n targetLocale,\n keyCount: chunk.keys.length,\n driftKeys: assembly.rejectedDrifts.map((drift) => drift.key),\n },\n });\n\n return assembly;\n }\n\n private async computeFileShaIfExists(filePath: string): Promise<string | undefined> {\n try {\n const content = await fs.readFile(filePath, 'utf-8');\n return this.lockService.hashString(content);\n } catch (err: unknown) {\n if ((err as NodeJS.ErrnoException)?.code === 'ENOENT') return undefined;\n throw err;\n }\n }\n\n private resolveI18nRoot(): string {\n const backendService = Object.values(this.companionContext.backendServices)[0];\n if (!backendService) {\n throw this.errorBuilder.buildFromStandardError(\n new Error('No backend service configured for per-unit i18n output'),\n undefined,\n {\n customMessageReference: ErrorCustomMessageReference.INTERNAL,\n context: { operation: 'TranslateOrchestrator.resolveI18nRoot' },\n },\n );\n }\n return path.resolve(this.companionContext.saasRoot, backendService.path, 'src/engine/i18n');\n }\n}\n\n/** A unit's per-locale results as progress outcomes. SKIPPED is not a failure: a unit with no words owes none. */\nfunction toProgressOutcomes(results: readonly TranslateUnitResult[]): LabellingProgressUnitOutcome[] {\n return results.map((result) => ({ locale: result.targetLocale, failed: result.status === I18nUnitRunStatus.FAILED }));\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-tone-of-voice.utils.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"application-tone-of-voice.utils.d.ts","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/application-tone-of-voice.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,sFAAsF;AACtF,UAAU,eAAe;IACvB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACtC,QAAQ,CAAC,wBAAwB,EAAE,MAAM,CAAC;CAC3C;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IACzC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACxC,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC3C;AAiBD;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAAC,mBAAmB,EAAE,OAAO,GAAG,sBAAsB,GAAG,SAAS,CAShH;AAaD;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,sBAAsB,GAAG,MAAM,CAgClF;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,sBAAsB,GAAG,SAAS,GAAG,OAAO,CAgBzF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-tone-of-voice.utils.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/application-tone-of-voice.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AA4BH,yGAAyG;AACzG,MAAM,UAAU,GAAuE;IACrF,YAAY,EAAE,CAAC,OAAO,EAAE,SAAS,CAAC;IAClC,YAAY,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAClC,oBAAoB,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC;IAClD,wBAAwB,EAAE,CAAC,cAAc,EAAE,gBAAgB,CAAC;CAC7D,CAAC;AAEF,mGAAmG;AACnG,MAAM,mBAAmB,GAAqC;IAC5D,GAAG,EAAE,8BAA8B;IACnC,EAAE,EAAE,gBAAgB;IACpB,YAAY,EAAE,gEAAgE;CAC/E,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,UAAU,+BAA+B,CAAC,mBAA4B;IAC1E,IAAI,OAAO,mBAAmB,KAAK,QAAQ,IAAI,mBAAmB,KAAK,IAAI;QAAE,OAAO,SAAS,CAAC;IAC9F,MAAM,MAAM,GAAI,mBAAkD,CAAC,YAAY,CAAC;IAChF,IA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xG,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,sBAAsB,CAAC,KAAyC;IAC9E,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC;IACrC,OAAO;QACL,GAAG,EAAE,KAAK,CAAC,GAAG;QACd,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,IAAI,EAAE;YACJ,YAAY,EAAE,KAAK,CAAC,IAAI,EAAE,YAAY,IAAI,IAAI;YAC9C,YAAY,EAAE,KAAK,CAAC,IAAI,EAAE,YAAY,IAAI,IAAI;YAC9C,oBAAoB,EAAE,KAAK,CAAC,IAAI,EAAE,oBAAoB,IAAI,IAAI;YAC9D,wBAAwB,EAAE,KAAK,CAAC,IAAI,EAAE,wBAAwB,IAAI,IAAI;SACvE;QACD,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,IAAI;QAC9B,UAAU,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC;QACzC,YAAY,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC;KAC9C,CAAC;AACJ,CAAC","sourcesContent":["/**\n * The application's own BRAND VOICE, rendered for the labellize prompt.\n *\n * ## Why labels owe this\n *\n * Every string a person reads in a generated application comes from the label tree, and until now\n * that tree was written in a voice nothing declared: the labelling agent's persona hard-codes \"a\n * professional tone of voice\", so an application that had carefully authored its own voice got\n * generic copy anyway. Wonder CRM declares `voice-clear-practical` — *\"Direct, calm language for\n * busy small teams … avoid enterprise jargon or unsupported superlatives\"* — and not one of its ~400\n * label units was written against it.\n *\n * The voice was never meant to sit unread. `market-tone-of-voice.schemas.ts` says so at its own\n * anchor: the snapshot is *\"consumed verbatim by prompt enrichment to keep market generation outputs\n * on-brand without re-deriving voice each call\"*. It reaches market copy, the expert-persona brief\n * and the brand renderer's visual register. Labels were the surface it never reached, and labels are\n * the surface a user actually reads.\n *\n * ## Exactly one voice, or none — never a guess\n *\n * `tonesOfVoice` is a LIST, and the other consumers resolve it differently on purpose: the market\n * context block keys voices BY REF because each message template names the one it is written in, and\n * the expert brief renders them ALL because a brief is a survey. Neither shape fits a label run,\n * which produces one body of copy and needs one register.\n *\n * So the rule is a measurement rather than a preference: when the application declares exactly ONE\n * voice, that is unambiguously the application's voice and it is used. When it declares several,\n * nothing in the market family says which governs UI copy — so this returns `undefined` and the\n * prompt keeps the register it had. Picking \"the first\" would be inventing a selector the schema\n * does not have, and a label tree written in a voice nobody chose is worse than one written in the\n * default: the default is at least legible as a default.\n *\n * When a product genuinely needs several voices AND labels, the honest fix is a declared selector on\n * the market family, not a tie-break here.\n */\n\n/** The four Nielsen-Norman axes, each an integer in `[-2, +2]` where 0 is neutral. */\ninterface ToneOfVoiceAxes {\n readonly funnySerious: number;\n readonly formalCasual: number;\n readonly respectfulIrreverent: number;\n readonly enthusiasticMatterOfFact: number;\n}\n\n/**\n * The shape this module reads, deliberately structural rather than the imported schema type.\n *\n * The value crosses the specifications boundary as plain data out of a compiled companion export, so\n * binding to the nominal type would couple this reader to that package's type identity for no gain —\n * the same reason `LabellingUnitSpecContext.audience` is typed `string | undefined` here rather than\n * as the `LabelAudience` enum it came from.\n */\nexport interface ApplicationToneOfVoice {\n readonly ref: string;\n readonly name: string;\n readonly description: string;\n readonly axes?: Partial<ToneOfVoiceAxes>;\n readonly address?: string;\n readonly doExamples?: readonly string[];\n readonly dontExamples?: readonly string[];\n}\n\n/** Each axis's two poles, negative first — the schema's own wording, so the prompt cannot invert one. */\nconst AXIS_POLES: Readonly<Record<keyof ToneOfVoiceAxes, readonly [string, string]>> = {\n funnySerious: ['funny', 'serious'],\n formalCasual: ['formal', 'casual'],\n respectfulIrreverent: ['respectful', 'irreverent'],\n enthusiasticMatterOfFact: ['enthusiastic', 'matter-of-fact'],\n};\n\n/** How the voice addresses the reader, so generated copy does not flip pronouns between labels. */\nconst ADDRESS_INSTRUCTION: Readonly<Record<string, string>> = {\n YOU: 'Address the reader as \"you\".',\n WE: 'Speak as \"we\".',\n THIRD_PERSON: 'Write in the third person; do not address the reader directly.',\n};\n\n/**\n * The application's voice for labelling, or `undefined` when there is no unambiguous one.\n *\n * Tolerant of every absence on the way down — no market family, no voices, a malformed entry — because\n * labelling must never fail for want of a voice. The consequence of `undefined` is the register the\n * prompt already had, which is exactly the behaviour every application has today.\n */\nexport function selectApplicationLabellingVoice(marketSpecification: unknown): ApplicationToneOfVoice | undefined {\n if (typeof marketSpecification !== 'object' || marketSpecification === null) return undefined;\n const voices = (marketSpecification as { tonesOfVoice?: unknown }).tonesOfVoice;\n if (!Array.isArray(voices) || voices.length !== 1) return undefined;\n const voice = voices[0] as Partial<ApplicationToneOfVoice> | null;\n if (typeof voice?.ref !== 'string' || typeof voice.name !== 'string' || typeof voice.description !== 'string') {\n return undefined;\n }\n return voice as ApplicationToneOfVoice;\n}\n\n/** One axis as a phrase — the pole it leans to and how far, never a bare number the model must interpret. */\nfunction describeAxis(axis: keyof ToneOfVoiceAxes, value: number | undefined): string | undefined {\n if (typeof value !== 'number' || !Number.isFinite(value)) return undefined;\n const [negative, positive] = AXIS_POLES[axis];\n if (value === 0) return `balanced between ${negative} and ${positive}`;\n const pole = value < 0 ? negative : positive;\n // |1| vs |2| is the whole point of a 5-point scale: \"leans\" and \"strongly\" are what stop a model\n // reading every non-zero axis as an absolute instruction.\n return `${Math.abs(value) >= 2 ? 'strongly' : 'leans'} ${pole}`;\n}\n\n/**\n * The `# Tone of voice` block for the labellize prompt.\n *\n * Examples are included verbatim and last, because they are the part that works: the schema bounds\n * them to 3–5 precisely so a model can triangulate a register from concrete sentences rather than\n * from adjectives, and putting them after the abstract description is what makes them read as\n * patterns to imitate rather than as content to reuse.\n */\nexport function renderToneOfVoicePromptBlock(voice: ApplicationToneOfVoice): string {\n const lines: string[] = [\n `# Tone of voice — write every label in THIS application's declared voice: \"${voice.name}\"`,\n voice.description,\n ];\n\n const axes = (Object.keys(AXIS_POLES) as (keyof ToneOfVoiceAxes)[])\n .map((axis) => {\n const described = describeAxis(axis, voice.axes?.[axis]);\n return described === undefined ? undefined : `- ${described}`;\n })\n .filter((line): line is string => line !== undefined);\n if (axes.length > 0) lines.push('Register:', ...axes);\n\n const address = voice.address === undefined ? undefined : ADDRESS_INSTRUCTION[voice.address];\n if (address !== undefined) lines.push(address);\n\n if (voice.doExamples && voice.doExamples.length > 0) {\n lines.push('Write LIKE these (imitate the register, never reuse the words):', ...voice.doExamples.map((e) => `- ${e}`));\n }\n if (voice.dontExamples && voice.dontExamples.length > 0) {\n lines.push('Do NOT write like these:', ...voice.dontExamples.map((e) => `- ${e}`));\n }\n\n /*\n * The voice shapes WORDING; it never licenses a longer label. Without this the do-examples — whole\n * marketing sentences — pull UI copy toward prose, which is the one thing the `# Style` block exists\n * to prevent. Stated here rather than relied upon from `# Style` because this block is read closer\n * to generation and the conflict is specifically between these two.\n */\n lines.push('This governs WORDING ONLY. It never overrides the length, casing or key-kind rules below.');\n return lines.join('\\n');\n}\n\n/**\n * The fingerprint contribution — the voice's MEANING, not the object.\n *\n * Every field rendered into the prompt is folded in and nothing else, so the equivalence this defines\n * is \"would the prompt read the same\". That is the rule the labellize fingerprint already applies to\n * per-key metadata and to `promptStyleVersion`: anything fed verbatim into the prompt must invalidate\n * the lock when it changes, or a unit keeps copy written against inputs that have moved.\n *\n * The consequence is the one the operator wants: adopting a voice, editing its description, moving an\n * axis or changing an example re-labellizes the application on the next ordinary run, with no force —\n * and a market edit that touches nothing this block renders changes no fingerprint and re-runs nothing.\n */\nexport function toneOfVoiceFingerprint(voice: ApplicationToneOfVoice | undefined): unknown {\n if (voice === undefined) return null;\n return {\n ref: voice.ref,\n name: voice.name,\n description: voice.description,\n axes: {\n funnySerious: voice.axes?.funnySerious ?? null,\n formalCasual: voice.axes?.formalCasual ?? null,\n respectfulIrreverent: voice.axes?.respectfulIrreverent ?? null,\n enthusiasticMatterOfFact: voice.axes?.enthusiasticMatterOfFact ?? null,\n },\n address: voice.address ?? null,\n doExamples: [...(voice.doExamples ?? [])],\n dontExamples: [...(voice.dontExamples ?? [])],\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"application-tone-of-voice.utils.js","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/application-tone-of-voice.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AA4BH,yGAAyG;AACzG,MAAM,UAAU,GAAuE;IACrF,YAAY,EAAE,CAAC,OAAO,EAAE,SAAS,CAAC;IAClC,YAAY,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAClC,oBAAoB,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC;IAClD,wBAAwB,EAAE,CAAC,cAAc,EAAE,gBAAgB,CAAC;CAC7D,CAAC;AAEF,mGAAmG;AACnG,MAAM,mBAAmB,GAAqC;IAC5D,GAAG,EAAE,8BAA8B;IACnC,EAAE,EAAE,gBAAgB;IACpB,YAAY,EAAE,gEAAgE;CAC/E,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,UAAU,+BAA+B,CAAC,mBAA4B;IAC1E,IAAI,OAAO,mBAAmB,KAAK,QAAQ,IAAI,mBAAmB,KAAK,IAAI;QAAE,OAAO,SAAS,CAAC;IAC9F,MAAM,MAAM,GAAI,mBAAkD,CAAC,YAAY,CAAC;IAChF,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IACpE,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAA2C,CAAC;IAClE,IAAI,OAAO,KAAK,EAAE,GAAG,KAAK,QAAQ,IAAI,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,IAAI,OAAO,KAAK,CAAC,WAAW,KAAK,QAAQ,EAAE,CAAC;QA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,EAAE;YACJ,YAAY,EAAE,KAAK,CAAC,IAAI,EAAE,YAAY,IAAI,IAAI;YAC9C,YAAY,EAAE,KAAK,CAAC,IAAI,EAAE,YAAY,IAAI,IAAI;YAC9C,oBAAoB,EAAE,KAAK,CAAC,IAAI,EAAE,oBAAoB,IAAI,IAAI;YAC9D,wBAAwB,EAAE,KAAK,CAAC,IAAI,EAAE,wBAAwB,IAAI,IAAI;SACvE;QACD,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,IAAI;QAC9B,UAAU,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC;QACzC,YAAY,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC;KAC9C,CAAC;AACJ,CAAC","sourcesContent":["/**\n * The application's own BRAND VOICE, rendered for the labellize prompt.\n *\n * ## Why labels owe this\n *\n * Every string a person reads in a generated application comes from the label tree, and until now\n * that tree was written in a voice nothing declared: the labelling agent's persona hard-codes \"a\n * professional tone of voice\", so an application that had carefully authored its own voice got\n * generic copy anyway. Wonder CRM declares `voice-clear-practical` — *\"Direct, calm language for\n * busy small teams … avoid enterprise jargon or unsupported superlatives\"* — and not one of its ~400\n * label units was written against it.\n *\n * The voice was never meant to sit unread. `market-tone-of-voice.schemas.ts` says so at its own\n * anchor: the snapshot is *\"consumed verbatim by prompt enrichment to keep market generation outputs\n * on-brand without re-deriving voice each call\"*. It reaches market copy, the expert-persona brief\n * and the brand renderer's visual register. Labels were the surface it never reached, and labels are\n * the surface a user actually reads.\n *\n * ## Exactly one voice, or none — never a guess\n *\n * `tonesOfVoice` is a LIST, and the other consumers resolve it differently on purpose: the market\n * context block keys voices BY REF because each message template names the one it is written in, and\n * the expert brief renders them ALL because a brief is a survey. Neither shape fits a label run,\n * which produces one body of copy and needs one register.\n *\n * So the rule is a measurement rather than a preference: when the application declares exactly ONE\n * voice, that is unambiguously the application's voice and it is used. When it declares several,\n * nothing in the market family says which governs UI copy — so this returns `undefined` and the\n * prompt keeps the register it had. Picking \"the first\" would be inventing a selector the schema\n * does not have, and a label tree written in a voice nobody chose is worse than one written in the\n * default: the default is at least legible as a default.\n *\n * When a product genuinely needs several voices AND labels, the honest fix is a declared selector on\n * the market family, not a tie-break here.\n */\n\n/** The four Nielsen-Norman axes, each an integer in `[-2, +2]` where 0 is neutral. */\ninterface ToneOfVoiceAxes {\n readonly funnySerious: number;\n readonly formalCasual: number;\n readonly respectfulIrreverent: number;\n readonly enthusiasticMatterOfFact: number;\n}\n\n/**\n * The shape this module reads, deliberately structural rather than the imported schema type.\n *\n * The value crosses the specifications boundary as plain data out of a compiled companion export, so\n * binding to the nominal type would couple this reader to that package's type identity for no gain —\n * the same reason `LabellingUnitSpecContext.audience` is typed `string | undefined` here rather than\n * as the `LabelAudience` enum it came from.\n */\nexport interface ApplicationToneOfVoice {\n readonly ref: string;\n readonly name: string;\n readonly description: string;\n readonly axes?: Partial<ToneOfVoiceAxes>;\n readonly address?: string;\n readonly doExamples?: readonly string[];\n readonly dontExamples?: readonly string[];\n}\n\n/** Each axis's two poles, negative first — the schema's own wording, so the prompt cannot invert one. */\nconst AXIS_POLES: Readonly<Record<keyof ToneOfVoiceAxes, readonly [string, string]>> = {\n funnySerious: ['funny', 'serious'],\n formalCasual: ['formal', 'casual'],\n respectfulIrreverent: ['respectful', 'irreverent'],\n enthusiasticMatterOfFact: ['enthusiastic', 'matter-of-fact'],\n};\n\n/** How the voice addresses the reader, so generated copy does not flip pronouns between labels. */\nconst ADDRESS_INSTRUCTION: Readonly<Record<string, string>> = {\n YOU: 'Address the reader as \"you\".',\n WE: 'Speak as \"we\".',\n THIRD_PERSON: 'Write in the third person; do not address the reader directly.',\n};\n\n/**\n * The application's voice for labelling, or `undefined` when there is no unambiguous one.\n *\n * Tolerant of every absence on the way down — no market family, no voices, a malformed entry — because\n * labelling must never fail for want of a voice. The consequence of `undefined` is the register the\n * prompt already had, which is exactly the behaviour every application has today.\n */\nexport function selectApplicationLabellingVoice(marketSpecification: unknown): ApplicationToneOfVoice | undefined {\n if (typeof marketSpecification !== 'object' || marketSpecification === null) return undefined;\n const voices = (marketSpecification as { tonesOfVoice?: unknown }).tonesOfVoice;\n if (!Array.isArray(voices) || voices.length !== 1) return undefined;\n const voice = voices[0] as Partial<ApplicationToneOfVoice> | null;\n if (typeof voice?.ref !== 'string' || typeof voice.name !== 'string' || typeof voice.description !== 'string') {\n return undefined;\n }\n return voice as ApplicationToneOfVoice;\n}\n\n/** One axis as a phrase — the pole it leans to and how far, never a bare number the model must interpret. */\nfunction describeAxis(axis: keyof ToneOfVoiceAxes, value: number | undefined): string | undefined {\n if (typeof value !== 'number' || !Number.isFinite(value)) return undefined;\n const [negative, positive] = AXIS_POLES[axis];\n if (value === 0) return `balanced between ${negative} and ${positive}`;\n const pole = value < 0 ? negative : positive;\n // |1| vs |2| is the whole point of a 5-point scale: \"leans\" and \"strongly\" are what stop a model\n // reading every non-zero axis as an absolute instruction.\n return `${Math.abs(value) >= 2 ? 'strongly' : 'leans'} ${pole}`;\n}\n\n/**\n * The `# Tone of voice` block for the labellize prompt.\n *\n * Examples are included verbatim and last, because they are the part that works: the schema bounds\n * them to 3–5 precisely so a model can triangulate a register from concrete sentences rather than\n * from adjectives, and putting them after the abstract description is what makes them read as\n * patterns to imitate rather than as content to reuse.\n */\nexport function renderToneOfVoicePromptBlock(voice: ApplicationToneOfVoice): string {\n const lines: string[] = [\n `# Tone of voice — write every label in THIS application's declared voice: \"${voice.name}\"`,\n voice.description,\n ];\n\n const axes = (Object.keys(AXIS_POLES) as (keyof ToneOfVoiceAxes)[])\n .map((axis) => {\n const described = describeAxis(axis, voice.axes?.[axis]);\n return described === undefined ? undefined : `- ${described}`;\n })\n .filter((line): line is string => line !== undefined);\n if (axes.length > 0) lines.push('Register:', ...axes);\n\n const address = voice.address === undefined ? undefined : ADDRESS_INSTRUCTION[voice.address];\n if (address !== undefined) lines.push(address);\n\n if (voice.doExamples && voice.doExamples.length > 0) {\n lines.push('Write LIKE these (imitate the register, never reuse the words):', ...voice.doExamples.map((e) => `- ${e}`));\n }\n if (voice.dontExamples && voice.dontExamples.length > 0) {\n lines.push('Do NOT write like these:', ...voice.dontExamples.map((e) => `- ${e}`));\n }\n\n /*\n * The voice shapes WORDING; it never licenses a longer label. Without this the do-examples — whole\n * marketing sentences — pull UI copy toward prose, which is the one thing the `# Style` block exists\n * to prevent. Stated here rather than relied upon from `# Style` because this block is read closer\n * to generation and the conflict is specifically between these two.\n */\n lines.push('This governs WORDING ONLY. It never overrides the length, casing or key-kind rules below.');\n return lines.join('\\n');\n}\n\n/**\n * The fingerprint contribution — the voice's MEANING, not the object.\n *\n * Every field rendered into the prompt is folded in and nothing else, so the equivalence this defines\n * is \"would the prompt read the same\". That is the rule the labellize fingerprint already applies to\n * per-key metadata and to `promptStyleVersion`: anything fed verbatim into the prompt must invalidate\n * the lock when it changes, or a unit keeps copy written against inputs that have moved.\n *\n * The consequence is the one the operator wants: adopting a voice, editing its description, moving an\n * axis or changing an example re-labellizes the application on the next ordinary run, with no force —\n * and a market edit that touches nothing this block renders changes no fingerprint and re-runs nothing.\n */\nexport function toneOfVoiceFingerprint(voice: ApplicationToneOfVoice | undefined): unknown {\n if (voice === undefined) return null;\n return {\n ref: voice.ref,\n name: voice.name,\n description: voice.description,\n axes: {\n funnySerious: voice.axes?.funnySerious ?? null,\n formalCasual: voice.axes?.formalCasual ?? null,\n respectfulIrreverent: voice.axes?.respectfulIrreverent ?? null,\n enthusiasticMatterOfFact: voice.axes?.enthusiasticMatterOfFact ?? null,\n },\n address: voice.address ?? null,\n doExamples: [...(voice.doExamples ?? [])],\n dontExamples: [...(voice.dontExamples ?? [])],\n };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declared-refusal-codes.utils.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"declared-refusal-codes.utils.d.ts","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/declared-refusal-codes.utils.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,6EAA6E;IAC7E,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;CAClC;AAOD,wBAAgB,uBAAuB,CAAC,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,eAAe,EAAE,CAwBrH;AAED,2DAA2D;AAC3D,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEpD"}
|