@wildo-ai/dev-companion 1.1.5 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/__tests__/asset-noop.d.ts.map +1 -1
- package/dist/esm/__tests__/asset-noop.js.map +1 -1
- package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +1 -1
- package/dist/esm/__tests__/chdir-dogfood-app.setup.js.map +1 -1
- package/dist/esm/__tests__/internal-test-view.d.ts.map +1 -1
- package/dist/esm/__tests__/internal-test-view.js.map +1 -1
- package/dist/esm/brand/models/logo-creative-brief.schemas.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-creative-brief.schemas.js.map +1 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.js +0 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.js.map +1 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.js +0 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
- package/dist/esm/brand/models/logo-judge.schemas.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-judge.schemas.js.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts +8 -0
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.js +6 -0
- package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
- package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts +21 -0
- package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts.map +1 -0
- package/dist/esm/brand/services/brand-propagation.companion.utils.js +33 -0
- package/dist/esm/brand/services/brand-propagation.companion.utils.js.map +1 -0
- package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
- package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
- package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
- package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
- package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
- package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +69 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +84 -3
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
- package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/coding-session-frame-retention.js.map +1 -1
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +8 -4
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js +9 -5
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answer.models.js.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js +1 -1
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -1
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts +4 -0
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js +25 -3
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +1 -1
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +159 -11
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +424 -41
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +333 -60
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +1029 -185
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts +8 -2
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js +8 -2
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts +20 -0
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts.map +1 -0
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js +29 -0
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js.map +1 -0
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts +11 -0
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js +60 -7
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +5 -4
- package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.js +13 -4
- package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
- package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.d.ts.map +1 -1
- package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.js.map +1 -1
- package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.d.ts.map +1 -1
- package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.d.ts +193 -2
- package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.js +20 -1
- package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
- package/dist/esm/companion-api/companion-error-guidance.models.d.ts +25 -0
- package/dist/esm/companion-api/companion-error-guidance.models.d.ts.map +1 -0
- package/dist/esm/companion-api/companion-error-guidance.models.js +26 -0
- package/dist/esm/companion-api/companion-error-guidance.models.js.map +1 -0
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts +44 -0
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts.map +1 -0
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.js +111 -0
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.js.map +1 -0
- package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts +6 -14
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.js +6 -14
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts +12 -0
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts.map +1 -0
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.js +20 -0
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.js.map +1 -0
- package/dist/esm/companion-api/controllers/companion.controller.d.ts +104 -14
- package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.js +516 -122
- package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts.map +1 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.js.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.models.d.ts.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.models.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js +6 -38
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
- package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js.map +1 -1
- package/dist/esm/core/config/primary-language.companion.utils.d.ts +13 -0
- package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/config/primary-language.companion.utils.js +19 -0
- package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
- package/dist/esm/core/context/companion-context.d.ts.map +1 -1
- package/dist/esm/core/context/companion-context.js.map +1 -1
- package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
- package/dist/esm/core/context/companion-package-loaders.companion.js +1 -39
- package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
- package/dist/esm/core/context/draft-family-values.companion.d.ts.map +1 -1
- package/dist/esm/core/context/draft-family-values.companion.js.map +1 -1
- package/dist/esm/core/inject/models/container.d.ts.map +1 -1
- package/dist/esm/core/inject/models/container.js +4 -0
- package/dist/esm/core/inject/models/container.js.map +1 -1
- package/dist/esm/core/inject/models/service-types.d.ts +4 -0
- package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
- package/dist/esm/core/inject/models/service-types.js +4 -0
- package/dist/esm/core/inject/models/service-types.js.map +1 -1
- package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
- package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js +16 -0
- package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
- package/dist/esm/core/introspection/models/companion-introspection.models.d.ts +1 -1
- package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
- package/dist/esm/core/introspection/models/companion-introspection.models.js +6 -0
- package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
- package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts +41 -0
- package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/resources/application-secrets.companion.js +155 -0
- package/dist/esm/core/introspection/resources/application-secrets.companion.js.map +1 -0
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts +76 -0
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.js +197 -0
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -0
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts +47 -0
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.js +199 -0
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.js.map +1 -0
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts +42 -0
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +173 -22
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts +78 -90
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +288 -25
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts +22 -36
- package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js +49 -13
- package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js +10 -15
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/translation-placement.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts +2 -0
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/assertions.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts +4 -0
- package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-hooks.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-register.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-register.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +77 -9
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-child.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-child.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts +45 -3
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js +8 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts +3 -2
- package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js +8 -3
- package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-context-block.builder.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-context-block.builder.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts +30 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js +128 -20
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts +13 -0
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +21 -17
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js.map +1 -1
- package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -1
- package/dist/esm/core/introspection/workspace-elements.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/workspace-elements.companion.js.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.js.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.models.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.models.js.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.schemas.js.map +1 -1
- package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/application-runtime-liveness.companion.js.map +1 -1
- package/dist/esm/core/runtime/companion-endpoint-record.d.ts +8 -0
- package/dist/esm/core/runtime/companion-endpoint-record.d.ts.map +1 -0
- package/dist/esm/core/runtime/companion-endpoint-record.js +23 -0
- package/dist/esm/core/runtime/companion-endpoint-record.js.map +1 -0
- package/dist/esm/core/runtime/companion-env-file.d.ts +30 -0
- package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -0
- package/dist/esm/core/runtime/companion-env-file.js +53 -0
- package/dist/esm/core/runtime/companion-env-file.js.map +1 -0
- package/dist/esm/core/runtime/companion-startup-assembly.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts +5 -0
- package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.js +11 -0
- package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts +56 -0
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts.map +1 -0
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js +97 -0
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js.map +1 -0
- package/dist/esm/core/runtime/models/companion-runtime.models.d.ts.map +1 -1
- package/dist/esm/core/runtime/models/companion-runtime.models.js.map +1 -1
- package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/services/file-storage-initialization.companion.js.map +1 -1
- package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +43 -3
- package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
- package/dist/esm/core/runtime/services/start-companion-application.service.js +127 -22
- package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts +11 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.js +42 -19
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-workbench-topology.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-workbench-topology.js.map +1 -1
- package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.js.map +1 -1
- package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/chart-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/composite-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/cross-registry-rendering.shared.js.map +1 -1
- package/dist/esm/core/specifications/execution-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/execution-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/feature-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/feature-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/frontend-component-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/full-custom-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/guidance-flow-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/milestone-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/milestone-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/non-composite-view-specification-context.shared.js.map +1 -1
- package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/onboarding-element-rendering.shared.js.map +1 -1
- package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/onboarding-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/product-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/product-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/resource-specification-context.factory.js +10 -1
- package/dist/esm/core/specifications/resource-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/role-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/role-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.js.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.models.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.models.js.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.shared.js.map +1 -1
- package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/system-email-template-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
- package/dist/esm/core/specifications/validate-resource-field-completeness.js.map +1 -1
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.models.d.ts +1 -7
- package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.models.js +3 -5
- package/dist/esm/core/traceability/companion-traceability.models.js.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.service.js.map +1 -1
- package/dist/esm/core/utils/atomic-write.utils.d.ts.map +1 -1
- package/dist/esm/core/utils/atomic-write.utils.js.map +1 -1
- package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/utils/derived-input-signature.companion.utils.js.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js +15 -14
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts +0 -23
- package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.function-tools.js +251 -50
- package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -1
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +0 -2
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.js +3 -2
- package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
- package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
- package/dist/esm/deliberations/utils/load-committed-expert-agents.js.map +1 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.js +0 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.js.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.d.ts +5 -3
- package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.js +53 -255
- package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
- package/dist/esm/email/utils/email-labels-file-source.utils.d.ts +12 -0
- package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-labels-file-source.utils.js +62 -3
- package/dist/esm/email/utils/email-labels-file-source.utils.js.map +1 -1
- package/dist/esm/email/utils/email-labels-tree.utils.d.ts +52 -0
- package/dist/esm/email/utils/email-labels-tree.utils.d.ts.map +1 -0
- package/dist/esm/email/utils/email-labels-tree.utils.js +261 -0
- package/dist/esm/email/utils/email-labels-tree.utils.js.map +1 -0
- package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-template-fs-discovery.utils.js.map +1 -1
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts +2 -0
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js +21 -1
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.d.ts +18 -1
- package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.js +187 -46
- package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js +0 -1
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js +0 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.js.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.js +10 -0
- package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
- package/dist/esm/expert-personas/services/persona-source-ownership.d.ts.map +1 -1
- package/dist/esm/expert-personas/services/persona-source-ownership.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts +1 -8
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js +2 -9
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts +2 -0
- package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js +3 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts +32 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js +32 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js.map +1 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts +0 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js +0 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts +0 -7
- package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js +0 -7
- package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts +30 -4
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js +31 -5
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts +0 -2
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js +0 -2
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts +4 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js +5 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts +1 -15
- package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js +1 -15
- package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts +0 -3
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js +0 -3
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts +49 -16
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js +49 -16
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts +0 -5
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js +0 -5
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts +3 -0
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js +4 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts +7 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js +8 -2
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js +2 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js +2 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts +12 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js +12 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js +2 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts +10 -0
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js +11 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts +8 -0
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js +9 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts +3 -0
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js +4 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts +2 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js +3 -2
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts +6 -0
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js +7 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts +1 -0
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js +2 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_announcement.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_announcement.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_banner.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_card.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_card.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist_item.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_modal.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_modal.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_onboarding_view.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_survey.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_tooltip.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_tooltip.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_tour.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_tour.en.js.map +1 -1
- package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_achievement_badge.en.js.map +1 -1
- package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts +0 -2
- package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_milestone_tracker.en.js +0 -2
- package/dist/esm/i18n/components/progression_milestone_tracker.en.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts +1 -0
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.js +123 -19
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.js +12 -0
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.domain-model.en.js.map +1 -1
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts +25 -0
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts.map +1 -0
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.js +26 -0
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.js.map +1 -0
- package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts +26 -3
- package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -1
- package/dist/esm/i18n/errors_messages/errors-messages.en.js +25 -3
- package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -1
- package/dist/esm/i18n/index.d.ts +10 -8
- package/dist/esm/i18n/index.d.ts.map +1 -1
- package/dist/esm/i18n/index.js +10 -8
- package/dist/esm/i18n/index.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts +10 -0
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js +2 -0
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts +97 -0
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js +60 -0
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js.map +1 -0
- package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchAspects.en.js +6 -0
- package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts +5 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js +1 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts +24 -0
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js +8 -0
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDomainResources.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts +30 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +9 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts +17 -4
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js +32 -4
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts +8 -2
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js +6 -2
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts +18 -7
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js +17 -7
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts +28 -3
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.js +13 -3
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts +3 -2
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js +8 -2
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +118 -8
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +42 -16
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts +12 -2
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js +16 -2
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/application-creation.en.d.ts +10 -0
- package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/application-creation.en.js +11 -0
- package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/compliance-programme.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/flows-actors.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/flows-actors.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/market.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/processor-register.en.d.ts +6 -0
- package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/processor-register.en.js +6 -0
- package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/risk-register.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts +4 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.js +5 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts +46 -0
- package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-secrets.en.js +46 -0
- package/dist/esm/i18n/system_enums/workbench-secrets.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts +8 -0
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js +13 -0
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -1
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts +61 -0
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js +22 -0
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js.map +1 -0
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +105 -24
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-unit.models.js +55 -24
- package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js +0 -2
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
- package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts +48 -0
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js +145 -0
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -0
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +70 -18
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +330 -113
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts +45 -0
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js +208 -6
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +11 -2
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +101 -18
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts +64 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +393 -70
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts +9 -5
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts +54 -0
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js +74 -0
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts +3 -3
- package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts +24 -0
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js +34 -0
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/label-file-source.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-file-source.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js +5 -1
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts +76 -0
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js +110 -0
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts +17 -0
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js +23 -0
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts +36 -3
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js +77 -5
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts +38 -0
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js +66 -0
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.js.map +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +9 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/market/services/market-generation.companion.service.d.ts.map +1 -1
- package/dist/esm/market/services/market-generation.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js +0 -1
- package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +1 -3
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts +11 -0
- package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/application-line-catalog.models.js +17 -0
- package/dist/esm/meta-workflows/models/application-line-catalog.models.js.map +1 -0
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js +0 -1
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js +1 -1
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts +14 -0
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js +18 -0
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts +14 -0
- package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/human-decision-settler.models.js +18 -0
- package/dist/esm/meta-workflows/models/human-decision-settler.models.js.map +1 -0
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts +31 -23
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js +36 -5
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js +1 -3
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts +19 -0
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js +38 -6
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts +48 -3
- package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-record.models.js +61 -8
- package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts +15 -1
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js +50 -5
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +52 -9
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +131 -59
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts +19 -0
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js +36 -0
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +9 -0
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +41 -17
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +42 -2
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +121 -4
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts +32 -0
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js +161 -0
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts +2 -0
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js +1 -0
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts +3 -2
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js +12 -3
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +74 -1
- package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/dossier.companion.service.js +227 -30
- package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js.map +1 -1
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts +29 -2
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +68 -5
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts +40 -0
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.js +91 -0
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.js.map +1 -0
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts +25 -0
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js +40 -0
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js.map +1 -0
- package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/landed-module-import.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts +90 -0
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js +307 -0
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +29 -0
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js +44 -4
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +360 -47
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +1424 -246
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js.map +1 -1
- package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts.map +1 -1
- package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
- package/package.json +17 -17
- package/dist/esm/__time-gov.probe.d.mts +0 -0
- package/dist/esm/__time-gov.probe.d.mts.map +0 -0
- package/dist/esm/__time-gov.probe.mjs.map +0 -0
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts +0 -0
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts.map +0 -0
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.js.map +0 -0
- package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts +0 -0
- package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts.map +0 -0
- package/dist/esm/i18n/composite_views/app.creation-board.en.js.map +0 -0
- package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts +0 -0
- package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts.map +0 -0
- package/dist/esm/meta-workflows/services/creator-inputs.companion.service.js.map +0 -0
|
@@ -115,6 +115,62 @@ export function extractLabelsObjectInnerSource(source) {
|
|
|
115
115
|
}
|
|
116
116
|
return null;
|
|
117
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
* Decode ONE escape sequence starting at `body[start] === '\\'`.
|
|
120
|
+
*
|
|
121
|
+
* Returns the decoded text and the index after the sequence. Covers the escapes a label author can
|
|
122
|
+
* write: the single-character ones, `\xHH`, `\uHHHH`, `\u{…}`, and a backslash-newline line
|
|
123
|
+
* continuation (which contributes nothing). An unknown escape decodes to its character, which is
|
|
124
|
+
* what JavaScript does (`'\q' === 'q'`).
|
|
125
|
+
*/
|
|
126
|
+
export function decodeStringLiteralEscape(body, start) {
|
|
127
|
+
const next = body[start + 1];
|
|
128
|
+
switch (next) {
|
|
129
|
+
case 'n':
|
|
130
|
+
return { text: '\n', endIndex: start + 2 };
|
|
131
|
+
case 'r':
|
|
132
|
+
return { text: '\r', endIndex: start + 2 };
|
|
133
|
+
case 't':
|
|
134
|
+
return { text: '\t', endIndex: start + 2 };
|
|
135
|
+
case 'b':
|
|
136
|
+
return { text: '\b', endIndex: start + 2 };
|
|
137
|
+
case 'f':
|
|
138
|
+
return { text: '\f', endIndex: start + 2 };
|
|
139
|
+
case 'v':
|
|
140
|
+
return { text: '\v', endIndex: start + 2 };
|
|
141
|
+
case '0':
|
|
142
|
+
return { text: '\0', endIndex: start + 2 };
|
|
143
|
+
case '\r':
|
|
144
|
+
return { text: '', endIndex: body[start + 2] === '\n' ? start + 3 : start + 2 };
|
|
145
|
+
case '\n':
|
|
146
|
+
case '\u2028':
|
|
147
|
+
case '\u2029':
|
|
148
|
+
return { text: '', endIndex: start + 2 };
|
|
149
|
+
case 'x': {
|
|
150
|
+
const hex = body.slice(start + 2, start + 4);
|
|
151
|
+
if (!/^[0-9a-fA-F]{2}$/.test(hex))
|
|
152
|
+
throw new Error(`Invalid \\x escape at index ${start}`);
|
|
153
|
+
return { text: String.fromCharCode(parseInt(hex, 16)), endIndex: start + 4 };
|
|
154
|
+
}
|
|
155
|
+
case 'u': {
|
|
156
|
+
if (body[start + 2] === '{') {
|
|
157
|
+
const close = body.indexOf('}', start + 3);
|
|
158
|
+
const hex = close === -1 ? '' : body.slice(start + 3, close);
|
|
159
|
+
if (!/^[0-9a-fA-F]{1,6}$/.test(hex))
|
|
160
|
+
throw new Error(`Invalid \\u{…} escape at index ${start}`);
|
|
161
|
+
return { text: String.fromCodePoint(parseInt(hex, 16)), endIndex: close + 1 };
|
|
162
|
+
}
|
|
163
|
+
const hex = body.slice(start + 2, start + 6);
|
|
164
|
+
if (!/^[0-9a-fA-F]{4}$/.test(hex))
|
|
165
|
+
throw new Error(`Invalid \\u escape at index ${start}`);
|
|
166
|
+
return { text: String.fromCharCode(parseInt(hex, 16)), endIndex: start + 6 };
|
|
167
|
+
}
|
|
168
|
+
case undefined:
|
|
169
|
+
throw new Error('Unterminated escape at end of labels object');
|
|
170
|
+
default:
|
|
171
|
+
return { text: next, endIndex: start + 2 };
|
|
172
|
+
}
|
|
173
|
+
}
|
|
118
174
|
function readStringLiteral(body, start) {
|
|
119
175
|
const q = body[start];
|
|
120
176
|
if (q !== "'" && q !== '"') {
|
|
@@ -124,9 +180,12 @@ function readStringLiteral(body, start) {
|
|
|
124
180
|
let out = '';
|
|
125
181
|
while (i < body.length) {
|
|
126
182
|
const c = body[i];
|
|
127
|
-
if (c === '\\'
|
|
128
|
-
|
|
129
|
-
|
|
183
|
+
if (c === '\\') {
|
|
184
|
+
// Decoded, not copied: `'\\n'` used to read back as the letter `n`, so a label carrying an
|
|
185
|
+
// escape was silently altered on its way to the model (#1908).
|
|
186
|
+
const decoded = decodeStringLiteralEscape(body, i);
|
|
187
|
+
out += decoded.text;
|
|
188
|
+
i = decoded.endIndex;
|
|
130
189
|
continue;
|
|
131
190
|
}
|
|
132
191
|
if (c === q) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-labels-file-source.utils.js","sourceRoot":"","sources":["../../../../../src/email/utils/email-labels-file-source.utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAWH;;;;;GAKG;AACH,IAAK,SAWJ;AAXD,WAAK,SAAS;IACZ,6EAA6E;IAC7E,0BAAa,CAAA;IACb,yEAAyE;IACzE,8BAAiB,CAAA;IACjB,yEAAyE;IACzE,8BAAiB,CAAA;IACjB,qDAAqD;IACrD,0BAAa,CAAA;IACb,kFAAkF;IAClF,4BAAe,CAAA;AACjB,CAAC,EAXI,SAAS,KAAT,SAAS,QAWb;AAED;;;GAGG;AACH,MAAM,UAAU,8BAA8B,CAAC,MAAc;IAC3D,MAAM,MAAM,GAAG,qBAAqB,CAAC;IACrC,MAAM,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAClC,IAAI,EAAE,KAAK,CAAC,CAAC;QAAE,OAAO,IAAI,CAAC;IAC3B,IAAI,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IAChC,IAAI,CAAC,KAAK,CAAC,CAAC;QAAE,OAAO,IAAI,CAAC;IAE1B,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,KAAK,GAAc,SAAS,CAAC,IAAI,CAAC;IACtC,MAAM,UAAU,GAAG,CAAC,CAAC;IAErB,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;QACzB,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;QACpB,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QAE3B,IAAI,KAAK,KAAK,SAAS,CAAC,IAAI,EAAE,CAAC;YAC7B,IAAI,CAAC,KAAK,GAAG,IAAI,IAAI,KAAK,GAAG,EAAE,CAAC;gBAC9B,KAAK,GAAG,SAAS,CAAC,IAAI,CAAC;gBACvB,CAAC,IAAI,CAAC,CAAC;gBACP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AAC,KAAK,CAAC,MAAM,0BAA0B,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC;IAEpG,MAAM,MAAM,GAAG;KACZ,OAAO,CAAC,iBAAiB,KAAK,OAAO,CAAC,UAAU;KAChD,OAAO,CAAC,eAAe;QACxB,CAAC,CAAC,sEAAsE;QACxE,CAAC,CAAC,wFAAwF;IAC1F,CAAC;IAEH,MAAM,IAAI,GAAG,CAAC,yBAAyB,EAAE,GAAG,KAAK,EAAE,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,eAAe,QAAQ,mBAAmB,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEjK,OAAO,GAAG,MAAM,KAAK,IAAI,EAAE,CAAC;AAC9B,CAAC","sourcesContent":["/**\n * Parse and serialize Wildo email `labels.{locale}.ts` maps without executing TS.\n * Supports flat `export const labels = { key: '...' | \"...\" }` source files.\n */\n\nexport interface ParsedEmailLabelsFile {\n /** Keys → string values from the labels object */\n entries: Record<string, string>;\n /** `TemplateLabels`, `PasswordResetLabels`, etc. */\n labelsTypeName: string | null;\n /** True when source used `} as const` */\n usesAsConst: boolean;\n}\n\n/**\n * Lexical state of the brace-matching scanner in\n * {@link extractLabelsObjectInnerSource}. Braces only count toward nesting\n * depth in {@link ScanState.CODE}; every other state exists to skip a span the\n * TypeScript grammar treats as opaque text.\n */\nenum ScanState {\n /** Plain source code — braces adjust depth, quotes/comments switch state. */\n CODE = 'code',\n /** Inside a single-quoted string literal (backslash escapes honored). */\n SQUOTE = 'squote',\n /** Inside a double-quoted string literal (backslash escapes honored). */\n DQUOTE = 'dquote',\n /** Inside a `//` line comment, until end-of-line. */\n LINE = 'line',\n /** Inside a block comment (opened by slash-star), until the closing delimiter. */\n BLOCK = 'block',\n}\n\n/**\n * Extract `export const labels = { ... }` body (inner object content only) with\n * string/comment-aware brace matching.\n */\nexport function extractLabelsObjectInnerSource(source: string): string | null {\n const marker = 'export const labels';\n const mi = source.indexOf(marker);\n if (mi === -1) return null;\n let i = source.indexOf('{', mi);\n if (i === -1) return null;\n\n let depth = 0;\n let state: ScanState = ScanState.CODE;\n const startBrace = i;\n\n while (i < source.length) {\n const c = source[i];\n const next = source[i + 1];\n\n if (state === ScanState.CODE) {\n if (c === '/' && next === '/') {\n state = ScanState.LINE;\n i += 2;\n continue;\n }\n if (c === '/' && next === '*') {\n state = ScanState.BLOCK;\n i += 2;\n continue;\n }\n if (c === \"'\") {\n state = ScanState.SQUOTE;\n i++;\n continue;\n }\n if (c === '\"') {\n state = ScanState.DQUOTE;\n i++;\n continue;\n }\n if (c === '{') depth++;\n if (c === '}') {\n depth--;\n if (depth === 0) {\n return source.slice(startBrace + 1, i);\n }\n }\n i++;\n continue;\n }\n\n if (state === ScanState.LINE) {\n if (c === '\\n' || c === '\\r') state = ScanState.CODE;\n i++;\n continue;\n }\n\n if (state === ScanState.BLOCK) {\n if (c === '*' && next === '/') {\n state = ScanState.CODE;\n i += 2;\n continue;\n }\n i++;\n continue;\n }\n\n if (state === ScanState.SQUOTE) {\n if (c === '\\\\' && i + 1 < source.length) {\n i += 2;\n continue;\n }\n if (c === \"'\") {\n state = ScanState.CODE;\n i++;\n continue;\n }\n i++;\n continue;\n }\n\n if (state === ScanState.DQUOTE) {\n if (c === '\\\\' && i + 1 < source.length) {\n i += 2;\n continue;\n }\n if (c === '\"') {\n state = ScanState.CODE;\n i++;\n continue;\n }\n i++;\n continue;\n }\n }\n\n return null;\n}\n\nfunction readStringLiteral(\n body: string,\n start: number,\n): { value: string; endIndex: number } {\n const q = body[start];\n if (q !== \"'\" && q !== '\"') {\n throw new Error(`Expected string literal at index ${start}`);\n }\n let i = start + 1;\n let out = '';\n while (i < body.length) {\n const c = body[i];\n if (c === '\\\\' && i + 1 < body.length) {\n out += body[i + 1];\n i += 2;\n continue;\n }\n if (c === q) {\n return { value: out, endIndex: i + 1 };\n }\n out += c;\n i++;\n }\n throw new Error('Unterminated string in labels object');\n}\n\n/**\n * Parse flat string properties from labels object inner source (inside `{` `}`).\n */\nexport function parseFlatLabelEntriesFromObjectBody(body: string): Record<string, string> {\n const result: Record<string, string> = {};\n let i = 0;\n\n const ws = () => {\n while (i < body.length) {\n if (/\\s/.test(body[i])) {\n i++;\n continue;\n }\n\n if (body[i] === '/' && body[i + 1] === '/') {\n i += 2;\n while (i < body.length && body[i] !== '\\n' && body[i] !== '\\r') i++;\n continue;\n }\n\n if (body[i] === '/' && body[i + 1] === '*') {\n i += 2;\n while (i + 1 < body.length && !(body[i] === '*' && body[i + 1] === '/')) i++;\n i += 2;\n continue;\n }\n\n break;\n }\n };\n\n while (i < body.length) {\n ws();\n if (i >= body.length || body[i] === '}') break;\n\n const keyStart = i;\n while (i < body.length && /[a-zA-Z0-9_]/.test(body[i])) i++;\n const key = body.slice(keyStart, i);\n if (!key) {\n throw new Error(`Unexpected character in labels object at ${i}`);\n }\n\n ws();\n if (body[i] !== ':') {\n throw new Error(`Expected \":\" after key \"${key}\"`);\n }\n i++;\n ws();\n\n const { value, endIndex } = readStringLiteral(body, i);\n i = endIndex;\n result[key] = value;\n\n ws();\n if (body[i] === ',') i++;\n }\n\n return result;\n}\n\nexport function parseEmailLabelsTsSource(source: string): ParsedEmailLabelsFile {\n const inner = extractLabelsObjectInnerSource(source);\n if (inner === null) {\n throw new Error('Could not find export const labels = { ... }');\n }\n const entries = parseFlatLabelEntriesFromObjectBody(inner);\n\n const typeMatch = source.match(/export\\s+type\\s+(\\w+)\\s*=\\s*typeof\\s+labels/);\n const usesAsConst = /\\}\\s*as\\s+const/.test(source);\n\n return {\n entries,\n labelsTypeName: typeMatch?.[1] ?? null,\n usesAsConst,\n };\n}\n\nfunction escapeSingleQuotedJsString(s: string): string {\n return s\n .replace(/\\\\/g, '\\\\\\\\')\n .replace(/'/g, \"\\\\'\")\n .replace(/\\r/g, '\\\\r')\n .replace(/\\n/g, '\\\\n')\n .replace(/\\u2028/g, '\\\\u2028')\n .replace(/\\u2029/g, '\\\\u2029');\n}\n\n/**\n * Emit a `labels.{locale}.ts` file body matching project conventions.\n */\nexport function formatLabelsTsFile(options: {\n localeCode: string;\n localeDisplayName: string;\n isPrimaryLocale: boolean;\n entries: Record<string, string>;\n labelsTypeName: string | null;\n usesAsConst: boolean;\n}): string {\n const typeName = options.labelsTypeName ?? 'TemplateLabels';\n const keys = Object.keys(options.entries);\n const lines = keys.map((k) => ` ${k}: '${escapeSingleQuotedJsString(options.entries[k] ?? '')}',`);\n\n const header = `/**\n * ${options.localeDisplayName} (${options.localeCode}) — email template labels.\n * ${options.isPrimaryLocale\n ? 'Primary locale source-of-truth file generated from template context.'\n : 'Translated from the primary locale; keep {placeholder} tokens identical to the source.'}\n */`;\n\n const body = [`export const labels = {`, ...lines, `}${options.usesAsConst ? ' as const' : ''};`, '', `export type ${typeName} = typeof labels;`, ''].join('\\n');\n\n return `${header}\\n${body}`;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"email-labels-file-source.utils.js","sourceRoot":"","sources":["../../../../src/email/utils/email-labels-file-source.utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAWH;;;;;GAKG;AACH,IAAK,SAWJ;AAXD,WAAK,SAAS;IACZ,6EAA6E;IAC7E,0BAAa,CAAA;IACb,yEAAyE;IACzE,8BAAiB,CAAA;IACjB,yEAAyE;IACzE,8BAAiB,CAAA;IACjB,qDAAqD;IACrD,0BAAa,CAAA;IACb,kFAAkF;IAClF,4BAAe,CAAA;AACjB,CAAC,EAXI,SAAS,KAAT,SAAS,QAWb;AAED;;;GAGG;AACH,MAAM,UAAU,8BAA8B,CAAC,MAAc;IAC3D,MAAM,MAAM,GAAG,qBAAqB,CAAC;IACrC,MAAM,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAClC,IAAI,EAAE,KAAK,CAAC,CAAC;QAAE,OAAO,IA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AG;KACZ,OAAO,CAAC,iBAAiB,KAAK,OAAO,CAAC,UAAU;KAChD,OAAO,CAAC,eAAe;QACxB,CAAC,CAAC,sEAAsE;QACxE,CAAC,CAAC,wFAAwF;IAC1F,CAAC;IAEH,MAAM,IAAI,GAAG,CAAC,yBAAyB,EAAE,GAAG,KAAK,EAAE,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,eAAe,QAAQ,mBAAmB,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEjK,OAAO,GAAG,MAAM,KAAK,IAAI,EAAE,CAAC;AAC9B,CAAC","sourcesContent":["/**\n * Parse and serialize Wildo email `labels.{locale}.ts` maps without executing TS.\n * Supports flat `export const labels = { key: '...' | \"...\" }` source files.\n */\n\nexport interface ParsedEmailLabelsFile {\n /** Keys → string values from the labels object */\n entries: Record<string, string>;\n /** `TemplateLabels`, `PasswordResetLabels`, etc. */\n labelsTypeName: string | null;\n /** True when source used `} as const` */\n usesAsConst: boolean;\n}\n\n/**\n * Lexical state of the brace-matching scanner in\n * {@link extractLabelsObjectInnerSource}. Braces only count toward nesting\n * depth in {@link ScanState.CODE}; every other state exists to skip a span the\n * TypeScript grammar treats as opaque text.\n */\nenum ScanState {\n /** Plain source code — braces adjust depth, quotes/comments switch state. */\n CODE = 'code',\n /** Inside a single-quoted string literal (backslash escapes honored). */\n SQUOTE = 'squote',\n /** Inside a double-quoted string literal (backslash escapes honored). */\n DQUOTE = 'dquote',\n /** Inside a `//` line comment, until end-of-line. */\n LINE = 'line',\n /** Inside a block comment (opened by slash-star), until the closing delimiter. */\n BLOCK = 'block',\n}\n\n/**\n * Extract `export const labels = { ... }` body (inner object content only) with\n * string/comment-aware brace matching.\n */\nexport function extractLabelsObjectInnerSource(source: string): string | null {\n const marker = 'export const labels';\n const mi = source.indexOf(marker);\n if (mi === -1) return null;\n let i = source.indexOf('{', mi);\n if (i === -1) return null;\n\n let depth = 0;\n let state: ScanState = ScanState.CODE;\n const startBrace = i;\n\n while (i < source.length) {\n const c = source[i];\n const next = source[i + 1];\n\n if (state === ScanState.CODE) {\n if (c === '/' && next === '/') {\n state = ScanState.LINE;\n i += 2;\n continue;\n }\n if (c === '/' && next === '*') {\n state = ScanState.BLOCK;\n i += 2;\n continue;\n }\n if (c === \"'\") {\n state = ScanState.SQUOTE;\n i++;\n continue;\n }\n if (c === '\"') {\n state = ScanState.DQUOTE;\n i++;\n continue;\n }\n if (c === '{') depth++;\n if (c === '}') {\n depth--;\n if (depth === 0) {\n return source.slice(startBrace + 1, i);\n }\n }\n i++;\n continue;\n }\n\n if (state === ScanState.LINE) {\n if (c === '\\n' || c === '\\r') state = ScanState.CODE;\n i++;\n continue;\n }\n\n if (state === ScanState.BLOCK) {\n if (c === '*' && next === '/') {\n state = ScanState.CODE;\n i += 2;\n continue;\n }\n i++;\n continue;\n }\n\n if (state === ScanState.SQUOTE) {\n if (c === '\\\\' && i + 1 < source.length) {\n i += 2;\n continue;\n }\n if (c === \"'\") {\n state = ScanState.CODE;\n i++;\n continue;\n }\n i++;\n continue;\n }\n\n if (state === ScanState.DQUOTE) {\n if (c === '\\\\' && i + 1 < source.length) {\n i += 2;\n continue;\n }\n if (c === '\"') {\n state = ScanState.CODE;\n i++;\n continue;\n }\n i++;\n continue;\n }\n }\n\n return null;\n}\n\n/**\n * Decode ONE escape sequence starting at `body[start] === '\\\\'`.\n *\n * Returns the decoded text and the index after the sequence. Covers the escapes a label author can\n * write: the single-character ones, `\\xHH`, `\\uHHHH`, `\\u{…}`, and a backslash-newline line\n * continuation (which contributes nothing). An unknown escape decodes to its character, which is\n * what JavaScript does (`'\\q' === 'q'`).\n */\nexport function decodeStringLiteralEscape(body: string, start: number): { text: string; endIndex: number } {\n const next = body[start + 1];\n switch (next) {\n case 'n':\n return { text: '\\n', endIndex: start + 2 };\n case 'r':\n return { text: '\\r', endIndex: start + 2 };\n case 't':\n return { text: '\\t', endIndex: start + 2 };\n case 'b':\n return { text: '\\b', endIndex: start + 2 };\n case 'f':\n return { text: '\\f', endIndex: start + 2 };\n case 'v':\n return { text: '\\v', endIndex: start + 2 };\n case '0':\n return { text: '\\0', endIndex: start + 2 };\n case '\\r':\n return { text: '', endIndex: body[start + 2] === '\\n' ? start + 3 : start + 2 };\n case '\\n':\n case '\\u2028':\n case '\\u2029':\n return { text: '', endIndex: start + 2 };\n case 'x': {\n const hex = body.slice(start + 2, start + 4);\n if (!/^[0-9a-fA-F]{2}$/.test(hex)) throw new Error(`Invalid \\\\x escape at index ${start}`);\n return { text: String.fromCharCode(parseInt(hex, 16)), endIndex: start + 4 };\n }\n case 'u': {\n if (body[start + 2] === '{') {\n const close = body.indexOf('}', start + 3);\n const hex = close === -1 ? '' : body.slice(start + 3, close);\n if (!/^[0-9a-fA-F]{1,6}$/.test(hex)) throw new Error(`Invalid \\\\u{…} escape at index ${start}`);\n return { text: String.fromCodePoint(parseInt(hex, 16)), endIndex: close + 1 };\n }\n const hex = body.slice(start + 2, start + 6);\n if (!/^[0-9a-fA-F]{4}$/.test(hex)) throw new Error(`Invalid \\\\u escape at index ${start}`);\n return { text: String.fromCharCode(parseInt(hex, 16)), endIndex: start + 6 };\n }\n case undefined:\n throw new Error('Unterminated escape at end of labels object');\n default:\n return { text: next, endIndex: start + 2 };\n }\n}\n\nfunction readStringLiteral(\n body: string,\n start: number,\n): { value: string; endIndex: number } {\n const q = body[start];\n if (q !== \"'\" && q !== '\"') {\n throw new Error(`Expected string literal at index ${start}`);\n }\n let i = start + 1;\n let out = '';\n while (i < body.length) {\n const c = body[i];\n if (c === '\\\\') {\n // Decoded, not copied: `'\\\\n'` used to read back as the letter `n`, so a label carrying an\n // escape was silently altered on its way to the model (#1908).\n const decoded = decodeStringLiteralEscape(body, i);\n out += decoded.text;\n i = decoded.endIndex;\n continue;\n }\n if (c === q) {\n return { value: out, endIndex: i + 1 };\n }\n out += c;\n i++;\n }\n throw new Error('Unterminated string in labels object');\n}\n\n/**\n * Parse flat string properties from labels object inner source (inside `{` `}`).\n */\nexport function parseFlatLabelEntriesFromObjectBody(body: string): Record<string, string> {\n const result: Record<string, string> = {};\n let i = 0;\n\n const ws = () => {\n while (i < body.length) {\n if (/\\s/.test(body[i])) {\n i++;\n continue;\n }\n\n if (body[i] === '/' && body[i + 1] === '/') {\n i += 2;\n while (i < body.length && body[i] !== '\\n' && body[i] !== '\\r') i++;\n continue;\n }\n\n if (body[i] === '/' && body[i + 1] === '*') {\n i += 2;\n while (i + 1 < body.length && !(body[i] === '*' && body[i + 1] === '/')) i++;\n i += 2;\n continue;\n }\n\n break;\n }\n };\n\n while (i < body.length) {\n ws();\n if (i >= body.length || body[i] === '}') break;\n\n const keyStart = i;\n while (i < body.length && /[a-zA-Z0-9_]/.test(body[i])) i++;\n const key = body.slice(keyStart, i);\n if (!key) {\n throw new Error(`Unexpected character in labels object at ${i}`);\n }\n\n ws();\n if (body[i] !== ':') {\n throw new Error(`Expected \":\" after key \"${key}\"`);\n }\n i++;\n ws();\n\n const { value, endIndex } = readStringLiteral(body, i);\n i = endIndex;\n result[key] = value;\n\n ws();\n if (body[i] === ',') i++;\n }\n\n return result;\n}\n\nexport function parseEmailLabelsTsSource(source: string): ParsedEmailLabelsFile {\n const inner = extractLabelsObjectInnerSource(source);\n if (inner === null) {\n throw new Error('Could not find export const labels = { ... }');\n }\n const entries = parseFlatLabelEntriesFromObjectBody(inner);\n\n const typeMatch = source.match(/export\\s+type\\s+(\\w+)\\s*=\\s*typeof\\s+labels/);\n const usesAsConst = /\\}\\s*as\\s+const/.test(source);\n\n return {\n entries,\n labelsTypeName: typeMatch?.[1] ?? null,\n usesAsConst,\n };\n}\n\nfunction escapeSingleQuotedJsString(s: string): string {\n return s\n .replace(/\\\\/g, '\\\\\\\\')\n .replace(/'/g, \"\\\\'\")\n .replace(/\\r/g, '\\\\r')\n .replace(/\\n/g, '\\\\n')\n .replace(/\\u2028/g, '\\\\u2028')\n .replace(/\\u2029/g, '\\\\u2029');\n}\n\n/**\n * Emit a `labels.{locale}.ts` file body matching project conventions.\n */\nexport function formatLabelsTsFile(options: {\n localeCode: string;\n localeDisplayName: string;\n isPrimaryLocale: boolean;\n entries: Record<string, string>;\n labelsTypeName: string | null;\n usesAsConst: boolean;\n}): string {\n const typeName = options.labelsTypeName ?? 'TemplateLabels';\n const keys = Object.keys(options.entries);\n const lines = keys.map((k) => ` ${k}: '${escapeSingleQuotedJsString(options.entries[k] ?? '')}',`);\n\n const header = `/**\n * ${options.localeDisplayName} (${options.localeCode}) — email template labels.\n * ${options.isPrimaryLocale\n ? 'Primary locale source-of-truth file generated from template context.'\n : 'Translated from the primary locale; keep {placeholder} tokens identical to the source.'}\n */`;\n\n const body = [`export const labels = {`, ...lines, `}${options.usesAsConst ? ' as const' : ''};`, '', `export type ${typeName} = typeof labels;`, ''].join('\\n');\n\n return `${header}\\n${body}`;\n}\n"]}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/** One node of an email labels tree: the words, or a nested group of them. Key order is authored order. */
|
|
2
|
+
export type EmailLabelsTree = {
|
|
3
|
+
[key: string]: string | EmailLabelsTree;
|
|
4
|
+
};
|
|
5
|
+
/** An email labels file read without executing it. */
|
|
6
|
+
export interface ParsedEmailLabelsTreeFile {
|
|
7
|
+
/** The `labels` object, in authored key order. */
|
|
8
|
+
tree: EmailLabelsTree;
|
|
9
|
+
/** The name of the `export type X = typeof labels` alias (`TemplateLabels`, `MagicLinkLabels`), when declared. */
|
|
10
|
+
labelsTypeName: string | null;
|
|
11
|
+
/** True when the source declares the object `as const`. */
|
|
12
|
+
usesAsConst: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Parse the inner body of `export const labels = { … }` into a tree.
|
|
16
|
+
*
|
|
17
|
+
* A small recursive-descent reader over exactly the grammar above. Comments and whitespace are skipped
|
|
18
|
+
* between tokens; a trailing comma is allowed; everything else is refused with its dotted path.
|
|
19
|
+
*/
|
|
20
|
+
export declare function parseEmailLabelsObjectBody(body: string): EmailLabelsTree;
|
|
21
|
+
/** Parse an authored `labels.<locale>.ts` source into its tree, without executing it. */
|
|
22
|
+
export declare function parseEmailLabelsTreeSource(source: string): ParsedEmailLabelsTreeFile;
|
|
23
|
+
/** Flatten a tree to `dotted.path → words`, in authored order. */
|
|
24
|
+
export declare function flattenEmailLabelsTree(tree: EmailLabelsTree, prefix?: string, out?: Record<string, string>): Record<string, string>;
|
|
25
|
+
/**
|
|
26
|
+
* Rebuild `tree` with every leaf replaced by `words[dottedPath]`.
|
|
27
|
+
*
|
|
28
|
+
* The STRUCTURE comes from the source tree, never from `words`: a translation can only fill the shape
|
|
29
|
+
* the English file declares, so it cannot add a key, drop one, or turn a group into a string. A leaf
|
|
30
|
+
* `words` does not answer is refused rather than left in English — the caller decides what a gap
|
|
31
|
+
* means, and it must not be decided here by silence.
|
|
32
|
+
*/
|
|
33
|
+
export declare function mapEmailLabelsTreeLeaves(tree: EmailLabelsTree, words: Readonly<Record<string, string>>, prefix?: string): EmailLabelsTree;
|
|
34
|
+
/**
|
|
35
|
+
* Write a TRANSLATED `labels.<locale>.ts`: the same export name, the same nesting, the same `as const`
|
|
36
|
+
* and the same `export type` alias as the primary-locale file it was translated from, so the runtime
|
|
37
|
+
* scanner (`scanEmailTemplateDirectory`, which reads the named `labels` export of every
|
|
38
|
+
* `labels.<locale>` module beside a template) picks it up with no registration.
|
|
39
|
+
*
|
|
40
|
+
* Carries a DO-NOT-EDIT header naming the file it derives from: a hand edit is overwritten by the next
|
|
41
|
+
* `wildo generate translate` (the lock records this file's hash, so a drifted file reads as stale), and
|
|
42
|
+
* the header is the only place a reader can learn that before it happens.
|
|
43
|
+
*/
|
|
44
|
+
export declare function formatTranslatedEmailLabelsFile(options: {
|
|
45
|
+
localeCode: string;
|
|
46
|
+
localeDisplayName: string;
|
|
47
|
+
sourceFileName: string;
|
|
48
|
+
tree: EmailLabelsTree;
|
|
49
|
+
labelsTypeName: string | null;
|
|
50
|
+
usesAsConst: boolean;
|
|
51
|
+
}): string;
|
|
52
|
+
//# sourceMappingURL=email-labels-tree.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email-labels-tree.utils.d.ts","sourceRoot":"","sources":["../../../../src/email/utils/email-labels-tree.utils.ts"],"names":[],"mappings":"AA4BA,2GAA2G;AAC3G,MAAM,MAAM,eAAe,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,eAAe,CAAA;CAAE,CAAC;AAE1E,sDAAsD;AACtD,MAAM,WAAW,yBAAyB;IACxC,kDAAkD;IAClD,IAAI,EAAE,eAAe,CAAC;IACtB,kHAAkH;IAClH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,2DAA2D;IAC3D,WAAW,EAAE,OAAO,CAAC;CACtB;AAKD;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,CA+GxE;AAMD,yFAAyF;AACzF,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,MAAM,GAAG,yBAAyB,CASpF;AAED,kEAAkE;AAClE,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,eAAe,EAAE,MAAM,SAAK,EAAE,GAAG,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAOnI;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,MAAM,SAAK,GAAG,eAAe,CAarI;AAgCD;;;;;;;;;GASG;AACH,wBAAgB,+BAA+B,CAAC,OAAO,EAAE;IACvD,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,eAAe,CAAC;IACtB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,WAAW,EAAE,OAAO,CAAC;CACtB,GAAG,MAAM,CAoBT"}
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Read and write an email template's `labels.<locale>.ts` file as a NESTED tree of words (#1908).
|
|
3
|
+
*
|
|
4
|
+
* ## Why a second reader beside `parseEmailLabelsTsSource`
|
|
5
|
+
*
|
|
6
|
+
* That reader parses a FLAT `export const labels = { key: '…' }` — the shape the email GENERATOR
|
|
7
|
+
* writes. Authored templates are not flat: `human-decision-deadline` keys its words by deadline stage
|
|
8
|
+
* (`stages.claim_warning.subject`) and `security-alert` by alert type, and the flat reader throws on
|
|
9
|
+
* the first `{` it meets as a value. The translation lane has to read every template the application
|
|
10
|
+
* ships, so it needs the tree.
|
|
11
|
+
*
|
|
12
|
+
* The other nested reader in this package (`parseNestedLabelsTsSource`) is `JSON.parse` over the
|
|
13
|
+
* object body. It reads the files the labelling pipeline itself WRITES (JSON-shaped, double-quoted),
|
|
14
|
+
* and cannot read a file a person authored: unquoted keys, single-quoted strings, JSDoc between
|
|
15
|
+
* entries, trailing commas. Reading authored TypeScript without executing it is what this file does.
|
|
16
|
+
*
|
|
17
|
+
* ## What it accepts, and what it refuses
|
|
18
|
+
*
|
|
19
|
+
* A value is a string literal (single or double quoted, escapes decoded) or a nested object of the
|
|
20
|
+
* same. Anything else — a number, an array, a template literal, a concatenation, an identifier — is
|
|
21
|
+
* REFUSED with the dotted path that carried it. Guessing would be worse: a translation written from a
|
|
22
|
+
* misread source is a French email that says something the English one does not.
|
|
23
|
+
*
|
|
24
|
+
* A key containing a `.` is refused too. The tree is flattened to dotted paths for the translation
|
|
25
|
+
* model, and a dotted key would make `a.b` ambiguous between a nested and a literal key.
|
|
26
|
+
*/
|
|
27
|
+
import { decodeStringLiteralEscape, extractLabelsObjectInnerSource } from './email-labels-file-source.utils.js';
|
|
28
|
+
/** Is `key` writable without quotes? */
|
|
29
|
+
const IDENTIFIER_KEY = /^[A-Za-z_$][\w$]*$/;
|
|
30
|
+
/**
|
|
31
|
+
* Parse the inner body of `export const labels = { … }` into a tree.
|
|
32
|
+
*
|
|
33
|
+
* A small recursive-descent reader over exactly the grammar above. Comments and whitespace are skipped
|
|
34
|
+
* between tokens; a trailing comma is allowed; everything else is refused with its dotted path.
|
|
35
|
+
*/
|
|
36
|
+
export function parseEmailLabelsObjectBody(body) {
|
|
37
|
+
let i = 0;
|
|
38
|
+
const skipTrivia = () => {
|
|
39
|
+
while (i < body.length) {
|
|
40
|
+
const c = body[i];
|
|
41
|
+
if (c !== undefined && /\s/.test(c)) {
|
|
42
|
+
i++;
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
if (c === '/' && body[i + 1] === '/') {
|
|
46
|
+
i += 2;
|
|
47
|
+
while (i < body.length && body[i] !== '\n' && body[i] !== '\r')
|
|
48
|
+
i++;
|
|
49
|
+
continue;
|
|
50
|
+
}
|
|
51
|
+
if (c === '/' && body[i + 1] === '*') {
|
|
52
|
+
const close = body.indexOf('*/', i + 2);
|
|
53
|
+
if (close === -1)
|
|
54
|
+
throw new Error('Unterminated block comment in labels object');
|
|
55
|
+
i = close + 2;
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
const readQuoted = () => {
|
|
62
|
+
const quote = body[i];
|
|
63
|
+
i++;
|
|
64
|
+
let out = '';
|
|
65
|
+
while (i < body.length) {
|
|
66
|
+
const c = body[i];
|
|
67
|
+
if (c === '\\') {
|
|
68
|
+
const decoded = decodeStringLiteralEscape(body, i);
|
|
69
|
+
out += decoded.text;
|
|
70
|
+
i = decoded.endIndex;
|
|
71
|
+
continue;
|
|
72
|
+
}
|
|
73
|
+
if (c === quote) {
|
|
74
|
+
i++;
|
|
75
|
+
return out;
|
|
76
|
+
}
|
|
77
|
+
if (c === '\n' || c === '\r')
|
|
78
|
+
throw new Error('Unterminated string literal in labels object');
|
|
79
|
+
out += c;
|
|
80
|
+
i++;
|
|
81
|
+
}
|
|
82
|
+
throw new Error('Unterminated string literal in labels object');
|
|
83
|
+
};
|
|
84
|
+
const readKey = (path) => {
|
|
85
|
+
const c = body[i];
|
|
86
|
+
let key;
|
|
87
|
+
if (c === "'" || c === '"') {
|
|
88
|
+
key = readQuoted();
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
const start = i;
|
|
92
|
+
while (i < body.length && /[\w$]/.test(body[i]))
|
|
93
|
+
i++;
|
|
94
|
+
key = body.slice(start, i);
|
|
95
|
+
if (!key)
|
|
96
|
+
throw new Error(`Unexpected character ${JSON.stringify(c ?? '')} where a key was expected at ${describePath(path)}`);
|
|
97
|
+
}
|
|
98
|
+
if (key.includes('.')) {
|
|
99
|
+
throw new Error(`Label key ${JSON.stringify(key)} at ${describePath(path)} contains a "." — a dotted key cannot be told apart from a nested one`);
|
|
100
|
+
}
|
|
101
|
+
return key;
|
|
102
|
+
};
|
|
103
|
+
const readObject = (path) => {
|
|
104
|
+
const node = {};
|
|
105
|
+
while (true) {
|
|
106
|
+
skipTrivia();
|
|
107
|
+
if (i >= body.length) {
|
|
108
|
+
if (path.length === 0)
|
|
109
|
+
return node;
|
|
110
|
+
throw new Error(`Unterminated nested object at ${describePath(path)}`);
|
|
111
|
+
}
|
|
112
|
+
if (body[i] === '}') {
|
|
113
|
+
if (path.length === 0)
|
|
114
|
+
throw new Error('Unexpected "}" in labels object');
|
|
115
|
+
i++;
|
|
116
|
+
return node;
|
|
117
|
+
}
|
|
118
|
+
const key = readKey(path);
|
|
119
|
+
const keyPath = [...path, key];
|
|
120
|
+
skipTrivia();
|
|
121
|
+
if (body[i] !== ':')
|
|
122
|
+
throw new Error(`Expected ":" after ${describePath(keyPath)}`);
|
|
123
|
+
i++;
|
|
124
|
+
skipTrivia();
|
|
125
|
+
const valueStart = body[i];
|
|
126
|
+
if (Object.prototype.hasOwnProperty.call(node, key)) {
|
|
127
|
+
throw new Error(`Duplicate label key at ${describePath(keyPath)}`);
|
|
128
|
+
}
|
|
129
|
+
if (valueStart === "'" || valueStart === '"') {
|
|
130
|
+
node[key] = readQuoted();
|
|
131
|
+
}
|
|
132
|
+
else if (valueStart === '{') {
|
|
133
|
+
i++;
|
|
134
|
+
node[key] = readObject(keyPath);
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
throw new Error(`Unsupported value at ${describePath(keyPath)}: only string literals and nested objects of them can be translated`);
|
|
138
|
+
}
|
|
139
|
+
skipTrivia();
|
|
140
|
+
if (body[i] === ',') {
|
|
141
|
+
i++;
|
|
142
|
+
continue;
|
|
143
|
+
}
|
|
144
|
+
skipTrivia();
|
|
145
|
+
if (i < body.length && body[i] !== '}') {
|
|
146
|
+
throw new Error(`Expected "," or "}" after ${describePath(keyPath)} — a concatenation or expression cannot be translated`);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
return readObject([]);
|
|
151
|
+
}
|
|
152
|
+
function describePath(path) {
|
|
153
|
+
return path.length === 0 ? 'the labels object' : `"${path.join('.')}"`;
|
|
154
|
+
}
|
|
155
|
+
/** Parse an authored `labels.<locale>.ts` source into its tree, without executing it. */
|
|
156
|
+
export function parseEmailLabelsTreeSource(source) {
|
|
157
|
+
const inner = extractLabelsObjectInnerSource(source);
|
|
158
|
+
if (inner === null)
|
|
159
|
+
throw new Error('Could not find export const labels = { ... }');
|
|
160
|
+
const typeMatch = source.match(/export\s+type\s+(\w+)\s*=\s*typeof\s+labels/);
|
|
161
|
+
return {
|
|
162
|
+
tree: parseEmailLabelsObjectBody(inner),
|
|
163
|
+
labelsTypeName: typeMatch?.[1] ?? null,
|
|
164
|
+
usesAsConst: /\}\s*as\s+const/.test(source),
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
/** Flatten a tree to `dotted.path → words`, in authored order. */
|
|
168
|
+
export function flattenEmailLabelsTree(tree, prefix = '', out = {}) {
|
|
169
|
+
for (const [key, value] of Object.entries(tree)) {
|
|
170
|
+
const path = prefix ? `${prefix}.${key}` : key;
|
|
171
|
+
if (typeof value === 'string')
|
|
172
|
+
out[path] = value;
|
|
173
|
+
else
|
|
174
|
+
flattenEmailLabelsTree(value, path, out);
|
|
175
|
+
}
|
|
176
|
+
return out;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Rebuild `tree` with every leaf replaced by `words[dottedPath]`.
|
|
180
|
+
*
|
|
181
|
+
* The STRUCTURE comes from the source tree, never from `words`: a translation can only fill the shape
|
|
182
|
+
* the English file declares, so it cannot add a key, drop one, or turn a group into a string. A leaf
|
|
183
|
+
* `words` does not answer is refused rather than left in English — the caller decides what a gap
|
|
184
|
+
* means, and it must not be decided here by silence.
|
|
185
|
+
*/
|
|
186
|
+
export function mapEmailLabelsTreeLeaves(tree, words, prefix = '') {
|
|
187
|
+
const out = {};
|
|
188
|
+
for (const [key, value] of Object.entries(tree)) {
|
|
189
|
+
const path = prefix ? `${prefix}.${key}` : key;
|
|
190
|
+
if (typeof value === 'string') {
|
|
191
|
+
const replacement = words[path];
|
|
192
|
+
if (typeof replacement !== 'string')
|
|
193
|
+
throw new Error(`No words for label ${JSON.stringify(path)}`);
|
|
194
|
+
out[key] = replacement;
|
|
195
|
+
}
|
|
196
|
+
else {
|
|
197
|
+
out[key] = mapEmailLabelsTreeLeaves(value, words, path);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
return out;
|
|
201
|
+
}
|
|
202
|
+
/** Single-quoted TypeScript string literal for `value`, escaping what would break or silently alter it. */
|
|
203
|
+
function formatSingleQuotedLiteral(value) {
|
|
204
|
+
const escaped = value
|
|
205
|
+
.replace(/\\/g, '\\\\')
|
|
206
|
+
.replace(/'/g, "\\'")
|
|
207
|
+
.replace(/\r/g, '\\r')
|
|
208
|
+
.replace(/\n/g, '\\n')
|
|
209
|
+
.replace(/\t/g, '\\t')
|
|
210
|
+
.replace(/\u2028/g, '\\u2028')
|
|
211
|
+
.replace(/\u2029/g, '\\u2029');
|
|
212
|
+
return `'${escaped}'`;
|
|
213
|
+
}
|
|
214
|
+
function formatKey(key) {
|
|
215
|
+
return IDENTIFIER_KEY.test(key) ? key : formatSingleQuotedLiteral(key);
|
|
216
|
+
}
|
|
217
|
+
function formatTreeBody(tree, depth) {
|
|
218
|
+
const indent = ' '.repeat(depth);
|
|
219
|
+
const lines = [];
|
|
220
|
+
for (const [key, value] of Object.entries(tree)) {
|
|
221
|
+
if (typeof value === 'string') {
|
|
222
|
+
lines.push(`${indent}${formatKey(key)}: ${formatSingleQuotedLiteral(value)},`);
|
|
223
|
+
}
|
|
224
|
+
else {
|
|
225
|
+
lines.push(`${indent}${formatKey(key)}: {`, ...formatTreeBody(value, depth + 1), `${indent}},`);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
return lines;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Write a TRANSLATED `labels.<locale>.ts`: the same export name, the same nesting, the same `as const`
|
|
232
|
+
* and the same `export type` alias as the primary-locale file it was translated from, so the runtime
|
|
233
|
+
* scanner (`scanEmailTemplateDirectory`, which reads the named `labels` export of every
|
|
234
|
+
* `labels.<locale>` module beside a template) picks it up with no registration.
|
|
235
|
+
*
|
|
236
|
+
* Carries a DO-NOT-EDIT header naming the file it derives from: a hand edit is overwritten by the next
|
|
237
|
+
* `wildo generate translate` (the lock records this file's hash, so a drifted file reads as stale), and
|
|
238
|
+
* the header is the only place a reader can learn that before it happens.
|
|
239
|
+
*/
|
|
240
|
+
export function formatTranslatedEmailLabelsFile(options) {
|
|
241
|
+
const header = [
|
|
242
|
+
'/**',
|
|
243
|
+
` * ${options.localeDisplayName} (${options.localeCode}) — email template labels, translated from \`${options.sourceFileName}\`.`,
|
|
244
|
+
' *',
|
|
245
|
+
' * DO NOT EDIT THIS FILE MANUALLY — `wildo generate translate` writes it from the primary-locale file',
|
|
246
|
+
' * beside it and rewrites it whenever those words change or this file no longer matches what it wrote,',
|
|
247
|
+
` * so a hand edit is overwritten by the next run. Change the words in \`${options.sourceFileName}\` and re-run.`,
|
|
248
|
+
' */',
|
|
249
|
+
];
|
|
250
|
+
const lines = [
|
|
251
|
+
...header,
|
|
252
|
+
'export const labels = {',
|
|
253
|
+
...formatTreeBody(options.tree, 1),
|
|
254
|
+
`}${options.usesAsConst ? ' as const' : ''};`,
|
|
255
|
+
];
|
|
256
|
+
if (options.labelsTypeName) {
|
|
257
|
+
lines.push('', `export type ${options.labelsTypeName} = typeof labels;`);
|
|
258
|
+
}
|
|
259
|
+
return `${lines.join('\n')}\n`;
|
|
260
|
+
}
|
|
261
|
+
//# sourceMappingURL=email-labels-tree.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email-labels-tree.utils.js","sourceRoot":"","sources":["../../../../src/email/utils/email-labels-tree.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAAE,yBAAyB,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAe7G,wCAAwC;AACxC,MAAM,cAAc,GAAG,oBAAoB,CAAC;AAE5C;;;;;GAKG;AACH,MAAM,UAAU,0BAA0B,CAAC,IAAY;IACrD,IAAI,CAAC,GAAG,CAAC,CAAC;IAEV,MAAM,UAAU,GAAG,GAAS,EAAE;QAC5B,OAAO,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;YACvB,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;YAClB,IAAI,CAAC,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;gBACpC,CAAC,EAAE,CAAC;gBACJ,SAAS;YACX,CAAC;YACD,IAAI,CAAC,KAAK,GAAG,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC;gBACrC,CAAC,IAAI,CAAC,CAAC;gBACP,OA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,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,+BAA+B,CAAC,OAO/C;IACC,MAAM,MAAM,GAAG;QACb,KAAK;QACL,MAAM,OAAO,CAAC,iBAAiB,KAAK,OAAO,CAAC,UAAU,gDAAgD,OAAO,CAAC,cAAc,KAAK;QACjI,IAAI;QACJ,uGAAuG;QACvG,wGAAwG;QACxG,2EAA2E,OAAO,CAAC,cAAc,gBAAgB;QACjH,KAAK;KACN,CAAC;IACF,MAAM,KAAK,GAAG;QACZ,GAAG,MAAM;QACT,yBAAyB;QACzB,GAAG,cAAc,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;QAClC,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,GAAG;KAC9C,CAAC;IACF,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC;QAC3B,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,eAAe,OAAO,CAAC,cAAc,mBAAmB,CAAC,CAAC;IAC3E,CAAC;IACD,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;AACjC,CAAC","sourcesContent":["/**\n * Read and write an email template's `labels.<locale>.ts` file as a NESTED tree of words (#1908).\n *\n * ## Why a second reader beside `parseEmailLabelsTsSource`\n *\n * That reader parses a FLAT `export const labels = { key: '…' }` — the shape the email GENERATOR\n * writes. Authored templates are not flat: `human-decision-deadline` keys its words by deadline stage\n * (`stages.claim_warning.subject`) and `security-alert` by alert type, and the flat reader throws on\n * the first `{` it meets as a value. The translation lane has to read every template the application\n * ships, so it needs the tree.\n *\n * The other nested reader in this package (`parseNestedLabelsTsSource`) is `JSON.parse` over the\n * object body. It reads the files the labelling pipeline itself WRITES (JSON-shaped, double-quoted),\n * and cannot read a file a person authored: unquoted keys, single-quoted strings, JSDoc between\n * entries, trailing commas. Reading authored TypeScript without executing it is what this file does.\n *\n * ## What it accepts, and what it refuses\n *\n * A value is a string literal (single or double quoted, escapes decoded) or a nested object of the\n * same. Anything else — a number, an array, a template literal, a concatenation, an identifier — is\n * REFUSED with the dotted path that carried it. Guessing would be worse: a translation written from a\n * misread source is a French email that says something the English one does not.\n *\n * A key containing a `.` is refused too. The tree is flattened to dotted paths for the translation\n * model, and a dotted key would make `a.b` ambiguous between a nested and a literal key.\n */\nimport { decodeStringLiteralEscape, extractLabelsObjectInnerSource } from './email-labels-file-source.utils';\n\n/** One node of an email labels tree: the words, or a nested group of them. Key order is authored order. */\nexport type EmailLabelsTree = { [key: string]: string | EmailLabelsTree };\n\n/** An email labels file read without executing it. */\nexport interface ParsedEmailLabelsTreeFile {\n /** The `labels` object, in authored key order. */\n tree: EmailLabelsTree;\n /** The name of the `export type X = typeof labels` alias (`TemplateLabels`, `MagicLinkLabels`), when declared. */\n labelsTypeName: string | null;\n /** True when the source declares the object `as const`. */\n usesAsConst: boolean;\n}\n\n/** Is `key` writable without quotes? */\nconst IDENTIFIER_KEY = /^[A-Za-z_$][\\w$]*$/;\n\n/**\n * Parse the inner body of `export const labels = { … }` into a tree.\n *\n * A small recursive-descent reader over exactly the grammar above. Comments and whitespace are skipped\n * between tokens; a trailing comma is allowed; everything else is refused with its dotted path.\n */\nexport function parseEmailLabelsObjectBody(body: string): EmailLabelsTree {\n let i = 0;\n\n const skipTrivia = (): void => {\n while (i < body.length) {\n const c = body[i];\n if (c !== undefined && /\\s/.test(c)) {\n i++;\n continue;\n }\n if (c === '/' && body[i + 1] === '/') {\n i += 2;\n while (i < body.length && body[i] !== '\\n' && body[i] !== '\\r') i++;\n continue;\n }\n if (c === '/' && body[i + 1] === '*') {\n const close = body.indexOf('*/', i + 2);\n if (close === -1) throw new Error('Unterminated block comment in labels object');\n i = close + 2;\n continue;\n }\n break;\n }\n };\n\n const readQuoted = (): string => {\n const quote = body[i];\n i++;\n let out = '';\n while (i < body.length) {\n const c = body[i]!;\n if (c === '\\\\') {\n const decoded = decodeStringLiteralEscape(body, i);\n out += decoded.text;\n i = decoded.endIndex;\n continue;\n }\n if (c === quote) {\n i++;\n return out;\n }\n if (c === '\\n' || c === '\\r') throw new Error('Unterminated string literal in labels object');\n out += c;\n i++;\n }\n throw new Error('Unterminated string literal in labels object');\n };\n\n const readKey = (path: readonly string[]): string => {\n const c = body[i];\n let key: string;\n if (c === \"'\" || c === '\"') {\n key = readQuoted();\n } else {\n const start = i;\n while (i < body.length && /[\\w$]/.test(body[i]!)) i++;\n key = body.slice(start, i);\n if (!key) throw new Error(`Unexpected character ${JSON.stringify(c ?? '')} where a key was expected at ${describePath(path)}`);\n }\n if (key.includes('.')) {\n throw new Error(`Label key ${JSON.stringify(key)} at ${describePath(path)} contains a \".\" — a dotted key cannot be told apart from a nested one`);\n }\n return key;\n };\n\n const readObject = (path: readonly string[]): EmailLabelsTree => {\n const node: EmailLabelsTree = {};\n while (true) {\n skipTrivia();\n if (i >= body.length) {\n if (path.length === 0) return node;\n throw new Error(`Unterminated nested object at ${describePath(path)}`);\n }\n if (body[i] === '}') {\n if (path.length === 0) throw new Error('Unexpected \"}\" in labels object');\n i++;\n return node;\n }\n const key = readKey(path);\n const keyPath = [...path, key];\n skipTrivia();\n if (body[i] !== ':') throw new Error(`Expected \":\" after ${describePath(keyPath)}`);\n i++;\n skipTrivia();\n const valueStart = body[i];\n if (Object.prototype.hasOwnProperty.call(node, key)) {\n throw new Error(`Duplicate label key at ${describePath(keyPath)}`);\n }\n if (valueStart === \"'\" || valueStart === '\"') {\n node[key] = readQuoted();\n } else if (valueStart === '{') {\n i++;\n node[key] = readObject(keyPath);\n } else {\n throw new Error(\n `Unsupported value at ${describePath(keyPath)}: only string literals and nested objects of them can be translated`,\n );\n }\n skipTrivia();\n if (body[i] === ',') {\n i++;\n continue;\n }\n skipTrivia();\n if (i < body.length && body[i] !== '}') {\n throw new Error(`Expected \",\" or \"}\" after ${describePath(keyPath)} — a concatenation or expression cannot be translated`);\n }\n }\n };\n\n return readObject([]);\n}\n\nfunction describePath(path: readonly string[]): string {\n return path.length === 0 ? 'the labels object' : `\"${path.join('.')}\"`;\n}\n\n/** Parse an authored `labels.<locale>.ts` source into its tree, without executing it. */\nexport function parseEmailLabelsTreeSource(source: string): ParsedEmailLabelsTreeFile {\n const inner = extractLabelsObjectInnerSource(source);\n if (inner === null) throw new Error('Could not find export const labels = { ... }');\n const typeMatch = source.match(/export\\s+type\\s+(\\w+)\\s*=\\s*typeof\\s+labels/);\n return {\n tree: parseEmailLabelsObjectBody(inner),\n labelsTypeName: typeMatch?.[1] ?? null,\n usesAsConst: /\\}\\s*as\\s+const/.test(source),\n };\n}\n\n/** Flatten a tree to `dotted.path → words`, in authored order. */\nexport function flattenEmailLabelsTree(tree: EmailLabelsTree, prefix = '', out: Record<string, string> = {}): Record<string, string> {\n for (const [key, value] of Object.entries(tree)) {\n const path = prefix ? `${prefix}.${key}` : key;\n if (typeof value === 'string') out[path] = value;\n else flattenEmailLabelsTree(value, path, out);\n }\n return out;\n}\n\n/**\n * Rebuild `tree` with every leaf replaced by `words[dottedPath]`.\n *\n * The STRUCTURE comes from the source tree, never from `words`: a translation can only fill the shape\n * the English file declares, so it cannot add a key, drop one, or turn a group into a string. A leaf\n * `words` does not answer is refused rather than left in English — the caller decides what a gap\n * means, and it must not be decided here by silence.\n */\nexport function mapEmailLabelsTreeLeaves(tree: EmailLabelsTree, words: Readonly<Record<string, string>>, prefix = ''): EmailLabelsTree {\n const out: EmailLabelsTree = {};\n for (const [key, value] of Object.entries(tree)) {\n const path = prefix ? `${prefix}.${key}` : key;\n if (typeof value === 'string') {\n const replacement = words[path];\n if (typeof replacement !== 'string') throw new Error(`No words for label ${JSON.stringify(path)}`);\n out[key] = replacement;\n } else {\n out[key] = mapEmailLabelsTreeLeaves(value, words, path);\n }\n }\n return out;\n}\n\n/** Single-quoted TypeScript string literal for `value`, escaping what would break or silently alter it. */\nfunction formatSingleQuotedLiteral(value: string): string {\n const escaped = value\n .replace(/\\\\/g, '\\\\\\\\')\n .replace(/'/g, \"\\\\'\")\n .replace(/\\r/g, '\\\\r')\n .replace(/\\n/g, '\\\\n')\n .replace(/\\t/g, '\\\\t')\n .replace(/\\u2028/g, '\\\\u2028')\n .replace(/\\u2029/g, '\\\\u2029');\n return `'${escaped}'`;\n}\n\nfunction formatKey(key: string): string {\n return IDENTIFIER_KEY.test(key) ? key : formatSingleQuotedLiteral(key);\n}\n\nfunction formatTreeBody(tree: EmailLabelsTree, depth: number): string[] {\n const indent = ' '.repeat(depth);\n const lines: string[] = [];\n for (const [key, value] of Object.entries(tree)) {\n if (typeof value === 'string') {\n lines.push(`${indent}${formatKey(key)}: ${formatSingleQuotedLiteral(value)},`);\n } else {\n lines.push(`${indent}${formatKey(key)}: {`, ...formatTreeBody(value, depth + 1), `${indent}},`);\n }\n }\n return lines;\n}\n\n/**\n * Write a TRANSLATED `labels.<locale>.ts`: the same export name, the same nesting, the same `as const`\n * and the same `export type` alias as the primary-locale file it was translated from, so the runtime\n * scanner (`scanEmailTemplateDirectory`, which reads the named `labels` export of every\n * `labels.<locale>` module beside a template) picks it up with no registration.\n *\n * Carries a DO-NOT-EDIT header naming the file it derives from: a hand edit is overwritten by the next\n * `wildo generate translate` (the lock records this file's hash, so a drifted file reads as stale), and\n * the header is the only place a reader can learn that before it happens.\n */\nexport function formatTranslatedEmailLabelsFile(options: {\n localeCode: string;\n localeDisplayName: string;\n sourceFileName: string;\n tree: EmailLabelsTree;\n labelsTypeName: string | null;\n usesAsConst: boolean;\n}): string {\n const header = [\n '/**',\n ` * ${options.localeDisplayName} (${options.localeCode}) — email template labels, translated from \\`${options.sourceFileName}\\`.`,\n ' *',\n ' * DO NOT EDIT THIS FILE MANUALLY — `wildo generate translate` writes it from the primary-locale file',\n ' * beside it and rewrites it whenever those words change or this file no longer matches what it wrote,',\n ` * so a hand edit is overwritten by the next run. Change the words in \\`${options.sourceFileName}\\` and re-run.`,\n ' */',\n ];\n const lines = [\n ...header,\n 'export const labels = {',\n ...formatTreeBody(options.tree, 1),\n `}${options.usesAsConst ? ' as const' : ''};`,\n ];\n if (options.labelsTypeName) {\n lines.push('', `export type ${options.labelsTypeName} = typeof labels;`);\n }\n return `${lines.join('\\n')}\\n`;\n}\n"]}
|
|
@@ -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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-template-fs-discovery.utils.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"email-template-fs-discovery.utils.js","sourceRoot":"","sources":["../../../../src/email/utils/email-template-fs-discovery.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAW7B,MAAM,UAAU,wBAAwB,CAAC,WAAmB;IAC1D,IAAI,WAAW,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;QACtC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CACpB,QAAQ,EACR,WAAW;aACR,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC;aACvB,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;aACnB,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CACtB,CAAC;IACJ,CAAC;IAED,IAAI,WAAW,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QACrC,MAAM,CAAC,EAAE,YAAY,EAAE,GAAG,SAAS,CAAC,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC9D,IAAI,CAAC,YAAY,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC5C,MAAM,IAAI,KAAK,CAAC,wCAAwC,WAAW,EAAE,CAAC,CAAC;QACzE,CAAC;QAED,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,YAAY,EAAE,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IACzE,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,mCAAmC,WAAW,EAAE,CAAC,CAAC;AACpE,CAAC;AAED,MAAM,UAAU,mCAAmC,CACjD,aAAqB,EACrB,SAAsD,EACtD,YAAuB;IAEvB,MAAM,KAAK,GAAG,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,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ED,MAAM,UAAU,cAAc,CAAC,OAAe,EAAE,UAAkB;IAChE,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,UAAU,UAAU,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,OAAe;IAC9C,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;AAC5C,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,CAAS;IACxC,IAAI,CAAC;QACH,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAC5B,OAAO,EAAE,CAAC,MAAM,EAAE,CAAC;IACrB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC","sourcesContent":["import * as fs from 'fs/promises';\nimport * as path from 'path';\nimport type { CompanionEmailTemplateOwnershipDescriptor } from '@wildo-ai/saas-models/companion';\n\nexport interface EmailTemplateArtifactTarget {\n ownerId: string;\n templateRef: string;\n dirPath: string;\n templatePath: string;\n backendRoot: string;\n}\n\nexport function templateRefToRelativeDir(templateRef: string): string {\n if (templateRef.startsWith('system.')) {\n return path.posix.join(\n 'system',\n templateRef\n .slice('system.'.length)\n .replace(/\\./g, '/')\n .replace(/_/g, '-'),\n );\n }\n\n if (templateRef.startsWith('email.')) {\n const [, resourceType, ...remainder] = templateRef.split('.');\n if (!resourceType || remainder.length === 0) {\n throw new Error(`Invalid resource email template ref: ${templateRef}`);\n }\n\n return path.posix.join('resources', resourceType, remainder.join('.'));\n }\n\n throw new Error(`Unsupported email template ref: ${templateRef}`);\n}\n\nexport function resolveEmailTemplateArtifactTargets(\n workspaceRoot: string,\n ownership: CompanionEmailTemplateOwnershipDescriptor[],\n templateRefs?: string[],\n): EmailTemplateArtifactTarget[] {\n const allow = templateRefs?.length ? new Set(templateRefs) : null;\n const deduped = new Map<string, EmailTemplateArtifactTarget>();\n\n for (const owner of ownership) {\n const backendRoot = owner.rootsByRole.backend;\n if (!backendRoot) {\n continue;\n }\n\n for (const templateRef of owner.templateRefs) {\n if (allow && !allow.has(templateRef)) {\n continue;\n }\n\n const dirPath = path.resolve(\n workspaceRoot,\n backendRoot,\n templateRefToRelativeDir(templateRef),\n );\n\n deduped.set(templateRef, {\n ownerId: owner.ownerId,\n templateRef,\n dirPath,\n templatePath: templateFilePath(dirPath),\n backendRoot,\n });\n }\n }\n\n return Array.from(deduped.values());\n}\n\nexport async function readUtf8File(p: string): Promise<string> {\n return fs.readFile(p, 'utf-8');\n}\n\nexport async function writeUtf8File(p: string, content: string): Promise<void> {\n await fs.mkdir(path.dirname(p), { recursive: true });\n await fs.writeFile(p, content, 'utf-8');\n}\n\nexport function labelsFilePath(dirPath: string, localeCode: string): string {\n return path.join(dirPath, `labels.${localeCode}.ts`);\n}\n\nexport function templateFilePath(dirPath: string): string {\n return path.join(dirPath, 'template.tsx');\n}\n\nexport async function fileExists(p: string): Promise<boolean> {\n try {\n const st = await fs.stat(p);\n return st.isFile();\n } catch {\n return false;\n }\n}\n"]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
2
|
import type { ActorExecutionPersistencePort, ActorExecutionPersistence_CreateExecutionInput, ActorExecutionPersistence_CreateTaskInput, ActorExecutionPersistence_Created, ActorExecutionPersistence_ExecutionPatch, ActorExecutionPersistence_ExecutionRow, ActorExecutionPersistence_ListQuery, ActorExecutionPersistence_TaskPatch } from '@wildo-ai/saas-backend-lib';
|
|
3
|
+
import type { ActorExecution_Suspension } from '@wildo-ai/saas-models';
|
|
3
4
|
import type { CompanionExecutionSessionContext } from '../../core/traceability/companion-traceability.models';
|
|
4
5
|
import { CompanionExecutionsCompanionService } from './companion-executions.companion.service';
|
|
5
6
|
/**
|
|
@@ -27,6 +28,7 @@ export declare class CompanionActorExecutionPersistenceAdapter implements ActorE
|
|
|
27
28
|
createTask(input: ActorExecutionPersistence_CreateTaskInput, scope?: CompanionExecutionSessionContext): Promise<ActorExecutionPersistence_Created>;
|
|
28
29
|
updateTask(taskId: string, patch: ActorExecutionPersistence_TaskPatch, scope?: CompanionExecutionSessionContext): Promise<void>;
|
|
29
30
|
updateExecution(executionId: string, patch: ActorExecutionPersistence_ExecutionPatch, scope?: CompanionExecutionSessionContext): Promise<void>;
|
|
31
|
+
updateSuspendedExecution(executionId: string, expected: ActorExecution_Suspension, patch: ActorExecutionPersistence_ExecutionPatch, scope?: CompanionExecutionSessionContext): Promise<boolean>;
|
|
30
32
|
readExecution(executionId: string, scope?: CompanionExecutionSessionContext): Promise<ActorExecutionPersistence_ExecutionRow | null>;
|
|
31
33
|
listExecutions(query: ActorExecutionPersistence_ListQuery, scope?: CompanionExecutionSessionContext): Promise<readonly ActorExecutionPersistence_ExecutionRow[]>;
|
|
32
34
|
private toRow;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companion-actor-execution-persistence.adapter.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"companion-actor-execution-persistence.adapter.d.ts","sourceRoot":"","sources":["../../../../src/executions/services/companion-actor-execution-persistence.adapter.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EACV,6BAA6B,EAC7B,8CAA8C,EAC9C,yCAAyC,EACzC,iCAAiC,EACjC,wCAAwC,EACxC,sCAAsC,EACtC,mCAAmC,EACnC,mCAAmC,EACpC,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAGvE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,uDAAuD,CAAC;AAQ9G,OAAO,EAAE,mCAAmC,EAAE,MAAM,0CAA0C,CAAC;AAE/F;;;;;;;;;;;;;;;;;GAiBG;AACH,qBACa,yCAA0C,YAAW,6BAA6B,CAAC,gCAAgC,CAAC;IAE1E,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAAV,UAAU,EAAE,mCAAmC;IAGxG,eAAe,CAC1B,KAAK,EAAE,8CAA8C,EACrD,KAAK,CAAC,EAAE,gCAAgC,GACvC,OAAO,CAAC,iCAAiC,CAAC;IAiBhC,UAAU,CACrB,KAAK,EAAE,yCAAyC,EAChD,KAAK,CAAC,EAAE,gCAAgC,GACvC,OAAO,CAAC,iCAAiC,CAAC;IAmBhC,UAAU,CACrB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,mCAAmC,EAC1C,KAAK,CAAC,EAAE,gCAAgC,GACvC,OAAO,CAAC,IAAI,CAAC;IAeH,eAAe,CAC1B,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,wCAAwC,EAC/C,KAAK,CAAC,EAAE,gCAAgC,GACvC,OAAO,CAAC,IAAI,CAAC;IAoBH,wBAAwB,CACnC,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,yBAAyB,EACnC,KAAK,EAAE,wCAAwC,EAC/C,KAAK,CAAC,EAAE,gCAAgC,GACvC,OAAO,CAAC,OAAO,CAAC;IAsBN,aAAa,CACxB,WAAW,EAAE,MAAM,EACnB,KAAK,CAAC,EAAE,gCAAgC,GACvC,OAAO,CAAC,sCAAsC,GAAG,IAAI,CAAC;IAU5C,cAAc,CACzB,KAAK,EAAE,mCAAmC,EAC1C,KAAK,CAAC,EAAE,gCAAgC,GACvC,OAAO,CAAC,SAAS,sCAAsC,EAAE,CAAC;IAc7D,OAAO,CAAC,KAAK;CAad"}
|
|
@@ -45,6 +45,9 @@ let CompanionActorExecutionPersistenceAdapter = class CompanionActorExecutionPer
|
|
|
45
45
|
...(input.initiator ? { initiator: input.initiator } : {}),
|
|
46
46
|
// The single-flight subject lives ON the row (#1361): it is the lease, read back by every process.
|
|
47
47
|
...(input.exclusiveSubject !== undefined ? { exclusiveSubject: input.exclusiveSubject } : {}),
|
|
48
|
+
// `input.caseRef` (#1598) is deliberately NOT carried: a case is a row of an APPLICATION's work-unit
|
|
49
|
+
// resource, and these rows are the platform's record of building that application, not work done for one
|
|
50
|
+
// of its clients. The companion opens no run on a case, and its model calls are UNATTRIBUTED by design.
|
|
48
51
|
}), scope);
|
|
49
52
|
return { _id: String(execution._id) };
|
|
50
53
|
}
|
|
@@ -82,11 +85,28 @@ let CompanionActorExecutionPersistenceAdapter = class CompanionActorExecutionPer
|
|
|
82
85
|
const status = patch.status ?? (await this.executions.getActorExecution(executionId, scope)).status;
|
|
83
86
|
await this.executions.updateActorExecution(executionId, CompanionUpdateActorExecutionRequestSchema.parse({
|
|
84
87
|
status,
|
|
85
|
-
|
|
88
|
+
// `null` is not sent: a non-terminal move clears the finish instant in the service itself.
|
|
89
|
+
...(patch.finishedAt ? { finishedAt: patch.finishedAt } : {}),
|
|
86
90
|
...(patch.suspension !== undefined ? { suspension: patch.suspension } : {}),
|
|
87
91
|
...(patch.checkpoint !== undefined ? { checkpoint: patch.checkpoint } : {}),
|
|
88
92
|
}), scope);
|
|
89
93
|
}
|
|
94
|
+
async updateSuspendedExecution(executionId, expected, patch, scope) {
|
|
95
|
+
// A move OUT of waiting always names where it goes, so there is no current status to read — and
|
|
96
|
+
// reading one would reopen the window this write exists to close (#1586).
|
|
97
|
+
if (patch.status === undefined) {
|
|
98
|
+
throw new Error(`A move out of waiting must name its status (execution '${executionId}').`);
|
|
99
|
+
}
|
|
100
|
+
const moved = await this.executions.updateSuspendedActorExecution(executionId, expected, CompanionUpdateActorExecutionRequestSchema.parse({
|
|
101
|
+
status: patch.status,
|
|
102
|
+
// `null` is not sent: a non-terminal move clears the finish instant in the service itself.
|
|
103
|
+
...(patch.finishedAt ? { finishedAt: patch.finishedAt } : {}),
|
|
104
|
+
...(patch.suspension !== undefined ? { suspension: patch.suspension } : {}),
|
|
105
|
+
...(patch.checkpoint !== undefined ? { checkpoint: patch.checkpoint } : {}),
|
|
106
|
+
...(patch.resolution !== undefined ? { resolution: patch.resolution } : {}),
|
|
107
|
+
}), scope);
|
|
108
|
+
return moved !== null;
|
|
109
|
+
}
|
|
90
110
|
async readExecution(executionId, scope) {
|
|
91
111
|
try {
|
|
92
112
|
return this.toRow(await this.executions.getActorExecution(executionId, scope));
|