@wildo-ai/dev-companion 1.1.7 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/companion-supervisor.d.mts +33 -0
- package/bin/companion-supervisor.mjs +174 -0
- package/bin/wildo-dev-companion-supervised.mjs +16 -0
- package/dist/esm/brand/models/logo-creative-brief.schemas.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-creative-brief.schemas.js.map +1 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.js +8 -2
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.js.map +1 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.js +8 -2
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
- package/dist/esm/brand/models/logo-judge.schemas.d.ts.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 +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.js +9 -11
- package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
- package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-propagation.companion.utils.js.map +1 -1
- package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
- package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
- package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
- package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
- package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
- package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts +21 -0
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js +33 -1
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +41 -2
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +43 -1
- 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.map +1 -1
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answer.models.js.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -1
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +57 -1
- 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 +75 -1
- 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 +90 -5
- 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 +242 -22
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js.map +1 -1
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
- package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.d.ts.map +1 -1
- package/dist/esm/code-compliance-check/check-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 +23 -2
- package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.js +13 -2
- package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
- package/dist/esm/companion-api/companion-error-guidance.models.d.ts.map +1 -1
- package/dist/esm/companion-api/companion-error-guidance.models.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.d.ts +63 -7
- package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.js +315 -39
- package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts.map +1 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.js.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.models.d.ts.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.models.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
- package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js.map +1 -1
- package/dist/esm/core/config/primary-language.companion.utils.d.ts +5 -4
- package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/config/primary-language.companion.utils.js +5 -4
- package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
- package/dist/esm/core/context/application-module-generations.companion.d.ts +103 -0
- package/dist/esm/core/context/application-module-generations.companion.d.ts.map +1 -0
- package/dist/esm/core/context/application-module-generations.companion.js +313 -0
- package/dist/esm/core/context/application-module-generations.companion.js.map +1 -0
- package/dist/esm/core/context/companion-context.d.ts.map +1 -1
- package/dist/esm/core/context/companion-context.js.map +1 -1
- package/dist/esm/core/context/companion-package-loaders.companion.d.ts +19 -19
- package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
- package/dist/esm/core/context/companion-package-loaders.companion.js +52 -40
- package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
- package/dist/esm/core/context/draft-family-values.companion.d.ts.map +1 -1
- package/dist/esm/core/context/draft-family-values.companion.js.map +1 -1
- package/dist/esm/core/inject/models/container.d.ts.map +1 -1
- package/dist/esm/core/inject/models/container.js +4 -0
- package/dist/esm/core/inject/models/container.js.map +1 -1
- package/dist/esm/core/inject/models/service-types.d.ts +4 -0
- package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
- package/dist/esm/core/inject/models/service-types.js +4 -0
- package/dist/esm/core/inject/models/service-types.js.map +1 -1
- package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
- package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
- package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
- package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
- package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/application-secrets.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts +15 -1
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.js +38 -3
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts +21 -0
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.js +64 -25
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.js +2 -0
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts +0 -28
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +192 -19
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +27 -5
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/launch-blockers.companion.d.ts +47 -0
- package/dist/esm/core/introspection/resources/launch-blockers.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/resources/launch-blockers.companion.js +98 -0
- package/dist/esm/core/introspection/resources/launch-blockers.companion.js.map +1 -0
- package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts +6 -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 +20 -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 +34 -8
- 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 +61 -12
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-input-closure.companion.d.ts +44 -0
- package/dist/esm/core/introspection/services/introspection-input-closure.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/services/introspection-input-closure.companion.js +104 -0
- package/dist/esm/core/introspection/services/introspection-input-closure.companion.js.map +1 -0
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts +41 -22
- 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 +64 -47
- 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.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.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.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-child.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-child.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts +7 -1
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js +13 -4
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-context-block.builder.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-context-block.builder.js.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.map +1 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +7 -0
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js.map +1 -1
- package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -1
- package/dist/esm/core/introspection/workspace-elements.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/workspace-elements.companion.js.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.js.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.models.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.models.js.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts +4 -4
- package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.schemas.js.map +1 -1
- package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts.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.map +1 -1
- package/dist/esm/core/runtime/companion-endpoint-record.js.map +1 -1
- package/dist/esm/core/runtime/companion-env-file.d.ts +39 -9
- package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-env-file.js +75 -16
- package/dist/esm/core/runtime/companion-env-file.js.map +1 -1
- package/dist/esm/core/runtime/companion-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.map +1 -1
- 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.map +1 -1
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js.map +1 -1
- package/dist/esm/core/runtime/models/companion-runtime.models.d.ts.map +1 -1
- package/dist/esm/core/runtime/models/companion-runtime.models.js.map +1 -1
- package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/services/file-storage-initialization.companion.js.map +1 -1
- package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +7 -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 +29 -11
- package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-workbench-topology.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-workbench-topology.js.map +1 -1
- package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.js.map +1 -1
- package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/chart-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/composite-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/cross-registry-rendering.shared.js.map +1 -1
- package/dist/esm/core/specifications/execution-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/execution-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/feature-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/feature-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/frontend-component-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/full-custom-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/guidance-flow-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/milestone-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/milestone-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/non-composite-view-specification-context.shared.js.map +1 -1
- package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/onboarding-element-rendering.shared.js.map +1 -1
- package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/onboarding-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/product-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/product-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/resource-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/role-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/role-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.js.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.models.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.models.js.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.shared.js.map +1 -1
- package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/system-email-template-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
- package/dist/esm/core/specifications/validate-resource-field-completeness.js.map +1 -1
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.models.js.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.service.js.map +1 -1
- package/dist/esm/core/utils/atomic-write.utils.d.ts.map +1 -1
- package/dist/esm/core/utils/atomic-write.utils.js.map +1 -1
- package/dist/esm/core/utils/bounded-concurrency.utils.d.ts +17 -0
- package/dist/esm/core/utils/bounded-concurrency.utils.d.ts.map +1 -0
- package/dist/esm/core/utils/bounded-concurrency.utils.js +37 -0
- package/dist/esm/core/utils/bounded-concurrency.utils.js.map +1 -0
- package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts +10 -1
- package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/utils/derived-input-signature.companion.utils.js +9 -2
- package/dist/esm/core/utils/derived-input-signature.companion.utils.js.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js +2 -0
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.function-tools.js +66 -6
- package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -1
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts +0 -17
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +10 -4
- 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.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.map +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.js.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.d.ts +6 -1
- package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.js +4 -1
- package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
- package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-labels-file-source.utils.js.map +1 -1
- package/dist/esm/email/utils/email-labels-tree.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-labels-tree.utils.js.map +1 -1
- package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-template-fs-discovery.utils.js.map +1 -1
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js +8 -2
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js +8 -2
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts.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 +7 -7
- package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
- package/dist/esm/expert-personas/services/persona-source-ownership.d.ts.map +1 -1
- package/dist/esm/expert-personas/services/persona-source-ownership.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_announcement.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_announcement.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_banner.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_card.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_card.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist_item.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_modal.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_modal.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_onboarding_view.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_survey.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_tooltip.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_tooltip.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_tour.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_tour.en.js.map +1 -1
- package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_achievement_badge.en.js.map +1 -1
- package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_milestone_tracker.en.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.js +41 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.domain-model.en.js.map +1 -1
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts.map +1 -1
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.js.map +1 -1
- package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -1
- package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -1
- package/dist/esm/i18n/index.d.ts.map +1 -1
- package/dist/esm/i18n/index.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchAspects.en.js +7 -0
- package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts +5 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js +5 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js +2 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDomainResources.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts +46 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +12 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +266 -0
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +91 -5
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/application-creation.en.d.ts +41 -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 +45 -1
- package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/compliance-programme.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/flows-actors.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/flows-actors.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/localization.en.d.ts +82 -0
- package/dist/esm/i18n/system_enums/localization.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/localization.en.js +82 -0
- package/dist/esm/i18n/system_enums/localization.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/market.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/risk-register.en.d.ts +1 -0
- package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/risk-register.en.js +1 -0
- package/dist/esm/i18n/system_enums/risk-register.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.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 +10 -0
- package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.js +13 -0
- package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-secrets.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -1
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-progress.models.d.ts +43 -0
- package/dist/esm/i18n-labelling/models/labelling-progress.models.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/models/labelling-progress.models.js +34 -0
- package/dist/esm/i18n-labelling/models/labelling-progress.models.js.map +1 -0
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
- package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +8 -0
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +97 -56
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts +18 -0
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +269 -153
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-file-source.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-file-source.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.d.ts +41 -0
- package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.js +47 -0
- package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts +12 -0
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js +10 -2
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.d.ts +89 -0
- package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.js +229 -0
- package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.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.map +1 -1
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.js.map +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/market/services/market-generation.companion.service.d.ts.map +1 -1
- package/dist/esm/market/services/market-generation.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-line-catalog.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts +67 -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 +64 -0
- package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/creation-intervention.models.d.ts +308 -0
- package/dist/esm/meta-workflows/models/creation-intervention.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/creation-intervention.models.js +365 -0
- package/dist/esm/meta-workflows/models/creation-intervention.models.js.map +1 -0
- package/dist/esm/meta-workflows/models/generation-step-progress.models.d.ts +61 -0
- package/dist/esm/meta-workflows/models/generation-step-progress.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/generation-step-progress.models.js +58 -0
- package/dist/esm/meta-workflows/models/generation-step-progress.models.js.map +1 -0
- package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/human-decision-settler.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts +10 -6
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js +11 -6
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts +3 -0
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js +8 -1
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts +26 -0
- package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-record.models.js +66 -10
- package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.d.ts +13 -0
- package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.js +33 -0
- package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.d.ts +145 -0
- package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.js +179 -0
- package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +376 -17
- 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 +805 -39
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +93 -7
- 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 +142 -25
- 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 +120 -3
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +325 -16
- 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.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js +15 -6
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js +10 -11
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js +10 -11
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.d.ts +82 -0
- package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js +291 -0
- package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.d.ts +60 -0
- package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.js +66 -0
- package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts +53 -0
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js +164 -0
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.d.ts +37 -0
- package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.js +52 -0
- package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.js.map +1 -0
- package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +74 -14
- package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/dossier.companion.service.js +180 -28
- 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 +2 -3
- 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 +2 -8
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.d.ts +67 -0
- package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.js +64 -0
- package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.js.map +1 -0
- package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/landed-module-import.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js +11 -3
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +92 -4
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js +328 -7
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +105 -6
- 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 +309 -39
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts +62 -1
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js +152 -2
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js.map +1 -1
- package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts.map +1 -1
- package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
- package/package.json +22 -18
- package/dist/esm/.tsbuildinfo +0 -1
- package/dist/esm/__tests__/asset-noop.d.ts +0 -3
- package/dist/esm/__tests__/asset-noop.d.ts.map +0 -1
- package/dist/esm/__tests__/asset-noop.js +0 -2
- package/dist/esm/__tests__/asset-noop.js.map +0 -1
- package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts +0 -2
- package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +0 -1
- package/dist/esm/__tests__/chdir-dogfood-app.setup.js +0 -44
- package/dist/esm/__tests__/chdir-dogfood-app.setup.js.map +0 -1
- package/dist/esm/__tests__/internal-test-view.d.ts +0 -39
- package/dist/esm/__tests__/internal-test-view.d.ts.map +0 -1
- package/dist/esm/__tests__/internal-test-view.js +0 -2
- package/dist/esm/__tests__/internal-test-view.js.map +0 -1
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts +0 -50
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +0 -1
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js +0 -157
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +0 -1
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts +0 -8
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +0 -1
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js +0 -43
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js.map +0 -1
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts +0 -79
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +0 -1
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js +0 -193
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +0 -1
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { randomUUID } from 'node:crypto';
|
|
2
|
+
import * as fs from 'node:fs/promises';
|
|
3
|
+
import * as path from 'node:path';
|
|
4
|
+
import { writeFileAtomic } from '../../core/utils/atomic-write.utils.js';
|
|
5
|
+
/**
|
|
6
|
+
* Where a labelling run stages its generated files: `<saasRoot>/.wildo-saas/state/label-staging/`.
|
|
7
|
+
*
|
|
8
|
+
* Under `.wildo-saas/state`, which every application gitignores (the skeleton's `gitignore` and both
|
|
9
|
+
* dogfood applications), and which nothing watches: the backend's `tsc-watch` watches its own package,
|
|
10
|
+
* and the introspection observer never descends `.wildo-saas`.
|
|
11
|
+
*/
|
|
12
|
+
export const LABEL_STAGING_RELATIVE_ROOT = path.join('.wildo-saas', 'state', 'label-staging');
|
|
13
|
+
/** The marker each run's staging directory carries, so another run can tell a live run from a dead one. */
|
|
14
|
+
const RUN_MARKER_FILE_NAME = 'run.json';
|
|
15
|
+
/**
|
|
16
|
+
* Stages a labelling run's generated files on disk and moves them into the application in ONE burst
|
|
17
|
+
* when the run ends (#2213).
|
|
18
|
+
*
|
|
19
|
+
* ## Why
|
|
20
|
+
*
|
|
21
|
+
* Label files live inside the application's backend source (`<backend>/src/engine/i18n/**`, and each
|
|
22
|
+
* email template's `labels.<locale>.ts`). Every file written there wakes two watchers that each do a
|
|
23
|
+
* whole application's worth of work: the backend's `tsc-watch` recompiles and RESTARTS the server, and
|
|
24
|
+
* the companion's introspection watcher sees the emitted `dist` move and recompiles every derivation
|
|
25
|
+
* that can read the backend (#2245). Measured on `app-creation-test-004` (2026-10-01) over 2h20 of one
|
|
26
|
+
* `i18n-labels` step: 215 backend boots, 41 recompile passes, 300 introspection subprocesses.
|
|
27
|
+
*
|
|
28
|
+
* Staged files reach the application only at the end of the run, all at once, so a whole run costs one
|
|
29
|
+
* restart and one recompile pass. They are renamed into place, which is atomic per file and lands every
|
|
30
|
+
* file inside one watcher settle window.
|
|
31
|
+
*
|
|
32
|
+
* ## Why on disk rather than in memory
|
|
33
|
+
*
|
|
34
|
+
* The first version (efb3a30a8d) held files in memory and wrote a burst every five minutes, because a
|
|
35
|
+
* companion that stopped mid-run would lose everything held. On disk, nothing is lost: a run that dies
|
|
36
|
+
* leaves its staging directory behind, and the next run adopts it ({@link adoptAbandonedLabelStaging})
|
|
37
|
+
* before doing any work. So the run can wait until its end, which is what makes it one restart.
|
|
38
|
+
*
|
|
39
|
+
* ## Why recording a unit before its file lands is safe
|
|
40
|
+
*
|
|
41
|
+
* The run records a unit in the lock (`fresh`, with the SHA of what it produced) before the file
|
|
42
|
+
* reaches its place. Every freshness check compares that SHA with the file ON DISK in its place, so a
|
|
43
|
+
* staged file that never lands reads as drifted and is redone; and translate refuses to translate from
|
|
44
|
+
* a primary file that does not match the labellize record, so a run overlapping another's staging can
|
|
45
|
+
* never record a wrong fresh.
|
|
46
|
+
*
|
|
47
|
+
* A file that cannot be moved into place is reported back to the run, which turns that unit's result
|
|
48
|
+
* into a FAILED row. It stays staged, and a later run adopts it.
|
|
49
|
+
*
|
|
50
|
+
* ## What is NOT staged
|
|
51
|
+
*
|
|
52
|
+
* A target outside the application root is written at once (staging mirrors paths relative to the
|
|
53
|
+
* root, so it has nowhere to put it). The labellize adoption prune, which reads its own file back, and
|
|
54
|
+
* the framework-base seeders, which already write as one burst before the unit pool, write directly.
|
|
55
|
+
*/
|
|
56
|
+
export class StagedLabelFileWriter {
|
|
57
|
+
saasRoot;
|
|
58
|
+
runDirectory;
|
|
59
|
+
/** Staged files by their target path. */
|
|
60
|
+
staged = new Map();
|
|
61
|
+
closed = false;
|
|
62
|
+
constructor(saasRoot, runDirectory) {
|
|
63
|
+
this.saasRoot = saasRoot;
|
|
64
|
+
this.runDirectory = runDirectory;
|
|
65
|
+
}
|
|
66
|
+
/** Open a run's staging directory and mark it as owned by this process. */
|
|
67
|
+
static async open(saasRoot) {
|
|
68
|
+
const runDirectory = path.join(saasRoot, LABEL_STAGING_RELATIVE_ROOT, `${new Date().toISOString().replace(/[:.]/g, '-')}-${process.pid}-${randomUUID().slice(0, 8)}`);
|
|
69
|
+
await fs.mkdir(runDirectory, { recursive: true });
|
|
70
|
+
await writeMarker(runDirectory, { pid: process.pid, startedAt: new Date().toISOString() });
|
|
71
|
+
return new StagedLabelFileWriter(saasRoot, runDirectory);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Stage `content` for `targetPath`. Throws when it cannot be written, so the caller records the unit
|
|
75
|
+
* FAILED before anything is recorded in the lock.
|
|
76
|
+
*/
|
|
77
|
+
async stage(targetPath, content) {
|
|
78
|
+
if (this.closed)
|
|
79
|
+
throw new Error(`Cannot stage ${targetPath}: this labelling run's staging is closed`);
|
|
80
|
+
const relative = path.relative(this.saasRoot, targetPath);
|
|
81
|
+
if (relative.startsWith('..') || path.isAbsolute(relative)) {
|
|
82
|
+
await writeLabelFile(targetPath, content);
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
const stagedPath = path.join(this.runDirectory, relative);
|
|
86
|
+
await writeLabelFile(stagedPath, content);
|
|
87
|
+
this.staged.set(targetPath, stagedPath);
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Move every staged file into place, as one burst, and return every file that could not be moved, by
|
|
91
|
+
* target path. Idempotent. The run calls it before it reports, however the run ended.
|
|
92
|
+
*/
|
|
93
|
+
async close() {
|
|
94
|
+
if (this.closed)
|
|
95
|
+
return new Map();
|
|
96
|
+
this.closed = true;
|
|
97
|
+
const failures = await promoteStagedFiles([...this.staged.entries()]);
|
|
98
|
+
if (failures.size === 0) {
|
|
99
|
+
await fs.rm(this.runDirectory, { recursive: true, force: true });
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
// What could not be moved stays staged, and the marker says the run is over so another run may adopt it.
|
|
103
|
+
await writeMarker(this.runDirectory, { pid: process.pid, startedAt: new Date().toISOString(), closed: true });
|
|
104
|
+
}
|
|
105
|
+
return failures;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Move into place the files a dead or finished run left staged (#2213).
|
|
110
|
+
*
|
|
111
|
+
* A run directory is adopted when its marker says the run closed, or its process is gone; a live run's
|
|
112
|
+
* directory is never touched. A staged file is moved only if the file in its place is not NEWER — a
|
|
113
|
+
* file written in place since (a person's edit, another run) is not overwritten, and the staged one is
|
|
114
|
+
* discarded. Its lock record then disagrees with the disk, so the unit is redone. Never throws: a
|
|
115
|
+
* staging root it cannot read adopts nothing.
|
|
116
|
+
*/
|
|
117
|
+
export async function adoptAbandonedLabelStaging(saasRoot) {
|
|
118
|
+
const stagingRoot = path.join(saasRoot, LABEL_STAGING_RELATIVE_ROOT);
|
|
119
|
+
const adopted = [];
|
|
120
|
+
const discarded = [];
|
|
121
|
+
let runs;
|
|
122
|
+
try {
|
|
123
|
+
runs = await fs.readdir(stagingRoot);
|
|
124
|
+
}
|
|
125
|
+
catch {
|
|
126
|
+
return { adopted, discarded };
|
|
127
|
+
}
|
|
128
|
+
for (const run of runs) {
|
|
129
|
+
const runDirectory = path.join(stagingRoot, run);
|
|
130
|
+
const marker = await readMarker(runDirectory);
|
|
131
|
+
if (marker !== null && !marker.closed && isProcessAlive(marker.pid))
|
|
132
|
+
continue;
|
|
133
|
+
const moves = [];
|
|
134
|
+
for (const stagedPath of await listFiles(runDirectory)) {
|
|
135
|
+
if (path.basename(stagedPath) === RUN_MARKER_FILE_NAME && path.dirname(stagedPath) === runDirectory)
|
|
136
|
+
continue;
|
|
137
|
+
const targetPath = path.join(saasRoot, path.relative(runDirectory, stagedPath));
|
|
138
|
+
if (await isNewer(targetPath, stagedPath)) {
|
|
139
|
+
discarded.push(targetPath);
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
142
|
+
moves.push([targetPath, stagedPath]);
|
|
143
|
+
}
|
|
144
|
+
const failures = await promoteStagedFiles(moves);
|
|
145
|
+
for (const [targetPath] of moves)
|
|
146
|
+
if (!failures.has(targetPath))
|
|
147
|
+
adopted.push(targetPath);
|
|
148
|
+
if (failures.size === 0)
|
|
149
|
+
await fs.rm(runDirectory, { recursive: true, force: true });
|
|
150
|
+
}
|
|
151
|
+
return { adopted, discarded };
|
|
152
|
+
}
|
|
153
|
+
/** A run's results with every unit whose file could not be put in place turned into a FAILED row. */
|
|
154
|
+
export function withUnwrittenFilesFailed(results, failures, failedStatus) {
|
|
155
|
+
if (failures.size === 0)
|
|
156
|
+
return [...results];
|
|
157
|
+
return results.map((result) => {
|
|
158
|
+
const failure = failures.get(result.filePath);
|
|
159
|
+
return failure === undefined ? result : { ...result, status: failedStatus, error: `Generated, but could not write ${result.filePath}: ${failure}` };
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
/** Rename every staged file into place, together. Returns the failures by target path; a failed file stays staged. */
|
|
163
|
+
async function promoteStagedFiles(moves) {
|
|
164
|
+
const failures = new Map();
|
|
165
|
+
await Promise.all(moves.map(async ([targetPath, stagedPath]) => {
|
|
166
|
+
try {
|
|
167
|
+
await fs.mkdir(path.dirname(targetPath), { recursive: true });
|
|
168
|
+
await fs.rename(stagedPath, targetPath);
|
|
169
|
+
}
|
|
170
|
+
catch (error) {
|
|
171
|
+
failures.set(targetPath, error instanceof Error ? error.message : String(error));
|
|
172
|
+
}
|
|
173
|
+
}));
|
|
174
|
+
return failures;
|
|
175
|
+
}
|
|
176
|
+
async function writeLabelFile(filePath, content) {
|
|
177
|
+
await fs.mkdir(path.dirname(filePath), { recursive: true });
|
|
178
|
+
await writeFileAtomic(filePath, content);
|
|
179
|
+
}
|
|
180
|
+
async function writeMarker(runDirectory, marker) {
|
|
181
|
+
await writeFileAtomic(path.join(runDirectory, RUN_MARKER_FILE_NAME), `${JSON.stringify(marker)}\n`);
|
|
182
|
+
}
|
|
183
|
+
async function readMarker(runDirectory) {
|
|
184
|
+
try {
|
|
185
|
+
const parsed = JSON.parse(await fs.readFile(path.join(runDirectory, RUN_MARKER_FILE_NAME), 'utf8'));
|
|
186
|
+
return typeof parsed.pid === 'number' ? parsed : null;
|
|
187
|
+
}
|
|
188
|
+
catch {
|
|
189
|
+
return null;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
/** `kill(pid, 0)` signals nothing; it throws ESRCH when no such process exists (EPERM means it exists). */
|
|
193
|
+
function isProcessAlive(pid) {
|
|
194
|
+
try {
|
|
195
|
+
process.kill(pid, 0);
|
|
196
|
+
return true;
|
|
197
|
+
}
|
|
198
|
+
catch (error) {
|
|
199
|
+
return error?.code === 'EPERM';
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
async function isNewer(targetPath, stagedPath) {
|
|
203
|
+
try {
|
|
204
|
+
const [target, staged] = await Promise.all([fs.stat(targetPath), fs.stat(stagedPath)]);
|
|
205
|
+
return target.mtimeMs > staged.mtimeMs;
|
|
206
|
+
}
|
|
207
|
+
catch {
|
|
208
|
+
return false;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
async function listFiles(directory) {
|
|
212
|
+
const files = [];
|
|
213
|
+
let entries;
|
|
214
|
+
try {
|
|
215
|
+
entries = await fs.readdir(directory, { withFileTypes: true });
|
|
216
|
+
}
|
|
217
|
+
catch {
|
|
218
|
+
return files;
|
|
219
|
+
}
|
|
220
|
+
for (const entry of entries) {
|
|
221
|
+
const entryPath = path.join(directory, entry.name);
|
|
222
|
+
if (entry.isDirectory())
|
|
223
|
+
files.push(...await listFiles(entryPath));
|
|
224
|
+
else if (entry.isFile())
|
|
225
|
+
files.push(entryPath);
|
|
226
|
+
}
|
|
227
|
+
return files;
|
|
228
|
+
}
|
|
229
|
+
//# sourceMappingURL=staged-label-file-writer.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"staged-label-file-writer.utils.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/staged-label-file-writer.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAEtE;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,OAAO,EAAE,eAAe,CAAC,CAAC;AAE9F,2GAA2G;AAC3G,MAAM,oBAAoB,GAAG,UAAU,CAAC;AASxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAM,OAAO,qBAAqB;IAMb;IACA;IANnB,yCAAyC;IACxB,MAAM,GAAG,IAAI,GAAG,EAAkB,CAAC;IAC5C,MAAM,GAAG,KAAK,CAAC;IA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,KAA+B,EAAE,IAAI,KAAK,OAAO,CAAC;IAC5D,CAAC;AACH,CAAC;AAED,KAAK,UAAU,OAAO,CAAC,UAAkB,EAAE,UAAkB;IAC3D,IAAI,CAAC;QACH,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QACvF,OAAO,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;IACzC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED,KAAK,UAAU,SAAS,CAAC,SAAiB;IACxC,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,IAAI,OAAO,CAAC;IACZ,IAAI,CAAC;QACH,OAAO,GAAG,MAAM,EAAE,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;IACjE,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;IACD,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC5B,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;QACnD,IAAI,KAAK,CAAC,WAAW,EAAE;YAAE,KAAK,CAAC,IAAI,CAAC,GAAG,MAAM,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;aAC9D,IAAI,KAAK,CAAC,MAAM,EAAE;YAAE,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACjD,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC","sourcesContent":["import { randomUUID } from 'node:crypto';\nimport * as fs from 'node:fs/promises';\nimport * as path from 'node:path';\nimport { writeFileAtomic } from '../../core/utils/atomic-write.utils';\n\n/**\n * Where a labelling run stages its generated files: `<saasRoot>/.wildo-saas/state/label-staging/`.\n *\n * Under `.wildo-saas/state`, which every application gitignores (the skeleton's `gitignore` and both\n * dogfood applications), and which nothing watches: the backend's `tsc-watch` watches its own package,\n * and the introspection observer never descends `.wildo-saas`.\n */\nexport const LABEL_STAGING_RELATIVE_ROOT = path.join('.wildo-saas', 'state', 'label-staging');\n\n/** The marker each run's staging directory carries, so another run can tell a live run from a dead one. */\nconst RUN_MARKER_FILE_NAME = 'run.json';\n\ninterface StagingRunMarker {\n readonly pid: number;\n readonly startedAt: string;\n /** Set when the run finished promoting: anything still here is a file it could not move. */\n readonly closed?: boolean;\n}\n\n/**\n * Stages a labelling run's generated files on disk and moves them into the application in ONE burst\n * when the run ends (#2213).\n *\n * ## Why\n *\n * Label files live inside the application's backend source (`<backend>/src/engine/i18n/**`, and each\n * email template's `labels.<locale>.ts`). Every file written there wakes two watchers that each do a\n * whole application's worth of work: the backend's `tsc-watch` recompiles and RESTARTS the server, and\n * the companion's introspection watcher sees the emitted `dist` move and recompiles every derivation\n * that can read the backend (#2245). Measured on `app-creation-test-004` (2026-10-01) over 2h20 of one\n * `i18n-labels` step: 215 backend boots, 41 recompile passes, 300 introspection subprocesses.\n *\n * Staged files reach the application only at the end of the run, all at once, so a whole run costs one\n * restart and one recompile pass. They are renamed into place, which is atomic per file and lands every\n * file inside one watcher settle window.\n *\n * ## Why on disk rather than in memory\n *\n * The first version (efb3a30a8d) held files in memory and wrote a burst every five minutes, because a\n * companion that stopped mid-run would lose everything held. On disk, nothing is lost: a run that dies\n * leaves its staging directory behind, and the next run adopts it ({@link adoptAbandonedLabelStaging})\n * before doing any work. So the run can wait until its end, which is what makes it one restart.\n *\n * ## Why recording a unit before its file lands is safe\n *\n * The run records a unit in the lock (`fresh`, with the SHA of what it produced) before the file\n * reaches its place. Every freshness check compares that SHA with the file ON DISK in its place, so a\n * staged file that never lands reads as drifted and is redone; and translate refuses to translate from\n * a primary file that does not match the labellize record, so a run overlapping another's staging can\n * never record a wrong fresh.\n *\n * A file that cannot be moved into place is reported back to the run, which turns that unit's result\n * into a FAILED row. It stays staged, and a later run adopts it.\n *\n * ## What is NOT staged\n *\n * A target outside the application root is written at once (staging mirrors paths relative to the\n * root, so it has nowhere to put it). The labellize adoption prune, which reads its own file back, and\n * the framework-base seeders, which already write as one burst before the unit pool, write directly.\n */\nexport class StagedLabelFileWriter {\n /** Staged files by their target path. */\n private readonly staged = new Map<string, string>();\n private closed = false;\n\n private constructor(\n private readonly saasRoot: string,\n private readonly runDirectory: string,\n ) {}\n\n /** Open a run's staging directory and mark it as owned by this process. */\n public static async open(saasRoot: string): Promise<StagedLabelFileWriter> {\n const runDirectory = path.join(saasRoot, LABEL_STAGING_RELATIVE_ROOT, `${new Date().toISOString().replace(/[:.]/g, '-')}-${process.pid}-${randomUUID().slice(0, 8)}`);\n await fs.mkdir(runDirectory, { recursive: true });\n await writeMarker(runDirectory, { pid: process.pid, startedAt: new Date().toISOString() });\n return new StagedLabelFileWriter(saasRoot, runDirectory);\n }\n\n /**\n * Stage `content` for `targetPath`. Throws when it cannot be written, so the caller records the unit\n * FAILED before anything is recorded in the lock.\n */\n public async stage(targetPath: string, content: string): Promise<void> {\n if (this.closed) throw new Error(`Cannot stage ${targetPath}: this labelling run's staging is closed`);\n const relative = path.relative(this.saasRoot, targetPath);\n if (relative.startsWith('..') || path.isAbsolute(relative)) {\n await writeLabelFile(targetPath, content);\n return;\n }\n const stagedPath = path.join(this.runDirectory, relative);\n await writeLabelFile(stagedPath, content);\n this.staged.set(targetPath, stagedPath);\n }\n\n /**\n * Move every staged file into place, as one burst, and return every file that could not be moved, by\n * target path. Idempotent. The run calls it before it reports, however the run ended.\n */\n public async close(): Promise<ReadonlyMap<string, string>> {\n if (this.closed) return new Map();\n this.closed = true;\n const failures = await promoteStagedFiles([...this.staged.entries()]);\n if (failures.size === 0) {\n await fs.rm(this.runDirectory, { recursive: true, force: true });\n } else {\n // What could not be moved stays staged, and the marker says the run is over so another run may adopt it.\n await writeMarker(this.runDirectory, { pid: process.pid, startedAt: new Date().toISOString(), closed: true });\n }\n return failures;\n }\n}\n\n/**\n * Move into place the files a dead or finished run left staged (#2213).\n *\n * A run directory is adopted when its marker says the run closed, or its process is gone; a live run's\n * directory is never touched. A staged file is moved only if the file in its place is not NEWER — a\n * file written in place since (a person's edit, another run) is not overwritten, and the staged one is\n * discarded. Its lock record then disagrees with the disk, so the unit is redone. Never throws: a\n * staging root it cannot read adopts nothing.\n */\nexport async function adoptAbandonedLabelStaging(saasRoot: string): Promise<{ readonly adopted: readonly string[]; readonly discarded: readonly string[] }> {\n const stagingRoot = path.join(saasRoot, LABEL_STAGING_RELATIVE_ROOT);\n const adopted: string[] = [];\n const discarded: string[] = [];\n let runs: string[];\n try {\n runs = await fs.readdir(stagingRoot);\n } catch {\n return { adopted, discarded };\n }\n for (const run of runs) {\n const runDirectory = path.join(stagingRoot, run);\n const marker = await readMarker(runDirectory);\n if (marker !== null && !marker.closed && isProcessAlive(marker.pid)) continue;\n const moves: Array<[string, string]> = [];\n for (const stagedPath of await listFiles(runDirectory)) {\n if (path.basename(stagedPath) === RUN_MARKER_FILE_NAME && path.dirname(stagedPath) === runDirectory) continue;\n const targetPath = path.join(saasRoot, path.relative(runDirectory, stagedPath));\n if (await isNewer(targetPath, stagedPath)) {\n discarded.push(targetPath);\n continue;\n }\n moves.push([targetPath, stagedPath]);\n }\n const failures = await promoteStagedFiles(moves);\n for (const [targetPath] of moves) if (!failures.has(targetPath)) adopted.push(targetPath);\n if (failures.size === 0) await fs.rm(runDirectory, { recursive: true, force: true });\n }\n return { adopted, discarded };\n}\n\n/** A run's results with every unit whose file could not be put in place turned into a FAILED row. */\nexport function withUnwrittenFilesFailed<T extends { filePath: string; status: string; error?: string }>(\n results: readonly T[],\n failures: ReadonlyMap<string, string>,\n failedStatus: T['status'],\n): T[] {\n if (failures.size === 0) return [...results];\n return results.map((result) => {\n const failure = failures.get(result.filePath);\n return failure === undefined ? result : { ...result, status: failedStatus, error: `Generated, but could not write ${result.filePath}: ${failure}` };\n });\n}\n\n/** Rename every staged file into place, together. Returns the failures by target path; a failed file stays staged. */\nasync function promoteStagedFiles(moves: ReadonlyArray<readonly [targetPath: string, stagedPath: string]>): Promise<ReadonlyMap<string, string>> {\n const failures = new Map<string, string>();\n await Promise.all(moves.map(async ([targetPath, stagedPath]) => {\n try {\n await fs.mkdir(path.dirname(targetPath), { recursive: true });\n await fs.rename(stagedPath, targetPath);\n } catch (error: unknown) {\n failures.set(targetPath, error instanceof Error ? error.message : String(error));\n }\n }));\n return failures;\n}\n\nasync function writeLabelFile(filePath: string, content: string): Promise<void> {\n await fs.mkdir(path.dirname(filePath), { recursive: true });\n await writeFileAtomic(filePath, content);\n}\n\nasync function writeMarker(runDirectory: string, marker: StagingRunMarker): Promise<void> {\n await writeFileAtomic(path.join(runDirectory, RUN_MARKER_FILE_NAME), `${JSON.stringify(marker)}\\n`);\n}\n\nasync function readMarker(runDirectory: string): Promise<StagingRunMarker | null> {\n try {\n const parsed = JSON.parse(await fs.readFile(path.join(runDirectory, RUN_MARKER_FILE_NAME), 'utf8')) as Partial<StagingRunMarker>;\n return typeof parsed.pid === 'number' ? parsed as StagingRunMarker : null;\n } catch {\n return null;\n }\n}\n\n/** `kill(pid, 0)` signals nothing; it throws ESRCH when no such process exists (EPERM means it exists). */\nfunction isProcessAlive(pid: number): boolean {\n try {\n process.kill(pid, 0);\n return true;\n } catch (error: unknown) {\n return (error as NodeJS.ErrnoException)?.code === 'EPERM';\n }\n}\n\nasync function isNewer(targetPath: string, stagedPath: string): Promise<boolean> {\n try {\n const [target, staged] = await Promise.all([fs.stat(targetPath), fs.stat(stagedPath)]);\n return target.mtimeMs > staged.mtimeMs;\n } catch {\n return false;\n }\n}\n\nasync function listFiles(directory: string): Promise<string[]> {\n const files: string[] = [];\n let entries;\n try {\n entries = await fs.readdir(directory, { withFileTypes: true });\n } catch {\n return files;\n }\n for (const entry of entries) {\n const entryPath = path.join(directory, entry.name);\n if (entry.isDirectory()) files.push(...await listFiles(entryPath));\n else if (entry.isFile()) files.push(entryPath);\n }\n return files;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structured-chunk-completion.utils.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"structured-chunk-completion.utils.d.ts","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/structured-chunk-completion.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAEH,mDAAmD;AACnD,MAAM,WAAW,gCAAgC;IAC/C;;;OAGG;IACH,QAAQ,CAAC,aAAa,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1C;;;;OAIG;IACH,QAAQ,CAAC,qBAAqB,EAAE,SAAS,MAAM,EAAE,CAAC;IAClD,oEAAoE;IACpE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;;GAIG;AACH,MAAM,MAAM,gCAAgC,GAAG,CAC7C,OAAO,EAAE,gCAAgC,KACtC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAEtC,MAAM,WAAW,+BAA+B;IAC9C,4EAA4E;IAC5E,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,+EAA+E;IAC/E,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IACxC,oFAAoF;IACpF,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB;;;;;OAKG;IACH,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;CACzC;AAeD,+FAA+F;AAC/F,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAExE;AAED;;;;;;GAMG;AACH,eAAO,MAAM,0CAA0C,IAAI,CAAC;AAE5D;;;;;;;;;GASG;AACH,wBAAsB,2BAA2B,CAAC,IAAI,EAAE;IACtD,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,MAAM,EAAE,gCAAgC,CAAC;IACzC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,GAAG,OAAO,CAAC,+BAA+B,CAAC,CA2B3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structured-chunk-completion.utils.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"structured-chunk-completion.utils.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/structured-chunk-completion.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AA4CH;;;;;;;;;;GAUG;AACH,MAAM,uBAAuB,GAAG,iDAAiD,CAAC;AAElF,+FAA+F;AAC/F,MAAM,UAAU,iCAAiC,CAAC,KAAa;IAC7D,OAAO,uBAAuB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC7C,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,0CAA0C,GAAG,CAAC,CAAC;AAE5D;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAAC,IAIjD;IACC,MAAM,eAAe,GAAG,IAAI,CAAC,eAAe,IAAI,0CAA0C,CAAC;IAC3F,MAAM,MAAM,GAA2B,EAAE,CAAC;IAC1C,MAAM,OAAO,GAAG,IAAI,GAAG,EAAU,CAAC;IAClC,IAAI,WAAW,GAAsB,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IACpD,IAAI,qBAAqB,GAAsB,EAAE,CAAC;IAClD,IAAI,IAAI,GAAG,CAAC,CAAC;IAEb,OAAO,WAAW,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,IAAI,eAAe,EAAE,CAAC;QACzD,IAAI,IAAI,CAAC,CAAC;QACV,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,WAAW,EAAE,qBAAqB,EAAE,IAAI,EAAE,CAAC,CAAC;QAE9F,KAAK,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;YAC9B,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;YAC1B,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;gBAAE,SAAS;YAC9D,IAAI,iCAAiC,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC7C,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;gBACjB,SAAS;YACX,CAAC;YACD,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QACtB,CAAC;QAED,qBAAqB,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC,CAAC;QAC/E,WAAW,GAAG,qBAAqB,CAAC;IACtC,CAAC;IAED,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,GAAG,OAAO,CAAC,EAAE,CAAC;AACvF,CAAC","sourcesContent":["/**\n * Completion-repair loop for a chunked structured-generation call whose output\n * contract is PARTIAL-TOLERANT.\n *\n * # Why this exists\n *\n * The OpenAI provider deliberately runs with `strictJsonSchema: false` (see the\n * rationale on `structuredOutputs` in the engine's OpenAI backend module: strict\n * mode rejects the REQUEST outright for any schema carrying a `.default()` or\n * `.optional()`, which is ordinary correct authoring). Without strict mode there\n * is no constrained decoding, so nothing forces the model to emit every key of a\n * large flat object — it occasionally omits a handful of leaves and still closes\n * the JSON and reports `finishReason: \"stop\"`.\n *\n * Measured on Wonder Todos 2026-08-21: five labelling units failed on every run\n * for weeks, each because 1–16 keys out of a ~90-key chunk were absent. It was\n * NOT output truncation — the agent configures no `maxTokens`, the generated\n * text was 7–9 KB (~2 K tokens) against a six-figure provider ceiling, two runs\n * of the same unit produced DIFFERENT lengths and DIFFERENT omission sets, and\n * five LARGER units succeeded. It is stochastic omission.\n *\n * Because the response schema declared every key required, the AI SDK rejected\n * the whole object, and the caller received `{ object: undefined }` — turning\n * \"88 of 90 labels arrived\" into \"nothing arrived\" and discarding the unit.\n *\n * # The contract this restores\n *\n * A partial-tolerant caller declares its per-key values `.optional()` (so the\n * partial object survives validation) and then REPAIRS the gap: the omitted keys\n * are re-requested in a small follow-up call carrying only those keys. That is\n * far more reliable than re-rolling the whole chunk, because a 3-key request is\n * not a request the model can get bored of. Only after the repair passes are\n * exhausted does the caller fall back, and it does so loudly.\n *\n * Deliberately NOT fixed by: raising an output cap (there is no cap in play),\n * or shrinking the chunk size (that lowers the per-call omission PROBABILITY\n * without ever reaching zero, and doubles the call count — a limit narrowed\n * until it happens to fit, not a cause addressed).\n *\n * This helper is shared by the labellize and translate orchestrators because\n * both express the identical invariant against the identical agent. Applying it\n * by hand at each site is how one of them would silently drift.\n */\n\n/** One physical request in the completion loop. */\nexport interface StructuredChunkCompletionAttempt {\n /**\n * The keys this request must return. The whole chunk on pass 1; only the keys\n * still outstanding on every later pass.\n */\n readonly requestedKeys: readonly string[];\n /**\n * The keys the PREVIOUS pass was asked for and did not return. Empty on pass 1.\n * Callers surface this in the prompt as an explicit correction, the same way a\n * placeholder-drift retry does.\n */\n readonly omittedByPreviousPass: readonly string[];\n /** 1-based pass index. Pass 1 is the initial full-chunk request. */\n readonly pass: number;\n}\n\n/**\n * Perform one physical structured call for `attempt.requestedKeys` and return\n * the raw parsed object. Implementations build the prompt and the (subset)\n * response schema; they must NOT filter or fall back — that is this helper's job.\n */\nexport type StructuredChunkCompletionInvoker = (\n attempt: StructuredChunkCompletionAttempt,\n) => Promise<Record<string, unknown>>;\n\nexport interface StructuredChunkCompletionResult {\n /** Every key that was returned as a non-empty string, across all passes. */\n readonly values: Record<string, string>;\n /** Keys still absent after the last repair pass. Empty on the healthy path. */\n readonly missingKeys: readonly string[];\n /** Number of physical calls made (1 = the model answered completely first time). */\n readonly passes: number;\n /**\n * Keys whose returned value was REFUSED at least once because it carried a control character\n * (#1109), and was therefore re-requested like an omission. Reported so a caller can say a\n * provider answer was corrupt rather than merely incomplete; a key listed here may still have\n * been delivered clean by a later pass.\n */\n readonly refusedKeys: readonly string[];\n}\n\n/**\n * A C0 control character or DEL, other than the three whitespace controls a label may carry.\n *\n * Measured 2026-09-14 (#1109): translating one unit to French answered 14 of 21 keys with escapes\n * mangled into NUL and other control bytes (the accented characters of \"Invité de l’organisation\"\n * arrived as a NUL followed by the hex digits of the code point), and the pipeline wrote them to\n * the application bundle. A bundle is a TypeScript module the backend loads and serves to every\n * client, so the byte reached the UI, the logs and every export of the label tree. A `--force`\n * re-translate produced clean French: the corruption is a transient provider-response integrity\n * failure, which is exactly what the repair loop exists for.\n */\nconst LABEL_CONTROL_CHARACTER = /[\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F\\u007F]/u;\n\n/** True when a generated label value carries a control character no label may hold (#1109). */\nexport function labelValueCarriesControlCharacter(value: string): boolean {\n return LABEL_CONTROL_CHARACTER.test(value);\n}\n\n/**\n * How many REPAIR passes follow the initial request before the caller gives up\n * and falls back. Two is deliberate: a single follow-up already recovers the\n * observed failures (a 1–16 key request against a model that just answered 74+\n * of the same shape), and a third pass buys latency for a case where the model\n * is refusing the key rather than forgetting it.\n */\nexport const DEFAULT_MAX_STRUCTURED_CHUNK_REPAIR_PASSES = 2;\n\n/**\n * Request `keys` through `invoke`, re-requesting whatever comes back missing\n * until nothing is outstanding or the repair budget is spent.\n *\n * A value counts as delivered only when it is a non-empty string — the same test\n * both orchestrators already apply before accepting a generated label, so an\n * empty string is treated as an omission and repaired rather than written out.\n * A string carrying a control character is refused the same way (#1109): the key\n * is re-requested, and only a clean answer is ever handed to the caller.\n */\nexport async function completeStructuredChunkKeys(args: {\n keys: readonly string[];\n invoke: StructuredChunkCompletionInvoker;\n maxRepairPasses?: number;\n}): Promise<StructuredChunkCompletionResult> {\n const maxRepairPasses = args.maxRepairPasses ?? DEFAULT_MAX_STRUCTURED_CHUNK_REPAIR_PASSES;\n const values: Record<string, string> = {};\n const refused = new Set<string>();\n let outstanding: readonly string[] = [...args.keys];\n let omittedByPreviousPass: readonly string[] = [];\n let pass = 0;\n\n while (outstanding.length > 0 && pass <= maxRepairPasses) {\n pass += 1;\n const parsed = await args.invoke({ requestedKeys: outstanding, omittedByPreviousPass, pass });\n\n for (const key of outstanding) {\n const value = parsed[key];\n if (typeof value !== 'string' || value.length === 0) continue;\n if (labelValueCarriesControlCharacter(value)) {\n refused.add(key);\n continue;\n }\n values[key] = value;\n }\n\n omittedByPreviousPass = outstanding.filter((key) => values[key] === undefined);\n outstanding = omittedByPreviousPass;\n }\n\n return { values, missingKeys: outstanding, passes: pass, refusedKeys: [...refused] };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system-of-record-display-name-keys.utils.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"system-of-record-display-name-keys.utils.d.ts","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/system-of-record-display-name-keys.utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAEpE;;;;;;;;;;;;;GAaG;AAEH,qHAAqH;AACrH,eAAO,MAAM,8BAA8B,sBAAgC,CAAC;AAE5E,mHAAmH;AACnH,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,wBAAgB,mCAAmC,CAAC,eAAe,EAAE,OAAO,GAAG,8BAA8B,EAAE,CAQ9G;AAED,wFAAwF;AACxF,MAAM,WAAW,gCAAgC;IAC/C,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;CACvC;AAED;;;GAGG;AACH,wBAAgB,iCAAiC,CAAC,SAAS,EAAE,SAAS,8BAA8B,EAAE,GAAG,gCAAgC,CA4BxI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system-of-record-display-name-keys.utils.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"system-of-record-display-name-keys.utils.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/system-of-record-display-name-keys.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,sCAAsC,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAG9G;;;;;;;;;;;;;GAaG;AAEH,qHAAqH;AACrH,MAAM,CAAC,MAAM,8BAA8B,GAAG,6BAA6B,CAAC;AAQ5E;;;GAGG;AACH,MAAM,UAAU,mCAAmC,CAAC,eAAwB;IAC1E,IAAI,CAAC,eAAe,IAAI,OAAO,eAAe,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC;QAAE,OAAO,EAAE,CAAC;IACzG,OAAO,MAAM,CAAC,OAAO,CAAC,eAA0C,CAAC;SAC9D,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE,EAAE;QAC3B,MAAM,MAAM,GAAG,WAAW,IAAI,OAAO,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAE,WAAoC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;QACzH,OAAO,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC;IACvF,CAAC,CAAC;SACD,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa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nimport { buildSystemOfRecordDisplayNameLabelKey, SYSTEM_OF_RECORD_LABEL_BUCKET } from '@wildo-ai/saas-models';\nimport type { LabelKeyMeta } from '../models/labelling-unit.models';\n\n/**\n * System-of-record instance names — `systems_of_record.<name>.displayName` — planned TOTAL over the instances an\n * application declares in `systemsOfRecord` (#1997).\n *\n * A surface that names an instance to a person — the provenance note beneath a field a pipeline wrote, \"Synced from\n * Odoo · as of 12 minutes ago\" — resolves this key. An instance NAME is an environment-variable stem (`odoo`, `sap-fr`):\n * it cannot be translated and the words a reader recognises are not derivable from it, so the words are authored here,\n * by the generator, from the name and the vendor it is an instance of. There is deliberately no `displayName` on the\n * declaration (display text comes from the i18n tree, never from configuration), and a key nobody generated renders the\n * raw name.\n *\n * Derived rather than listed: the population is the application's own `systemsOfRecord` block, so an instance declared\n * tomorrow is planned by construction and a withdrawn one stops being planned (`derive-before-you-ask.md`).\n */\n\n/** The labelling bucket (and file-path bucket) the instance-name unit writes to — the first segment of every key. */\nexport const SYSTEMS_OF_RECORD_LABEL_BUCKET = SYSTEM_OF_RECORD_LABEL_BUCKET;\n\n/** One declared instance, as the planner needs it: its name, and the vendor it is an instance of when declared. */\nexport interface DeclaredSystemOfRecordInstance {\n readonly name: string;\n readonly vendor?: string;\n}\n\n/**\n * The declared instances of a saas configuration's `systemsOfRecord` block, sorted by name. Structural: an absent or\n * malformed block declares nothing (the configuration loader validates the block; this reader only enumerates it).\n */\nexport function readDeclaredSystemOfRecordInstances(systemsOfRecord: unknown): DeclaredSystemOfRecordInstance[] {\n if (!systemsOfRecord || typeof systemsOfRecord !== 'object' || Array.isArray(systemsOfRecord)) return [];\n return Object.entries(systemsOfRecord as Record<string, unknown>)\n .map(([name, declaration]) => {\n const vendor = declaration && typeof declaration === 'object' ? (declaration as { vendor?: unknown }).vendor : undefined;\n return typeof vendor === 'string' && vendor.length > 0 ? { name, vendor } : { name };\n })\n .sort((a, b) => a.name.localeCompare(b.name));\n}\n\n/** The planned keys of the instance-name family, with the per-key generation intent. */\nexport interface SystemOfRecordDisplayNameKeyPlan {\n keys: string[];\n keyMeta: Record<string, LabelKeyMeta>;\n}\n\n/**\n * `systems_of_record.<name>.displayName` for every declared instance, each carrying the name and vendor as INTENT,\n * never as the word.\n */\nexport function planSystemOfRecordDisplayNameKeys(instances: readonly DeclaredSystemOfRecordInstance[]): SystemOfRecordDisplayNameKeyPlan {\n const keys: string[] = [];\n const keyMeta: Record<string, LabelKeyMeta> = {};\n const seen = new Set<string>();\n for (const instance of [...instances].sort((a, b) => a.name.localeCompare(b.name))) {\n if (seen.has(instance.name)) continue;\n seen.add(instance.name);\n const key = buildSystemOfRecordDisplayNameLabelKey(instance.name);\n keys.push(key);\n const vendorClause = instance.vendor\n ? ` It is an instance of the \"${instance.vendor}\" product, so the name normally starts from that product's own name.`\n : '';\n keyMeta[key] = {\n kind: LabelKind.LABEL,\n audience: LabelAudience.END_USER,\n purpose:\n `The name of the company business system (an ERP or similar system of record) this application copies data from, ` +\n `declared under the identifier \"${instance.name}\".${vendorClause} Shown where a value says it was synced from that ` +\n 'system, so it must be the name the people using this application know the system by. The identifier is a ' +\n 'technical reference, not the name.',\n notes: [\n 'The name only: no \"system\", \"ERP\", \"instance\" or \"integration\" suffix unless it is part of the product name.',\n 'Keep a vendor product name in its official spelling; do not translate it unless the vendor publishes a localized name.',\n 'When the identifier distinguishes several instances of one product (for example a country or a subsidiary), keep that distinction in the name.',\n ],\n };\n }\n return { keys, keyMeta };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translate-locale-contract.utils.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"translate-locale-contract.utils.d.ts","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/translate-locale-contract.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAE7E,wBAAgB,yBAAyB,CACvC,aAAa,EAAE,iBAAiB,EAAE,EAClC,aAAa,EAAE,iBAAiB,EAChC,YAAY,EAAE,0BAA0B,GACvC,IAAI,CAON"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translate-locale-contract.utils.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"translate-locale-contract.utils.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/translate-locale-contract.utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAG/E,MAAM,UAAU,yBAAyB,CACvC,aAAkC,EAClC,aAAgC,EAChC,YAAwC;IAExC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC;QAAE,OAAO;IAEnD,MAAM,YAAY,CAAC,UAAU,CAAC,SAAS,CAAC,UAAU,EAAE,SAAS,EAAE;QAC7D,sBAAsB,EAAE,2BAA2B,CAAC,UAAU;QAC9D,OAAO,EAAE,EAAE,OAAO,EAAE,sDAAsD,aAAa,GAAG,EAAE;KAC7F,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { AvailableLanguage } from '@wildo-ai/presets-components-models';\nimport { ErrorCustomMessageReference, ErrorType } from '@wildo-ai/saas-models';\nimport type { ErrorBuilderBackendService } from '@wildo-ai/saas-backend-lib';\n\nexport function rejectPrimaryLocaleTarget(\n targetLocales: AvailableLanguage[],\n primaryLocale: AvailableLanguage,\n errorBuilder: ErrorBuilderBackendService,\n): void {\n if (!targetLocales.includes(primaryLocale)) return;\n\n throw errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: `targetLocales must not include the primary locale (${primaryLocale})` },\n });\n}\n"]}
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,kBAAkB,CAAC"}
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,kBAAkB,CAAC;AAE1B,4EAA4E;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,iBAAiB,EAAE,CAAC;AAEpB,OAAO,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAClF,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,6BAA6B,EAAE,MAAM,0DAA0D,CAAC;AACzG,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AAEnF,MAAM,CAAC,MAAM,CAAC;IACZ,IAAI,EAAE,uBAAuB;IAC7B,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,IAAI;CACZ,CAAC,CAAC;AAEH;;;;;;;;GAQG;AACH,KAAK,UAAU,IAAI;IACjB,IAAI,CAAC;QACH,uCAAuC;QACvC,MAAM,gBAAgB,GAAG,MAAM,uBAAuB,EAAE,CAAC;QACzD,MAAM,aAAa,GAAG,6BAA6B,EAAE,CAAC;QAEtD,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,CAAC;QACvD,OAAO,CAAC,GAAG,CAAC,WAAW,gBAAgB,CAAC,UAAU,CAAC,WAAW,KAAK,gBAAgB,CAAC,UAAU,CAAC,IAAI,GAAG,CAAC,CAAC;QACxG,OAAO,CAAC,GAAG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EAAE,CAAC;QACzD,IAAI,UAAU,EAAE,CAAC;YACf,oGAAoG;YACpG,MAAM,aAAa,GAAG,uBAAuB,CAAC,gBAAgB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;YACrF,IAAI,aAAa;gBAAE,OAAO,CAAC,IAAI,CAAC,gEAAgE,aAAa,EAAE,CAAC,CAAC;QACnH,CAAC;QACD,OAAO,CAAC,GAAG,CACT,+CAA+C,gBAAgB,CAAC,UAAU,CAAC,WAAW,GAAG;YACvF,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAC1C,CAAC;IAEJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,gDAAgD,EAAE,KAAK,CAAC,CAAC;QACvE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IACrB,OAAO,CAAC,KAAK,CAAC,qCAAqC,EAAE,KAAK,CAAC,CAAC;IAC5D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC","sourcesContent":["import dotenv from 'dotenv';\nimport 'reflect-metadata';\n\n// Initialize Zod decorators early (lazy init will also happen on first use)\nimport { initZodDecorators } from '@wildo-ai/zod-decorators';\ninitZodDecorators();\n\nimport { StartCompanionApplicationService } from './core/inject/models/container';\nimport { assembleCompanionStartup } from './core/runtime/companion-startup-assembly';\nimport { resolveCompanionContext } from './core/context/companion-context';\nimport { resolveCompanionRuntimeConfig } from './core/runtime/utils/companion-platform-config.companion';\nimport { COMPANION_ENV_FILE_PATH } from './core/runtime/companion-env-file';\nimport { recordCompanionEndpoint } from './core/runtime/companion-endpoint-record';\n\ndotenv.config({\n path: COMPANION_ENV_FILE_PATH,\n override: true,\n quiet: true,\n});\n\n/**\n * Start the Dev Companion with full application context awareness.\n *\n * 1. Resolve companion context (workspace scope + saas config)\n * 2. Assemble the ONE ordinary startup composition\n * (`assembleCompanionStartup` — shared with the explicit first-activation\n * maintenance operation so the captured composition cannot drift)\n * 3. Initialize the companion-owned management runtime\n */\nasync function main() {\n try {\n // --- Phase 1: Resolve app context ---\n const companionContext = await resolveCompanionContext();\n const runtimeConfig = resolveCompanionRuntimeConfig();\n\n console.log(`\\n\\u{1F4CD} Companion context resolved:`);\n console.log(` App: ${companionContext.saasConfig.displayName} (${companionContext.saasConfig.slug})`);\n console.log(` Root: ${companionContext.saasRoot}`);\n console.log(` Services: ${Object.keys(companionContext.saasConfig.services).join(', ')}`);\n console.log(` Frontends: ${Object.entries(companionContext.frontendServices).map(([k, s]) => `${k} (${s.frontendType})`).join(', ') || 'none'}`);\n console.log(` Backends: ${Object.keys(companionContext.backendServices).join(', ') || 'none'}`);\n console.log(` Traceability: ${runtimeConfig.traceabilityLevel}`);\n console.log('');\n\n // --- Phase 2+3: Assemble agent runtime + DI (single shared authority) ---\n console.log('\\u{1F9E0} Companion agent runtime: email + labelling + market generation + meta-workflows + logo generation + logo judge');\n const { container, startupConfig } = await assembleCompanionStartup(companionContext, runtimeConfig);\n\n // --- Phase 4: Initialize application ---\n const startCompanionService = container.get<StartCompanionApplicationService>(StartCompanionApplicationService);\n await startCompanionService.initialize(startupConfig);\n\n if (!startCompanionService.isHttpServerRunning()) {\n throw new Error('Application failed to initialize properly');\n }\n\n const serverInfo = startCompanionService.getServerInfo();\n if (serverInfo) {\n // The console's per-prompt hook and status line read this instead of resolving the address (#1657).\n const recordFailure = recordCompanionEndpoint(companionContext.saasRoot, serverInfo);\n if (recordFailure) console.warn(`⚠️ Could not record the companion endpoint for the console: ${recordFailure}`);\n }\n console.log(\n `\\u{1F389} Wildo Dev Companion is ready for \"${companionContext.saasConfig.displayName}\"` +\n (serverInfo ? ` at ${serverInfo}` : ''),\n );\n\n } catch (error) {\n console.error('\\u{1F4A5} Failed to start Wildo Dev Companion:', error);\n process.exit(1);\n }\n}\n\nmain().catch((error) => {\n console.error('\\u{1F4A5} Unexpected startup error:', error);\n process.exit(1);\n});\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"market-generation.companion.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"market-generation.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/market/services/market-generation.companion.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AAGH,OAAO,EACL,0BAA0B,EAC1B,aAAa,EAGb,KAAK,oBAAoB,EAE1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGL,KAAK,iBAAiB,EAEvB,MAAM,uBAAuB,CAAC;AAM/B,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,+BAA+B,CAAC;AAGvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,6BAA6B,EAAE,MAAM,6EAA6E,CAAC;AAE5H,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,sBAAsB,GAAG,wBAAwB,CAAC;AAE9D,qBACa,gCAAgC;IAIN,OAAO,CAAC,QAAQ,CAAC,MAAM;IAE1D,OAAO,CAAC,QAAQ,CAAC,YAAY;IAE7B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IAEjC,OAAO,CAAC,QAAQ,CAAC,6BAA6B;IAXhD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA+D;gBAGlC,MAAM,EAAE,aAAa,EAExD,YAAY,EAAE,0BAA0B,EAExC,aAAa,EAAE,oBAAoB,EAEnC,gBAAgB,EAAE,gBAAgB,EAElC,6BAA6B,EAAE,6BAA6B;IAMlE,QAAQ,CACnB,OAAO,EAAE,uBAAuB,EAChC,YAAY,CAAC,EAAE,iBAAiB,GAC/B,OAAO,CAAC,sBAAsB,CAAC;IA6FlC;;;;;OAKG;IACH,OAAO,CAAC,sBAAsB;IAa9B;;;;;;OAMG;IACH,OAAO,CAAC,2BAA2B;CAiBpC;AAED,iEAAiE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"market-generation.companion.service.js","sourceRoot":"","sources":["../../../../src/market/services/market-generation.companion.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;;;;;;;;;;;;;AAEH,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EACL,0BAA0B,EAC1B,aAAa,EACb,2BAA2B,EAC3B,kBAAkB,EAElB,mBAAmB,GACpB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,2BAA2B,EAC3B,SAAS,GAGV,MAAM,uBAAuB,CAAC;AAM/B,OAAO,EACL,gCAAgC,GAEjC,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAEjF,OAAO,EAAE,6BAA6B,EAAE,MAAM,6EAA6E,CAAC;AAyBrH,IAAM,gCAAgC,GAAtC,MAAM,gCAAgC;IAIW;IAEnC;IAEA;IAEA;IAEA;IAXF,QAAQ,CAA+D;IAExF,YACsD,MAAqB,EAExD,YAAwC,EAExC,aAAmC,EAEnC,gBAAkC,EAElC,6BAA4D;QARzB,WAAM,GAAN,MAAM,CAAe;QAExD,iBAAY,GAAZ,Y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B,CAAC,CAAA;IAEhD,WAAA,MAAM,CAAC,uBAAuB,CAAC,oBAAoB,CAAC,CAAA;qCAPO,aAAa;QAE1C,0BAA0B,oBAMT,6BAA6B;GAZpE,gCAAgC,CA6J5C;;AAED,iEAAiE","sourcesContent":["/**\n * @wildo_source:part:start companion.market.generation-service facet:layer:companion facet:family:market\n *\n * Market generation companion service (Phase 4.2).\n *\n * Two-step orchestrator that bridges the introspection subprocess\n * (which owns snapshot + template + context-block + Mustache\n * substitution) and the in-process `AgentsBackendService` (which\n * owns the LLM call):\n *\n * 1. **Subprocess (`market-render-prompt`)** — pure prompt assembly.\n * Resolves `marketSpecification`, runs `validateMarketSnapshot`,\n * looks up the `MarketMessageTemplate` by ref, enforces every\n * declared `requiredInputs` ref, calls `buildMarketContextBlock`,\n * and substitutes Mustache placeholders. Output: `{ prompt,\n * contextBlock, renderedTemplate, trace }`.\n * 2. **Parent (`AgentsBackendService.invokeAgent`)** — feeds the\n * final prompt to `market.generation.agent` (a\n * `GENERATE_TEXT` agent) and unwraps `{ text }`. The optional\n * `traceContext` (built by the caller from its request session +\n * a dedicated agent step) is threaded straight into `invokeAgent`,\n * so the engine-level agent-call trace sink records this call's\n * prompt, output, and token-usage/latency. This is the canonical\n * way a companion service makes its LLM calls observable — pass the\n * `traceContext` through; the engine owns the per-call record.\n *\n * Why split across two boundaries instead of doing it all in one\n * place:\n *\n * - The dev-companion subprocess is the *only* place that can load\n * `marketSpecification` (it lives in the application's\n * specifications package, which is loaded via `pathToFileURL`\n * into the spawned child).\n * - `AgentsBackendService` lives in the parent companion process\n * (it depends on the saas-backend-lib DI container, which is\n * bootstrapped exactly once at companion startup).\n * - Doing both in the subprocess would force every introspection\n * call to spin up a brand-new `AgentsBackendService` instance —\n * wasteful, and worse, would lose the unified LLM-quota and\n * provider-cache surface that lives in the parent container.\n *\n * Service-key picking: the market generation behaviors route to the\n * `specifications` target which every SaaS service declares. We\n * deliberately reuse the same \"any backend service key\" picker as\n * `getResourcesRegistry` (see `pickResourcesRegistryCarrierServiceKey`\n * in `companion.controller.ts`) — the choice is uniform across\n * backends because the spec-package target is identical for every\n * service of a given app.\n */\n\nimport { inject, injectable } from 'inversify';\nimport {\n ErrorBuilderBackendService,\n LoggerService,\n MARKET_GENERATION_AGENT_REF,\n SAAS_SERVICE_TYPES,\n type AgentsBackendService,\n describeCaughtError,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n ErrorCustomMessageReference,\n ErrorType,\n type AgentTraceContext,\n type FlowsActors_Agent_Invocation,\n} from '@wildo-ai/saas-models';\nimport {\n LLMProvider_GenerateTextInputSchema,\n LLMProvider_GenerateTextOutputSchema,\n LLMProvider_OperationContext_BaseSchema,\n} from '@wildo-ai/external-connectors-models';\nimport {\n MarketRenderPromptResponseSchema,\n type MarketGenerationResponse,\n} from '@wildo-ai/saas-specifications';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { CompanionIntrospectionService } from '../../core/introspection/services/companion-introspection.companion.service';\n\nexport interface MarketGenerationRequest {\n templateRef: string;\n icpRef?: string;\n featureRef?: string;\n benefitRef?: string;\n channelRef?: string;\n objectionRef?: string;\n outputLanguage?: string;\n}\n\n/**\n * Service-level alias for `MarketGenerationResponse`.\n *\n * The canonical shape (Zod schema + inferred type) lives in\n * `@wildo-ai/saas-specifications` (`market-generation.schemas.ts`) so\n * that the subprocess HTTP boundary, the parent-process service, and\n * the CLI all parse against the same single source of truth. F-2 +\n * F-6 from the Phase-4.2 audit consolidated three formerly\n * hand-authored definitions into this one.\n */\nexport type MarketGenerationResult = MarketGenerationResponse;\n\n@injectable()\nexport class MarketGenerationCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(SAAS_SERVICE_TYPES.ErrorBuilderService)\n private readonly errorBuilder: ErrorBuilderBackendService,\n @inject(SAAS_SERVICE_TYPES.AgentsBackendService)\n private readonly agentsService: AgentsBackendService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext)\n private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.IntrospectionService)\n private readonly companionIntrospectionService: CompanionIntrospectionService,\n ) {\n this.logDebug = this.logger.debugByType('MarketGenerationCompanionService');\n this.logger.setDebugTypeLogging('MarketGenerationCompanionService', true);\n }\n\n public async generate(\n request: MarketGenerationRequest,\n traceContext?: AgentTraceContext,\n ): Promise<MarketGenerationResult> {\n if (!request.templateRef || typeof request.templateRef !== 'string') {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: '`templateRef` is required and must be a non-empty string.' },\n });\n }\n\n this.logDebug('market generation — start', {\n templateRef: request.templateRef,\n icpRef: request.icpRef,\n featureRef: request.featureRef,\n benefitRef: request.benefitRef,\n channelRef: request.channelRef,\n objectionRef: request.objectionRef,\n outputLanguage: request.outputLanguage,\n });\n\n // ── 1. Subprocess prompt assembly ──────────────────────────\n const introspection = await this.companionIntrospectionService.requestInfo({\n serviceKey: this.pickMarketCarrierServiceKey(),\n behavior: 'market-render-prompt',\n input: this.buildSubprocessPayload(request),\n });\n\n if (introspection.success === false) {\n const failure = introspection;\n throw this.errorBuilder.buildError(ErrorType.INTERNAL, undefined, {\n customMessageReference: ErrorCustomMessageReference.INTERNAL,\n context: {\n message: failure.error.message,\n serviceKey: failure.serviceKey,\n behavior: failure.behavior,\n targetId: failure.targetId,\n },\n });\n }\n\n let renderResult;\n try {\n renderResult = MarketRenderPromptResponseSchema.parse(introspection.data);\n } catch (error) {\n throw this.errorBuilder.buildError(ErrorType.INTERNAL, undefined, {\n customMessageReference: ErrorCustomMessageReference.INTERNAL,\n context: {\n message: `market-render-prompt subprocess returned an unexpected payload shape: ${describeCaughtError(error)}`,\n },\n });\n }\n\n // ── 2. Parent-process LLM call ─────────────────────────────\n const invocation: FlowsActors_Agent_Invocation<\n typeof LLMProvider_GenerateTextInputSchema,\n typeof LLMProvider_GenerateTextOutputSchema,\n typeof LLMProvider_OperationContext_BaseSchema\n > = {\n agentRef: MARKET_GENERATION_AGENT_REF,\n initiator: {},\n invocationContext: [],\n input: { prompt: renderResult.prompt },\n output: { text: '' },\n executionContext: { callTimestamp: new Date().toISOString() },\n artifactBindings: [],\n };\n\n const llmResult = await this.agentsService.invokeAgent(invocation, traceContext);\n const outputText = (llmResult.output as { text?: string })?.text;\n if (typeof outputText !== 'string' || outputText.trim().length === 0) {\n throw this.errorBuilder.buildError(ErrorType.INTERNAL, undefined, {\n customMessageReference: ErrorCustomMessageReference.INTERNAL,\n context: {\n message: 'Market generation agent returned empty output. Check provider connectivity and prompt validity.',\n },\n });\n }\n\n return {\n prompt: renderResult.prompt,\n renderedTemplate: renderResult.renderedTemplate,\n contextBlock: renderResult.contextBlock,\n output: outputText,\n trace: {\n template: renderResult.trace.template,\n consumedInputs: renderResult.trace.consumedInputs,\n outputLanguage: renderResult.trace.outputLanguage,\n contextIcpsConsidered: renderResult.trace.context.icpsConsidered,\n contextBenefitsConsidered: renderResult.trace.context.benefitsConsidered,\n contextVoiceUsed: renderResult.trace.context.voiceUsed,\n agentRef: MARKET_GENERATION_AGENT_REF,\n },\n };\n }\n\n /**\n * Build the wire payload sent into the subprocess. We strip\n * `undefined`-valued keys so the subprocess parser sees the\n * minimal object — this keeps the JSON in IPC small and\n * avoids spurious \"key X is not a string\" guards.\n */\n private buildSubprocessPayload(\n request: MarketGenerationRequest,\n ): Record<string, string> {\n const payload: Record<string, string> = { templateRef: request.templateRef };\n if (request.icpRef) payload.icpRef = request.icpRef;\n if (request.featureRef) payload.featureRef = request.featureRef;\n if (request.benefitRef) payload.benefitRef = request.benefitRef;\n if (request.channelRef) payload.channelRef = request.channelRef;\n if (request.objectionRef) payload.objectionRef = request.objectionRef;\n if (request.outputLanguage) payload.outputLanguage = request.outputLanguage;\n return payload;\n }\n\n /**\n * Pick the first backend service available in the companion\n * context. Mirrors `pickResourcesRegistryCarrierServiceKey`\n * (companion.controller.ts) — the market generation behaviors\n * route to `specifications` which every backend service\n * declares, so the choice is uniform.\n */\n private pickMarketCarrierServiceKey(): string {\n const backendServiceKey = Object.entries(this.companionContext.servicesByKey)\n .find(([, service]) => !service.frontendType)?.[0];\n\n if (!backendServiceKey) {\n throw this.errorBuilder.buildError(ErrorType.CONFIGURATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.CONFIGURATION,\n context: {\n message: 'No backend service is available to resolve the market generation behavior. '\n + 'The market-render-prompt behavior routes to the `specifications` target, which is '\n + 'declared on every backend service — but the companion context has none.',\n },\n });\n }\n\n return backendServiceKey;\n }\n}\n\n/** @wildo_source:part:end companion.market.generation-service */\n"]}
|
|
1
|
+
{"version":3,"file":"market-generation.companion.service.js","sourceRoot":"","sources":["../../../../../src/market/services/market-generation.companion.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;;;;;;;;;;;;;AAEH,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EACL,0BAA0B,EAC1B,aAAa,EACb,2BAA2B,EAC3B,kBAAkB,EAElB,mBAAmB,GACpB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,2BAA2B,EAC3B,SAAS,GAGV,MAAM,uBAAuB,CAAC;AAM/B,OAAO,EACL,gCAAgC,GAEjC,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAEjF,OAAO,EAAE,6BAA6B,EAAE,MAAM,6EAA6E,CAAC;AAyBrH,IAAM,gCAAgC,GAAtC,MAAM,gCAAgC;IAIW;IAEnC;IAEA;IAEA;IAEA;IAXF,QAAQ,CAA+D;IAExF,YACsD,MAAqB,EAExD,YAAwC,EAExC,aAAmC,EAEnC,gBAAkC,EAElC,6BAA4D;QARz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A;IAE/C,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;IAEhD,WAAA,MAAM,CAAC,uBAAuB,CAAC,oBAAoB,CAAC,CAAA;qCAPO,aAAa;QAE1C,0BAA0B,oBAMT,6BAA6B;GAZpE,gCAAgC,CA6J5C;;AAED,iEAAiE","sourcesContent":["/**\n * @wildo_source:part:start companion.market.generation-service facet:layer:companion facet:family:market\n *\n * Market generation companion service (Phase 4.2).\n *\n * Two-step orchestrator that bridges the introspection subprocess\n * (which owns snapshot + template + context-block + Mustache\n * substitution) and the in-process `AgentsBackendService` (which\n * owns the LLM call):\n *\n * 1. **Subprocess (`market-render-prompt`)** — pure prompt assembly.\n * Resolves `marketSpecification`, runs `validateMarketSnapshot`,\n * looks up the `MarketMessageTemplate` by ref, enforces every\n * declared `requiredInputs` ref, calls `buildMarketContextBlock`,\n * and substitutes Mustache placeholders. Output: `{ prompt,\n * contextBlock, renderedTemplate, trace }`.\n * 2. **Parent (`AgentsBackendService.invokeAgent`)** — feeds the\n * final prompt to `market.generation.agent` (a\n * `GENERATE_TEXT` agent) and unwraps `{ text }`. The optional\n * `traceContext` (built by the caller from its request session +\n * a dedicated agent step) is threaded straight into `invokeAgent`,\n * so the engine-level agent-call trace sink records this call's\n * prompt, output, and token-usage/latency. This is the canonical\n * way a companion service makes its LLM calls observable — pass the\n * `traceContext` through; the engine owns the per-call record.\n *\n * Why split across two boundaries instead of doing it all in one\n * place:\n *\n * - The dev-companion subprocess is the *only* place that can load\n * `marketSpecification` (it lives in the application's\n * specifications package, which is loaded via `pathToFileURL`\n * into the spawned child).\n * - `AgentsBackendService` lives in the parent companion process\n * (it depends on the saas-backend-lib DI container, which is\n * bootstrapped exactly once at companion startup).\n * - Doing both in the subprocess would force every introspection\n * call to spin up a brand-new `AgentsBackendService` instance —\n * wasteful, and worse, would lose the unified LLM-quota and\n * provider-cache surface that lives in the parent container.\n *\n * Service-key picking: the market generation behaviors route to the\n * `specifications` target which every SaaS service declares. We\n * deliberately reuse the same \"any backend service key\" picker as\n * `getResourcesRegistry` (see `pickResourcesRegistryCarrierServiceKey`\n * in `companion.controller.ts`) — the choice is uniform across\n * backends because the spec-package target is identical for every\n * service of a given app.\n */\n\nimport { inject, injectable } from 'inversify';\nimport {\n ErrorBuilderBackendService,\n LoggerService,\n MARKET_GENERATION_AGENT_REF,\n SAAS_SERVICE_TYPES,\n type AgentsBackendService,\n describeCaughtError,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n ErrorCustomMessageReference,\n ErrorType,\n type AgentTraceContext,\n type FlowsActors_Agent_Invocation,\n} from '@wildo-ai/saas-models';\nimport {\n LLMProvider_GenerateTextInputSchema,\n LLMProvider_GenerateTextOutputSchema,\n LLMProvider_OperationContext_BaseSchema,\n} from '@wildo-ai/external-connectors-models';\nimport {\n MarketRenderPromptResponseSchema,\n type MarketGenerationResponse,\n} from '@wildo-ai/saas-specifications';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { CompanionIntrospectionService } from '../../core/introspection/services/companion-introspection.companion.service';\n\nexport interface MarketGenerationRequest {\n templateRef: string;\n icpRef?: string;\n featureRef?: string;\n benefitRef?: string;\n channelRef?: string;\n objectionRef?: string;\n outputLanguage?: string;\n}\n\n/**\n * Service-level alias for `MarketGenerationResponse`.\n *\n * The canonical shape (Zod schema + inferred type) lives in\n * `@wildo-ai/saas-specifications` (`market-generation.schemas.ts`) so\n * that the subprocess HTTP boundary, the parent-process service, and\n * the CLI all parse against the same single source of truth. F-2 +\n * F-6 from the Phase-4.2 audit consolidated three formerly\n * hand-authored definitions into this one.\n */\nexport type MarketGenerationResult = MarketGenerationResponse;\n\n@injectable()\nexport class MarketGenerationCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(SAAS_SERVICE_TYPES.ErrorBuilderService)\n private readonly errorBuilder: ErrorBuilderBackendService,\n @inject(SAAS_SERVICE_TYPES.AgentsBackendService)\n private readonly agentsService: AgentsBackendService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext)\n private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.IntrospectionService)\n private readonly companionIntrospectionService: CompanionIntrospectionService,\n ) {\n this.logDebug = this.logger.debugByType('MarketGenerationCompanionService');\n this.logger.setDebugTypeLogging('MarketGenerationCompanionService', true);\n }\n\n public async generate(\n request: MarketGenerationRequest,\n traceContext?: AgentTraceContext,\n ): Promise<MarketGenerationResult> {\n if (!request.templateRef || typeof request.templateRef !== 'string') {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: '`templateRef` is required and must be a non-empty string.' },\n });\n }\n\n this.logDebug('market generation — start', {\n templateRef: request.templateRef,\n icpRef: request.icpRef,\n featureRef: request.featureRef,\n benefitRef: request.benefitRef,\n channelRef: request.channelRef,\n objectionRef: request.objectionRef,\n outputLanguage: request.outputLanguage,\n });\n\n // ── 1. Subprocess prompt assembly ──────────────────────────\n const introspection = await this.companionIntrospectionService.requestInfo({\n serviceKey: this.pickMarketCarrierServiceKey(),\n behavior: 'market-render-prompt',\n input: this.buildSubprocessPayload(request),\n });\n\n if (introspection.success === false) {\n const failure = introspection;\n throw this.errorBuilder.buildError(ErrorType.INTERNAL, undefined, {\n customMessageReference: ErrorCustomMessageReference.INTERNAL,\n context: {\n message: failure.error.message,\n serviceKey: failure.serviceKey,\n behavior: failure.behavior,\n targetId: failure.targetId,\n },\n });\n }\n\n let renderResult;\n try {\n renderResult = MarketRenderPromptResponseSchema.parse(introspection.data);\n } catch (error) {\n throw this.errorBuilder.buildError(ErrorType.INTERNAL, undefined, {\n customMessageReference: ErrorCustomMessageReference.INTERNAL,\n context: {\n message: `market-render-prompt subprocess returned an unexpected payload shape: ${describeCaughtError(error)}`,\n },\n });\n }\n\n // ── 2. Parent-process LLM call ─────────────────────────────\n const invocation: FlowsActors_Agent_Invocation<\n typeof LLMProvider_GenerateTextInputSchema,\n typeof LLMProvider_GenerateTextOutputSchema,\n typeof LLMProvider_OperationContext_BaseSchema\n > = {\n agentRef: MARKET_GENERATION_AGENT_REF,\n initiator: {},\n invocationContext: [],\n input: { prompt: renderResult.prompt },\n output: { text: '' },\n executionContext: { callTimestamp: new Date().toISOString() },\n artifactBindings: [],\n };\n\n const llmResult = await this.agentsService.invokeAgent(invocation, traceContext);\n const outputText = (llmResult.output as { text?: string })?.text;\n if (typeof outputText !== 'string' || outputText.trim().length === 0) {\n throw this.errorBuilder.buildError(ErrorType.INTERNAL, undefined, {\n customMessageReference: ErrorCustomMessageReference.INTERNAL,\n context: {\n message: 'Market generation agent returned empty output. Check provider connectivity and prompt validity.',\n },\n });\n }\n\n return {\n prompt: renderResult.prompt,\n renderedTemplate: renderResult.renderedTemplate,\n contextBlock: renderResult.contextBlock,\n output: outputText,\n trace: {\n template: renderResult.trace.template,\n consumedInputs: renderResult.trace.consumedInputs,\n outputLanguage: renderResult.trace.outputLanguage,\n contextIcpsConsidered: renderResult.trace.context.icpsConsidered,\n contextBenefitsConsidered: renderResult.trace.context.benefitsConsidered,\n contextVoiceUsed: renderResult.trace.context.voiceUsed,\n agentRef: MARKET_GENERATION_AGENT_REF,\n },\n };\n }\n\n /**\n * Build the wire payload sent into the subprocess. We strip\n * `undefined`-valued keys so the subprocess parser sees the\n * minimal object — this keeps the JSON in IPC small and\n * avoids spurious \"key X is not a string\" guards.\n */\n private buildSubprocessPayload(\n request: MarketGenerationRequest,\n ): Record<string, string> {\n const payload: Record<string, string> = { templateRef: request.templateRef };\n if (request.icpRef) payload.icpRef = request.icpRef;\n if (request.featureRef) payload.featureRef = request.featureRef;\n if (request.benefitRef) payload.benefitRef = request.benefitRef;\n if (request.channelRef) payload.channelRef = request.channelRef;\n if (request.objectionRef) payload.objectionRef = request.objectionRef;\n if (request.outputLanguage) payload.outputLanguage = request.outputLanguage;\n return payload;\n }\n\n /**\n * Pick the first backend service available in the companion\n * context. Mirrors `pickResourcesRegistryCarrierServiceKey`\n * (companion.controller.ts) — the market generation behaviors\n * route to `specifications` which every backend service\n * declares, so the choice is uniform.\n */\n private pickMarketCarrierServiceKey(): string {\n const backendServiceKey = Object.entries(this.companionContext.servicesByKey)\n .find(([, service]) => !service.frontendType)?.[0];\n\n if (!backendServiceKey) {\n throw this.errorBuilder.buildError(ErrorType.CONFIGURATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.CONFIGURATION,\n context: {\n message: 'No backend service is available to resolve the market generation behavior. '\n + 'The market-render-prompt behavior routes to the `specifications` target, which is '\n + 'declared on every backend service — but the companion context has none.',\n },\n });\n }\n\n return backendServiceKey;\n }\n}\n\n/** @wildo_source:part:end companion.market.generation-service */\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-build.actors-system.definitions.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"application-build.actors-system.definitions.d.ts","sourceRoot":"","sources":["../../../../../src/meta-workflows/models/application-build.actors-system.definitions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,4BAA4B,CAAC;AAa3F;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,4BAA4B,4BAAmD,CAAC;AAC7F,eAAO,MAAM,2CAA2C,EAAG,mCAA4C,CAAC;AA+BxG,6FAA6F;AAC7F,wBAAgB,2CAA2C,IAAI;IAAE,UAAU,EAAE,wCAAwC,CAAA;CAAE,CAGtH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-build.actors-system.definitions.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"application-build.actors-system.definitions.js","sourceRoot":"","sources":["../../../../../src/meta-workflows/models/application-build.actors-system.definitions.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,mBAAm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{ FlowActorSystem_InitializationFactoryMap } from '@wildo-ai/saas-backend-lib';\nimport type { Actor, ActorSystem } from '@wildo-ai/saas-models';\nimport {\n Actor_ExecutionMode,\n Actor_Role_Category,\n FlowActorSystem_Kind,\n FlowActorSystem_Status,\n FlowActorSystem_Visibility,\n ResourceOperationRiskLevel,\n ResourcePrimaryScope,\n} from '@wildo-ai/saas-models';\nimport { BUILD_PLAN_EXECUTION_PLAN_IDENTITY } from '@wildo-ai/saas-specifications/application-creation';\n\n/**\n * The actor system that OWNS the build plan and runs the steps the companion runs itself (#1359).\n *\n * ## Why it exists\n *\n * A build-plan task reaches one of two executors. A CODING task goes to a coding agent and has been\n * an actor task since the lane was typed. A COMPANION GENERATION STEP — labels, email templates,\n * migrations; forty minutes for an i18n pass — ran with NO row on the actor plane at all. The only\n * trace of it was an in-memory list of the last five dispatches, which a companion restart emptied:\n * a generation step interrupted by a restart left nothing anywhere to say it had been running. One\n * execution plane for coding runs and a weaker private one for generation steps is the duplication.\n *\n * So a generation step is an execution of THIS system's one actor — `PROGRAMMATIC`, because its\n * behaviour is companion code and not an agent — opened and settled by the engine's driver exactly\n * as a playbook run is, and swept at startup like every other system's orphans.\n *\n * The ref is the build plan's own `actorSystemId` (`BUILD_PLAN_EXECUTION_PLAN_IDENTITY`), imported\n * rather than re-spelled: the edge a plan step carries and the system registered here are one name.\n * Coding runs stay executions of `application-coding.system`; this system owns the PLAN, and a build\n * dispatch is found on whichever of the two ran it.\n */\nexport const APPLICATION_BUILD_SYSTEM_REF = BUILD_PLAN_EXECUTION_PLAN_IDENTITY.actorSystemId;\nexport const APPLICATION_BUILD_GENERATION_STEP_ACTOR_REF = 'application-build.generation-step' as const;\n\nfunction buildApplicationBuildActorSystem(): ActorSystem {\n const generationStepActor: Actor = {\n ref: APPLICATION_BUILD_GENERATION_STEP_ACTOR_REF,\n displayName: 'Application build generation step actor',\n roleCategory: Actor_Role_Category.OPERATOR,\n executionMode: Actor_ExecutionMode.PROGRAMMATIC,\n };\n return {\n ref: APPLICATION_BUILD_SYSTEM_REF,\n displayName: 'Application Build System',\n description:\n 'Companion actor system that owns the application build plan and runs its companion generation '\n + 'steps: one execution and one task per generation step dispatched. Coding tasks of the same '\n + 'plan are executions of the application coding system.',\n kind: FlowActorSystem_Kind.ACTOR,\n status: FlowActorSystem_Status.ACTIVE,\n visibility: FlowActorSystem_Visibility.BACKEND_ONLY,\n actors: [generationStepActor],\n config: {\n timeout: 120000,\n accessControl: [{\n primaryScope: ResourcePrimaryScope.APPLICATION,\n }],\n riskLevel: ResourceOperationRiskLevel.LOW,\n },\n createdAt: new Date().toISOString(),\n };\n}\n\n/** Spread into the one startup factory map, beside the coding and meta-workflows systems. */\nexport function buildApplicationBuildActorSystemDefinitions(): { factoryMap: FlowActorSystem_InitializationFactoryMap } {\n const actorSystem = buildApplicationBuildActorSystem();\n return { factoryMap: { [APPLICATION_BUILD_SYSTEM_REF]: () => actorSystem } };\n}\n"]}
|
package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-coding-agent.actors-system.definitions.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"application-coding-agent.actors-system.definitions.d.ts","sourceRoot":"","sources":["../../../../../src/meta-workflows/models/application-coding-agent.actors-system.definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,4BAA4B,CAAC;AAC3F,OAAO,KAAK,EAAsB,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAanF,OAAO,EACL,mCAAmC,EAKnC,SAAS,EAOV,MAAM,sCAAsC,CAAC;AAE9C;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B,EAAG,0BAAmC,CAAC;AAEhF;;;;;;;;;GASG;AACH,MAAM,WAAW,6BAA6B;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