@wildo-ai/dev-companion 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/__tests__/asset-noop.d.ts.map +1 -1
- package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +1 -1
- package/dist/esm/__tests__/internal-test-view.d.ts.map +1 -1
- package/dist/esm/__time-gov.probe.d.mts +0 -0
- package/dist/esm/__time-gov.probe.d.mts.map +0 -0
- package/dist/esm/__time-gov.probe.mjs.map +0 -0
- package/dist/esm/brand/models/logo-creative-brief.schemas.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.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.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 +24 -5
- package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
- package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts +7 -0
- package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/logo-deliberation.companion.service.js +7 -0
- 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 +143 -0
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.map +1 -0
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js +84 -0
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js.map +1 -0
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +129 -16
- 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 +173 -11
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
- package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts +85 -0
- package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts.map +1 -0
- package/dist/esm/claude-cli/models/coding-session-frame-retention.js +122 -0
- package/dist/esm/claude-cli/models/coding-session-frame-retention.js.map +1 -0
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +98 -0
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -0
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js +135 -0
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -0
- package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts +94 -0
- package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts.map +1 -0
- package/dist/esm/claude-cli/models/parked-question-answer.models.js +137 -0
- package/dist/esm/claude-cli/models/parked-question-answer.models.js.map +1 -0
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts +16 -0
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts.map +1 -0
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js +46 -0
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -0
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts +46 -0
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +1 -0
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js +135 -0
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +1 -0
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +131 -0
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -0
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +371 -0
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -0
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +679 -78
- 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 +1909 -420
- 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 +109 -0
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -0
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js +186 -0
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -0
- package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts +215 -7
- 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 +532 -60
- package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts +27 -6
- 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 +97 -6
- 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.map +1 -1
- 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-raw-feature-id-literals.companion.d.ts.map +1 -1
- package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js +8 -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 +219 -142
- package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.js +52 -6
- package/dist/esm/companion-api/companion-api.schemas.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-token-floor.policy.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.js +14 -3
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.d.ts +170 -13
- package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.js +520 -87
- package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts +39 -4
- 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 +39 -4
- 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.models.d.ts.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-rating-catalog-context.factory.d.ts.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/blog-posting-catalog-context.factory.d.ts.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/faq-page-catalog-context.factory.d.ts.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/organization-catalog-context.factory.d.ts.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/review-catalog-context.factory.d.ts.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/website-catalog-context.factory.d.ts.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 +54 -0
- package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts.map +1 -0
- package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js +78 -0
- package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js.map +1 -0
- package/dist/esm/core/config/primary-language.companion.utils.d.ts +13 -0
- package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/config/primary-language.companion.utils.js +12 -0
- package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
- package/dist/esm/core/context/companion-context.d.ts.map +1 -1
- package/dist/esm/core/context/companion-context.js +4 -0
- package/dist/esm/core/context/companion-context.js.map +1 -1
- package/dist/esm/core/context/companion-package-loaders.companion.d.ts +57 -0
- package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
- package/dist/esm/core/context/companion-package-loaders.companion.js +181 -7
- package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
- package/dist/esm/core/context/draft-family-values.companion.d.ts +23 -0
- package/dist/esm/core/context/draft-family-values.companion.d.ts.map +1 -0
- package/dist/esm/core/context/draft-family-values.companion.js +49 -0
- package/dist/esm/core/context/draft-family-values.companion.js.map +1 -0
- package/dist/esm/core/inject/models/container.d.ts.map +1 -1
- package/dist/esm/core/inject/models/container.js +28 -4
- package/dist/esm/core/inject/models/container.js.map +1 -1
- package/dist/esm/core/inject/models/service-types.d.ts +12 -2
- package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
- package/dist/esm/core/inject/models/service-types.js +14 -2
- 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 +74 -2
- 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 +37 -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 +55 -0
- package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts +93 -0
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.js +290 -0
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -0
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +630 -16
- 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 +592 -17
- 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 +1417 -93
- 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 +61 -4
- 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 +136 -10
- 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 +11 -0
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts +21 -0
- 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 +21 -3
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js +11 -3
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts +15 -5
- 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 +28 -15
- 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 +24 -0
- 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 +29 -5
- 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/subprocess/app-shell-placement-content.behavior.d.ts +116 -0
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts.map +1 -0
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js +223 -0
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js.map +1 -0
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts +9 -6
- 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 +2 -1
- package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/assertions.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-register.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +82 -49
- 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-module-exports.utils.d.ts.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/engine-resource-population.subprocess.utils.d.ts +33 -0
- package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts.map +1 -0
- package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js +59 -0
- package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js.map +1 -0
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts +33 -0
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts +0 -0
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts.map +0 -0
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.js.map +0 -0
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js +46 -140
- 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 +15 -0
- 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 +140 -46
- 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-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts +24 -0
- 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 +116 -10
- 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 +79 -0
- package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts.map +1 -0
- package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js +49 -0
- package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js.map +1 -0
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +314 -212
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts +72 -0
- package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts.map +1 -0
- package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js +123 -0
- package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js.map +1 -0
- package/dist/esm/core/introspection/workspace-element-index.companion.d.ts +184 -0
- package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/workspace-element-index.companion.js +311 -0
- package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -0
- package/dist/esm/core/introspection/workspace-elements.companion.d.ts +54 -0
- package/dist/esm/core/introspection/workspace-elements.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/workspace-elements.companion.js +43 -0
- package/dist/esm/core/introspection/workspace-elements.companion.js.map +1 -0
- 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 +7 -0
- 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 +7 -4
- package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.schemas.js +1 -0
- package/dist/esm/core/lock/wildo-saas-lock.schemas.js.map +1 -1
- package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts +31 -0
- package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts.map +1 -0
- package/dist/esm/core/runtime/application-runtime-liveness.companion.js +53 -0
- package/dist/esm/core/runtime/application-runtime-liveness.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 +30 -1
- package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/models/companion-runtime.models.d.ts.map +1 -1
- package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts +54 -0
- package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts.map +1 -0
- package/dist/esm/core/runtime/services/file-storage-initialization.companion.js +54 -0
- package/dist/esm/core/runtime/services/file-storage-initialization.companion.js.map +1 -0
- package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +11 -2
- 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 +182 -31
- 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-platform-config.companion.d.ts +3 -3
- 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 +27 -9
- 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/platform-core-domain-modules.companion.d.ts.map +1 -1
- package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts +0 -4
- package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/cross-registry-rendering.shared.js +0 -4
- 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/feature-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.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/non-composite-view-specification-context.shared.d.ts.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 +6 -34
- 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/resource-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/resource-specification-context.factory.js +2 -0
- 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/specification-context-factory.d.ts.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.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.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-custom-implementation-context.template.d.ts.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-translation-context.template.d.ts.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-custom-implementation-context.template.d.ts.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-translation-context.template.d.ts.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-custom-implementation-context.template.d.ts.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-translation-context.template.d.ts.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-custom-implementation-context.template.d.ts.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-translation-context.template.d.ts.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-custom-implementation-context.template.d.ts.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-translation-context.template.d.ts.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-custom-implementation-context.template.d.ts.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-translation-context.template.d.ts.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-custom-implementation-context.template.d.ts.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-translation-context.template.d.ts.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-custom-implementation-context.template.d.ts.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-translation-context.template.d.ts.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-custom-implementation-context.template.d.ts.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-translation-context.template.d.ts.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-custom-implementation-context.template.d.ts.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-translation-context.template.d.ts.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-custom-implementation-context.template.d.ts.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-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts +4 -2
- 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 +12 -2
- 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.service.d.ts +21 -1
- package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.service.js +25 -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/derived-input-signature.companion.utils.d.ts +45 -0
- package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts.map +1 -0
- package/dist/esm/core/utils/derived-input-signature.companion.utils.js +96 -0
- package/dist/esm/core/utils/derived-input-signature.companion.utils.js.map +1 -0
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts +35 -0
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -0
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js +118 -0
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -0
- package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts +34 -0
- package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -0
- package/dist/esm/creation-conversation/creation-conversation.function-tools.js +280 -0
- package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -0
- 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.map +1 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.d.ts +19 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.js +61 -5
- package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts +3 -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 +7 -2
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
- package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
- package/dist/esm/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 +30 -0
- package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.js +92 -41
- 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-template-fs-discovery.utils.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts +34 -0
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -0
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js +130 -0
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -0
- package/dist/esm/executions/services/companion-executions.companion.service.d.ts +36 -3
- package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.js +136 -5
- 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.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts +5 -0
- 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 +58 -8
- 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 +8 -0
- package/dist/esm/expert-personas/services/persona-source-ownership.d.ts.map +1 -0
- package/dist/esm/expert-personas/services/persona-source-ownership.js +83 -0
- package/dist/esm/expert-personas/services/persona-source-ownership.js.map +1 -0
- package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts +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 +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 +4 -4
- 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 +4 -4
- 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 +2 -2
- 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 +2 -2
- 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_NAVIGATION_BACK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts +4 -2
- 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 +5 -3
- 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 +2 -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 +2 -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 +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 +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 +6 -5
- package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js +7 -6
- 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 +3 -3
- 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 +3 -3
- 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_USER_DROPDOWN.en.d.ts +2 -2
- 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 +2 -2
- 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 +2 -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 +2 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts +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 +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 +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 +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 +43 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js +43 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts +26 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js +26 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js.map +1 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts +18 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js +18 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js.map +1 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts +3 -3
- 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 +3 -3
- 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 +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 +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 +2 -2
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js +2 -2
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts +4 -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 +4 -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 +10 -10
- 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 +10 -10
- 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 +25 -13
- 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 +26 -14
- 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 +1 -0
- 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 +2 -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 +17 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js +17 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js.map +1 -0
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts +5 -5
- 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 +5 -5
- 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 +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 +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 +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 +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 +16 -2
- 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 +16 -2
- 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 +3 -3
- 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 +3 -3
- 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_AI_ACTOR.en.d.ts +8 -8
- 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 +8 -8
- 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 +14 -14
- 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 +14 -14
- 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 +22 -6
- 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 +23 -7
- 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 +2 -2
- 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 +2 -2
- 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 +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 +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_CODE_BLOCK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts +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 +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 +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 +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_DECISION.en.d.ts +2 -2
- 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 +2 -2
- 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 +21 -0
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js +21 -0
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts +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 +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 +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 +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_NODE.en.d.ts.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_MESSAGE.en.d.ts +2 -2
- 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 +2 -2
- 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 +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 +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_PLAN.en.d.ts.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_SYSTEM_CATALOG.en.d.ts +4 -5
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js +4 -5
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts +4 -4
- 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 +4 -4
- 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 +2 -2
- 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 +2 -2
- 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 +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 +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 +1 -0
- 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 +2 -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 +25 -0
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js +25 -0
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts +1 -0
- 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 +2 -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 +3 -2
- 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 +4 -3
- 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 +3 -2
- 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 +4 -3
- 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 +3 -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 +4 -2
- 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_BUTTON.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.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_COLOR_INPUT.en.d.ts +3 -3
- 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 +3 -3
- 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 +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 +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 +3 -3
- 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 +3 -3
- 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 +15 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js +15 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts +12 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js +12 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts +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 +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_CODE.en.d.ts +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 +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_FILE.en.d.ts +4 -3
- 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 +4 -3
- 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 +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 +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 +3 -0
- 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 +4 -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_IMAGE.en.d.ts +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 +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_MONEY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +22 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js +22 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts +2 -2
- 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 +2 -2
- 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_UNAVAILABLE_PROMPT.en.d.ts +6 -6
- 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 +6 -6
- 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 +3 -3
- 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 +3 -3
- 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 +15 -8
- 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 +16 -9
- 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 +20 -0
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js +20 -0
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.map +1 -0
- 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_CODE.en.d.ts +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 +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 +39 -20
- 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 +39 -20
- 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_STRING.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts +5 -5
- 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 +5 -5
- 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_LOADING_OVERLAY.en.d.ts.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_OPERATIONS_CONFIRM_CRITICAL.en.d.ts +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 +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_PAGINATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts +13 -0
- package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js +13 -0
- package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts +13 -0
- package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js +13 -0
- package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts +3 -3
- package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js +3 -3
- 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 +15 -0
- package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js +15 -0
- package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js.map +1 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts +5 -3
- 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 +6 -4
- 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 +10 -9
- 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 +11 -10
- 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 +5 -5
- 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 +5 -5
- 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 +6 -6
- 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 +6 -6
- 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 +7 -7
- 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 +7 -7
- 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 +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 +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 +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 +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 +4 -4
- 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 +4 -4
- 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 +24 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js +24 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js.map +1 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts +6 -4
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js +6 -4
- 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 +14 -10
- 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 +14 -10
- 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 +6 -6
- 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 +6 -6
- 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 +11 -8
- 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 +12 -9
- 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 +9 -8
- 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 +9 -8
- 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 +25 -9
- 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 +25 -9
- 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 +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 +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 +2 -2
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js +2 -2
- 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 +1 -0
- 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 +2 -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 +25 -24
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js +26 -25
- 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 +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 +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 +3 -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 +4 -2
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts +2 -2
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js +2 -2
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts +11 -11
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js +11 -11
- 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 +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 +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 +12 -0
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js +13 -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_READ.en.d.ts +6 -6
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js +6 -6
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts +2 -2
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js +2 -2
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts +2 -2
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js +2 -2
- 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_banner.en.d.ts +1 -1
- package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_banner.en.js +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_checklist.en.d.ts +2 -2
- package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist.en.js +2 -2
- package/dist/esm/i18n/components/guidance_checklist.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts +1 -0
- package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist_item.en.js +2 -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_onboarding_view.en.d.ts +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 +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 +1 -0
- package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_survey.en.js +2 -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_tour.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts +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 +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 +5 -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 +6 -2
- package/dist/esm/i18n/components/progression_milestone_tracker.en.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts +0 -13
- package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts.map +0 -1
- package/dist/esm/i18n/composite_views/app.creation-board.en.js.map +0 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts +17 -0
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -0
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.js +252 -0
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -0
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts +15 -0
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -0
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.js +58 -0
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -0
- package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
- package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts +96 -0
- package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -0
- package/dist/esm/i18n/errors_messages/errors-messages.en.js +54 -0
- package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -0
- package/dist/esm/i18n/index.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts +2014 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js +516 -0
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts +878 -8
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js +247 -0
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts +504 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js +153 -0
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchAspects.en.d.ts +78 -0
- package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchAspects.en.js +255 -0
- package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts +149 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js +79 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js.map +1 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts +89 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js +74 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -0
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts +70 -5
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js +67 -0
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts +80 -0
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js +50 -0
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -0
- package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts +95 -0
- package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js +54 -0
- package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js.map +1 -0
- package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts +95 -0
- package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js +51 -0
- package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js.map +1 -0
- package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts +1 -1
- package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDomainResources.en.js +2 -2
- package/dist/esm/i18n/resources/workbenchDomainResources.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts +108 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +61 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -0
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts +99 -0
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js +87 -0
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -0
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts +121 -0
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js +84 -0
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js.map +1 -0
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts +83 -0
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js +71 -0
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -0
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts +159 -0
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js +103 -0
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -0
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts +142 -6
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.js +103 -0
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts +94 -4
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js +79 -0
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +5074 -257
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +1201 -44
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts +86 -3
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.js +90 -0
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts +97 -0
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js +77 -0
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/application-creation.en.d.ts +272 -0
- package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/application-creation.en.js +319 -0
- package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts +154 -0
- package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/compliance-programme.en.js +154 -0
- package/dist/esm/i18n/system_enums/compliance-programme.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/flows-actors.en.d.ts +54 -0
- package/dist/esm/i18n/system_enums/flows-actors.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/flows-actors.en.js +54 -0
- package/dist/esm/i18n/system_enums/flows-actors.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/market.en.d.ts +12 -2
- package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/market.en.js +12 -2
- package/dist/esm/i18n/system_enums/market.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/processor-register.en.d.ts +43 -0
- package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/processor-register.en.js +43 -0
- package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/risk-register.en.d.ts +56 -0
- package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/risk-register.en.js +56 -0
- package/dist/esm/i18n/system_enums/risk-register.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-build.en.d.ts +50 -0
- package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-build.en.js +55 -0
- package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts +47 -0
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.js +48 -0
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts +18 -0
- package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-dossier.en.js +18 -0
- package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts +29 -0
- package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js +29 -0
- package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts +24 -0
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js +24 -0
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -0
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +51 -3
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-unit.models.js +36 -2
- 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/labelling-planner.companion.service.d.ts +26 -16
- 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 +167 -40
- 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 +8 -8
- 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 +45 -39
- 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 +104 -0
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +456 -16
- 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 +30 -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 +91 -0
- package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js +149 -0
- package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts +27 -0
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js +44 -0
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts +27 -0
- 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 +27 -0
- 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 +12 -0
- package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js +58 -1
- package/dist/esm/i18n-labelling/utils/guidance-keys.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 +19 -0
- package/dist/esm/i18n-labelling/utils/label-file-source.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.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 +10 -0
- package/dist/esm/i18n-labelling/utils/per-unit-file.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/schema-fields-extractor.utils.d.ts +27 -24
- 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 +176 -136
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts +11 -0
- 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 +27 -3
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/market/services/market-generation.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts +29 -0
- package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js +59 -0
- package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.map +1 -0
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts +35 -0
- 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 +69 -3
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.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 +6 -4
- 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 +1 -0
- 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 +21 -0
- 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 +46 -0
- package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/build-task-rearm.models.js +43 -0
- package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -0
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts +34 -0
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.js +59 -0
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.js.map +1 -0
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts +65 -0
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js +83 -0
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -0
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts +69 -7
- 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 +70 -7
- 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 +27 -5
- 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 +208 -0
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js +273 -0
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -0
- package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts +356 -0
- package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/playbook-run-record.models.js +417 -0
- package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -0
- package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts +14 -0
- package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js +21 -0
- package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js.map +1 -0
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js +3 -1
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts +65 -0
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js +148 -0
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +929 -51
- 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 +2047 -146
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +115 -36
- 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 +270 -47
- 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 +402 -16
- 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 +1398 -70
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts +47 -0
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js +103 -0
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts +29 -0
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js +88 -0
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts +47 -0
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js +102 -0
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts +0 -0
- package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts.map +0 -0
- package/dist/esm/meta-workflows/services/creator-inputs.companion.service.js.map +0 -0
- package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +81 -0
- package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/dossier.companion.service.js +231 -0
- package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts +36 -0
- package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js +72 -0
- package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js.map +1 -0
- package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts +82 -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 +200 -31
- 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 +16 -0
- package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js +29 -0
- package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js.map +1 -0
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts +196 -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 +380 -10
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts +2 -0
- package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/landed-module-import.companion.js +36 -0
- package/dist/esm/meta-workflows/services/landed-module-import.companion.js.map +1 -0
- package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +57 -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 +83 -3
- 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 +949 -177
- 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 +3151 -454
- 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 +100 -0
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js +156 -0
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts +49 -0
- package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js +93 -0
- package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js.map +1 -0
- package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts +45 -0
- package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts.map +1 -0
- package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js +145 -0
- package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js.map +1 -0
- package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts +33 -9
- 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 +70 -29
- 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 +20 -5
- 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 +38 -16
- 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-pilot-assets.companion.service.d.ts.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 +18 -18
- package/dist/esm/i18n/composite_views/app.creation-board.en.js +0 -91
- package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.d.ts +0 -92
- package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.d.ts.map +0 -1
- package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.js +0 -178
- package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.js.map +0 -1
- package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.d.ts +0 -107
- package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.d.ts.map +0 -1
- package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.js +0 -188
- package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-template.companion.service.js","sourceRoot":"","sources":["../../../../src/email/services/email-template.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,+BAA+B,EAG/B,aAAa,EACb,0BAA0B,EAC1B,kBAAkB,EAElB,mBAAmB,GACpB,MAAM,4BAA4B,CAAC;AAQpC,OAAO,EACL,sCAAsC,EACtC,qCAAqC,GACtC,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAEL,qBAAqB,EACrB,iBAAiB,EACjB,SAAS,EACT,2BAA2B,EAC3B,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM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MAAM,CAAC,uBAAuB,CAAC,2BAA2B,CAAC,CAAA;IAE3D,WAAA,MAAM,CAAC,uBAAuB,CAAC,mBAAmB,CAAC,CAAA;IAEnD,YAAA,MAAM,CAAC,uBAAuB,CAAC,sBAAsB,CAAC,CAAA;qCAbK,aAAa;QACM,0BAA0B,4DAS3D,oCAAoC;QAE5C,4BAA4B;QAEzB,sCAAsC;GAlBtE,6BAA6B,CA+rDzC","sourcesContent":["import * as fs from 'node:fs/promises';\nimport path from 'node:path';\nimport { pathToFileURL } from 'node:url';\nimport { render } from '@react-email/render';\nimport { injectable, inject } from 'inversify';\nimport { z } from 'zod';\nimport {\n buildEmailBrandTokensFromConfig,\n type EmailTemplateDefinitionsMap,\n type EmailTemplateRegistryBackendService,\n LoggerService,\n ErrorBuilderBackendService,\n SAAS_SERVICE_TYPES,\n type AgentsBackendService,\n describeCaughtError,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n LLMProvider_GenerateTextInputSchema,\n LLMProvider_GenerateTextOutputSchema,\n LLMProvider_OperationContext_BaseSchema,\n LLMProvider_GenerateStructuredInputSchema,\n LLMProvider_GenerateStructuredOutputSchema,\n} from '@wildo-ai/external-connectors-models';\nimport {\n getCompanionConfiguredFallbackLanguage,\n getCompanionConfiguredPrimaryLanguage,\n} from '../../core/config/primary-language.companion.utils';\nimport {\n FlowsActors_Agent_Invocation,\n BrandAssetComposition,\n BrandAssetPurpose,\n ErrorType,\n ErrorCustomMessageReference,\n EmailTemplateType,\n isWildoBackendError,\n} from '@wildo-ai/saas-models';\nimport { AvailableLanguage, LANGUAGE_INFO_MAP } from '@wildo-ai/presets-components-models';\nimport {\n resolveEmailTemplateArtifactTargets,\n labelsFilePath,\n readUtf8File,\n writeUtf8File,\n fileExists,\n} from '../utils/email-template-fs-discovery.utils';\nimport {\n parseEmailLabelsTsSource,\n formatLabelsTsFile,\n} from '../utils/email-labels-file-source.utils';\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport {\n loadBackendCompanionExports,\n resolvePrimaryBackendServiceTarget,\n} from '../../core/context/companion-package-loaders.companion';\nimport { TranslationPlacementCompanionService } from '../../core/introspection/services/translation-placement.companion.service';\nimport { CompanionTraceabilityService } from '../../core/traceability/companion-traceability.service';\nimport { EmailSpecContextLoaderCompanionService } from './email-spec-context-loader.companion.service';\nimport {\n CompanionTraceabilityLevel,\n CompanionTraceArtifactFormat,\n type CompanionExecutionSessionContext,\n} from '../../core/traceability/companion-traceability.models';\n\n// Import email services - these are injected via DI, so we only need the types\nimport type { AppConfigurationService } from '@wildo-ai/saas-backend-lib';\nimport type { EmailBackendService } from '@wildo-ai/saas-backend-lib';\nimport type { EmailTemplateValidatorBackendService } from '@wildo-ai/saas-backend-lib';\n\n/**\n * Request for generating email templates\n */\nexport interface GenerateEmailTemplatesRequest {\n /** Force regenerate even if template exists */\n forceRegenerate?: boolean;\n /** Specific template refs to generate (empty = all) */\n templateRefs?: string[];\n /** Specific locales to generate (empty = all configured) */\n locales?: AvailableLanguage[];\n}\n\n/**\n * Request for previewing an email template\n */\nexport interface PreviewEmailTemplateRequest {\n templateRef: string;\n locale: AvailableLanguage;\n /** Mock context data for preview */\n mockContext?: {\n currentObject?: Record<string, unknown>;\n userContext?: {\n email: string;\n name?: string;\n firstName?: string;\n };\n additionalContext?: Record<string, unknown>;\n };\n}\n\n/**\n * Preview result\n */\nexport interface PreviewEmailTemplateResult {\n templateRef: string;\n locale: AvailableLanguage;\n resolvedLocale?: string;\n subject: string;\n bodyHtml: string;\n bodyText?: string;\n previewedAt: string;\n}\n\n/**\n * Request for sending a test email\n */\nexport interface TestSendEmailRequest {\n templateRef: string;\n locale: AvailableLanguage;\n /** Recipient email address for test */\n recipientEmail: string;\n /** Mock context data for test */\n mockContext?: {\n currentObject?: Record<string, unknown>;\n userContext?: {\n email: string;\n name?: string;\n firstName?: string;\n };\n additionalContext?: Record<string, unknown>;\n };\n}\n\n/**\n * Test send result\n */\nexport interface TestSendEmailResult {\n success: boolean;\n templateRef: string;\n locale: AvailableLanguage;\n recipientEmail: string;\n /** All provider receipts returned for the test submission. */\n providerMessageIds: string[];\n error?: string;\n sentAt: string;\n}\n\n/**\n * Template status result\n */\nexport interface EmailTemplateStatusResult {\n ownerId: string;\n templateRef: string;\n templatePath: string;\n templateExists: boolean;\n locales: Array<{\n locale: string;\n labelsPath: string;\n exists: boolean;\n updatedAt: string;\n }>;\n}\n\n/**\n * Translate filesystem `labels.{primaryLocale}.ts` → `labels.{targetLocale}.ts` for each template directory.\n *\n * The source locale is always the SaaS application's configured primary\n * language from `appPreferences.languages.defaultLanguage`.\n */\nexport interface TranslateEmailTemplateLabelsRequest {\n /** Target locale codes (e.g. fr, de) — must match `AvailableLanguage` enum values */\n targetLocales: string[];\n /** Limit to specific registry template refs; omit for all */\n templateRefs?: string[];\n /** When true, only report planned writes (no LLM, no disk writes) */\n dryRun?: boolean;\n}\n\nexport interface TranslateEmailTemplateLabelsResult {\n translatedFiles: number;\n skipped: number;\n failed: number;\n warnings: string[];\n details: Array<{\n ownerId: string;\n templateRef: string;\n targetLocale: string;\n success: boolean;\n outputPath?: string;\n error?: string;\n }>;\n completedAt: string;\n}\n\nexport interface GenerateEmailTemplatesResult {\n generated: number;\n skipped: number;\n failed: number;\n warnings: string[];\n details: Array<{\n ownerId: string;\n templateRef: string;\n locale: AvailableLanguage;\n success: boolean;\n skipped?: boolean;\n templatePath?: string;\n labelsPath?: string;\n errors?: string[];\n }>;\n generatedAt: string;\n}\n\ninterface GeneratedEmailTemplateBundle {\n templateSource: string;\n labels: Record<string, string>;\n}\n\nfunction formatUnknownError(error: unknown): string {\n if (error instanceof Error) {\n return error.message;\n }\n\n if (typeof error === 'string') {\n return error;\n }\n\n if (typeof error === 'object' && error !== null) {\n if ('message' in error && typeof error.message === 'string') {\n return error.message;\n }\n\n try {\n return JSON.stringify(error);\n } catch {\n return String(error);\n }\n }\n\n return String(error);\n}\n\n/**\n * Email Template Companion Service\n * \n * Handles email template generation, preview, and testing operations\n * for the dev companion API.\n */\n@injectable()\nexport class EmailTemplateCompanionService {\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) private readonly appConfigService: AppConfigurationService,\n @inject(SAAS_SERVICE_TYPES.EmailTemplateValidator) private readonly emailTemplateValidator: EmailTemplateValidatorBackendService,\n @inject(SAAS_SERVICE_TYPES.EmailTemplateRegistry) private readonly emailTemplateRegistry: EmailTemplateRegistryBackendService,\n @inject(SAAS_SERVICE_TYPES.EmailService) private readonly emailService: EmailBackendService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext)\n private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.TranslationPlacementService)\n private readonly translationPlacementService: TranslationPlacementCompanionService,\n @inject(COMPANION_SERVICE_TYPES.TraceabilityService)\n private readonly traceabilityService: CompanionTraceabilityService,\n @inject(COMPANION_SERVICE_TYPES.EmailSpecContextLoader)\n private readonly emailSpecContextLoader: EmailSpecContextLoaderCompanionService,\n ) {\n this.logDebug = this.logger.debugByType('EmailTemplateCompanion');\n this.logger.setDebugTypeLogging('EmailTemplateCompanion', true);\n }\n\n /**\n * Generate primary-locale filesystem email template artifacts using LLM.\n */\n async generateTemplates(\n request: GenerateEmailTemplatesRequest,\n sessionContext?: CompanionExecutionSessionContext,\n ): Promise<GenerateEmailTemplatesResult> {\n this.logDebug('Generating email templates...', { request });\n const traceStep = this.createWrapperTraceStep(sessionContext, 'generate-templates');\n await this.traceWrapperStart(\n sessionContext,\n traceStep,\n 'email-template-generation-wrapper-start',\n 'Generate email templates',\n {\n forceRegenerate: request.forceRegenerate === true,\n templateRefs: request.templateRefs ?? [],\n locales: request.locales ?? [],\n },\n 'email-template-generation-wrapper-request.json',\n request,\n );\n\n try {\n const primaryLocale = this.resolvePrimaryGenerationLocale(request.locales);\n const snapshot = await this.translationPlacementService.getPlacementSnapshot({\n includeShared: false,\n includeFrontend: false,\n includeBackendEmail: true,\n });\n const ownership = snapshot.backendEmail.flatMap((entry) => entry.emailTemplateOwnership);\n const targets = resolveEmailTemplateArtifactTargets(\n this.getWorkspaceRoot(),\n ownership,\n request.templateRefs,\n );\n this.assertResolvedEmailTargetsOrThrow(targets, snapshot.warnings, request.templateRefs);\n\n const details: GenerateEmailTemplatesResult['details'] = [];\n let generated = 0;\n let skipped = 0;\n let failed = 0;\n\n for (const target of targets) {\n const labelsPath = labelsFilePath(target.dirPath, primaryLocale);\n\n try {\n const hasTemplate = await fileExists(target.templatePath);\n const hasLabels = await fileExists(labelsPath);\n const existingLabels = hasLabels ? await this.tryReadExistingLabels(labelsPath) : null;\n\n if (\n !request.forceRegenerate\n && hasTemplate\n && existingLabels\n && Object.keys(existingLabels).length > 0\n ) {\n skipped++;\n details.push({\n ownerId: target.ownerId,\n templateRef: target.templateRef,\n locale: primaryLocale,\n success: true,\n skipped: true,\n templatePath: target.templatePath,\n labelsPath,\n });\n continue;\n }\n\n const currentTemplateSource = hasTemplate\n ? await readUtf8File(target.templatePath)\n : null;\n const labelsTypeName = this.buildLabelsTypeName(target.templateRef);\n const generatedBundle = await this.generateTemplateArtifactsWithAgent({\n templateRef: target.templateRef,\n locale: primaryLocale,\n labelsTypeName,\n currentTemplateSource,\n existingLabels: existingLabels ?? undefined,\n }, sessionContext);\n this.assertTemplateLabelsConsistencyOrThrow(\n generatedBundle.templateSource,\n generatedBundle.labels,\n );\n\n const validation = await this.emailTemplateValidator.validate(generatedBundle.templateSource);\n if (!validation.valid) {\n throw new Error(validation.errors.join(', '));\n }\n\n await writeUtf8File(target.templatePath, this.normalizeGeneratedTemplateSource(generatedBundle.templateSource));\n await writeUtf8File(\n labelsPath,\n formatLabelsTsFile({\n localeCode: primaryLocale,\n localeDisplayName: LANGUAGE_INFO_MAP[primaryLocale]?.name ?? primaryLocale,\n isPrimaryLocale: true,\n entries: generatedBundle.labels,\n labelsTypeName,\n usesAsConst: true,\n }),\n );\n\n generated++;\n details.push({\n ownerId: target.ownerId,\n templateRef: target.templateRef,\n locale: primaryLocale,\n success: true,\n templatePath: target.templatePath,\n labelsPath,\n });\n } catch (error) {\n failed++;\n details.push({\n ownerId: target.ownerId,\n templateRef: target.templateRef,\n locale: primaryLocale,\n success: false,\n templatePath: target.templatePath,\n labelsPath,\n errors: [formatUnknownError(error)],\n });\n }\n }\n\n await this.refreshEmailTemplateRegistry();\n\n const result = {\n generated,\n skipped,\n failed,\n warnings: snapshot.warnings,\n details,\n generatedAt: new Date().toISOString(),\n };\n const completedWithFailures = failed > 0;\n await this.traceWrapperSuccess(\n sessionContext,\n traceStep,\n completedWithFailures\n ? 'email-template-generation-wrapper-mixed-result'\n : 'email-template-generation-wrapper-success',\n completedWithFailures\n ? `Generated email templates for ${generated} targets with ${failed} failures`\n : `Generated email templates for ${generated} targets`,\n {\n generated,\n skipped,\n failed,\n warningCount: snapshot.warnings.length,\n },\n 'email-template-generation-wrapper-result.json',\n result,\n );\n return result;\n } catch (error) {\n await this.traceWrapperFailure(\n sessionContext,\n traceStep,\n 'email-template-generation-wrapper-failure',\n 'Email template generation failed',\n error,\n {\n forceRegenerate: request.forceRegenerate === true,\n templateRefs: request.templateRefs ?? [],\n locales: request.locales ?? [],\n },\n );\n throw error;\n }\n }\n\n /**\n * Preview an email template with mock context\n */\n async previewTemplate(\n request: PreviewEmailTemplateRequest,\n sessionContext?: CompanionExecutionSessionContext,\n ): Promise<PreviewEmailTemplateResult> {\n this.logDebug('Previewing email template...', { \n templateRef: request.templateRef, \n locale: request.locale,\n });\n\n const traceStep = this.createWrapperTraceStep(sessionContext, `preview-${request.templateRef}`);\n await this.traceWrapperStart(\n sessionContext,\n traceStep,\n 'email-template-preview-start',\n `Preview email template ${request.templateRef}`,\n {\n templateRef: request.templateRef,\n locale: request.locale,\n },\n 'email-template-preview-request.json',\n request,\n );\n\n try {\n\n await this.refreshEmailTemplateRegistry();\n const resolved = this.emailTemplateRegistry.resolve(\n request.templateRef,\n request.locale,\n this.getDefaultLocale(),\n this.getFallbackLocale(),\n );\n\n const defaultUserContext = {\n userId: 'preview-user-id',\n email: 'preview@example.com',\n name: 'Preview User',\n firstName: 'Preview',\n };\n \n const mockContext = {\n currentObject: request.mockContext?.currentObject || { _id: 'preview-id', title: 'Preview Object' },\n objectContext: {\n primaryScopeContext: {\n appName: 'Preview App',\n applicationId: 'preview-app-id',\n organizationName: 'Preview Organization',\n /*\n * THE LOGO IS SCOPE-RESOLVED, and this context omitted it — so no preview could ever\n * show one (#567).\n *\n * `EmailBrandTokens` deliberately carries no logo field (see the note in\n * `color-conversion.utils.ts`); every real sender resolves it here instead, through\n * `resolveBrandLogoAbsoluteUrl` with the LOCKUP/EMAIL pair — the verification initiator,\n * the password reset, the authentication controller and the notifications dispatcher all\n * do exactly this. The preview was the fifth site of that resolution and was the one\n * that did not perform it, so a template rendering `<img src={logoUrl}>` produced\n * nothing HERE while producing a logo in every real send.\n *\n * That is why the SAME resolver is called rather than a preview-specific placeholder: a\n * preview whose logo comes from somewhere else answers a question nobody asked. An\n * application that configures no email lockup still resolves to `undefined`, and the\n * template then renders whatever it renders without one — which is the truthful answer,\n * and now a visible one.\n */\n logoUrl: this.appConfigService.resolveBrandLogoAbsoluteUrl({\n composition: BrandAssetComposition.LOCKUP,\n purpose: BrandAssetPurpose.EMAIL,\n }) ?? undefined,\n },\n },\n userContext: request.mockContext?.userContext \n ? { userId: 'preview-user-id', ...request.mockContext.userContext }\n : defaultUserContext,\n additionalContext: request.mockContext?.additionalContext || {},\n };\n\n const brandTokens = this.getDesignTokens();\n const templateProps = {\n context: mockContext,\n brand: brandTokens,\n labels: resolved.labels,\n };\n\n const subject = resolved.definition.subject(templateProps);\n const bodyElement = resolved.definition.body(templateProps);\n const bodyHtml = await render(bodyElement, { pretty: true });\n const bodyText = await render(bodyElement, { plainText: true });\n\n const previewResult = {\n templateRef: request.templateRef,\n locale: request.locale,\n resolvedLocale: resolved.resolvedLocale,\n subject,\n bodyHtml,\n bodyText,\n previewedAt: new Date().toISOString(),\n };\n await this.traceWrapperSuccess(\n sessionContext,\n traceStep,\n 'email-template-preview-success',\n `Previewed email template ${request.templateRef}`,\n {\n templateRef: request.templateRef,\n locale: request.locale,\n resolvedLocale: resolved.resolvedLocale ?? null,\n },\n 'email-template-preview-result.json',\n previewResult,\n );\n return previewResult;\n } catch (error) {\n await this.traceWrapperFailure(\n sessionContext,\n traceStep,\n 'email-template-preview-failure',\n `Failed to preview email template ${request.templateRef}`,\n error,\n {\n templateRef: request.templateRef,\n locale: request.locale,\n },\n );\n if (isWildoBackendError(error) || (error as { customMessageReference?: unknown })?.customMessageReference) {\n throw error;\n }\n\n this.logger.error('Failed to preview email template', {\n templateRef: request.templateRef,\n locale: request.locale,\n error: formatUnknownError(error),\n });\n\n throw this.errorBuilder.buildFromStandardError(error, undefined, {\n customMessageReference: ErrorCustomMessageReference.INTERNAL,\n context: { operation: 'previewTemplate' },\n });\n }\n }\n\n /**\n * Send a test email using a template\n */\n async testSend(\n request: TestSendEmailRequest,\n sessionContext?: CompanionExecutionSessionContext,\n ): Promise<TestSendEmailResult> {\n this.logDebug('Sending test email...', {\n templateRef: request.templateRef,\n locale: request.locale,\n recipientEmail: request.recipientEmail,\n });\n\n const traceStep = this.createWrapperTraceStep(sessionContext, `test-send-${request.templateRef}`);\n await this.traceWrapperStart(\n sessionContext,\n traceStep,\n 'email-template-test-send-start',\n `Send test email for template ${request.templateRef}`,\n {\n templateRef: request.templateRef,\n locale: request.locale,\n recipientEmail: request.recipientEmail,\n },\n 'email-template-test-send-request.json',\n request,\n );\n\n try {\n\n await this.refreshEmailTemplateRegistry();\n const defaultUserContext = {\n userId: 'test-user-id',\n email: request.recipientEmail,\n name: 'Test User',\n firstName: 'Test',\n };\n \n const context = {\n currentObject: request.mockContext?.currentObject || { _id: 'test-id', title: 'Test Object' },\n objectContext: {\n primaryScopeContext: {\n appName: 'Test App',\n applicationId: 'test-app-id',\n organizationName: 'Test Organization',\n },\n },\n userContext: request.mockContext?.userContext \n ? { userId: 'test-user-id', ...request.mockContext.userContext }\n : defaultUserContext,\n additionalContext: request.mockContext?.additionalContext || {},\n };\n\n const result = await this.emailService.send({\n templateRef: request.templateRef,\n locale: request.locale,\n type: EmailTemplateType.TRANSACTIONAL,\n to: request.recipientEmail,\n context,\n });\n\n const sendResult = {\n success: result.success,\n templateRef: request.templateRef,\n locale: request.locale,\n recipientEmail: request.recipientEmail,\n providerMessageIds: result.providerMessageIds,\n error: result.error,\n sentAt: new Date().toISOString(),\n };\n await this.traceWrapperSuccess(\n sessionContext,\n traceStep,\n 'email-template-test-send-success',\n `Sent test email for template ${request.templateRef}`,\n {\n templateRef: request.templateRef,\n locale: request.locale,\n recipientEmail: request.recipientEmail,\n success: result.success,\n },\n 'email-template-test-send-result.json',\n sendResult,\n );\n return sendResult;\n } catch (error) {\n this.logger.error('Failed to send test email', {\n templateRef: request.templateRef,\n locale: request.locale,\n recipientEmail: request.recipientEmail,\n providerMessageIds: [],\n error: formatUnknownError(error),\n });\n\n const failureResult = {\n success: false,\n templateRef: request.templateRef,\n locale: request.locale,\n recipientEmail: request.recipientEmail,\n providerMessageIds: [],\n error: formatUnknownError(error),\n sentAt: new Date().toISOString(),\n };\n await this.traceWrapperFailure(\n sessionContext,\n traceStep,\n 'email-template-test-send-failure',\n `Failed to send test email for template ${request.templateRef}`,\n error,\n {\n templateRef: request.templateRef,\n locale: request.locale,\n recipientEmail: request.recipientEmail,\n },\n );\n await this.traceWrapperSuccess(\n sessionContext,\n traceStep,\n 'email-template-test-send-result',\n `Recorded failed test email result for template ${request.templateRef}`,\n {\n templateRef: request.templateRef,\n locale: request.locale,\n recipientEmail: request.recipientEmail,\n success: false,\n },\n 'email-template-test-send-result.json',\n failureResult,\n );\n return failureResult;\n }\n }\n\n /**\n * Get filesystem-backed status of email template artifacts.\n */\n /**\n * The app-root-relative files the email-template pipelines are responsible for, for the given\n * locales: one `template.tsx` per owned template plus one `labels.<locale>.ts` per locale.\n *\n * This is the email domain's HALF of the build lane's landed-evidence contract: PLACEMENT — which\n * directory, which file names — is this domain's single authority (`resolveEmailTemplateArtifactTargets`\n * + `templateFilePath`/`labelsFilePath`), while the build lane owns what \"landed\" means (every path\n * committed in git). Derived from the live placement snapshot, so the set is re-derivable after a\n * restart, a fresh clone, or a branch switch — never a stored list.\n */\n async resolveExpectedArtifactRelativePaths(locales: readonly string[]): Promise<readonly string[]> {\n const snapshot = await this.translationPlacementService.getPlacementSnapshot({\n includeShared: false,\n includeFrontend: false,\n includeBackendEmail: true,\n });\n const ownership = snapshot.backendEmail.flatMap((entry) => entry.emailTemplateOwnership);\n const workspaceRoot = this.getWorkspaceRoot();\n const targets = resolveEmailTemplateArtifactTargets(workspaceRoot, ownership);\n return targets\n .flatMap((target) => [target.templatePath, ...locales.map((locale) => labelsFilePath(target.dirPath, locale))])\n .map((absolutePath) => path.relative(workspaceRoot, absolutePath).split(path.sep).join(path.posix.sep));\n }\n\n async getTemplateStatus(\n templateRefs?: string[],\n sessionContext?: CompanionExecutionSessionContext,\n ): Promise<EmailTemplateStatusResult[]> {\n this.logDebug('Getting template status...', { templateRefs });\n const traceStep = this.createWrapperTraceStep(sessionContext, 'status');\n await this.traceWrapperStart(\n sessionContext,\n traceStep,\n 'email-template-status-start',\n 'Get email template status',\n {\n templateRefs: templateRefs ?? [],\n },\n 'email-template-status-request.json',\n { templateRefs },\n );\n\n try {\n const snapshot = await this.translationPlacementService.getPlacementSnapshot({\n includeShared: false,\n includeFrontend: false,\n includeBackendEmail: true,\n });\n const ownership = snapshot.backendEmail.flatMap((entry) => entry.emailTemplateOwnership);\n const targets = resolveEmailTemplateArtifactTargets(\n this.getWorkspaceRoot(),\n ownership,\n templateRefs,\n );\n this.assertResolvedEmailTargetsOrThrow(targets, snapshot.warnings, templateRefs);\n\n const statusResults = await Promise.all(\n targets.map(async (target) => {\n const templateExists = await fileExists(target.templatePath);\n const localeStatuses = await this.getTemplateLocaleStatuses(target.dirPath);\n\n return {\n ownerId: target.ownerId,\n templateRef: target.templateRef,\n templatePath: target.templatePath,\n templateExists,\n locales: localeStatuses,\n } satisfies EmailTemplateStatusResult;\n }),\n );\n\n await this.traceWrapperSuccess(\n sessionContext,\n traceStep,\n 'email-template-status-success',\n `Resolved status for ${statusResults.length} email templates`,\n {\n templateRefs: templateRefs ?? [],\n resultCount: statusResults.length,\n },\n 'email-template-status-result.json',\n statusResults,\n );\n return statusResults;\n } catch (error) {\n await this.traceWrapperFailure(\n sessionContext,\n traceStep,\n 'email-template-status-failure',\n 'Failed to resolve email template status',\n error,\n {\n templateRefs: templateRefs ?? [],\n },\n );\n this.logger.error('Failed to get template status', {\n error: formatUnknownError(error),\n });\n\n if (isWildoBackendError(error)) {\n throw error;\n }\n throw this.errorBuilder.buildFromStandardError(error, undefined, {\n customMessageReference: ErrorCustomMessageReference.INTERNAL,\n context: { operation: 'getTemplateStatus' },\n });\n }\n }\n\n /**\n * Translate owner-scoped email `labels.{source}.ts` files into\n * `labels.{target}.ts` using the companion labelling translation agent.\n *\n * Reads the app package root from the resolved `CompanionContext.saasRoot`\n * snapshot — the companion trusts the context established at bootstrap and\n * does not consult `process.env.COMPANION_WORKSPACE_ROOT` at runtime.\n */\n async translateEmailTemplateLabels(\n request: TranslateEmailTemplateLabelsRequest,\n sessionContext?: CompanionExecutionSessionContext,\n ): Promise<TranslateEmailTemplateLabelsResult> {\n const traceStep = this.createWrapperTraceStep(sessionContext, 'translate-email-template-labels');\n await this.traceWrapperStart(\n sessionContext,\n traceStep,\n 'email-label-translation-wrapper-start',\n 'Translate email template labels',\n {\n primaryLocale: this.getDefaultLocale(),\n targetLocales: request.targetLocales ?? [],\n templateRefs: request.templateRefs ?? [],\n dryRun: request.dryRun === true,\n },\n 'email-label-translation-wrapper-request.json',\n request,\n );\n\n try {\n const primaryLocale = this.getDefaultLocale();\n const targetLocales = [...new Set(request.targetLocales ?? [])];\n\n if (!Array.isArray(targetLocales) || 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\n const resolvedTargets = targetLocales.map((code) => this.parseAvailableLanguageOrThrow(code));\n\n for (const t of resolvedTargets) {\n if (t === primaryLocale) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: `targetLocales must not include the primary locale (${primaryLocale})` },\n });\n }\n }\n\n const snapshot = await this.translationPlacementService.getPlacementSnapshot({\n includeShared: false,\n includeFrontend: false,\n includeBackendEmail: true,\n });\n const ownership = snapshot.backendEmail.flatMap((entry) => entry.emailTemplateOwnership);\n const dirs = resolveEmailTemplateArtifactTargets(\n this.getWorkspaceRoot(),\n ownership,\n request.templateRefs,\n );\n this.assertResolvedEmailTargetsOrThrow(dirs, snapshot.warnings, request.templateRefs);\n\n const details: TranslateEmailTemplateLabelsResult['details'] = [];\n let translatedFiles = 0;\n let skipped = 0;\n let failed = 0;\n\n const primaryLocaleName = LANGUAGE_INFO_MAP[primaryLocale]?.name ?? primaryLocale;\n\n for (const { ownerId, dirPath, templateRef } of dirs) {\n const sourcePath = labelsFilePath(dirPath, primaryLocale);\n if (!(await fileExists(sourcePath))) {\n for (const targetLocale of resolvedTargets) {\n details.push({\n ownerId,\n templateRef,\n targetLocale,\n success: false,\n error: `Missing source labels file: ${sourcePath}`,\n });\n failed++;\n }\n continue;\n }\n\n let parsed: ReturnType<typeof parseEmailLabelsTsSource>;\n try {\n const src = await readUtf8File(sourcePath);\n parsed = parseEmailLabelsTsSource(src);\n } catch (e) {\n const msg = formatUnknownError(e);\n for (const targetLocale of resolvedTargets) {\n details.push({\n ownerId,\n templateRef,\n targetLocale,\n success: false,\n error: `Failed to parse ${sourcePath}: ${msg}`,\n });\n failed++;\n }\n continue;\n }\n\n const keys = Object.keys(parsed.entries);\n if (keys.length === 0) {\n skipped++;\n continue;\n }\n\n for (const targetLang of resolvedTargets) {\n const outPath = labelsFilePath(dirPath, targetLang);\n const targetName = LANGUAGE_INFO_MAP[targetLang]?.name ?? targetLang;\n\n if (request.dryRun) {\n details.push({\n ownerId,\n templateRef,\n targetLocale: targetLang,\n success: true,\n outputPath: outPath,\n });\n translatedFiles++;\n continue;\n }\n\n try {\n const translated = await this.translateLabelEntriesWithAgent(\n parsed.entries,\n primaryLocaleName,\n targetName,\n keys,\n templateRef,\n sessionContext,\n );\n\n const body = formatLabelsTsFile({\n localeCode: targetLang,\n localeDisplayName: targetName,\n isPrimaryLocale: false,\n entries: translated,\n labelsTypeName: parsed.labelsTypeName,\n usesAsConst: parsed.usesAsConst,\n });\n\n await writeUtf8File(outPath, body);\n translatedFiles++;\n details.push({\n ownerId,\n templateRef,\n targetLocale: targetLang,\n success: true,\n outputPath: outPath,\n });\n } catch (e) {\n failed++;\n const msg = formatUnknownError(e);\n details.push({\n ownerId,\n templateRef,\n targetLocale: targetLang,\n success: false,\n error: msg,\n });\n }\n }\n }\n\n if (!request.dryRun) {\n await this.refreshEmailTemplateRegistry();\n }\n\n const result = {\n translatedFiles,\n skipped,\n failed,\n warnings: snapshot.warnings,\n details,\n completedAt: new Date().toISOString(),\n };\n const completedWithFailures = failed > 0;\n await this.traceWrapperSuccess(\n sessionContext,\n traceStep,\n completedWithFailures\n ? 'email-label-translation-wrapper-mixed-result'\n : 'email-label-translation-wrapper-success',\n completedWithFailures\n ? `Translated ${translatedFiles} email label files with ${failed} failures`\n : `Translated ${translatedFiles} email label files`,\n {\n translatedFiles,\n skipped,\n failed,\n warningCount: snapshot.warnings.length,\n },\n 'email-label-translation-wrapper-result.json',\n result,\n );\n return result;\n } catch (error) {\n await this.traceWrapperFailure(\n sessionContext,\n traceStep,\n 'email-label-translation-wrapper-failure',\n 'Email label translation failed',\n error,\n {\n primaryLocale: this.getDefaultLocale(),\n targetLocales: request.targetLocales ?? [],\n templateRefs: request.templateRefs ?? [],\n dryRun: request.dryRun === true,\n },\n );\n throw error;\n }\n }\n\n private resolvePrimaryGenerationLocale(requestedLocales?: AvailableLanguage[]): AvailableLanguage {\n const resolvedDefault = this.getDefaultLocale();\n\n if (!requestedLocales?.length) {\n return resolvedDefault;\n }\n\n const resolvedRequested = requestedLocales.map((locale) =>\n this.parseAvailableLanguageOrThrow(locale),\n );\n\n if (resolvedRequested.some((locale) => locale !== resolvedDefault)) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `Email generation only writes the primary locale (${resolvedDefault}). Use /email-templates/translate for additional locales.`,\n },\n });\n }\n\n return resolvedDefault;\n }\n\n private async tryReadExistingLabels(\n labelsPath: string,\n ): Promise<Record<string, string> | null> {\n try {\n const source = await readUtf8File(labelsPath);\n return parseEmailLabelsTsSource(source).entries;\n } catch {\n return null;\n }\n }\n\n private buildLabelsTypeName(templateRef: string): string {\n const normalized = templateRef\n .replace(/^system\\./, '')\n .replace(/^email\\./, '')\n .split(/[^a-zA-Z0-9]+/)\n .filter(Boolean)\n .map((part) => part.charAt(0).toUpperCase() + part.slice(1))\n .join('');\n\n return `${normalized || 'Template'}Labels`;\n }\n\n private normalizeGeneratedTemplateSource(templateSource: string): string {\n return templateSource.trimEnd() + '\\n';\n }\n\n private assertTemplateLabelsConsistencyOrThrow(\n templateSource: string,\n labels: Record<string, string>,\n ): void {\n const referencedKeys = new Set<string>();\n // Scan the EXECUTABLE body only — strip `import … from '…'` statements\n // first. The mandatory label-type import\n // (`import type { XLabels } from './labels.<locale>'`, required by the\n // generation prompt) otherwise matches the `labels.<key>` access pattern\n // below and reports the LOCALE segment (e.g. `en`) as a phantom missing\n // label key, failing generation for EVERY template by construction.\n // Labels are only ever READ inside subject()/body(), never in an import\n // specifier, so dropping import statements is safe and removes the whole\n // false-positive class. The lazy `[\\s\\S]*?` spans multi-line imports up to\n // their `from '…'` specifier.\n const scannableSource = templateSource.replace(\n /import\\b[\\s\\S]*?from\\s*['\"][^'\"]*['\"]\\s*;?/g,\n '',\n );\n const labelAccessPatterns = [\n /labels\\.([a-zA-Z0-9_]+)/g,\n /labels\\[['\"]([a-zA-Z0-9_]+)['\"]\\]/g,\n ];\n let match: RegExpExecArray | null = null;\n\n for (const pattern of labelAccessPatterns) {\n while ((match = pattern.exec(scannableSource)) !== null) {\n referencedKeys.add(match[1]);\n }\n }\n\n const destructurePattern = /\\{([^}]+)\\}\\s*=\\s*labels\\b/g;\n while ((match = destructurePattern.exec(scannableSource)) !== null) {\n const destructuredMembers = match[1]\n .split(',')\n .map((member) => member.trim())\n .filter(Boolean)\n .map((member) => member.split(':')[0]?.trim())\n .filter((member): member is string => Boolean(member));\n\n for (const member of destructuredMembers) {\n referencedKeys.add(member);\n }\n }\n\n const missingKeys = Array.from(referencedKeys).filter((key) => !(key in labels));\n if (missingKeys.length > 0) {\n throw new Error(\n `Generated template references missing label keys: ${missingKeys.join(', ')}`,\n );\n }\n }\n\n /**\n * Return the trusted SaaS app root for email template/label file operations.\n *\n * Always reads `this.companionContext.saasRoot`. `COMPANION_WORKSPACE_ROOT`\n * is only a subprocess bootstrap seed (written by\n * `applyTrustedHomesToChildProcess`) and must never override the resolved\n * CompanionContext snapshot at runtime — otherwise a stale env var could\n * silently misroute generated email artifacts to the wrong app.\n */\n private getWorkspaceRoot(): string {\n return this.companionContext.saasRoot;\n }\n\n private assertResolvedEmailTargetsOrThrow(\n targets: Array<{ templateRef: string }>,\n warnings: string[],\n requestedTemplateRefs?: string[],\n ): void {\n if (requestedTemplateRefs?.length) {\n const resolvedRefs = new Set(targets.map((target) => target.templateRef));\n const missingRefs = requestedTemplateRefs.filter((templateRef) => !resolvedRefs.has(templateRef));\n\n if (missingRefs.length > 0) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `Unknown email template refs: ${missingRefs.join(', ')}`,\n missingTemplateRefs: missingRefs,\n },\n });\n }\n }\n\n if (targets.length > 0) {\n return;\n }\n\n if (requestedTemplateRefs?.length) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `No email template targets resolved for the requested templateRefs: ${requestedTemplateRefs.join(', ')}`,\n },\n });\n }\n\n if (warnings.length > 0) {\n throw this.errorBuilder.buildError(ErrorType.INTERNAL, undefined, {\n customMessageReference: ErrorCustomMessageReference.INTERNAL,\n context: {\n message: `Email template placement resolution failed: ${warnings.join(' | ')}`,\n },\n });\n }\n }\n\n /**\n * Reload the backend email-definition modules and repopulate the in-memory registry so\n * preview/test-send use the latest filesystem email artifacts.\n */\n private async refreshEmailTemplateRegistry(): Promise<void> {\n const distRoot = this.getPrimaryBackendDistRoot();\n const cacheBust = `${Date.now()}`;\n\n process.env.WILDO_EMAIL_TEMPLATE_IMPORT_BUST = cacheBust;\n\n try {\n const { loadBackendModules } = await loadBackendCompanionExports(this.companionContext);\n const backendModules = await loadBackendModules();\n const emailOwnerModules = backendModules.filter((ownedModule) =>\n Object.keys(ownedModule.emailTemplateDefinitions ?? {}).length > 0\n );\n const importedEmailModules = await Promise.all(\n emailOwnerModules.map(async (ownedModule) => {\n const definitionsEntryPath = ownedModule.kind === 'engine'\n ? path.join(distRoot, 'engine/email/email-template-definitions.js')\n : path.join(distRoot, 'modules', ownedModule.moduleId, 'emails/module-email-template-definitions.js');\n const definitionsModuleUrl = `${pathToFileURL(definitionsEntryPath).href}?refresh=${cacheBust}`;\n return import(definitionsModuleUrl) as Promise<{\n emailTemplateDefinitions?: Record<string, {\n template: unknown;\n labels: Record<string, Record<string, string>>;\n }>;\n moduleEmailTemplateDefinitions?: Record<string, {\n template: unknown;\n labels: Record<string, Record<string, string>>;\n }>;\n default?: {\n emailTemplateDefinitions?: Record<string, {\n template: unknown;\n labels: Record<string, Record<string, string>>;\n }>;\n };\n }>;\n }),\n );\n\n const refreshedDefinitions: EmailTemplateDefinitionsMap = Object.assign(\n {},\n ...importedEmailModules.map((ownerModule) => (\n ownerModule.emailTemplateDefinitions\n ?? ownerModule.moduleEmailTemplateDefinitions\n ?? ownerModule.default?.emailTemplateDefinitions\n ?? {}\n )),\n ) as EmailTemplateDefinitionsMap;\n\n this.emailTemplateRegistry.initialize(refreshedDefinitions);\n } finally {\n delete process.env.WILDO_EMAIL_TEMPLATE_IMPORT_BUST;\n }\n }\n\n private getPrimaryBackendDistRoot(): string {\n const backendTarget = resolvePrimaryBackendServiceTarget(this.companionContext);\n return path.resolve(backendTarget.packageRoot, 'dist');\n }\n\n private buildTemplateArtifactGenerationPrompt(\n options: {\n templateRef: string;\n locale: AvailableLanguage;\n labelsTypeName: string;\n currentTemplateSource: string | null;\n existingLabels?: Record<string, string>;\n },\n specContextMarkdown?: string,\n correctionMarkdown?: string,\n ): string {\n const localeName = LANGUAGE_INFO_MAP[options.locale]?.name ?? options.locale;\n // Slice 3.7 (F-53): the LLM prompt wants the human-friendly UI label\n // (`displayName`), with a defensive fallback to the canonical\n // `appName` (id) only when the operator has not authored a display\n // label. The local is named `appDisplayLabel` to avoid colliding\n // with `appIdentity.appName` (the canonical id field).\n const appDisplayLabel = this.appConfigService.config.appIdentity?.displayName\n ?? this.appConfigService.config.appIdentity?.appName\n ?? 'Application';\n\n // Authored-spec context block (DD1: the CUSTOM_IMPLEMENTATION_CONTEXT\n // render — purpose, tone, text-slot meaning, event data, business\n // constraints). Empty when the templateRef has no authored\n // SystemEmailTemplateSpecification — the prompt then falls back to ref +\n // app name + current source only (the context-starved baseline).\n const specContextLines = specContextMarkdown\n ? [\n '',\n '# Email purpose & contract (authored specification — honor over assumptions)',\n 'Generate the template and labels to satisfy this authored spec. It defines',\n \"the email's purpose, tone, the meaning of each text slot, the event data the\",\n 'template receives at send time, and any business constraints. Prefer it over',\n 'inferring intent from the templateRef.',\n '',\n specContextMarkdown.trim(),\n ]\n : [];\n\n // Appended only on a retry — see generateTemplateArtifactsWithAgent's loop.\n const correctionLines = correctionMarkdown\n ? ['', '# Correction (your previous attempt was rejected)', correctionMarkdown.trim()]\n : [];\n\n return [\n `Rewrite or generate the email template artifacts for templateRef \"${options.templateRef}\".`,\n `Primary locale: ${options.locale} (${localeName}).`,\n `Application name: ${appDisplayLabel}.`,\n ...specContextLines,\n '',\n 'Return a JSON object only, with this shape:',\n '{',\n ' \"templateSource\": \"full TSX source for template.tsx\",',\n ' \"labels\": { \"flatLabelKey\": \"Primary locale string\" }',\n '}',\n '',\n 'Code conventions you MUST follow:',\n \"- `templateSource` must be a complete `template.tsx` file.\",\n \"- Import `* as React` from 'react'.\",\n \"- Import `{ type EmailTemplateDefinition, interpolateEmailLabel }` from '@wildo-ai/saas-backend-lib'.\",\n `- Import type \\`${options.labelsTypeName}\\` from './labels.${options.locale}'.`,\n \"- Import UI primitives only from '~backend-api/engine/email/components'.\",\n `- Export a default \\`const template: EmailTemplateDefinition<${options.labelsTypeName}>\\`.`,\n '- Keep all user-visible copy in the `labels` object, not inline in JSX or subject strings.',\n '- Access label values only as direct `labels.someKey` property reads. Do not destructure `labels` and do not use bracket notation.',\n '- Use `interpolateEmailLabel(labels.someKey, { placeholder })` for label strings that contain placeholders like `{appName}`.',\n '- Keep the label object flat and string-only.',\n '- Preserve the current business behavior and context-field access whenever the existing template already expresses it correctly.',\n '',\n 'Current template source (use this as the behavioral source of truth when present):',\n '```tsx',\n options.currentTemplateSource ?? '// No current template source available. Generate a sensible template from scratch.',\n '```',\n '',\n 'Existing primary-locale labels (reuse stable keys when sensible):',\n JSON.stringify(options.existingLabels ?? {}, null, 2),\n ...correctionLines,\n ].join('\\n');\n }\n\n private async generateTemplateArtifactsWithAgent(options: {\n templateRef: string;\n locale: AvailableLanguage;\n labelsTypeName: string;\n currentTemplateSource: string | null;\n existingLabels?: Record<string, string>;\n }, sessionContext?: CompanionExecutionSessionContext): Promise<GeneratedEmailTemplateBundle> {\n // Resolve the authored SystemEmailTemplateSpecification context (purpose,\n // tone, per-slot text-slot meaning, event data, business constraints) and\n // inject it into the prompt so the LLM generates from the email's real\n // contract — not just the templateRef string + current source. Best-effort:\n // a ref with no authored spec generates with generic context (the loader\n // warns and returns undefined; never throws).\n const specContext = await this.emailSpecContextLoader.loadGenerationContext(options.templateRef);\n\n const traceStep = sessionContext\n ? this.traceabilityService.createStep(sessionContext, {\n kind: 'agent-invocation',\n label: `email-template-generation-${options.templateRef}`,\n })\n : undefined;\n\n if (sessionContext) {\n await this.traceabilityService.traceEvent({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'agent-email-template-generation-start',\n summary: `Generate email template artifacts for ${options.templateRef}`,\n payload: {\n templateRef: options.templateRef,\n locale: options.locale,\n hasSpecContext: Boolean(specContext?.description),\n },\n ...(traceStep ? { step: traceStep } : {}),\n });\n // spec-context.json — the per-template \"what authored context did this\n // generation receive?\" record. `hasSpecContext:false` flags a ref whose\n // authored SystemEmailTemplateSpecification is missing (the enrichment\n // worklist), mirroring the labellize orchestrator's spec-context.json.\n await this.traceabilityService.writeArtifact({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: 'email-template-generation.spec-context.json',\n content: {\n templateRef: options.templateRef,\n locale: options.locale,\n hasSpecContext: Boolean(specContext?.description),\n description: specContext?.description ?? null,\n },\n ...(traceStep ? { step: traceStep } : {}),\n });\n await this.traceabilityService.writeArtifact({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: 'email-template-generation-input.json',\n content: { options },\n ...(traceStep ? { step: traceStep } : {}),\n });\n }\n\n // Bounded generate → parse/validate → retry-with-correction loop. The LLM\n // occasionally wraps the JSON in prose or emits a malformed object; rather\n // than failing the target outright we re-prompt once with the specific\n // rejection reason appended as a `# Correction` block (mirrors the labellize\n // orchestrator's correction-on-retry). GENERATE_TEXT is retained — the\n // GENERATE_STRUCTURED flip (DD4) stays gated on a provider large-TSX-field\n // truncation check — so the retry delivers the reliability win without it.\n const MAX_ATTEMPTS = 2;\n let lastError: unknown;\n\n for (let attempt = 1; attempt <= MAX_ATTEMPTS; attempt++) {\n const prompt = this.buildTemplateArtifactGenerationPrompt(\n options,\n specContext?.description,\n attempt > 1 ? this.buildGenerationCorrection(lastError) : undefined,\n );\n\n const invocation: FlowsActors_Agent_Invocation<\n typeof LLMProvider_GenerateTextInputSchema,\n typeof LLMProvider_GenerateTextOutputSchema,\n typeof LLMProvider_OperationContext_BaseSchema\n > = {\n agentRef: 'email-template.generation.agent',\n initiator: {},\n invocationContext: [],\n input: { prompt },\n output: { text: '' },\n executionContext: { callTimestamp: new Date().toISOString() },\n artifactBindings: [],\n };\n\n // Correlate this attempt so the engine AgentCallTraceSink writes the prompt\n // + output (+usage/latency) into THIS step, keyed by attempt (the attempt\n // rides in the label → filenames stay `…attempt-${n}.prompt.txt/.output.json`).\n // The caller keeps only its composed artifacts (generated.tsx, generated-labels).\n const traceContext = sessionContext && traceStep\n ? {\n sessionRef: sessionContext.sessionId,\n stepRef: traceStep.stepId,\n label: `email-template-generation.attempt-${attempt}`,\n attributes: { templateRef: options.templateRef, locale: options.locale, attempt },\n }\n : undefined;\n\n try {\n const result = await this.agentsService.invokeAgent(invocation, traceContext);\n const bundle = this.parseGeneratedBundle(result.output);\n\n if (sessionContext) {\n // Human-readable twins of the generated output: the template as real\n // TSX (not a JSON-escaped blob) and the labels as pretty JSON.\n await this.traceabilityService.writeArtifact({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: 'email-template-generation.generated.tsx',\n content: bundle.templateSource,\n format: CompanionTraceArtifactFormat.TEXT,\n ...(traceStep ? { step: traceStep } : {}),\n });\n await this.traceabilityService.writeArtifact({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: 'email-template-generation.generated-labels.json',\n content: bundle.labels,\n ...(traceStep ? { step: traceStep } : {}),\n });\n await this.traceabilityService.traceEvent({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'agent-email-template-generation-success',\n summary: `Generated email template artifacts for ${options.templateRef}`,\n payload: {\n templateRef: options.templateRef,\n labelCount: Object.keys(bundle.labels).length,\n attempt,\n },\n ...(traceStep ? { step: traceStep } : {}),\n });\n }\n\n return bundle;\n } catch (error) {\n lastError = error;\n const isLastAttempt = attempt >= MAX_ATTEMPTS;\n\n if (sessionContext) {\n await this.traceabilityService.traceEvent({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: isLastAttempt\n ? 'agent-email-template-generation-failure'\n : 'agent-email-template-generation-retry',\n summary: isLastAttempt\n ? `Failed to generate email template artifacts for ${options.templateRef} after ${attempt} attempt(s)`\n : `Email generation attempt ${attempt} for ${options.templateRef} failed; retrying with correction`,\n payload: {\n templateRef: options.templateRef,\n locale: options.locale,\n attempt,\n error: this.buildTraceErrorPayload(error),\n },\n ...(traceStep ? { step: traceStep } : {}),\n });\n if (isLastAttempt) {\n await this.traceabilityService.writeArtifact({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: 'email-template-generation-failure.json',\n content: {\n templateRef: options.templateRef,\n locale: options.locale,\n attempts: attempt,\n error: this.buildTraceErrorPayload(error),\n },\n ...(traceStep ? { step: traceStep } : {}),\n });\n }\n }\n\n if (isLastAttempt) {\n throw error;\n }\n }\n }\n\n // Unreachable: the loop returns a bundle or throws on the final attempt.\n throw lastError;\n }\n\n /**\n * Parse + validate the email-generation agent's raw text output into a\n * `{ templateSource, labels }` bundle. Throws with a specific message (fed\n * back to the model by the retry loop) on empty output, non-JSON output, a\n * missing/blank `templateSource`, or a missing / non-flat / empty `labels`.\n */\n private parseGeneratedBundle(output: unknown): GeneratedEmailTemplateBundle {\n const rawText = (output as { text?: string })?.text;\n if (!rawText || typeof rawText !== 'string') {\n throw new Error('Email generation agent returned empty output');\n }\n\n const jsonMatch = rawText.match(/```(?:json)?\\s*([\\s\\S]*?)```/);\n const jsonText = jsonMatch?.[1]?.trim() ?? rawText.trim();\n let parsed: { templateSource?: unknown; labels?: unknown };\n try {\n parsed = JSON.parse(jsonText) as { templateSource?: unknown; labels?: unknown };\n } catch (err) {\n throw new Error(\n `Email generation output was not valid JSON: ${describeCaughtError(err)}`,\n );\n }\n\n if (typeof parsed.templateSource !== 'string' || !parsed.templateSource.trim().length) {\n throw new Error('Email generation output is missing templateSource');\n }\n const templateSource = parsed.templateSource;\n\n if (!parsed.labels || typeof parsed.labels !== 'object' || Array.isArray(parsed.labels)) {\n throw new Error('Email generation output is missing a flat labels object');\n }\n\n const labels: Record<string, string> = {};\n for (const [key, value] of Object.entries(parsed.labels as Record<string, unknown>)) {\n if (typeof value !== 'string' || !value.trim().length) {\n throw new Error(`Email generation returned an invalid label for key \"${key}\"`);\n }\n labels[key] = value;\n }\n\n if (Object.keys(labels).length === 0) {\n throw new Error('Email generation returned an empty labels object');\n }\n\n return { templateSource, labels };\n }\n\n /**\n * Build the `# Correction` block appended to the prompt on a retry — feeds\n * the specific rejection reason back so the model fixes exactly that.\n */\n private buildGenerationCorrection(error: unknown): string {\n const reason = describeCaughtError(error);\n return [\n `Your previous attempt was rejected: ${reason}`,\n 'Return ONLY a single JSON object of the exact shape '\n + '{ \"templateSource\": \"<full template.tsx>\", \"labels\": { \"<key>\": \"<non-empty string>\" } } '\n + '— no prose before or after, every label value a non-empty string, the labels object flat.',\n ].join('\\n');\n }\n\n private parseAvailableLanguageOrThrow(code: string): AvailableLanguage {\n const found = Object.values(AvailableLanguage).find((v) => v === code);\n if (!found) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `Unknown locale code \"${code}\". Use an AvailableLanguage value (e.g. en, fr, de).`,\n },\n });\n }\n return found as AvailableLanguage;\n }\n\n private buildFlatStringSchema(keys: string[]): z.ZodObject<Record<string, z.ZodString>> {\n const shape: Record<string, z.ZodString> = {};\n for (const k of keys) {\n shape[k] = z.string();\n }\n return z.object(shape);\n }\n\n private async translateLabelEntriesWithAgent(\n entries: Record<string, string>,\n sourceLanguageLabel: string,\n targetLanguageLabel: string,\n keys: string[],\n templateRef: string,\n sessionContext?: CompanionExecutionSessionContext,\n ): Promise<Record<string, string>> {\n // Inject the authored spec's TRANSLATION_CONTEXT (purpose / tone / per-slot\n // meaning) so terminology + register stay faithful — the translate analogue\n // of the generation spec-context injection. Best-effort: undefined when the\n // ref has no authored spec (then the prompt is rules + source only).\n const specContext = await this.emailSpecContextLoader.loadTranslationContext(templateRef);\n const specContextLines = specContext?.description\n ? ['# Context (terminology & tone)', specContext.description.trim(), '']\n : [];\n const prompt = [\n `Translate email template UI strings from ${sourceLanguageLabel} to ${targetLanguageLabel}.`,\n '',\n ...specContextLines,\n 'Rules:',\n '- Preserve every placeholder token like {appName}, {firstName}, {expiresInMinutes} exactly — do not translate or remove them.',\n '- Keep the tone appropriate for transactional / product email.',\n '- Match the source brevity; use natural target-language UI conventions + typography.',\n '- Fill every field in the schema with the translated string.',\n '',\n 'Source strings (JSON):',\n JSON.stringify(entries, null, 2),\n ].join('\\n');\n\n const schema = this.buildFlatStringSchema(keys);\n\n const invocation: FlowsActors_Agent_Invocation<\n typeof LLMProvider_GenerateStructuredInputSchema,\n typeof LLMProvider_GenerateStructuredOutputSchema,\n z.ZodSchema<Record<string, string>>\n > = {\n agentRef: 'labelling.translation.agent',\n initiator: {},\n invocationContext: [],\n input: {\n prompt,\n schema,\n },\n output: {\n object: {},\n },\n executionContext: {\n callTimestamp: new Date().toISOString(),\n },\n artifactBindings: [],\n };\n\n const traceStep = sessionContext\n ? this.traceabilityService.createStep(sessionContext, {\n kind: 'agent-invocation',\n label: `email-label-translation-${targetLanguageLabel}`,\n })\n : undefined;\n\n // Correlate this call so the engine-level AgentCallTraceSink writes the\n // prompt + output (+usage/latency) artifacts into THIS session/step. Phase 4\n // migration: the engine now owns the per-call prompt/output record; the\n // caller keeps only its composed artifacts (spec-context, translated-labels).\n const traceContext = sessionContext && traceStep\n ? {\n sessionRef: sessionContext.sessionId,\n stepRef: traceStep.stepId,\n label: 'email-label-translation',\n attributes: { templateRef, targetLanguageLabel },\n }\n : undefined;\n\n try {\n if (sessionContext) {\n await this.traceabilityService.traceEvent({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'agent-email-label-translation-start',\n summary: `Translate email labels from ${sourceLanguageLabel} to ${targetLanguageLabel}`,\n payload: {\n keyCount: keys.length,\n sourceLanguageLabel,\n targetLanguageLabel,\n },\n ...(traceStep ? { step: traceStep } : {}),\n });\n // spec-context.json — `hasSpecContext:false` flags a ref whose authored\n // spec is missing (the enrichment worklist). Caller-composed; the engine\n // AgentCallTraceSink now owns the prompt + output artifacts for this step.\n await this.traceabilityService.writeArtifact({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: 'email-label-translation.spec-context.json',\n content: {\n templateRef,\n sourceLanguageLabel,\n targetLanguageLabel,\n hasSpecContext: Boolean(specContext?.description),\n description: specContext?.description ?? null,\n },\n ...(traceStep ? { step: traceStep } : {}),\n });\n }\n\n const result = await this.agentsService.invokeAgent(invocation, traceContext);\n const parsedData = (result.output as { object?: Record<string, unknown> })?.object;\n\n if (!parsedData || typeof parsedData !== 'object') {\n throw new Error('Invalid structured output from translation agent');\n }\n\n const out: Record<string, string> = {};\n for (const k of keys) {\n const v = parsedData[k];\n if (typeof v !== 'string' || !v.length) {\n throw new Error(`Translation agent returned empty or invalid value for key \"${k}\"`);\n }\n out[k] = v;\n }\n\n if (sessionContext) {\n await this.traceabilityService.writeArtifact({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: 'email-label-translation.translated-labels.json',\n // Keep the source strings beside the translated output (parity with the\n // labelling translate orchestrator's `.labels.json`). The engine sink\n // owns the raw prompt/output record; this is the caller's domain record.\n content: { object: out, sourceStrings: entries },\n ...(traceStep ? { step: traceStep } : {}),\n });\n await this.traceabilityService.traceEvent({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'agent-email-label-translation-success',\n summary: `Translated ${keys.length} email labels to ${targetLanguageLabel}`,\n payload: {\n keyCount: keys.length,\n targetLanguageLabel,\n },\n ...(traceStep ? { step: traceStep } : {}),\n });\n }\n return out;\n } catch (error) {\n if (sessionContext) {\n await this.traceabilityService.writeArtifact({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: 'email-label-translation-failure.json',\n content: {\n sourceLanguageLabel,\n targetLanguageLabel,\n keyCount: keys.length,\n error: this.buildTraceErrorPayload(error),\n },\n ...(traceStep ? { step: traceStep } : {}),\n });\n await this.traceabilityService.traceEvent({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'agent-email-label-translation-failure',\n summary: `Failed to translate ${keys.length} email labels to ${targetLanguageLabel}`,\n payload: {\n keyCount: keys.length,\n sourceLanguageLabel,\n targetLanguageLabel,\n error: this.buildTraceErrorPayload(error),\n },\n ...(traceStep ? { step: traceStep } : {}),\n });\n }\n throw error;\n }\n }\n\n private createWrapperTraceStep(\n sessionContext: CompanionExecutionSessionContext | undefined,\n label: string,\n ) {\n return sessionContext\n ? this.traceabilityService.createStep(sessionContext, {\n kind: 'email-template',\n label,\n })\n : undefined;\n }\n\n private async traceWrapperStart(\n sessionContext: CompanionExecutionSessionContext | undefined,\n step: ReturnType<CompanionTraceabilityService['createStep']> | undefined,\n type: string,\n summary: string,\n payload: Record<string, unknown>,\n artifactFileName: string,\n artifactContent: unknown,\n ): Promise<void> {\n if (!sessionContext) {\n return;\n }\n\n await this.traceabilityService.traceEvent({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type,\n summary,\n payload,\n ...(step ? { step } : {}),\n });\n await this.traceabilityService.writeArtifact({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: artifactFileName,\n content: artifactContent,\n ...(step ? { step } : {}),\n });\n }\n\n private async traceWrapperSuccess(\n sessionContext: CompanionExecutionSessionContext | undefined,\n step: ReturnType<CompanionTraceabilityService['createStep']> | undefined,\n type: string,\n summary: string,\n payload: Record<string, unknown>,\n artifactFileName: string,\n artifactContent: unknown,\n ): Promise<void> {\n if (!sessionContext) {\n return;\n }\n\n await this.traceabilityService.writeArtifact({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: artifactFileName,\n content: artifactContent,\n ...(step ? { step } : {}),\n });\n await this.traceabilityService.traceEvent({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type,\n summary,\n payload,\n ...(step ? { step } : {}),\n });\n }\n\n private async traceWrapperFailure(\n sessionContext: CompanionExecutionSessionContext | undefined,\n step: ReturnType<CompanionTraceabilityService['createStep']> | undefined,\n type: string,\n summary: string,\n error: unknown,\n payload: Record<string, unknown>,\n ): Promise<void> {\n if (!sessionContext) {\n return;\n }\n\n await this.traceabilityService.traceEvent({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type,\n summary,\n payload: {\n ...payload,\n error: this.buildTraceErrorPayload(error),\n },\n ...(step ? { step } : {}),\n });\n }\n\n private buildTraceErrorPayload(error: unknown) {\n if (isWildoBackendError(error)) {\n return error;\n }\n\n if (error instanceof Error) {\n return {\n message: error.message,\n name: error.name,\n ...(error.stack ? { stack: error.stack } : {}),\n };\n }\n\n return {\n message: formatUnknownError(error),\n };\n }\n\n /**\n * Resolve the application's default locale for email fallback.\n */\n private getDefaultLocale(): AvailableLanguage {\n return getCompanionConfiguredPrimaryLanguage(this.appConfigService.config);\n }\n\n private getFallbackLocale(): AvailableLanguage {\n return getCompanionConfiguredFallbackLanguage(this.appConfigService.config);\n }\n\n /**\n * Resolve brand tokens the same way the runtime email backend does.\n */\n private getDesignTokens() {\n return buildEmailBrandTokensFromConfig(this.appConfigService.config.email?.brandTokens);\n }\n\n /**\n * List existing locale label artifacts for one filesystem template directory.\n */\n private async getTemplateLocaleStatuses(\n dirPath: string,\n ): Promise<EmailTemplateStatusResult['locales']> {\n let entries: Array<{ name: string; isFile(): boolean }>;\n try {\n entries = (await fs.readdir(dirPath, {\n withFileTypes: true,\n encoding: 'utf8',\n })) as Array<{ name: string; isFile(): boolean }>;\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code === 'ENOENT') {\n return [];\n }\n throw error;\n }\n\n const localeEntries = await Promise.all(\n entries\n .filter((entry) => entry.isFile() && /^labels\\.(.+)\\.ts$/.test(entry.name))\n .map(async (entry) => {\n const localeMatch = entry.name.match(/^labels\\.(.+)\\.ts$/);\n const locale = localeMatch?.[1] ?? 'unknown';\n const labelsPath = labelsFilePath(dirPath, locale);\n const stat = await fs.stat(labelsPath);\n\n return {\n locale,\n labelsPath,\n exists: true,\n updatedAt: stat.mtime.toISOString(),\n };\n }),\n );\n\n return localeEntries.sort((left, right) => left.locale.localeCompare(right.locale));\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"email-template.companion.service.js","sourceRoot":"","sources":["../../../../../src/email/services/email-template.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE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C,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IACtF,CAAC;CACF,CAAA;AA1uDY,6BAA6B;IADzC,UAAU,EAAE;IAKR,WAAA,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAA;IAC9C,WAAA,MAAM,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,CAAA;IAC/C,WAAA,MAAM,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAA;IAC3C,WAAA,MAAM,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,CAAA;IACjD,WAAA,MAAM,CAAC,kBAAkB,CAAC,qBAAqB,CAAC,CAAA;IAChD,WAAA,MAAM,CAAC,kBAAkB,CAAC,YAAY,CAAC,CAAA;IACvC,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;IAEhD,WAAA,MAAM,CAAC,uBAAuB,CAAC,2BAA2B,CAAC,CAAA;IAE3D,WAAA,MAAM,CAAC,uBAAuB,CAAC,mBAAmB,CAAC,CAAA;IAEnD,YAAA,MAAM,CAAC,uBAAuB,CAAC,sBAAsB,CAAC,CAAA;qCAbK,aAAa;QACM,0BAA0B,4DAS3D,oCAAoC;QAE5C,4BAA4B;QAEzB,sCAAsC;GAlBtE,6BAA6B,CA0uDzC","sourcesContent":["import { randomUUID } from 'node:crypto';\nimport * as fs from 'node:fs/promises';\nimport path from 'node:path';\nimport { pathToFileURL } from 'node:url';\nimport { render } from '@react-email/render';\nimport { injectable, inject } from 'inversify';\nimport { z } from 'zod';\nimport {\n buildEmailBrandTokensFromConfig,\n type EmailTemplateDefinitionsMap,\n type EmailTemplateRegistryBackendService,\n LoggerService,\n ErrorBuilderBackendService,\n SAAS_SERVICE_TYPES,\n type AgentsBackendService,\n describeCaughtError,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n LLMProvider_GenerateTextInputSchema,\n LLMProvider_GenerateTextOutputSchema,\n LLMProvider_OperationContext_BaseSchema,\n LLMProvider_GenerateStructuredInputSchema,\n LLMProvider_GenerateStructuredOutputSchema,\n} from '@wildo-ai/external-connectors-models';\nimport {\n getCompanionConfiguredFallbackLanguage,\n getCompanionConfiguredPrimaryLanguage,\n} from '../../core/config/primary-language.companion.utils';\nimport {\n FlowsActors_Agent_Invocation,\n BrandAssetComposition,\n BrandAssetPurpose,\n ErrorType,\n ErrorCustomMessageReference,\n EmailTemplateType,\n type ObjectContext,\n type PrimaryScopeContext,\n EmailSubmissionOutcome,\n isWildoBackendError,\n} from '@wildo-ai/saas-models';\nimport { AvailableLanguage, LANGUAGE_INFO_MAP } from '@wildo-ai/presets-components-models';\nimport {\n resolveEmailTemplateArtifactTargets,\n labelsFilePath,\n readUtf8File,\n writeUtf8File,\n fileExists,\n templateFilePath,\n templateRefToRelativeDir,\n type EmailTemplateArtifactTarget,\n} from '../utils/email-template-fs-discovery.utils';\nimport { getCompanionEnabledLocaleCodes } from '../../core/config/primary-language.companion.utils';\nimport {\n parseEmailLabelsTsSource,\n formatLabelsTsFile,\n} from '../utils/email-labels-file-source.utils';\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport {\n loadBackendCompanionExports,\n resolvePrimaryBackendServiceTarget,\n} from '../../core/context/companion-package-loaders.companion';\nimport { TranslationPlacementCompanionService } from '../../core/introspection/services/translation-placement.companion.service';\nimport { CompanionTraceabilityService } from '../../core/traceability/companion-traceability.service';\nimport { EmailSpecContextLoaderCompanionService } from './email-spec-context-loader.companion.service';\nimport {\n CompanionTraceabilityLevel,\n CompanionTraceArtifactFormat,\n type CompanionExecutionSessionContext,\n} from '../../core/traceability/companion-traceability.models';\n\n// Import email services - these are injected via DI, so we only need the types\nimport type { AppConfigurationService } from '@wildo-ai/saas-backend-lib';\nimport type { EmailBackendService } from '@wildo-ai/saas-backend-lib';\nimport type { EmailTemplateValidatorBackendService } from '@wildo-ai/saas-backend-lib';\n\n/**\n * The framework's ENGINE email templates as an application receives them — `templates/saas/i18n/email`,\n * harvested from Wonder Todos and delivered into every application's `.wildo-saas/templates/`.\n */\nconst DELIVERED_EMAIL_CANON_RELATIVE = '.wildo-saas/templates/i18n/email' as const;\n\n/** Partial authoring-only object context; nested scope overrides retain synthetic defaults. */\nexport type EmailTemplateMockObjectContext = Omit<Partial<ObjectContext>, 'primaryScopeContext'> & {\n primaryScopeContext?: Partial<PrimaryScopeContext>;\n};\n\n/**\n * Request for generating email templates\n */\nexport interface GenerateEmailTemplatesRequest {\n /** Force regenerate even if template exists */\n forceRegenerate?: boolean;\n /** Specific template refs to generate (empty = all) */\n templateRefs?: string[];\n /** Specific locales to generate (empty = all configured) */\n locales?: AvailableLanguage[];\n}\n\n/**\n * Request for previewing an email template\n */\nexport interface PreviewEmailTemplateRequest {\n templateRef: string;\n locale: AvailableLanguage;\n /** Mock context data for preview */\n mockContext?: {\n currentObject?: Record<string, unknown>;\n objectContext?: EmailTemplateMockObjectContext;\n userContext?: {\n email: string;\n name?: string;\n firstName?: string;\n };\n additionalContext?: Record<string, unknown>;\n };\n}\n\n/**\n * Preview result\n */\nexport interface PreviewEmailTemplateResult {\n templateRef: string;\n locale: AvailableLanguage;\n resolvedLocale?: string;\n subject: string;\n bodyHtml: string;\n bodyText?: string;\n previewedAt: string;\n}\n\n/**\n * Request for sending a test email\n */\nexport interface TestSendEmailRequest {\n templateRef: string;\n locale: AvailableLanguage;\n /** Recipient email address for test */\n recipientEmail: string;\n /** Mock context data for test */\n mockContext?: {\n currentObject?: Record<string, unknown>;\n objectContext?: EmailTemplateMockObjectContext;\n userContext?: {\n email: string;\n name?: string;\n firstName?: string;\n };\n additionalContext?: Record<string, unknown>;\n };\n}\n\n/**\n * Test send result\n */\nexport interface TestSendEmailResult {\n success: boolean;\n submissionId: string;\n outcome: EmailSubmissionOutcome;\n retryable: boolean;\n deduplicated?: boolean;\n templateRef: string;\n locale: AvailableLanguage;\n recipientEmail: string;\n /** All provider receipts returned for the test submission. */\n providerMessageIds: string[];\n error?: string;\n sentAt: string;\n}\n\n/**\n * Template status result\n */\nexport interface EmailTemplateStatusResult {\n ownerId: string;\n templateRef: string;\n templatePath: string;\n templateExists: boolean;\n locales: Array<{\n locale: string;\n labelsPath: string;\n exists: boolean;\n updatedAt: string;\n }>;\n}\n\n/**\n * Translate filesystem `labels.{primaryLocale}.ts` → `labels.{targetLocale}.ts` for each template directory.\n *\n * The source locale is always the SaaS application's configured primary\n * language from `appPreferences.languages.defaultLanguage`.\n */\nexport interface TranslateEmailTemplateLabelsRequest {\n /** Target locale codes (e.g. fr, de) — must match `AvailableLanguage` enum values */\n targetLocales: string[];\n /** Limit to specific registry template refs; omit for all */\n templateRefs?: string[];\n /** When true, only report planned writes (no LLM, no disk writes) */\n dryRun?: boolean;\n}\n\nexport interface TranslateEmailTemplateLabelsResult {\n translatedFiles: number;\n skipped: number;\n failed: number;\n warnings: string[];\n details: Array<{\n ownerId: string;\n templateRef: string;\n targetLocale: string;\n success: boolean;\n outputPath?: string;\n error?: string;\n }>;\n completedAt: string;\n}\n\nexport interface GenerateEmailTemplatesResult {\n generated: number;\n skipped: number;\n failed: number;\n warnings: string[];\n details: Array<{\n ownerId: string;\n templateRef: string;\n locale: AvailableLanguage;\n success: boolean;\n skipped?: boolean;\n templatePath?: string;\n labelsPath?: string;\n errors?: string[];\n }>;\n generatedAt: string;\n}\n\ninterface GeneratedEmailTemplateBundle {\n templateSource: string;\n labels: Record<string, string>;\n}\n\nfunction formatUnknownError(error: unknown): string {\n if (error instanceof Error) {\n return error.message;\n }\n\n if (typeof error === 'string') {\n return error;\n }\n\n if (typeof error === 'object' && error !== null) {\n if ('message' in error && typeof error.message === 'string') {\n return error.message;\n }\n\n try {\n return JSON.stringify(error);\n } catch {\n return String(error);\n }\n }\n\n return String(error);\n}\n\n/**\n * Email Template Companion Service\n * \n * Handles email template generation, preview, and testing operations\n * for the dev companion API.\n */\n@injectable()\nexport class EmailTemplateCompanionService {\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) private readonly appConfigService: AppConfigurationService,\n @inject(SAAS_SERVICE_TYPES.EmailTemplateValidator) private readonly emailTemplateValidator: EmailTemplateValidatorBackendService,\n @inject(SAAS_SERVICE_TYPES.EmailTemplateRegistry) private readonly emailTemplateRegistry: EmailTemplateRegistryBackendService,\n @inject(SAAS_SERVICE_TYPES.EmailService) private readonly emailService: EmailBackendService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext)\n private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.TranslationPlacementService)\n private readonly translationPlacementService: TranslationPlacementCompanionService,\n @inject(COMPANION_SERVICE_TYPES.TraceabilityService)\n private readonly traceabilityService: CompanionTraceabilityService,\n @inject(COMPANION_SERVICE_TYPES.EmailSpecContextLoader)\n private readonly emailSpecContextLoader: EmailSpecContextLoaderCompanionService,\n ) {\n this.logDebug = this.logger.debugByType('EmailTemplateCompanion');\n this.logger.setDebugTypeLogging('EmailTemplateCompanion', true);\n }\n\n /**\n * Generate primary-locale filesystem email template artifacts using LLM.\n */\n async generateTemplates(\n request: GenerateEmailTemplatesRequest,\n sessionContext?: CompanionExecutionSessionContext,\n ): Promise<GenerateEmailTemplatesResult> {\n this.logDebug('Generating email templates...', { request });\n const traceStep = this.createWrapperTraceStep(sessionContext, 'generate-templates');\n await this.traceWrapperStart(\n sessionContext,\n traceStep,\n 'email-template-generation-wrapper-start',\n 'Generate email templates',\n {\n forceRegenerate: request.forceRegenerate === true,\n templateRefs: request.templateRefs ?? [],\n locales: request.locales ?? [],\n },\n 'email-template-generation-wrapper-request.json',\n request,\n );\n\n try {\n const primaryLocale = this.resolvePrimaryGenerationLocale(request.locales);\n const snapshot = await this.translationPlacementService.getPlacementSnapshot({\n includeShared: false,\n includeFrontend: false,\n includeBackendEmail: true,\n });\n const ownership = snapshot.backendEmail.flatMap((entry) => entry.emailTemplateOwnership);\n const targets = resolveEmailTemplateArtifactTargets(\n this.getWorkspaceRoot(),\n ownership,\n request.templateRefs,\n );\n this.assertResolvedEmailTargetsOrThrow(targets, snapshot.warnings, request.templateRefs);\n\n const details: GenerateEmailTemplatesResult['details'] = [];\n let generated = 0;\n let skipped = 0;\n let failed = 0;\n\n for (const target of targets) {\n const labelsPath = labelsFilePath(target.dirPath, primaryLocale);\n\n try {\n let hasTemplate = await fileExists(target.templatePath);\n if (!request.forceRegenerate && !hasTemplate) {\n hasTemplate = await this.seedTemplateFromDeliveredCanon(target);\n }\n const hasLabels = await fileExists(labelsPath);\n const existingLabels = hasLabels ? await this.tryReadExistingLabels(labelsPath) : null;\n\n if (\n !request.forceRegenerate\n && hasTemplate\n && existingLabels\n && Object.keys(existingLabels).length > 0\n ) {\n skipped++;\n details.push({\n ownerId: target.ownerId,\n templateRef: target.templateRef,\n locale: primaryLocale,\n success: true,\n skipped: true,\n templatePath: target.templatePath,\n labelsPath,\n });\n continue;\n }\n\n const currentTemplateSource = hasTemplate\n ? await readUtf8File(target.templatePath)\n : null;\n const labelsTypeName = this.buildLabelsTypeName(target.templateRef);\n const generatedBundle = await this.generateTemplateArtifactsWithAgent({\n templateRef: target.templateRef,\n locale: primaryLocale,\n labelsTypeName,\n currentTemplateSource,\n existingLabels: existingLabels ?? undefined,\n }, sessionContext);\n this.assertTemplateLabelsConsistencyOrThrow(\n generatedBundle.templateSource,\n generatedBundle.labels,\n );\n\n const validation = await this.emailTemplateValidator.validate(generatedBundle.templateSource);\n if (!validation.valid) {\n throw new Error(validation.errors.join(', '));\n }\n\n await writeUtf8File(target.templatePath, this.normalizeGeneratedTemplateSource(generatedBundle.templateSource));\n await writeUtf8File(\n labelsPath,\n formatLabelsTsFile({\n localeCode: primaryLocale,\n localeDisplayName: LANGUAGE_INFO_MAP[primaryLocale]?.name ?? primaryLocale,\n isPrimaryLocale: true,\n entries: generatedBundle.labels,\n labelsTypeName,\n usesAsConst: true,\n }),\n );\n\n generated++;\n details.push({\n ownerId: target.ownerId,\n templateRef: target.templateRef,\n locale: primaryLocale,\n success: true,\n templatePath: target.templatePath,\n labelsPath,\n });\n } catch (error) {\n failed++;\n details.push({\n ownerId: target.ownerId,\n templateRef: target.templateRef,\n locale: primaryLocale,\n success: false,\n templatePath: target.templatePath,\n labelsPath,\n errors: [formatUnknownError(error)],\n });\n }\n }\n\n await this.refreshEmailTemplateRegistry();\n\n const result = {\n generated,\n skipped,\n failed,\n warnings: snapshot.warnings,\n details,\n generatedAt: new Date().toISOString(),\n };\n const completedWithFailures = failed > 0;\n await this.traceWrapperSuccess(\n sessionContext,\n traceStep,\n completedWithFailures\n ? 'email-template-generation-wrapper-mixed-result'\n : 'email-template-generation-wrapper-success',\n completedWithFailures\n ? `Generated email templates for ${generated} targets with ${failed} failures`\n : `Generated email templates for ${generated} targets`,\n {\n generated,\n skipped,\n failed,\n warningCount: snapshot.warnings.length,\n },\n 'email-template-generation-wrapper-result.json',\n result,\n );\n return result;\n } catch (error) {\n await this.traceWrapperFailure(\n sessionContext,\n traceStep,\n 'email-template-generation-wrapper-failure',\n 'Email template generation failed',\n error,\n {\n forceRegenerate: request.forceRegenerate === true,\n templateRefs: request.templateRefs ?? [],\n locales: request.locales ?? [],\n },\n );\n throw error;\n }\n }\n\n /**\n * Preview and test-send share the application's email logo resolver. Their synthetic names,\n * object ids and recipients remain distinct. Scope overrides merge over branding/defaults;\n * other object-context fields (parents and operation) survive without replacing that scope.\n * This is an authoring context, not a replay of a notification producer's real resource context.\n */\n private buildMockObjectContext(defaultScope: PrimaryScopeContext, overrides?: EmailTemplateMockObjectContext): ObjectContext {\n return {\n ...overrides,\n primaryScopeContext: {\n ...defaultScope,\n logoUrl: this.appConfigService.resolveBrandLogoAbsoluteUrl({\n composition: BrandAssetComposition.LOCKUP,\n purpose: BrandAssetPurpose.EMAIL,\n }) ?? undefined,\n ...overrides?.primaryScopeContext,\n },\n };\n }\n\n /**\n * Preview an email template with mock context\n */\n async previewTemplate(\n request: PreviewEmailTemplateRequest,\n sessionContext?: CompanionExecutionSessionContext,\n ): Promise<PreviewEmailTemplateResult> {\n this.logDebug('Previewing email template...', { \n templateRef: request.templateRef, \n locale: request.locale,\n });\n\n const traceStep = this.createWrapperTraceStep(sessionContext, `preview-${request.templateRef}`);\n await this.traceWrapperStart(\n sessionContext,\n traceStep,\n 'email-template-preview-start',\n `Preview email template ${request.templateRef}`,\n {\n templateRef: request.templateRef,\n locale: request.locale,\n },\n 'email-template-preview-request.json',\n request,\n );\n\n try {\n\n await this.refreshEmailTemplateRegistry();\n const resolved = this.emailTemplateRegistry.resolve(\n request.templateRef,\n request.locale,\n this.getDefaultLocale(),\n this.getFallbackLocale(),\n );\n\n const defaultUserContext = {\n userId: 'preview-user-id',\n email: 'preview@example.com',\n name: 'Preview User',\n firstName: 'Preview',\n };\n \n const mockContext = {\n currentObject: request.mockContext?.currentObject || { _id: 'preview-id', title: 'Preview Object' },\n objectContext: this.buildMockObjectContext({\n appName: 'Preview App', applicationId: 'preview-app-id', organizationName: 'Preview Organization',\n }, request.mockContext?.objectContext),\n userContext: request.mockContext?.userContext \n ? { userId: 'preview-user-id', ...request.mockContext.userContext }\n : defaultUserContext,\n additionalContext: request.mockContext?.additionalContext || {},\n };\n\n const brandTokens = this.getDesignTokens();\n const templateProps = {\n context: mockContext,\n brand: brandTokens,\n labels: resolved.labels,\n };\n\n const subject = resolved.definition.subject(templateProps);\n const bodyElement = resolved.definition.body(templateProps);\n const bodyHtml = await render(bodyElement, { pretty: true });\n const bodyText = await render(bodyElement, { plainText: true });\n\n const previewResult = {\n templateRef: request.templateRef,\n locale: request.locale,\n resolvedLocale: resolved.resolvedLocale,\n subject,\n bodyHtml,\n bodyText,\n previewedAt: new Date().toISOString(),\n };\n await this.traceWrapperSuccess(\n sessionContext,\n traceStep,\n 'email-template-preview-success',\n `Previewed email template ${request.templateRef}`,\n {\n templateRef: request.templateRef,\n locale: request.locale,\n resolvedLocale: resolved.resolvedLocale ?? null,\n },\n 'email-template-preview-result.json',\n previewResult,\n );\n return previewResult;\n } catch (error) {\n await this.traceWrapperFailure(\n sessionContext,\n traceStep,\n 'email-template-preview-failure',\n `Failed to preview email template ${request.templateRef}`,\n error,\n {\n templateRef: request.templateRef,\n locale: request.locale,\n },\n );\n if (isWildoBackendError(error) || (error as { customMessageReference?: unknown })?.customMessageReference) {\n throw error;\n }\n\n this.logger.error('Failed to preview email template', {\n templateRef: request.templateRef,\n locale: request.locale,\n error: formatUnknownError(error),\n });\n\n throw this.errorBuilder.buildFromStandardError(error, undefined, {\n customMessageReference: ErrorCustomMessageReference.INTERNAL,\n context: { operation: 'previewTemplate' },\n });\n }\n }\n\n /**\n * Send a test email using a template\n */\n async testSend(\n request: TestSendEmailRequest,\n sessionContext?: CompanionExecutionSessionContext,\n ): Promise<TestSendEmailResult> {\n this.logDebug('Sending test email...', {\n templateRef: request.templateRef,\n locale: request.locale,\n recipientEmail: request.recipientEmail,\n });\n\n const traceStep = this.createWrapperTraceStep(sessionContext, `test-send-${request.templateRef}`);\n await this.traceWrapperStart(\n sessionContext,\n traceStep,\n 'email-template-test-send-start',\n `Send test email for template ${request.templateRef}`,\n {\n templateRef: request.templateRef,\n locale: request.locale,\n recipientEmail: request.recipientEmail,\n },\n 'email-template-test-send-request.json',\n request,\n );\n\n const submissionId = randomUUID();\n let submissionAttempted = false;\n let sendResult: TestSendEmailResult | undefined;\n try {\n\n await this.refreshEmailTemplateRegistry();\n const defaultUserContext = {\n userId: 'test-user-id',\n email: request.recipientEmail,\n name: 'Test User',\n firstName: 'Test',\n };\n \n const context = {\n currentObject: request.mockContext?.currentObject || { _id: 'test-id', title: 'Test Object' },\n objectContext: this.buildMockObjectContext({\n appName: 'Test App', applicationId: 'test-app-id', organizationName: 'Test Organization',\n }, request.mockContext?.objectContext),\n userContext: request.mockContext?.userContext \n ? { userId: 'test-user-id', ...request.mockContext.userContext }\n : defaultUserContext,\n additionalContext: request.mockContext?.additionalContext || {},\n };\n\n submissionAttempted = true;\n const result = await this.emailService.send({\n submissionId,\n templateRef: request.templateRef,\n locale: request.locale,\n type: EmailTemplateType.TRANSACTIONAL,\n to: request.recipientEmail,\n context,\n });\n\n sendResult = {\n success: result.success,\n submissionId: result.submissionId,\n outcome: result.outcome,\n retryable: result.retryable,\n deduplicated: result.deduplicated,\n templateRef: request.templateRef,\n locale: request.locale,\n recipientEmail: request.recipientEmail,\n providerMessageIds: result.providerMessageIds,\n error: result.error,\n sentAt: new Date().toISOString(),\n };\n await this.traceWrapperSuccess(\n sessionContext,\n traceStep,\n 'email-template-test-send-success',\n `Completed test email attempt for template ${request.templateRef}`,\n {\n templateRef: request.templateRef,\n locale: request.locale,\n recipientEmail: request.recipientEmail,\n success: result.success,\n },\n 'email-template-test-send-result.json',\n sendResult,\n );\n return sendResult;\n } catch (error) {\n // Reporting failures cannot erase or contradict the sender's already-known outcome.\n if (sendResult) {\n this.logger.error('Failed to record test email trace', {\n submissionId: sendResult.submissionId,\n outcome: sendResult.outcome,\n providerMessageIds: sendResult.providerMessageIds,\n error: formatUnknownError(error),\n });\n return sendResult;\n }\n this.logger.error('Failed to send test email', {\n templateRef: request.templateRef,\n locale: request.locale,\n recipientEmail: request.recipientEmail,\n providerMessageIds: [],\n error: formatUnknownError(error),\n });\n\n const failureResult: TestSendEmailResult = {\n success: false,\n submissionId,\n outcome: submissionAttempted ? EmailSubmissionOutcome.ACCEPTANCE_UNKNOWN : EmailSubmissionOutcome.NOT_SUBMITTED,\n retryable: submissionAttempted,\n templateRef: request.templateRef,\n locale: request.locale,\n recipientEmail: request.recipientEmail,\n providerMessageIds: [],\n error: formatUnknownError(error),\n sentAt: new Date().toISOString(),\n };\n await this.traceWrapperFailure(\n sessionContext,\n traceStep,\n 'email-template-test-send-failure',\n `Failed to send test email for template ${request.templateRef}`,\n error,\n {\n templateRef: request.templateRef,\n locale: request.locale,\n recipientEmail: request.recipientEmail,\n },\n );\n await this.traceWrapperSuccess(\n sessionContext,\n traceStep,\n 'email-template-test-send-result',\n `Recorded failed test email result for template ${request.templateRef}`,\n {\n templateRef: request.templateRef,\n locale: request.locale,\n recipientEmail: request.recipientEmail,\n success: false,\n },\n 'email-template-test-send-result.json',\n failureResult,\n );\n return failureResult;\n }\n }\n\n /**\n * Get filesystem-backed status of email template artifacts.\n */\n /**\n * The app-root-relative files the email-template pipelines are responsible for, for the given\n * locales: one `template.tsx` per owned template plus one `labels.<locale>.ts` per locale.\n *\n * This is the email domain's HALF of the build lane's landed-evidence contract: PLACEMENT — which\n * directory, which file names — is this domain's single authority (`resolveEmailTemplateArtifactTargets`\n * + `templateFilePath`/`labelsFilePath`), while the build lane owns what \"landed\" means (every path\n * committed in git). Derived from the live placement snapshot, so the set is re-derivable after a\n * restart, a fresh clone, or a branch switch — never a stored list.\n */\n async resolveExpectedArtifactRelativePaths(locales: readonly string[]): Promise<readonly string[]> {\n const snapshot = await this.translationPlacementService.getPlacementSnapshot({\n includeShared: false,\n includeFrontend: false,\n includeBackendEmail: true,\n });\n const ownership = snapshot.backendEmail.flatMap((entry) => entry.emailTemplateOwnership);\n const workspaceRoot = this.getWorkspaceRoot();\n const targets = resolveEmailTemplateArtifactTargets(workspaceRoot, ownership);\n return targets\n .flatMap((target) => [target.templatePath, ...locales.map((locale) => labelsFilePath(target.dirPath, locale))])\n .map((absolutePath) => path.relative(workspaceRoot, absolutePath).split(path.sep).join(path.posix.sep));\n }\n\n async getTemplateStatus(\n templateRefs?: string[],\n sessionContext?: CompanionExecutionSessionContext,\n ): Promise<EmailTemplateStatusResult[]> {\n this.logDebug('Getting template status...', { templateRefs });\n const traceStep = this.createWrapperTraceStep(sessionContext, 'status');\n await this.traceWrapperStart(\n sessionContext,\n traceStep,\n 'email-template-status-start',\n 'Get email template status',\n {\n templateRefs: templateRefs ?? [],\n },\n 'email-template-status-request.json',\n { templateRefs },\n );\n\n try {\n const snapshot = await this.translationPlacementService.getPlacementSnapshot({\n includeShared: false,\n includeFrontend: false,\n includeBackendEmail: true,\n });\n const ownership = snapshot.backendEmail.flatMap((entry) => entry.emailTemplateOwnership);\n const targets = resolveEmailTemplateArtifactTargets(\n this.getWorkspaceRoot(),\n ownership,\n templateRefs,\n );\n this.assertResolvedEmailTargetsOrThrow(targets, snapshot.warnings, templateRefs);\n\n const statusResults = await Promise.all(\n targets.map(async (target) => {\n const templateExists = await fileExists(target.templatePath);\n const localeStatuses = await this.getTemplateLocaleStatuses(target.dirPath);\n\n return {\n ownerId: target.ownerId,\n templateRef: target.templateRef,\n templatePath: target.templatePath,\n templateExists,\n locales: localeStatuses,\n } satisfies EmailTemplateStatusResult;\n }),\n );\n\n await this.traceWrapperSuccess(\n sessionContext,\n traceStep,\n 'email-template-status-success',\n `Resolved status for ${statusResults.length} email templates`,\n {\n templateRefs: templateRefs ?? [],\n resultCount: statusResults.length,\n },\n 'email-template-status-result.json',\n statusResults,\n );\n return statusResults;\n } catch (error) {\n await this.traceWrapperFailure(\n sessionContext,\n traceStep,\n 'email-template-status-failure',\n 'Failed to resolve email template status',\n error,\n {\n templateRefs: templateRefs ?? [],\n },\n );\n this.logger.error('Failed to get template status', {\n error: formatUnknownError(error),\n });\n\n if (isWildoBackendError(error)) {\n throw error;\n }\n throw this.errorBuilder.buildFromStandardError(error, undefined, {\n customMessageReference: ErrorCustomMessageReference.INTERNAL,\n context: { operation: 'getTemplateStatus' },\n });\n }\n }\n\n /**\n * Translate owner-scoped email `labels.{source}.ts` files into\n * `labels.{target}.ts` using the companion labelling translation agent.\n *\n * Reads the app package root from the resolved `CompanionContext.saasRoot`\n * snapshot — the companion trusts the context established at bootstrap and\n * does not consult `process.env.COMPANION_WORKSPACE_ROOT` at runtime.\n */\n async translateEmailTemplateLabels(\n request: TranslateEmailTemplateLabelsRequest,\n sessionContext?: CompanionExecutionSessionContext,\n ): Promise<TranslateEmailTemplateLabelsResult> {\n const traceStep = this.createWrapperTraceStep(sessionContext, 'translate-email-template-labels');\n await this.traceWrapperStart(\n sessionContext,\n traceStep,\n 'email-label-translation-wrapper-start',\n 'Translate email template labels',\n {\n primaryLocale: this.getDefaultLocale(),\n targetLocales: request.targetLocales ?? [],\n templateRefs: request.templateRefs ?? [],\n dryRun: request.dryRun === true,\n },\n 'email-label-translation-wrapper-request.json',\n request,\n );\n\n try {\n const primaryLocale = this.getDefaultLocale();\n const targetLocales = [...new Set(request.targetLocales ?? [])];\n\n if (!Array.isArray(targetLocales) || 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\n const resolvedTargets = targetLocales.map((code) => this.parseAvailableLanguageOrThrow(code));\n\n for (const t of resolvedTargets) {\n if (t === primaryLocale) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: `targetLocales must not include the primary locale (${primaryLocale})` },\n });\n }\n }\n\n const snapshot = await this.translationPlacementService.getPlacementSnapshot({\n includeShared: false,\n includeFrontend: false,\n includeBackendEmail: true,\n });\n const ownership = snapshot.backendEmail.flatMap((entry) => entry.emailTemplateOwnership);\n const dirs = resolveEmailTemplateArtifactTargets(\n this.getWorkspaceRoot(),\n ownership,\n request.templateRefs,\n );\n this.assertResolvedEmailTargetsOrThrow(dirs, snapshot.warnings, request.templateRefs);\n\n const details: TranslateEmailTemplateLabelsResult['details'] = [];\n let translatedFiles = 0;\n let skipped = 0;\n let failed = 0;\n\n const primaryLocaleName = LANGUAGE_INFO_MAP[primaryLocale]?.name ?? primaryLocale;\n\n for (const { ownerId, dirPath, templateRef } of dirs) {\n const sourcePath = labelsFilePath(dirPath, primaryLocale);\n if (!(await fileExists(sourcePath))) {\n for (const targetLocale of resolvedTargets) {\n details.push({\n ownerId,\n templateRef,\n targetLocale,\n success: false,\n error: `Missing source labels file: ${sourcePath}`,\n });\n failed++;\n }\n continue;\n }\n\n let parsed: ReturnType<typeof parseEmailLabelsTsSource>;\n try {\n const src = await readUtf8File(sourcePath);\n parsed = parseEmailLabelsTsSource(src);\n } catch (e) {\n const msg = formatUnknownError(e);\n for (const targetLocale of resolvedTargets) {\n details.push({\n ownerId,\n templateRef,\n targetLocale,\n success: false,\n error: `Failed to parse ${sourcePath}: ${msg}`,\n });\n failed++;\n }\n continue;\n }\n\n const keys = Object.keys(parsed.entries);\n if (keys.length === 0) {\n skipped++;\n continue;\n }\n\n for (const targetLang of resolvedTargets) {\n const outPath = labelsFilePath(dirPath, targetLang);\n const targetName = LANGUAGE_INFO_MAP[targetLang]?.name ?? targetLang;\n\n if (request.dryRun) {\n details.push({\n ownerId,\n templateRef,\n targetLocale: targetLang,\n success: true,\n outputPath: outPath,\n });\n translatedFiles++;\n continue;\n }\n\n try {\n const translated = await this.translateLabelEntriesWithAgent(\n parsed.entries,\n primaryLocaleName,\n targetName,\n keys,\n templateRef,\n sessionContext,\n );\n\n const body = formatLabelsTsFile({\n localeCode: targetLang,\n localeDisplayName: targetName,\n isPrimaryLocale: false,\n entries: translated,\n labelsTypeName: parsed.labelsTypeName,\n usesAsConst: parsed.usesAsConst,\n });\n\n await writeUtf8File(outPath, body);\n translatedFiles++;\n details.push({\n ownerId,\n templateRef,\n targetLocale: targetLang,\n success: true,\n outputPath: outPath,\n });\n } catch (e) {\n failed++;\n const msg = formatUnknownError(e);\n details.push({\n ownerId,\n templateRef,\n targetLocale: targetLang,\n success: false,\n error: msg,\n });\n }\n }\n }\n\n if (!request.dryRun) {\n await this.refreshEmailTemplateRegistry();\n }\n\n const result = {\n translatedFiles,\n skipped,\n failed,\n warnings: snapshot.warnings,\n details,\n completedAt: new Date().toISOString(),\n };\n const completedWithFailures = failed > 0;\n await this.traceWrapperSuccess(\n sessionContext,\n traceStep,\n completedWithFailures\n ? 'email-label-translation-wrapper-mixed-result'\n : 'email-label-translation-wrapper-success',\n completedWithFailures\n ? `Translated ${translatedFiles} email label files with ${failed} failures`\n : `Translated ${translatedFiles} email label files`,\n {\n translatedFiles,\n skipped,\n failed,\n warningCount: snapshot.warnings.length,\n },\n 'email-label-translation-wrapper-result.json',\n result,\n );\n return result;\n } catch (error) {\n await this.traceWrapperFailure(\n sessionContext,\n traceStep,\n 'email-label-translation-wrapper-failure',\n 'Email label translation failed',\n error,\n {\n primaryLocale: this.getDefaultLocale(),\n targetLocales: request.targetLocales ?? [],\n templateRefs: request.templateRefs ?? [],\n dryRun: request.dryRun === true,\n },\n );\n throw error;\n }\n }\n\n private resolvePrimaryGenerationLocale(requestedLocales?: AvailableLanguage[]): AvailableLanguage {\n const resolvedDefault = this.getDefaultLocale();\n\n if (!requestedLocales?.length) {\n return resolvedDefault;\n }\n\n const resolvedRequested = requestedLocales.map((locale) =>\n this.parseAvailableLanguageOrThrow(locale),\n );\n\n if (resolvedRequested.some((locale) => locale !== resolvedDefault)) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `Email generation only writes the primary locale (${resolvedDefault}). Use /email-templates/translate for additional locales.`,\n },\n });\n }\n\n return resolvedDefault;\n }\n\n private async tryReadExistingLabels(\n labelsPath: string,\n ): Promise<Record<string, string> | null> {\n try {\n const source = await readUtf8File(labelsPath);\n return parseEmailLabelsTsSource(source).entries;\n } catch {\n return null;\n }\n }\n\n private buildLabelsTypeName(templateRef: string): string {\n const normalized = templateRef\n .replace(/^system\\./, '')\n .replace(/^email\\./, '')\n .split(/[^a-zA-Z0-9]+/)\n .filter(Boolean)\n .map((part) => part.charAt(0).toUpperCase() + part.slice(1))\n .join('');\n\n return `${normalized || 'Template'}Labels`;\n }\n\n private normalizeGeneratedTemplateSource(templateSource: string): string {\n return templateSource.trimEnd() + '\\n';\n }\n\n private assertTemplateLabelsConsistencyOrThrow(\n templateSource: string,\n labels: Record<string, string>,\n ): void {\n const referencedKeys = new Set<string>();\n // Scan the EXECUTABLE body only — strip `import … from '…'` statements\n // first. The mandatory label-type import\n // (`import type { XLabels } from './labels.<locale>'`, required by the\n // generation prompt) otherwise matches the `labels.<key>` access pattern\n // below and reports the LOCALE segment (e.g. `en`) as a phantom missing\n // label key, failing generation for EVERY template by construction.\n // Labels are only ever READ inside subject()/body(), never in an import\n // specifier, so dropping import statements is safe and removes the whole\n // false-positive class. The lazy `[\\s\\S]*?` spans multi-line imports up to\n // their `from '…'` specifier.\n const scannableSource = templateSource.replace(\n /import\\b[\\s\\S]*?from\\s*['\"][^'\"]*['\"]\\s*;?/g,\n '',\n );\n const labelAccessPatterns = [\n /labels\\.([a-zA-Z0-9_]+)/g,\n /labels\\[['\"]([a-zA-Z0-9_]+)['\"]\\]/g,\n ];\n let match: RegExpExecArray | null = null;\n\n for (const pattern of labelAccessPatterns) {\n while ((match = pattern.exec(scannableSource)) !== null) {\n referencedKeys.add(match[1]);\n }\n }\n\n const destructurePattern = /\\{([^}]+)\\}\\s*=\\s*labels\\b/g;\n while ((match = destructurePattern.exec(scannableSource)) !== null) {\n const destructuredMembers = match[1]\n .split(',')\n .map((member) => member.trim())\n .filter(Boolean)\n .map((member) => member.split(':')[0]?.trim())\n .filter((member): member is string => Boolean(member));\n\n for (const member of destructuredMembers) {\n referencedKeys.add(member);\n }\n }\n\n const missingKeys = Array.from(referencedKeys).filter((key) => !(key in labels));\n if (missingKeys.length > 0) {\n throw new Error(\n `Generated template references missing label keys: ${missingKeys.join(', ')}`,\n );\n }\n }\n\n /**\n * Return the trusted SaaS app root for email template/label file operations.\n *\n * Always reads `this.companionContext.saasRoot`. `COMPANION_WORKSPACE_ROOT`\n * is only a subprocess bootstrap seed (written by\n * `applyTrustedHomesToChildProcess`) and must never override the resolved\n * CompanionContext snapshot at runtime — otherwise a stale env var could\n * silently misroute generated email artifacts to the wrong app.\n */\n private getWorkspaceRoot(): string {\n return this.companionContext.saasRoot;\n }\n\n /**\n * Answer a template the application does not have yet from the delivered engine canon, with no model\n * call. Answers whether the template now exists.\n *\n * `wildo init` copies the canon once, so an engine email added afterwards reached an existing\n * application only by generating it — the cost the canon exists to avoid, for a template that is the\n * same in every application. This is the email twin of the labelling run's base seeding. It copies\n * the template and the labels of each locale the application serves, and NEVER overwrites: a file\n * that exists is the application's, generated or edited. A template the canon does not carry — the\n * application's own — is generated as before.\n */\n private async seedTemplateFromDeliveredCanon(target: EmailTemplateArtifactTarget): Promise<boolean> {\n const canonDirectory = path.join(this.getWorkspaceRoot(), DELIVERED_EMAIL_CANON_RELATIVE, templateRefToRelativeDir(target.templateRef));\n if (!(await fileExists(templateFilePath(canonDirectory)))) return false;\n const locales = getCompanionEnabledLocaleCodes(this.appConfigService.config as Parameters<typeof getCompanionEnabledLocaleCodes>[0]);\n const copied: string[] = [];\n for (const fileName of [path.basename(templateFilePath(canonDirectory)), ...locales.map((locale) => path.basename(labelsFilePath(canonDirectory, locale)))]) {\n const source = path.join(canonDirectory, fileName);\n const destination = path.join(target.dirPath, fileName);\n if (!(await fileExists(source)) || (await fileExists(destination))) continue;\n await fs.mkdir(target.dirPath, { recursive: true });\n await fs.copyFile(source, destination);\n copied.push(fileName);\n }\n if (copied.length > 0) this.logDebug('Seeded an engine email template from the delivered canon', { templateRef: target.templateRef, copied });\n return fileExists(target.templatePath);\n }\n\n private assertResolvedEmailTargetsOrThrow(\n targets: Array<{ templateRef: string }>,\n warnings: string[],\n requestedTemplateRefs?: string[],\n ): void {\n if (requestedTemplateRefs?.length) {\n const resolvedRefs = new Set(targets.map((target) => target.templateRef));\n const missingRefs = requestedTemplateRefs.filter((templateRef) => !resolvedRefs.has(templateRef));\n\n if (missingRefs.length > 0) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `Unknown email template refs: ${missingRefs.join(', ')}`,\n missingTemplateRefs: missingRefs,\n },\n });\n }\n }\n\n if (targets.length > 0) {\n return;\n }\n\n if (requestedTemplateRefs?.length) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `No email template targets resolved for the requested templateRefs: ${requestedTemplateRefs.join(', ')}`,\n },\n });\n }\n\n if (warnings.length > 0) {\n throw this.errorBuilder.buildError(ErrorType.INTERNAL, undefined, {\n customMessageReference: ErrorCustomMessageReference.INTERNAL,\n context: {\n message: `Email template placement resolution failed: ${warnings.join(' | ')}`,\n },\n });\n }\n }\n\n /**\n * Reload the backend email-definition modules and repopulate the in-memory registry so\n * preview/test-send use the latest filesystem email artifacts.\n */\n private async refreshEmailTemplateRegistry(): Promise<void> {\n const distRoot = this.getPrimaryBackendDistRoot();\n const cacheBust = `${Date.now()}`;\n\n process.env.WILDO_EMAIL_TEMPLATE_IMPORT_BUST = cacheBust;\n\n try {\n const { loadBackendModules } = await loadBackendCompanionExports(this.companionContext);\n const backendModules = await loadBackendModules();\n const emailOwnerModules = backendModules.filter((ownedModule) =>\n Object.keys(ownedModule.emailTemplateDefinitions ?? {}).length > 0\n );\n const importedEmailModules = await Promise.all(\n emailOwnerModules.map(async (ownedModule) => {\n const definitionsEntryPath = ownedModule.kind === 'engine'\n ? path.join(distRoot, 'engine/email/email-template-definitions.js')\n : path.join(distRoot, 'modules', ownedModule.moduleId, 'emails/module-email-template-definitions.js');\n const definitionsModuleUrl = `${pathToFileURL(definitionsEntryPath).href}?refresh=${cacheBust}`;\n return import(definitionsModuleUrl) as Promise<{\n emailTemplateDefinitions?: Record<string, {\n template: unknown;\n labels: Record<string, Record<string, string>>;\n }>;\n moduleEmailTemplateDefinitions?: Record<string, {\n template: unknown;\n labels: Record<string, Record<string, string>>;\n }>;\n default?: {\n emailTemplateDefinitions?: Record<string, {\n template: unknown;\n labels: Record<string, Record<string, string>>;\n }>;\n };\n }>;\n }),\n );\n\n const refreshedDefinitions: EmailTemplateDefinitionsMap = Object.assign(\n {},\n ...importedEmailModules.map((ownerModule) => (\n ownerModule.emailTemplateDefinitions\n ?? ownerModule.moduleEmailTemplateDefinitions\n ?? ownerModule.default?.emailTemplateDefinitions\n ?? {}\n )),\n ) as EmailTemplateDefinitionsMap;\n\n this.emailTemplateRegistry.initialize(refreshedDefinitions);\n } finally {\n delete process.env.WILDO_EMAIL_TEMPLATE_IMPORT_BUST;\n }\n }\n\n private getPrimaryBackendDistRoot(): string {\n const backendTarget = resolvePrimaryBackendServiceTarget(this.companionContext);\n return path.resolve(backendTarget.packageRoot, 'dist');\n }\n\n private buildTemplateArtifactGenerationPrompt(\n options: {\n templateRef: string;\n locale: AvailableLanguage;\n labelsTypeName: string;\n currentTemplateSource: string | null;\n existingLabels?: Record<string, string>;\n },\n specContextMarkdown?: string,\n correctionMarkdown?: string,\n ): string {\n const localeName = LANGUAGE_INFO_MAP[options.locale]?.name ?? options.locale;\n // Slice 3.7 (F-53): the LLM prompt wants the human-friendly UI label\n // (`displayName`), with a defensive fallback to the canonical\n // `appName` (id) only when the operator has not authored a display\n // label. The local is named `appDisplayLabel` to avoid colliding\n // with `appIdentity.appName` (the canonical id field).\n const appDisplayLabel = this.appConfigService.config.appIdentity?.displayName\n ?? this.appConfigService.config.appIdentity?.appName\n ?? 'Application';\n\n // Authored-spec context block (DD1: the CUSTOM_IMPLEMENTATION_CONTEXT\n // render — purpose, tone, text-slot meaning, event data, business\n // constraints). Empty when the templateRef has no authored\n // SystemEmailTemplateSpecification — the prompt then falls back to ref +\n // app name + current source only (the context-starved baseline).\n const specContextLines = specContextMarkdown\n ? [\n '',\n '# Email purpose & contract (authored specification — honor over assumptions)',\n 'Generate the template and labels to satisfy this authored spec. It defines',\n \"the email's purpose, tone, the meaning of each text slot, the event data the\",\n 'template receives at send time, and any business constraints. Prefer it over',\n 'inferring intent from the templateRef.',\n '',\n specContextMarkdown.trim(),\n ]\n : [];\n\n // Appended only on a retry — see generateTemplateArtifactsWithAgent's loop.\n const correctionLines = correctionMarkdown\n ? ['', '# Correction (your previous attempt was rejected)', correctionMarkdown.trim()]\n : [];\n\n return [\n `Rewrite or generate the email template artifacts for templateRef \"${options.templateRef}\".`,\n `Primary locale: ${options.locale} (${localeName}).`,\n `Application name: ${appDisplayLabel}.`,\n ...specContextLines,\n '',\n 'Return a JSON object only, with this shape:',\n '{',\n ' \"templateSource\": \"full TSX source for template.tsx\",',\n ' \"labels\": { \"flatLabelKey\": \"Primary locale string\" }',\n '}',\n '',\n 'Code conventions you MUST follow:',\n \"- `templateSource` must be a complete `template.tsx` file.\",\n \"- Import `* as React` from 'react'.\",\n \"- Import `{ type EmailTemplateDefinition, interpolateEmailLabel }` from '@wildo-ai/saas-backend-lib'.\",\n `- Import type \\`${options.labelsTypeName}\\` from './labels.${options.locale}'.`,\n \"- Import UI primitives only from '~backend-api/engine/email/components'.\",\n `- Export a default \\`const template: EmailTemplateDefinition<${options.labelsTypeName}>\\`.`,\n '- Keep all user-visible copy in the `labels` object, not inline in JSX or subject strings.',\n '- Access label values only as direct `labels.someKey` property reads. Do not destructure `labels` and do not use bracket notation.',\n '- Use `interpolateEmailLabel(labels.someKey, { placeholder })` for label strings that contain placeholders like `{appName}`.',\n '- Keep the label object flat and string-only.',\n '- Preserve the current business behavior and context-field access whenever the existing template already expresses it correctly.',\n '',\n 'Current template source (use this as the behavioral source of truth when present):',\n '```tsx',\n options.currentTemplateSource ?? '// No current template source available. Generate a sensible template from scratch.',\n '```',\n '',\n 'Existing primary-locale labels (reuse stable keys when sensible):',\n JSON.stringify(options.existingLabels ?? {}, null, 2),\n ...correctionLines,\n ].join('\\n');\n }\n\n private async generateTemplateArtifactsWithAgent(options: {\n templateRef: string;\n locale: AvailableLanguage;\n labelsTypeName: string;\n currentTemplateSource: string | null;\n existingLabels?: Record<string, string>;\n }, sessionContext?: CompanionExecutionSessionContext): Promise<GeneratedEmailTemplateBundle> {\n // Resolve the authored SystemEmailTemplateSpecification context (purpose,\n // tone, per-slot text-slot meaning, event data, business constraints) and\n // inject it into the prompt so the LLM generates from the email's real\n // contract — not just the templateRef string + current source. Best-effort:\n // a ref with no authored spec generates with generic context (the loader\n // warns and returns undefined; never throws).\n const specContext = await this.emailSpecContextLoader.loadGenerationContext(options.templateRef);\n\n const traceStep = sessionContext\n ? this.traceabilityService.createStep(sessionContext, {\n kind: 'agent-invocation',\n label: `email-template-generation-${options.templateRef}`,\n })\n : undefined;\n\n if (sessionContext) {\n await this.traceabilityService.traceEvent({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'agent-email-template-generation-start',\n summary: `Generate email template artifacts for ${options.templateRef}`,\n payload: {\n templateRef: options.templateRef,\n locale: options.locale,\n hasSpecContext: Boolean(specContext?.description),\n },\n ...(traceStep ? { step: traceStep } : {}),\n });\n // spec-context.json — the per-template \"what authored context did this\n // generation receive?\" record. `hasSpecContext:false` flags a ref whose\n // authored SystemEmailTemplateSpecification is missing (the enrichment\n // worklist), mirroring the labellize orchestrator's spec-context.json.\n await this.traceabilityService.writeArtifact({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: 'email-template-generation.spec-context.json',\n content: {\n templateRef: options.templateRef,\n locale: options.locale,\n hasSpecContext: Boolean(specContext?.description),\n description: specContext?.description ?? null,\n },\n ...(traceStep ? { step: traceStep } : {}),\n });\n await this.traceabilityService.writeArtifact({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: 'email-template-generation-input.json',\n content: { options },\n ...(traceStep ? { step: traceStep } : {}),\n });\n }\n\n // Bounded generate → parse/validate → retry-with-correction loop. The LLM\n // occasionally wraps the JSON in prose or emits a malformed object; rather\n // than failing the target outright we re-prompt once with the specific\n // rejection reason appended as a `# Correction` block (mirrors the labellize\n // orchestrator's correction-on-retry). GENERATE_TEXT is retained — the\n // GENERATE_STRUCTURED flip (DD4) stays gated on a provider large-TSX-field\n // truncation check — so the retry delivers the reliability win without it.\n const MAX_ATTEMPTS = 2;\n let lastError: unknown;\n\n for (let attempt = 1; attempt <= MAX_ATTEMPTS; attempt++) {\n const prompt = this.buildTemplateArtifactGenerationPrompt(\n options,\n specContext?.description,\n attempt > 1 ? this.buildGenerationCorrection(lastError) : undefined,\n );\n\n const invocation: FlowsActors_Agent_Invocation<\n typeof LLMProvider_GenerateTextInputSchema,\n typeof LLMProvider_GenerateTextOutputSchema,\n typeof LLMProvider_OperationContext_BaseSchema\n > = {\n agentRef: 'email-template.generation.agent',\n initiator: {},\n invocationContext: [],\n input: { prompt },\n output: { text: '' },\n executionContext: { callTimestamp: new Date().toISOString() },\n artifactBindings: [],\n };\n\n // Correlate this attempt so the engine AgentCallTraceSink writes the prompt\n // + output (+usage/latency) into THIS step, keyed by attempt (the attempt\n // rides in the label → filenames stay `…attempt-${n}.prompt.txt/.output.json`).\n // The caller keeps only its composed artifacts (generated.tsx, generated-labels).\n const traceContext = sessionContext && traceStep\n ? {\n sessionRef: sessionContext.sessionId,\n stepRef: traceStep.stepId,\n label: `email-template-generation.attempt-${attempt}`,\n attributes: { templateRef: options.templateRef, locale: options.locale, attempt },\n }\n : undefined;\n\n try {\n const result = await this.agentsService.invokeAgent(invocation, traceContext);\n const bundle = this.parseGeneratedBundle(result.output);\n\n if (sessionContext) {\n // Human-readable twins of the generated output: the template as real\n // TSX (not a JSON-escaped blob) and the labels as pretty JSON.\n await this.traceabilityService.writeArtifact({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: 'email-template-generation.generated.tsx',\n content: bundle.templateSource,\n format: CompanionTraceArtifactFormat.TEXT,\n ...(traceStep ? { step: traceStep } : {}),\n });\n await this.traceabilityService.writeArtifact({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: 'email-template-generation.generated-labels.json',\n content: bundle.labels,\n ...(traceStep ? { step: traceStep } : {}),\n });\n await this.traceabilityService.traceEvent({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'agent-email-template-generation-success',\n summary: `Generated email template artifacts for ${options.templateRef}`,\n payload: {\n templateRef: options.templateRef,\n labelCount: Object.keys(bundle.labels).length,\n attempt,\n },\n ...(traceStep ? { step: traceStep } : {}),\n });\n }\n\n return bundle;\n } catch (error) {\n lastError = error;\n const isLastAttempt = attempt >= MAX_ATTEMPTS;\n\n if (sessionContext) {\n await this.traceabilityService.traceEvent({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: isLastAttempt\n ? 'agent-email-template-generation-failure'\n : 'agent-email-template-generation-retry',\n summary: isLastAttempt\n ? `Failed to generate email template artifacts for ${options.templateRef} after ${attempt} attempt(s)`\n : `Email generation attempt ${attempt} for ${options.templateRef} failed; retrying with correction`,\n payload: {\n templateRef: options.templateRef,\n locale: options.locale,\n attempt,\n error: this.buildTraceErrorPayload(error),\n },\n ...(traceStep ? { step: traceStep } : {}),\n });\n if (isLastAttempt) {\n await this.traceabilityService.writeArtifact({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: 'email-template-generation-failure.json',\n content: {\n templateRef: options.templateRef,\n locale: options.locale,\n attempts: attempt,\n error: this.buildTraceErrorPayload(error),\n },\n ...(traceStep ? { step: traceStep } : {}),\n });\n }\n }\n\n if (isLastAttempt) {\n throw error;\n }\n }\n }\n\n // Unreachable: the loop returns a bundle or throws on the final attempt.\n throw lastError;\n }\n\n /**\n * Parse + validate the email-generation agent's raw text output into a\n * `{ templateSource, labels }` bundle. Throws with a specific message (fed\n * back to the model by the retry loop) on empty output, non-JSON output, a\n * missing/blank `templateSource`, or a missing / non-flat / empty `labels`.\n */\n private parseGeneratedBundle(output: unknown): GeneratedEmailTemplateBundle {\n const rawText = (output as { text?: string })?.text;\n if (!rawText || typeof rawText !== 'string') {\n throw new Error('Email generation agent returned empty output');\n }\n\n const jsonMatch = rawText.match(/```(?:json)?\\s*([\\s\\S]*?)```/);\n const jsonText = jsonMatch?.[1]?.trim() ?? rawText.trim();\n let parsed: { templateSource?: unknown; labels?: unknown };\n try {\n parsed = JSON.parse(jsonText) as { templateSource?: unknown; labels?: unknown };\n } catch (err) {\n throw new Error(\n `Email generation output was not valid JSON: ${describeCaughtError(err)}`,\n );\n }\n\n if (typeof parsed.templateSource !== 'string' || !parsed.templateSource.trim().length) {\n throw new Error('Email generation output is missing templateSource');\n }\n const templateSource = parsed.templateSource;\n\n if (!parsed.labels || typeof parsed.labels !== 'object' || Array.isArray(parsed.labels)) {\n throw new Error('Email generation output is missing a flat labels object');\n }\n\n const labels: Record<string, string> = {};\n for (const [key, value] of Object.entries(parsed.labels as Record<string, unknown>)) {\n if (typeof value !== 'string' || !value.trim().length) {\n throw new Error(`Email generation returned an invalid label for key \"${key}\"`);\n }\n labels[key] = value;\n }\n\n if (Object.keys(labels).length === 0) {\n throw new Error('Email generation returned an empty labels object');\n }\n\n return { templateSource, labels };\n }\n\n /**\n * Build the `# Correction` block appended to the prompt on a retry — feeds\n * the specific rejection reason back so the model fixes exactly that.\n */\n private buildGenerationCorrection(error: unknown): string {\n const reason = describeCaughtError(error);\n return [\n `Your previous attempt was rejected: ${reason}`,\n 'Return ONLY a single JSON object of the exact shape '\n + '{ \"templateSource\": \"<full template.tsx>\", \"labels\": { \"<key>\": \"<non-empty string>\" } } '\n + '— no prose before or after, every label value a non-empty string, the labels object flat.',\n ].join('\\n');\n }\n\n private parseAvailableLanguageOrThrow(code: string): AvailableLanguage {\n const found = Object.values(AvailableLanguage).find((v) => v === code);\n if (!found) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `Unknown locale code \"${code}\". Use an AvailableLanguage value (e.g. en, fr, de).`,\n },\n });\n }\n return found as AvailableLanguage;\n }\n\n private buildFlatStringSchema(keys: string[]): z.ZodObject<Record<string, z.ZodString>> {\n const shape: Record<string, z.ZodString> = {};\n for (const k of keys) {\n shape[k] = z.string();\n }\n return z.object(shape);\n }\n\n private async translateLabelEntriesWithAgent(\n entries: Record<string, string>,\n sourceLanguageLabel: string,\n targetLanguageLabel: string,\n keys: string[],\n templateRef: string,\n sessionContext?: CompanionExecutionSessionContext,\n ): Promise<Record<string, string>> {\n // Inject the authored spec's TRANSLATION_CONTEXT (purpose / tone / per-slot\n // meaning) so terminology + register stay faithful — the translate analogue\n // of the generation spec-context injection. Best-effort: undefined when the\n // ref has no authored spec (then the prompt is rules + source only).\n const specContext = await this.emailSpecContextLoader.loadTranslationContext(templateRef);\n const specContextLines = specContext?.description\n ? ['# Context (terminology & tone)', specContext.description.trim(), '']\n : [];\n const prompt = [\n `Translate email template UI strings from ${sourceLanguageLabel} to ${targetLanguageLabel}.`,\n '',\n ...specContextLines,\n 'Rules:',\n '- Preserve every placeholder token like {appName}, {firstName}, {expiresInMinutes} exactly — do not translate or remove them.',\n '- Keep the tone appropriate for transactional / product email.',\n '- Match the source brevity; use natural target-language UI conventions + typography.',\n '- Fill every field in the schema with the translated string.',\n '',\n 'Source strings (JSON):',\n JSON.stringify(entries, null, 2),\n ].join('\\n');\n\n const schema = this.buildFlatStringSchema(keys);\n\n const invocation: FlowsActors_Agent_Invocation<\n typeof LLMProvider_GenerateStructuredInputSchema,\n typeof LLMProvider_GenerateStructuredOutputSchema,\n z.ZodSchema<Record<string, string>>\n > = {\n agentRef: 'labelling.translation.agent',\n initiator: {},\n invocationContext: [],\n input: {\n prompt,\n schema,\n },\n output: {\n object: {},\n },\n executionContext: {\n callTimestamp: new Date().toISOString(),\n },\n artifactBindings: [],\n };\n\n const traceStep = sessionContext\n ? this.traceabilityService.createStep(sessionContext, {\n kind: 'agent-invocation',\n label: `email-label-translation-${targetLanguageLabel}`,\n })\n : undefined;\n\n // Correlate this call so the engine-level AgentCallTraceSink writes the\n // prompt + output (+usage/latency) artifacts into THIS session/step. Phase 4\n // migration: the engine now owns the per-call prompt/output record; the\n // caller keeps only its composed artifacts (spec-context, translated-labels).\n const traceContext = sessionContext && traceStep\n ? {\n sessionRef: sessionContext.sessionId,\n stepRef: traceStep.stepId,\n label: 'email-label-translation',\n attributes: { templateRef, targetLanguageLabel },\n }\n : undefined;\n\n try {\n if (sessionContext) {\n await this.traceabilityService.traceEvent({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'agent-email-label-translation-start',\n summary: `Translate email labels from ${sourceLanguageLabel} to ${targetLanguageLabel}`,\n payload: {\n keyCount: keys.length,\n sourceLanguageLabel,\n targetLanguageLabel,\n },\n ...(traceStep ? { step: traceStep } : {}),\n });\n // spec-context.json — `hasSpecContext:false` flags a ref whose authored\n // spec is missing (the enrichment worklist). Caller-composed; the engine\n // AgentCallTraceSink now owns the prompt + output artifacts for this step.\n await this.traceabilityService.writeArtifact({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: 'email-label-translation.spec-context.json',\n content: {\n templateRef,\n sourceLanguageLabel,\n targetLanguageLabel,\n hasSpecContext: Boolean(specContext?.description),\n description: specContext?.description ?? null,\n },\n ...(traceStep ? { step: traceStep } : {}),\n });\n }\n\n const result = await this.agentsService.invokeAgent(invocation, traceContext);\n const parsedData = (result.output as { object?: Record<string, unknown> })?.object;\n\n if (!parsedData || typeof parsedData !== 'object') {\n throw new Error('Invalid structured output from translation agent');\n }\n\n const out: Record<string, string> = {};\n for (const k of keys) {\n const v = parsedData[k];\n if (typeof v !== 'string' || !v.length) {\n throw new Error(`Translation agent returned empty or invalid value for key \"${k}\"`);\n }\n out[k] = v;\n }\n\n if (sessionContext) {\n await this.traceabilityService.writeArtifact({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: 'email-label-translation.translated-labels.json',\n // Keep the source strings beside the translated output (parity with the\n // labelling translate orchestrator's `.labels.json`). The engine sink\n // owns the raw prompt/output record; this is the caller's domain record.\n content: { object: out, sourceStrings: entries },\n ...(traceStep ? { step: traceStep } : {}),\n });\n await this.traceabilityService.traceEvent({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'agent-email-label-translation-success',\n summary: `Translated ${keys.length} email labels to ${targetLanguageLabel}`,\n payload: {\n keyCount: keys.length,\n targetLanguageLabel,\n },\n ...(traceStep ? { step: traceStep } : {}),\n });\n }\n return out;\n } catch (error) {\n if (sessionContext) {\n await this.traceabilityService.writeArtifact({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: 'email-label-translation-failure.json',\n content: {\n sourceLanguageLabel,\n targetLanguageLabel,\n keyCount: keys.length,\n error: this.buildTraceErrorPayload(error),\n },\n ...(traceStep ? { step: traceStep } : {}),\n });\n await this.traceabilityService.traceEvent({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: 'agent-email-label-translation-failure',\n summary: `Failed to translate ${keys.length} email labels to ${targetLanguageLabel}`,\n payload: {\n keyCount: keys.length,\n sourceLanguageLabel,\n targetLanguageLabel,\n error: this.buildTraceErrorPayload(error),\n },\n ...(traceStep ? { step: traceStep } : {}),\n });\n }\n throw error;\n }\n }\n\n private createWrapperTraceStep(\n sessionContext: CompanionExecutionSessionContext | undefined,\n label: string,\n ) {\n return sessionContext\n ? this.traceabilityService.createStep(sessionContext, {\n kind: 'email-template',\n label,\n })\n : undefined;\n }\n\n private async traceWrapperStart(\n sessionContext: CompanionExecutionSessionContext | undefined,\n step: ReturnType<CompanionTraceabilityService['createStep']> | undefined,\n type: string,\n summary: string,\n payload: Record<string, unknown>,\n artifactFileName: string,\n artifactContent: unknown,\n ): Promise<void> {\n if (!sessionContext) {\n return;\n }\n\n await this.traceabilityService.traceEvent({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type,\n summary,\n payload,\n ...(step ? { step } : {}),\n });\n await this.traceabilityService.writeArtifact({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: artifactFileName,\n content: artifactContent,\n ...(step ? { step } : {}),\n });\n }\n\n private async traceWrapperSuccess(\n sessionContext: CompanionExecutionSessionContext | undefined,\n step: ReturnType<CompanionTraceabilityService['createStep']> | undefined,\n type: string,\n summary: string,\n payload: Record<string, unknown>,\n artifactFileName: string,\n artifactContent: unknown,\n ): Promise<void> {\n if (!sessionContext) {\n return;\n }\n\n await this.traceabilityService.writeArtifact({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: artifactFileName,\n content: artifactContent,\n ...(step ? { step } : {}),\n });\n await this.traceabilityService.traceEvent({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type,\n summary,\n payload,\n ...(step ? { step } : {}),\n });\n }\n\n private async traceWrapperFailure(\n sessionContext: CompanionExecutionSessionContext | undefined,\n step: ReturnType<CompanionTraceabilityService['createStep']> | undefined,\n type: string,\n summary: string,\n error: unknown,\n payload: Record<string, unknown>,\n ): Promise<void> {\n if (!sessionContext) {\n return;\n }\n\n await this.traceabilityService.traceEvent({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type,\n summary,\n payload: {\n ...payload,\n error: this.buildTraceErrorPayload(error),\n },\n ...(step ? { step } : {}),\n });\n }\n\n private buildTraceErrorPayload(error: unknown) {\n if (isWildoBackendError(error)) {\n return error;\n }\n\n if (error instanceof Error) {\n return {\n message: error.message,\n name: error.name,\n ...(error.stack ? { stack: error.stack } : {}),\n };\n }\n\n return {\n message: formatUnknownError(error),\n };\n }\n\n /**\n * Resolve the application's default locale for email fallback.\n */\n private getDefaultLocale(): AvailableLanguage {\n return getCompanionConfiguredPrimaryLanguage(this.appConfigService.config);\n }\n\n private getFallbackLocale(): AvailableLanguage {\n return getCompanionConfiguredFallbackLanguage(this.appConfigService.config);\n }\n\n /**\n * Resolve brand tokens the same way the runtime email backend does.\n */\n private getDesignTokens() {\n return buildEmailBrandTokensFromConfig(this.appConfigService.config.email?.brandTokens);\n }\n\n /**\n * List existing locale label artifacts for one filesystem template directory.\n */\n private async getTemplateLocaleStatuses(\n dirPath: string,\n ): Promise<EmailTemplateStatusResult['locales']> {\n let entries: Array<{ name: string; isFile(): boolean }>;\n try {\n entries = (await fs.readdir(dirPath, {\n withFileTypes: true,\n encoding: 'utf8',\n })) as Array<{ name: string; isFile(): boolean }>;\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code === 'ENOENT') {\n return [];\n }\n throw error;\n }\n\n const localeEntries = await Promise.all(\n entries\n .filter((entry) => entry.isFile() && /^labels\\.(.+)\\.ts$/.test(entry.name))\n .map(async (entry) => {\n const localeMatch = entry.name.match(/^labels\\.(.+)\\.ts$/);\n const locale = localeMatch?.[1] ?? 'unknown';\n const labelsPath = labelsFilePath(dirPath, locale);\n const stat = await fs.stat(labelsPath);\n\n return {\n locale,\n labelsPath,\n exists: true,\n updatedAt: stat.mtime.toISOString(),\n };\n }),\n );\n\n return localeEntries.sort((left, right) => left.locale.localeCompare(right.locale));\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-labels-file-source.utils.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"email-labels-file-source.utils.d.ts","sourceRoot":"","sources":["../../../../../src/email/utils/email-labels-file-source.utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,qBAAqB;IACpC,kDAAkD;IAClD,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,oDAAoD;IACpD,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,yCAAyC;IACzC,WAAW,EAAE,OAAO,CAAC;CACtB;AAqBD;;;GAGG;AACH,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CA6F5E;AA4BD;;GAEG;AACH,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAuDxF;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,qBAAqB,CAe9E;AAYD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,OAAO,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,WAAW,EAAE,OAAO,CAAC;CACtB,GAAG,MAAM,CAeT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-template-fs-discovery.utils.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"email-template-fs-discovery.utils.d.ts","sourceRoot":"","sources":["../../../../../src/email/utils/email-template-fs-discovery.utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yCAAyC,EAAE,MAAM,iCAAiC,CAAC;AAEjG,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAqBpE;AAED,wBAAgB,mCAAmC,CACjD,aAAa,EAAE,MAAM,EACrB,SAAS,EAAE,yCAAyC,EAAE,EACtD,YAAY,CAAC,EAAE,MAAM,EAAE,GACtB,2BAA2B,EAAE,CAgC/B;AAED,wBAAsB,YAAY,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAE7D;AAED,wBAAsB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAG7E;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAE1E;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAExD;AAED,wBAAsB,UAAU,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAO5D"}
|