@wildo-ai/dev-companion 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/__tests__/asset-noop.d.ts.map +1 -1
- package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +1 -1
- package/dist/esm/__tests__/internal-test-view.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-creative-brief.schemas.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.js +9 -3
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
- package/dist/esm/brand/models/logo-judge.schemas.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts +3 -24
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.js +10 -48
- package/dist/esm/brand/services/brand-accept.companion.service.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 +2 -8
- package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
- package/dist/esm/brand/services/logo-generation.companion.service.d.ts +6 -3
- package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/logo-generation.companion.service.js +11 -12
- package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
- package/dist/esm/brand/utils/derived-brand-assets.d.ts +0 -1
- package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
- package/dist/esm/brand/utils/derived-brand-assets.js +1 -2
- package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
- package/dist/esm/brand/utils/stage-brand-candidate.d.ts +7 -9
- package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
- package/dist/esm/brand/utils/stage-brand-candidate.js +8 -11
- package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +52 -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 +45 -0
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +45 -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 +180 -9
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts +12 -22
- 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 +151 -82
- package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts +30 -4
- 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 +30 -4
- 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 +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 +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
- package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.d.ts.map +1 -1
- package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.d.ts.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.d.ts +57 -57
- package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts +90 -0
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -0
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.js +98 -0
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -0
- package/dist/esm/companion-api/controllers/companion.controller.d.ts +32 -5
- package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.js +126 -41
- package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts +8 -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 +8 -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.models.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts +34 -0
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -0
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js +65 -0
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -0
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts +11 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js +10 -2
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
- package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/context/companion-context.d.ts.map +1 -1
- package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
- package/dist/esm/core/inject/models/container.d.ts.map +1 -1
- package/dist/esm/core/inject/models/container.js +0 -7
- package/dist/esm/core/inject/models/container.js.map +1 -1
- package/dist/esm/core/inject/models/service-types.d.ts +0 -1
- package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
- package/dist/esm/core/inject/models/service-types.js +0 -1
- package/dist/esm/core/inject/models/service-types.js.map +1 -1
- package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
- package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +8 -4
- 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.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-source.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.js +42 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.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/translation-placement.companion.service.d.ts.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/asset-noop-hooks.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-register.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +3 -2
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-child.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts +14 -5
- 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 +14 -5
- 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/expert-persona-brief.renderer.d.ts.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/market-context-block.builder.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts +38 -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 +143 -19
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts +23 -0
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.js +23 -0
- 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.schemas.d.ts +4 -4
- package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.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/models/companion-runtime.models.d.ts.map +1 -1
- package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +16 -13
- 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 +70 -45
- package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.js +9 -2
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-workbench-topology.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.d.ts.map +1 -1
- package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/execution-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/feature-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/milestone-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/product-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/role-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.models.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js +4 -4
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
- package/dist/esm/core/utils/atomic-write.utils.d.ts.map +1 -1
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +13 -3
- 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 +0 -5
- 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 +0 -2
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
- package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.js +4 -2
- 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 +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 +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.js.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.js +23 -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-template-fs-discovery.utils.d.ts.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 +15 -2
- 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 +7 -3
- 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 +11 -5
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts +9 -24
- 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 +11 -60
- package/dist/esm/expert-personas/services/expert-persona.companion.service.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_COMMAND_MENU.en.d.ts.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_MENUBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.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_SWITCHER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.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_TOOLBAR.en.d.ts.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_UTILITY_PANEL.en.d.ts.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_BILLING_SETTINGS.en.d.ts.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_HOME.en.d.ts.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_MAIN_CONTAINER.en.d.ts.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_SECURITY_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.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_WIDGET.en.d.ts.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_FLOWS_ACTORS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts.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_APPROVAL.en.d.ts.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_BROWSER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts.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_CONVERSATION.en.d.ts.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_EXECUTION_PLAN.en.d.ts.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_FLOW_EXECUTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts.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_OPEN_IN_CHAT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.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_MEMORY.en.d.ts.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_BILLING_INVOICE_HISTORY.en.d.ts.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_PRICING_TABLE.en.d.ts.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_USAGE_DASHBOARD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts.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_DIALOG.en.d.ts.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_BOOLEAN.en.d.ts.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_DURATION.en.d.ts.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_AUDIO.en.d.ts.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_GALLERY.en.d.ts.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_VIDEO.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts.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_MONEY.en.d.ts.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_DRAWER.en.d.ts.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_FEATURE_LOCK_BADGE.en.d.ts.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_FILE_UPLOAD.en.d.ts.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_BOOLEAN.en.d.ts.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_FILE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.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_ENROLLMENT_REQUIRED.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts +39 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js +39 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts.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_OAUTH_CONSENT.en.d.ts.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_LOGOUT_CONFIRM.en.d.ts.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_TERMS.en.d.ts.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_CONFIRM_EMAIL.en.d.ts.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_PASSWORD_LOST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.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_CREATE.en.d.ts.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_FILTERS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.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_ITEMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_announcement.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_card.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_modal.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_tooltip.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_tour.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
- package/dist/esm/i18n/index.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +58 -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 +35 -0
- package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js +8 -3
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
- package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +55 -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 +178 -73
- 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 +3 -3
- 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 +16 -5
- 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 +35 -2
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +68 -29
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +126 -35
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.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/guidance-keys.utils.d.ts.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-placeholder-drift.utils.d.ts +143 -0
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js +179 -0
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts +154 -0
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js +174 -0
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts +104 -0
- 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 +163 -18
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/market/services/market-generation.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +72 -0
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts +17 -4
- 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 +25 -5
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js +9 -4
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +3 -9
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +48 -28
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +83 -2
- 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 +197 -4
- 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.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/foundation-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.d.ts.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-run-write-register.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +37 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +227 -15
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts +117 -2
- 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 +258 -69
- 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 +5 -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 +142 -10
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts +2 -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 +10 -2
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
- package/package.json +17 -17
- package/dist/esm/core/runtime/companion-startup-composition-fence.d.ts +0 -44
- package/dist/esm/core/runtime/companion-startup-composition-fence.d.ts.map +0 -1
- package/dist/esm/core/runtime/companion-startup-composition-fence.js +0 -85
- package/dist/esm/core/runtime/companion-startup-composition-fence.js.map +0 -1
- package/dist/esm/expert-personas/utils/canonical-json.d.ts +0 -25
- package/dist/esm/expert-personas/utils/canonical-json.d.ts.map +0 -1
- package/dist/esm/expert-personas/utils/canonical-json.js +0 -45
- package/dist/esm/expert-personas/utils/canonical-json.js.map +0 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts +0 -19
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +0 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js +0 -19
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +0 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.d.ts +0 -17
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.d.ts.map +0 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.js +0 -17
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.js.map +0 -1
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ONE implementation of "do these placeholders match?", shared by both
|
|
3
|
+
* label-generation orchestrators.
|
|
4
|
+
*
|
|
5
|
+
* # Why it is shared
|
|
6
|
+
*
|
|
7
|
+
* `interpolateLabelParams` substitutes a single-brace `{name}` token only when
|
|
8
|
+
* `name` is a param the render call actually passes. Everything else about a
|
|
9
|
+
* placeholder is a failure mode:
|
|
10
|
+
* - a token OUTSIDE the expected set renders literally to the user (`{limite}`
|
|
11
|
+
* shows up in the UI as those eight characters), and
|
|
12
|
+
* - an expected token that never appears means the runtime value silently
|
|
13
|
+
* never shows.
|
|
14
|
+
*
|
|
15
|
+
* Both orchestrators must enforce that, and they were enforcing it in one place
|
|
16
|
+
* only — labellize. A second, independently written copy in translate would be a
|
|
17
|
+
* second grammar (`\{(\w+)\}` is easy to write subtly differently), a second set
|
|
18
|
+
* of edge cases (duplicate tokens, non-string values) and, in time, a second
|
|
19
|
+
* answer to the same question. So the COMPARISON lives here once; each caller
|
|
20
|
+
* supplies its own notion of what the EXPECTED tokens are, because that is the
|
|
21
|
+
* one thing that genuinely differs between them:
|
|
22
|
+
*
|
|
23
|
+
* | caller | expected tokens come from | applies to |
|
|
24
|
+
* |-----------|------------------------------------------|-------------------------------------|
|
|
25
|
+
* | labellize | the key's DECLARED params (`keyParams`) | param-validated chunks only |
|
|
26
|
+
* | translate | the tokens present in the SOURCE string | EVERY chunk, in every bucket |
|
|
27
|
+
*
|
|
28
|
+
* The translate side is source-scanned rather than `keyParams`-driven on purpose
|
|
29
|
+
* — it mirrors exactly what `buildTranslatePrompt` tells the model to preserve,
|
|
30
|
+
* and it therefore works for buckets that thread no declared params at all
|
|
31
|
+
* (where `keyParams` is absent and labellize's check correctly stands down).
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* One label value whose placeholders do not match the tokens expected of it.
|
|
35
|
+
*
|
|
36
|
+
* `unexpected` = emitted but not expected (renders literally to the user);
|
|
37
|
+
* `missing` = expected but never emitted (the runtime value silently won't show).
|
|
38
|
+
*
|
|
39
|
+
* `expected` is deliberately NOT called `declared`: for a translation the
|
|
40
|
+
* expectation comes from the source string, not from a declaration.
|
|
41
|
+
*/
|
|
42
|
+
export interface PlaceholderDrift {
|
|
43
|
+
key: string;
|
|
44
|
+
expected: string[];
|
|
45
|
+
emitted: string[];
|
|
46
|
+
unexpected: string[];
|
|
47
|
+
missing: string[];
|
|
48
|
+
value: string;
|
|
49
|
+
}
|
|
50
|
+
/** Every distinct single-brace token in `value`, in first-appearance order. */
|
|
51
|
+
export declare function extractLabelPlaceholderTokens(value: string): string[];
|
|
52
|
+
/**
|
|
53
|
+
* Compare one value's emitted tokens against the tokens expected of it.
|
|
54
|
+
* Returns `undefined` when they agree — the common path — so callers can build
|
|
55
|
+
* a drift list by filtering, and an empty list unambiguously means "clean".
|
|
56
|
+
*
|
|
57
|
+
* A key with no expected tokens is held to "must contain no placeholder at
|
|
58
|
+
* all", which is what catches a plain-text label drifting to `{value}`.
|
|
59
|
+
*/
|
|
60
|
+
export declare function comparePlaceholderTokens(args: {
|
|
61
|
+
key: string;
|
|
62
|
+
expected: readonly string[];
|
|
63
|
+
value: string;
|
|
64
|
+
}): PlaceholderDrift | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Labellize's expectation: emitted tokens must equal the key's DECLARED params.
|
|
67
|
+
*
|
|
68
|
+
* `keyParams` absent means the bucket does not thread declared params, so there
|
|
69
|
+
* is nothing to compare against and the check stands down — the caller's
|
|
70
|
+
* pre-existing contract, preserved verbatim.
|
|
71
|
+
*/
|
|
72
|
+
export declare function detectDeclaredPlaceholderDrift(args: {
|
|
73
|
+
keys: readonly string[];
|
|
74
|
+
keyParams: Readonly<Record<string, readonly string[]>> | undefined;
|
|
75
|
+
generated: Readonly<Record<string, string>>;
|
|
76
|
+
}): PlaceholderDrift[];
|
|
77
|
+
/**
|
|
78
|
+
* Translate's expectation: a translated value must carry EXACTLY the tokens its
|
|
79
|
+
* SOURCE value carries — no more, no fewer. That is precisely the contract
|
|
80
|
+
* `buildTranslatePrompt`'s "# Variable keys — DO NOT translate" block states to
|
|
81
|
+
* the model, and until now nothing checked the answer against it.
|
|
82
|
+
*
|
|
83
|
+
* A key with no source entry is skipped rather than held to "no placeholders":
|
|
84
|
+
* there is no source to compare against, and such a key is already handled by
|
|
85
|
+
* the missing-key fallback.
|
|
86
|
+
*/
|
|
87
|
+
export declare function detectTranslationPlaceholderDrift(args: {
|
|
88
|
+
keys: readonly string[];
|
|
89
|
+
sourceEntries: Readonly<Record<string, string>>;
|
|
90
|
+
translated: Readonly<Record<string, string>>;
|
|
91
|
+
}): PlaceholderDrift[];
|
|
92
|
+
/** The outcome of assembling one translated chunk's on-disk values. */
|
|
93
|
+
export interface TranslatedChunkAssembly {
|
|
94
|
+
/** What will be written for this chunk. Every value here is placeholder-correct. */
|
|
95
|
+
readonly values: Record<string, string>;
|
|
96
|
+
/**
|
|
97
|
+
* Keys whose returned translation was REJECTED for placeholder drift and
|
|
98
|
+
* replaced by the source string. Empty on the healthy path.
|
|
99
|
+
*/
|
|
100
|
+
readonly rejectedDrifts: readonly PlaceholderDrift[];
|
|
101
|
+
/** Keys that arrived as no usable string at all and fell back to the source string. */
|
|
102
|
+
readonly missingKeys: readonly string[];
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Assemble the values a translated chunk will write, enforcing the placeholder
|
|
106
|
+
* contract as it goes.
|
|
107
|
+
*
|
|
108
|
+
* Two distinct fallbacks land on the SAME value — the source string — for two
|
|
109
|
+
* different reasons, and the caller reports them separately:
|
|
110
|
+
*
|
|
111
|
+
* - `missingKeys`: the model never returned a usable string (the pre-existing
|
|
112
|
+
* behaviour; the repair loop has already spent its budget on these).
|
|
113
|
+
* - `rejectedDrifts`: the model DID return a string and its placeholders do
|
|
114
|
+
* not match the source's. This is the case that used to be written straight
|
|
115
|
+
* through, and it is the worse of the two: an untranslated English label
|
|
116
|
+
* still renders correctly, whereas `Limite atteinte : {limite}` renders the
|
|
117
|
+
* eight literal characters `{limite}` to a user and drops the number.
|
|
118
|
+
*
|
|
119
|
+
* Falling back to the source is chosen over three alternatives:
|
|
120
|
+
* - KEEPING the drifted translation (what labellize does with its persisted
|
|
121
|
+
* drift, and what translate did implicitly): labellize writes into the
|
|
122
|
+
* PRIMARY file, where a drifted token is the only text there is and a loud
|
|
123
|
+
* on-disk signal beats an empty label. Translate always has a known-good
|
|
124
|
+
* alternative sitting right there, so there is no reason to ship the broken
|
|
125
|
+
* one.
|
|
126
|
+
* - OMITTING the key: the planned-key set is written as a complete locale
|
|
127
|
+
* bundle, nothing else in this orchestrator produces an absent planned key,
|
|
128
|
+
* and an absent key is a different product (a different runtime path) from a
|
|
129
|
+
* present-but-untranslated one.
|
|
130
|
+
* - FAILING the unit: it would discard every good translation in the chunk
|
|
131
|
+
* over one cosmetic key, and it is asymmetric with the missing-key path,
|
|
132
|
+
* which deliberately does not fail.
|
|
133
|
+
*
|
|
134
|
+
* The source string is placeholder-correct BY CONSTRUCTION — it is the string
|
|
135
|
+
* the expected token set was extracted from — so this makes the invariant total:
|
|
136
|
+
* every value this function returns carries exactly its source's placeholders.
|
|
137
|
+
*/
|
|
138
|
+
export declare function assembleTranslatedChunkResult(args: {
|
|
139
|
+
keys: readonly string[];
|
|
140
|
+
sourceEntries: Readonly<Record<string, string>>;
|
|
141
|
+
translatedValues: Readonly<Record<string, string | undefined>>;
|
|
142
|
+
}): TranslatedChunkAssembly;
|
|
143
|
+
//# sourceMappingURL=label-placeholder-drift.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label-placeholder-drift.utils.d.ts","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/label-placeholder-drift.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAUH;;;;;;;;GAQG;AACH,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,+EAA+E;AAC/E,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAMrE;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE;IAC7C,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,gBAAgB,GAAG,SAAS,CAW/B;AAED;;;;;;GAMG;AACH,wBAAgB,8BAA8B,CAAC,IAAI,EAAE;IACnD,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC;IACnE,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CAC7C,GAAG,gBAAgB,EAAE,CAYrB;AAED;;;;;;;;;GASG;AACH,wBAAgB,iCAAiC,CAAC,IAAI,EAAE;IACtD,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAChD,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CAC9C,GAAG,gBAAgB,EAAE,CAYrB;AAED,uEAAuE;AACvE,MAAM,WAAW,uBAAuB;IACtC,oFAAoF;IACpF,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC;;;OAGG;IACH,QAAQ,CAAC,cAAc,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACrD,uFAAuF;IACvF,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;CACzC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,6BAA6B,CAAC,IAAI,EAAE;IAClD,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAChD,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;CAChE,GAAG,uBAAuB,CAmC1B"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ONE implementation of "do these placeholders match?", shared by both
|
|
3
|
+
* label-generation orchestrators.
|
|
4
|
+
*
|
|
5
|
+
* # Why it is shared
|
|
6
|
+
*
|
|
7
|
+
* `interpolateLabelParams` substitutes a single-brace `{name}` token only when
|
|
8
|
+
* `name` is a param the render call actually passes. Everything else about a
|
|
9
|
+
* placeholder is a failure mode:
|
|
10
|
+
* - a token OUTSIDE the expected set renders literally to the user (`{limite}`
|
|
11
|
+
* shows up in the UI as those eight characters), and
|
|
12
|
+
* - an expected token that never appears means the runtime value silently
|
|
13
|
+
* never shows.
|
|
14
|
+
*
|
|
15
|
+
* Both orchestrators must enforce that, and they were enforcing it in one place
|
|
16
|
+
* only — labellize. A second, independently written copy in translate would be a
|
|
17
|
+
* second grammar (`\{(\w+)\}` is easy to write subtly differently), a second set
|
|
18
|
+
* of edge cases (duplicate tokens, non-string values) and, in time, a second
|
|
19
|
+
* answer to the same question. So the COMPARISON lives here once; each caller
|
|
20
|
+
* supplies its own notion of what the EXPECTED tokens are, because that is the
|
|
21
|
+
* one thing that genuinely differs between them:
|
|
22
|
+
*
|
|
23
|
+
* | caller | expected tokens come from | applies to |
|
|
24
|
+
* |-----------|------------------------------------------|-------------------------------------|
|
|
25
|
+
* | labellize | the key's DECLARED params (`keyParams`) | param-validated chunks only |
|
|
26
|
+
* | translate | the tokens present in the SOURCE string | EVERY chunk, in every bucket |
|
|
27
|
+
*
|
|
28
|
+
* The translate side is source-scanned rather than `keyParams`-driven on purpose
|
|
29
|
+
* — it mirrors exactly what `buildTranslatePrompt` tells the model to preserve,
|
|
30
|
+
* and it therefore works for buckets that thread no declared params at all
|
|
31
|
+
* (where `keyParams` is absent and labellize's check correctly stands down).
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* The runtime's token grammar, mirrored so a check can never disagree with what
|
|
35
|
+
* will actually be interpolated. Kept as a factory rather than a shared
|
|
36
|
+
* `RegExp` constant: a `g`-flagged regex carries mutable `lastIndex`, and a
|
|
37
|
+
* module-level one shared across calls is a classic source of skipped matches.
|
|
38
|
+
*/
|
|
39
|
+
const buildPlaceholderTokenRegex = () => /\{(\w+)\}/g;
|
|
40
|
+
/** Every distinct single-brace token in `value`, in first-appearance order. */
|
|
41
|
+
export function extractLabelPlaceholderTokens(value) {
|
|
42
|
+
const regex = buildPlaceholderTokenRegex();
|
|
43
|
+
const tokens = new Set();
|
|
44
|
+
let match;
|
|
45
|
+
while ((match = regex.exec(value)) !== null)
|
|
46
|
+
tokens.add(match[1]);
|
|
47
|
+
return [...tokens];
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Compare one value's emitted tokens against the tokens expected of it.
|
|
51
|
+
* Returns `undefined` when they agree — the common path — so callers can build
|
|
52
|
+
* a drift list by filtering, and an empty list unambiguously means "clean".
|
|
53
|
+
*
|
|
54
|
+
* A key with no expected tokens is held to "must contain no placeholder at
|
|
55
|
+
* all", which is what catches a plain-text label drifting to `{value}`.
|
|
56
|
+
*/
|
|
57
|
+
export function comparePlaceholderTokens(args) {
|
|
58
|
+
const { key, value } = args;
|
|
59
|
+
const expected = [...new Set(args.expected)];
|
|
60
|
+
const expectedSet = new Set(expected);
|
|
61
|
+
const emitted = extractLabelPlaceholderTokens(value);
|
|
62
|
+
const emittedSet = new Set(emitted);
|
|
63
|
+
const unexpected = emitted.filter((token) => !expectedSet.has(token));
|
|
64
|
+
const missing = expected.filter((token) => !emittedSet.has(token));
|
|
65
|
+
if (unexpected.length === 0 && missing.length === 0)
|
|
66
|
+
return undefined;
|
|
67
|
+
return { key, expected, emitted, unexpected, missing, value };
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Labellize's expectation: emitted tokens must equal the key's DECLARED params.
|
|
71
|
+
*
|
|
72
|
+
* `keyParams` absent means the bucket does not thread declared params, so there
|
|
73
|
+
* is nothing to compare against and the check stands down — the caller's
|
|
74
|
+
* pre-existing contract, preserved verbatim.
|
|
75
|
+
*/
|
|
76
|
+
export function detectDeclaredPlaceholderDrift(args) {
|
|
77
|
+
const { keys, keyParams, generated } = args;
|
|
78
|
+
if (!keyParams)
|
|
79
|
+
return [];
|
|
80
|
+
const drifts = [];
|
|
81
|
+
for (const key of keys) {
|
|
82
|
+
const value = generated[key];
|
|
83
|
+
if (typeof value !== 'string')
|
|
84
|
+
continue;
|
|
85
|
+
const drift = comparePlaceholderTokens({ key, expected: keyParams[key] ?? [], value });
|
|
86
|
+
if (drift)
|
|
87
|
+
drifts.push(drift);
|
|
88
|
+
}
|
|
89
|
+
return drifts;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Translate's expectation: a translated value must carry EXACTLY the tokens its
|
|
93
|
+
* SOURCE value carries — no more, no fewer. That is precisely the contract
|
|
94
|
+
* `buildTranslatePrompt`'s "# Variable keys — DO NOT translate" block states to
|
|
95
|
+
* the model, and until now nothing checked the answer against it.
|
|
96
|
+
*
|
|
97
|
+
* A key with no source entry is skipped rather than held to "no placeholders":
|
|
98
|
+
* there is no source to compare against, and such a key is already handled by
|
|
99
|
+
* the missing-key fallback.
|
|
100
|
+
*/
|
|
101
|
+
export function detectTranslationPlaceholderDrift(args) {
|
|
102
|
+
const { keys, sourceEntries, translated } = args;
|
|
103
|
+
const drifts = [];
|
|
104
|
+
for (const key of keys) {
|
|
105
|
+
const value = translated[key];
|
|
106
|
+
const source = sourceEntries[key];
|
|
107
|
+
if (typeof value !== 'string' || typeof source !== 'string')
|
|
108
|
+
continue;
|
|
109
|
+
const drift = comparePlaceholderTokens({ key, expected: extractLabelPlaceholderTokens(source), value });
|
|
110
|
+
if (drift)
|
|
111
|
+
drifts.push(drift);
|
|
112
|
+
}
|
|
113
|
+
return drifts;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Assemble the values a translated chunk will write, enforcing the placeholder
|
|
117
|
+
* contract as it goes.
|
|
118
|
+
*
|
|
119
|
+
* Two distinct fallbacks land on the SAME value — the source string — for two
|
|
120
|
+
* different reasons, and the caller reports them separately:
|
|
121
|
+
*
|
|
122
|
+
* - `missingKeys`: the model never returned a usable string (the pre-existing
|
|
123
|
+
* behaviour; the repair loop has already spent its budget on these).
|
|
124
|
+
* - `rejectedDrifts`: the model DID return a string and its placeholders do
|
|
125
|
+
* not match the source's. This is the case that used to be written straight
|
|
126
|
+
* through, and it is the worse of the two: an untranslated English label
|
|
127
|
+
* still renders correctly, whereas `Limite atteinte : {limite}` renders the
|
|
128
|
+
* eight literal characters `{limite}` to a user and drops the number.
|
|
129
|
+
*
|
|
130
|
+
* Falling back to the source is chosen over three alternatives:
|
|
131
|
+
* - KEEPING the drifted translation (what labellize does with its persisted
|
|
132
|
+
* drift, and what translate did implicitly): labellize writes into the
|
|
133
|
+
* PRIMARY file, where a drifted token is the only text there is and a loud
|
|
134
|
+
* on-disk signal beats an empty label. Translate always has a known-good
|
|
135
|
+
* alternative sitting right there, so there is no reason to ship the broken
|
|
136
|
+
* one.
|
|
137
|
+
* - OMITTING the key: the planned-key set is written as a complete locale
|
|
138
|
+
* bundle, nothing else in this orchestrator produces an absent planned key,
|
|
139
|
+
* and an absent key is a different product (a different runtime path) from a
|
|
140
|
+
* present-but-untranslated one.
|
|
141
|
+
* - FAILING the unit: it would discard every good translation in the chunk
|
|
142
|
+
* over one cosmetic key, and it is asymmetric with the missing-key path,
|
|
143
|
+
* which deliberately does not fail.
|
|
144
|
+
*
|
|
145
|
+
* The source string is placeholder-correct BY CONSTRUCTION — it is the string
|
|
146
|
+
* the expected token set was extracted from — so this makes the invariant total:
|
|
147
|
+
* every value this function returns carries exactly its source's placeholders.
|
|
148
|
+
*/
|
|
149
|
+
export function assembleTranslatedChunkResult(args) {
|
|
150
|
+
const { keys, sourceEntries, translatedValues } = args;
|
|
151
|
+
const values = {};
|
|
152
|
+
const rejectedDrifts = [];
|
|
153
|
+
const missingKeys = [];
|
|
154
|
+
for (const key of keys) {
|
|
155
|
+
const source = sourceEntries[key];
|
|
156
|
+
const value = translatedValues[key];
|
|
157
|
+
if (typeof value !== 'string' || value.length === 0) {
|
|
158
|
+
missingKeys.push(key);
|
|
159
|
+
if (typeof source === 'string')
|
|
160
|
+
values[key] = source;
|
|
161
|
+
continue;
|
|
162
|
+
}
|
|
163
|
+
// No source to compare against: there is nothing to preserve and nothing to
|
|
164
|
+
// fall back to either, so the returned value stands as the only candidate.
|
|
165
|
+
if (typeof source !== 'string') {
|
|
166
|
+
values[key] = value;
|
|
167
|
+
continue;
|
|
168
|
+
}
|
|
169
|
+
const drift = comparePlaceholderTokens({ key, expected: extractLabelPlaceholderTokens(source), value });
|
|
170
|
+
if (drift) {
|
|
171
|
+
rejectedDrifts.push(drift);
|
|
172
|
+
values[key] = source;
|
|
173
|
+
continue;
|
|
174
|
+
}
|
|
175
|
+
values[key] = value;
|
|
176
|
+
}
|
|
177
|
+
return { values, rejectedDrifts, missingKeys };
|
|
178
|
+
}
|
|
179
|
+
//# sourceMappingURL=label-placeholder-drift.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label-placeholder-drift.utils.js","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/label-placeholder-drift.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH;;;;;GAKG;AACH,MAAM,0BAA0B,GAAG,GAAW,EAAE,CAAC,YAAY,CAAC;AAoB9D,+EAA+E;AAC/E,MAAM,UAAU,6BAA6B,CAAC,KAAa;IACzD,MAAM,KAAK,GAAG,0BAA0B,EAAE,CAAC;IAC3C,MAAM,MAAM,GAAG,IAAI,GAAG,EAAU,CAAC;IACjC,IAAI,KAA6B,CAAC;IAClC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,IAAI;QAAE,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAE,CAAC,CAAC;IACnE,OAAO,CAAC,GAAG,MAAM,CAAC,CAAC;AACrB,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,wBAAwB,CAAC,IAIxC;IACC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IAC5B,MAAM,QAAQ,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC7C,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC;IACtC,MAAM,OAAO,GAAG,6BAA6B,CAAC,KAAK,CAAC,CAAC;IACrD,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC;IAEpC,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;IACtE,MAAM,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;IACnE,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IACtE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AAChE,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,8BAA8B,CAAC,IAI9C;IACC,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;IAC5C,IAAI,CAAC,SAAS;QAAE,OAAO,EAAE,CAAC;IAE1B,MAAM,MAAM,GAAuB,EAAE,CAAC;IACtC,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,MAAM,KAAK,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;QAC7B,IAAI,OAAO,KAAK,KAAK,QAAQ;YAAE,SAAS;QACxC,MAAM,KAAK,GAAG,wBAAwB,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,SAAS,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QACvF,IAAI,KAAK;YAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,iCAAiC,CAAC,IAIjD;IACC,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;IAEjD,MAAM,MAAM,GAAuB,EAAE,CAAC;IACtC,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,MAAM,KAAK,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC;QAC9B,MAAM,MAAM,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;QAClC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,MAAM,KAAK,QAAQ;YAAE,SAAS;QACtE,MAAM,KAAK,GAAG,wBAAwB,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,6BAA6B,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QACxG,IAAI,KAAK;YAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAeD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,UAAU,6BAA6B,CAAC,IAI7C;IACC,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAC;IAEvD,MAAM,MAAM,GAA2B,EAAE,CAAC;IAC1C,MAAM,cAAc,GAAuB,EAAE,CAAC;IAC9C,MAAM,WAAW,GAAa,EAAE,CAAC;IAEjC,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,MAAM,MAAM,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;QAClC,MAAM,KAAK,GAAG,gBAAgB,CAAC,GAAG,CAAC,CAAC;QAEpC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACpD,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACtB,IAAI,OAAO,MAAM,KAAK,QAAQ;gBAAE,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC;YACrD,SAAS;QACX,CAAC;QAED,4EAA4E;QAC5E,2EAA2E;QAC3E,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;YAC/B,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;YACpB,SAAS;QACX,CAAC;QAED,MAAM,KAAK,GAAG,wBAAwB,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,6BAA6B,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QACxG,IAAI,KAAK,EAAE,CAAC;YACV,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAC3B,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC;YACrB,SAAS;QACX,CAAC;QAED,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IACtB,CAAC;IAED,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,CAAC;AACjD,CAAC","sourcesContent":["/**\n * The ONE implementation of \"do these placeholders match?\", shared by both\n * label-generation orchestrators.\n *\n * # Why it is shared\n *\n * `interpolateLabelParams` substitutes a single-brace `{name}` token only when\n * `name` is a param the render call actually passes. Everything else about a\n * placeholder is a failure mode:\n * - a token OUTSIDE the expected set renders literally to the user (`{limite}`\n * shows up in the UI as those eight characters), and\n * - an expected token that never appears means the runtime value silently\n * never shows.\n *\n * Both orchestrators must enforce that, and they were enforcing it in one place\n * only — labellize. A second, independently written copy in translate would be a\n * second grammar (`\\{(\\w+)\\}` is easy to write subtly differently), a second set\n * of edge cases (duplicate tokens, non-string values) and, in time, a second\n * answer to the same question. So the COMPARISON lives here once; each caller\n * supplies its own notion of what the EXPECTED tokens are, because that is the\n * one thing that genuinely differs between them:\n *\n * | caller | expected tokens come from | applies to |\n * |-----------|------------------------------------------|-------------------------------------|\n * | labellize | the key's DECLARED params (`keyParams`) | param-validated chunks only |\n * | translate | the tokens present in the SOURCE string | EVERY chunk, in every bucket |\n *\n * The translate side is source-scanned rather than `keyParams`-driven on purpose\n * — it mirrors exactly what `buildTranslatePrompt` tells the model to preserve,\n * and it therefore works for buckets that thread no declared params at all\n * (where `keyParams` is absent and labellize's check correctly stands down).\n */\n\n/**\n * The runtime's token grammar, mirrored so a check can never disagree with what\n * will actually be interpolated. Kept as a factory rather than a shared\n * `RegExp` constant: a `g`-flagged regex carries mutable `lastIndex`, and a\n * module-level one shared across calls is a classic source of skipped matches.\n */\nconst buildPlaceholderTokenRegex = (): RegExp => /\\{(\\w+)\\}/g;\n\n/**\n * One label value whose placeholders do not match the tokens expected of it.\n *\n * `unexpected` = emitted but not expected (renders literally to the user);\n * `missing` = expected but never emitted (the runtime value silently won't show).\n *\n * `expected` is deliberately NOT called `declared`: for a translation the\n * expectation comes from the source string, not from a declaration.\n */\nexport interface PlaceholderDrift {\n key: string;\n expected: string[];\n emitted: string[];\n unexpected: string[];\n missing: string[];\n value: string;\n}\n\n/** Every distinct single-brace token in `value`, in first-appearance order. */\nexport function extractLabelPlaceholderTokens(value: string): string[] {\n const regex = buildPlaceholderTokenRegex();\n const tokens = new Set<string>();\n let match: RegExpExecArray | null;\n while ((match = regex.exec(value)) !== null) tokens.add(match[1]!);\n return [...tokens];\n}\n\n/**\n * Compare one value's emitted tokens against the tokens expected of it.\n * Returns `undefined` when they agree — the common path — so callers can build\n * a drift list by filtering, and an empty list unambiguously means \"clean\".\n *\n * A key with no expected tokens is held to \"must contain no placeholder at\n * all\", which is what catches a plain-text label drifting to `{value}`.\n */\nexport function comparePlaceholderTokens(args: {\n key: string;\n expected: readonly string[];\n value: string;\n}): PlaceholderDrift | undefined {\n const { key, value } = args;\n const expected = [...new Set(args.expected)];\n const expectedSet = new Set(expected);\n const emitted = extractLabelPlaceholderTokens(value);\n const emittedSet = new Set(emitted);\n\n const unexpected = emitted.filter((token) => !expectedSet.has(token));\n const missing = expected.filter((token) => !emittedSet.has(token));\n if (unexpected.length === 0 && missing.length === 0) return undefined;\n return { key, expected, emitted, unexpected, missing, value };\n}\n\n/**\n * Labellize's expectation: emitted tokens must equal the key's DECLARED params.\n *\n * `keyParams` absent means the bucket does not thread declared params, so there\n * is nothing to compare against and the check stands down — the caller's\n * pre-existing contract, preserved verbatim.\n */\nexport function detectDeclaredPlaceholderDrift(args: {\n keys: readonly string[];\n keyParams: Readonly<Record<string, readonly string[]>> | undefined;\n generated: Readonly<Record<string, string>>;\n}): PlaceholderDrift[] {\n const { keys, keyParams, generated } = args;\n if (!keyParams) return [];\n\n const drifts: PlaceholderDrift[] = [];\n for (const key of keys) {\n const value = generated[key];\n if (typeof value !== 'string') continue;\n const drift = comparePlaceholderTokens({ key, expected: keyParams[key] ?? [], value });\n if (drift) drifts.push(drift);\n }\n return drifts;\n}\n\n/**\n * Translate's expectation: a translated value must carry EXACTLY the tokens its\n * SOURCE value carries — no more, no fewer. That is precisely the contract\n * `buildTranslatePrompt`'s \"# Variable keys — DO NOT translate\" block states to\n * the model, and until now nothing checked the answer against it.\n *\n * A key with no source entry is skipped rather than held to \"no placeholders\":\n * there is no source to compare against, and such a key is already handled by\n * the missing-key fallback.\n */\nexport function detectTranslationPlaceholderDrift(args: {\n keys: readonly string[];\n sourceEntries: Readonly<Record<string, string>>;\n translated: Readonly<Record<string, string>>;\n}): PlaceholderDrift[] {\n const { keys, sourceEntries, translated } = args;\n\n const drifts: PlaceholderDrift[] = [];\n for (const key of keys) {\n const value = translated[key];\n const source = sourceEntries[key];\n if (typeof value !== 'string' || typeof source !== 'string') continue;\n const drift = comparePlaceholderTokens({ key, expected: extractLabelPlaceholderTokens(source), value });\n if (drift) drifts.push(drift);\n }\n return drifts;\n}\n\n/** The outcome of assembling one translated chunk's on-disk values. */\nexport interface TranslatedChunkAssembly {\n /** What will be written for this chunk. Every value here is placeholder-correct. */\n readonly values: Record<string, string>;\n /**\n * Keys whose returned translation was REJECTED for placeholder drift and\n * replaced by the source string. Empty on the healthy path.\n */\n readonly rejectedDrifts: readonly PlaceholderDrift[];\n /** Keys that arrived as no usable string at all and fell back to the source string. */\n readonly missingKeys: readonly string[];\n}\n\n/**\n * Assemble the values a translated chunk will write, enforcing the placeholder\n * contract as it goes.\n *\n * Two distinct fallbacks land on the SAME value — the source string — for two\n * different reasons, and the caller reports them separately:\n *\n * - `missingKeys`: the model never returned a usable string (the pre-existing\n * behaviour; the repair loop has already spent its budget on these).\n * - `rejectedDrifts`: the model DID return a string and its placeholders do\n * not match the source's. This is the case that used to be written straight\n * through, and it is the worse of the two: an untranslated English label\n * still renders correctly, whereas `Limite atteinte : {limite}` renders the\n * eight literal characters `{limite}` to a user and drops the number.\n *\n * Falling back to the source is chosen over three alternatives:\n * - KEEPING the drifted translation (what labellize does with its persisted\n * drift, and what translate did implicitly): labellize writes into the\n * PRIMARY file, where a drifted token is the only text there is and a loud\n * on-disk signal beats an empty label. Translate always has a known-good\n * alternative sitting right there, so there is no reason to ship the broken\n * one.\n * - OMITTING the key: the planned-key set is written as a complete locale\n * bundle, nothing else in this orchestrator produces an absent planned key,\n * and an absent key is a different product (a different runtime path) from a\n * present-but-untranslated one.\n * - FAILING the unit: it would discard every good translation in the chunk\n * over one cosmetic key, and it is asymmetric with the missing-key path,\n * which deliberately does not fail.\n *\n * The source string is placeholder-correct BY CONSTRUCTION — it is the string\n * the expected token set was extracted from — so this makes the invariant total:\n * every value this function returns carries exactly its source's placeholders.\n */\nexport function assembleTranslatedChunkResult(args: {\n keys: readonly string[];\n sourceEntries: Readonly<Record<string, string>>;\n translatedValues: Readonly<Record<string, string | undefined>>;\n}): TranslatedChunkAssembly {\n const { keys, sourceEntries, translatedValues } = args;\n\n const values: Record<string, string> = {};\n const rejectedDrifts: PlaceholderDrift[] = [];\n const missingKeys: string[] = [];\n\n for (const key of keys) {\n const source = sourceEntries[key];\n const value = translatedValues[key];\n\n if (typeof value !== 'string' || value.length === 0) {\n missingKeys.push(key);\n if (typeof source === 'string') values[key] = source;\n continue;\n }\n\n // No source to compare against: there is nothing to preserve and nothing to\n // fall back to either, so the returned value stands as the only candidate.\n if (typeof source !== 'string') {\n values[key] = value;\n continue;\n }\n\n const drift = comparePlaceholderTokens({ key, expected: extractLabelPlaceholderTokens(source), value });\n if (drift) {\n rejectedDrifts.push(drift);\n values[key] = source;\n continue;\n }\n\n values[key] = value;\n }\n\n return { values, rejectedDrifts, missingKeys };\n}\n"]}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import type { LabellingPlanIncompleteness, LabellingUnit } from '../models/labelling-unit.models';
|
|
2
|
+
/**
|
|
3
|
+
* Whether the orphan question could be answered at all on this run.
|
|
4
|
+
*
|
|
5
|
+
* The two members are NOT "found some" / "found none" — that distinction is
|
|
6
|
+
* `orphanFiles.length`. They separate a judgement from a REFUSAL to judge,
|
|
7
|
+
* because the same empty `orphanFiles` array means opposite things in the two
|
|
8
|
+
* cases and a consumer that conflated them would read "nothing is stale" off a
|
|
9
|
+
* run that never looked.
|
|
10
|
+
*/
|
|
11
|
+
export declare enum OrphanLabelArtifactsOutcome {
|
|
12
|
+
/** The planned unit set was total; `orphanFiles` / `orphanLockUnitIds` are a verdict. */
|
|
13
|
+
REPORTED = "reported",
|
|
14
|
+
/** The plan declared itself incomplete; nothing was judged. See `incompleteness`. */
|
|
15
|
+
UNAVAILABLE_PARTIAL_PLAN = "unavailable-partial-plan",
|
|
16
|
+
/**
|
|
17
|
+
* The plan may have been fine; reading the i18n state was not — the directory
|
|
18
|
+
* scan or the lock read threw. Distinct from `UNAVAILABLE_PARTIAL_PLAN`
|
|
19
|
+
* because the remedies are different (repair the filesystem/lock vs. start the
|
|
20
|
+
* frontend / bind the registry), and because merging them would let a broken
|
|
21
|
+
* read masquerade as a known-partial plan. See `scanFailure`.
|
|
22
|
+
*/
|
|
23
|
+
UNAVAILABLE_SCAN_FAILED = "unavailable-scan-failed"
|
|
24
|
+
}
|
|
25
|
+
/** One generated label file discovered under the i18n root. */
|
|
26
|
+
export interface GeneratedLabelFile {
|
|
27
|
+
/** Path relative to the i18n root, e.g. `resources/todos.en.ts`. */
|
|
28
|
+
relativePath: string;
|
|
29
|
+
/** Directory segment, e.g. `resources` — matches `LabellingUnit.filePathHint.bucket`. */
|
|
30
|
+
bucket: string;
|
|
31
|
+
/** File stem before the locale, e.g. `todos` — matches `filePathHint.slug`. */
|
|
32
|
+
slug: string;
|
|
33
|
+
/** Locale segment, guaranteed to be a member of `AvailableLanguage`. */
|
|
34
|
+
locale: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* What label generation LEFT BEHIND: files and lock rows belonging to units the
|
|
38
|
+
* application no longer plans.
|
|
39
|
+
*
|
|
40
|
+
* ## Why this reports and does not delete
|
|
41
|
+
*
|
|
42
|
+
* Key pruning inside a unit's file is safe because the unit was just planned and
|
|
43
|
+
* regenerated — the planned key set is authoritative BY CONSTRUCTION for that
|
|
44
|
+
* one unit. Unit pruning is a different question and has no such guarantee: it
|
|
45
|
+
* asks whether a unit the run never mentioned still EXISTS, and the plan answers
|
|
46
|
+
* that only as well as every one of its families could enumerate itself.
|
|
47
|
+
*
|
|
48
|
+
* Measured on the live planner, the frontend key snapshot degrades to EMPTY on
|
|
49
|
+
* three separate conditions (no `SAAS_APP` frontend service, a failed
|
|
50
|
+
* introspection subprocess, a malformed payload), each a logged warning rather
|
|
51
|
+
* than a throw. On any of them all four frontend-derived buckets disappear from
|
|
52
|
+
* the plan — on Wonder Todos that is `composite_views`, `views` and
|
|
53
|
+
* `sidebar_sections`, three buckets of live, LLM-generated copy that a prune
|
|
54
|
+
* would delete for the sole reason that the frontend dev server was not running.
|
|
55
|
+
* Two more families (`milestones`, `billing`) vanish when their registry is not
|
|
56
|
+
* bound in the container.
|
|
57
|
+
*
|
|
58
|
+
* Those five are DECLARED, so this report suppresses itself on them
|
|
59
|
+
* ({@link OrphanLabelArtifactsOutcome.UNAVAILABLE_PARTIAL_PLAN}). One class is
|
|
60
|
+
* not declarable at all: a resources registry that loaded some of the
|
|
61
|
+
* application's modules reports success with fewer resources, and no signal
|
|
62
|
+
* distinguishes that from a resource genuinely removed. That residual is why the
|
|
63
|
+
* outcome of this unit is a REPORT — a human reading a named list of six files
|
|
64
|
+
* loses nothing if the list is wrong, and an unlink does not have that property.
|
|
65
|
+
*
|
|
66
|
+
* ## What would make deletion safe
|
|
67
|
+
*
|
|
68
|
+
* A plan whose totality is established rather than assumed: the resources
|
|
69
|
+
* registry would have to report the module set it loaded against the module set
|
|
70
|
+
* the application declares, and every remaining family would have to answer
|
|
71
|
+
* "I enumerate my whole space" rather than merely "I did not fail". Given that,
|
|
72
|
+
* a prune gated on `outcome === REPORTED` becomes defensible — and should still
|
|
73
|
+
* be an explicit operator verb, never a side effect of a generation run.
|
|
74
|
+
*/
|
|
75
|
+
export interface OrphanLabelArtifactsReport {
|
|
76
|
+
outcome: OrphanLabelArtifactsOutcome;
|
|
77
|
+
/** The declared degradations. Empty exactly when `outcome` is `REPORTED`. */
|
|
78
|
+
incompleteness: readonly LabellingPlanIncompleteness[];
|
|
79
|
+
/**
|
|
80
|
+
* i18n-root-relative paths of generated label files whose `(bucket, slug)`
|
|
81
|
+
* belongs to no planned unit — BASE and TRANSLATION files alike (see the
|
|
82
|
+
* translation note on {@link computeOrphanLabelArtifacts}).
|
|
83
|
+
*/
|
|
84
|
+
orphanFiles: readonly string[];
|
|
85
|
+
/** Lock `sections.i18n.units` ids that belong to no planned unit. */
|
|
86
|
+
orphanLockUnitIds: readonly string[];
|
|
87
|
+
/** Count of generated files considered — the denominator behind `orphanFiles`. */
|
|
88
|
+
scannedFileCount: number;
|
|
89
|
+
/**
|
|
90
|
+
* Why the i18n state could not be READ, when that is what stopped the verdict.
|
|
91
|
+
* Set exactly when `outcome` is `UNAVAILABLE_SCAN_FAILED`.
|
|
92
|
+
*/
|
|
93
|
+
scanFailure?: string;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Parse `<slug>.<locale>.ts` into its parts, or `undefined` when the name is not
|
|
97
|
+
* a generated per-unit label file.
|
|
98
|
+
*
|
|
99
|
+
* Deliberately conservative in the ONE direction that matters: the locale
|
|
100
|
+
* segment must be a known `AvailableLanguage` code. A hand-authored neighbour
|
|
101
|
+
* (`index.ts`, a helper, anything whose penultimate segment is not a locale) is
|
|
102
|
+
* therefore never parsed, so it can never be named an orphan. A slug containing
|
|
103
|
+
* dots keeps them — only the LAST two dot-separated segments are structural.
|
|
104
|
+
*/
|
|
105
|
+
export declare function parseGeneratedLabelFileName(fileName: string): {
|
|
106
|
+
slug: string;
|
|
107
|
+
locale: string;
|
|
108
|
+
} | undefined;
|
|
109
|
+
/**
|
|
110
|
+
* Walk `<i18nRoot>/<bucket>/<slug>.<locale>.ts` and return every generated label
|
|
111
|
+
* file. One level deep, matching the layout `resolvePerUnitFilePath` writes.
|
|
112
|
+
*
|
|
113
|
+
* A missing root yields an empty list (a fresh application has generated
|
|
114
|
+
* nothing yet); any other filesystem error propagates, because "I could not read
|
|
115
|
+
* the directory" must never be reported to a caller as "the directory is empty"
|
|
116
|
+
* — that is the reading a prune would act on.
|
|
117
|
+
*/
|
|
118
|
+
export declare function collectGeneratedLabelFiles(i18nRoot: string): Promise<GeneratedLabelFile[]>;
|
|
119
|
+
/**
|
|
120
|
+
* Decide which generated files and lock rows are orphaned by the current plan.
|
|
121
|
+
*
|
|
122
|
+
* Pure — the caller supplies the scan and the plan, so the decision is testable
|
|
123
|
+
* without a filesystem and cannot be influenced by anything it did not receive.
|
|
124
|
+
*
|
|
125
|
+
* **Unit identity is `(bucket, slug)`, not a file name**, which is what makes one
|
|
126
|
+
* sweep cover BOTH orphan shapes the pipeline can produce. A unit's base file
|
|
127
|
+
* (`<slug>.<primaryLocale>.ts`) and every translation of it
|
|
128
|
+
* (`<slug>.<targetLocale>.ts`) share that pair, so a unit that stops being
|
|
129
|
+
* planned surfaces all of its files here at once — the translation files are not
|
|
130
|
+
* a second mechanism needing a second answer. Nothing is judged per-locale: a
|
|
131
|
+
* locale that is still on disk but no longer configured is a DIFFERENT question,
|
|
132
|
+
* and it is deliberately not answered here because the lock's `trackedLocales`
|
|
133
|
+
* only ever grows (`upsertI18nUnit` unions it) and therefore cannot serve as the
|
|
134
|
+
* denominator for "this locale was dropped".
|
|
135
|
+
*
|
|
136
|
+
* @param incompleteness Declared degradations from `planAllUnitsWithCompleteness`.
|
|
137
|
+
* Non-empty suppresses the whole verdict rather than only the suppressed
|
|
138
|
+
* buckets: a family that could not enumerate itself is also unable to promise
|
|
139
|
+
* that its units all live in the buckets it names.
|
|
140
|
+
*/
|
|
141
|
+
export declare function computeOrphanLabelArtifacts(args: {
|
|
142
|
+
plannedUnits: readonly Pick<LabellingUnit, 'id' | 'filePathHint'>[];
|
|
143
|
+
lockUnitIds: readonly string[];
|
|
144
|
+
existingFiles: readonly GeneratedLabelFile[];
|
|
145
|
+
incompleteness: readonly LabellingPlanIncompleteness[];
|
|
146
|
+
}): OrphanLabelArtifactsReport;
|
|
147
|
+
/**
|
|
148
|
+
* One operator-facing line summarising a report, for the run log. Names the
|
|
149
|
+
* artifacts rather than counting them: the whole value of a report over a delete
|
|
150
|
+
* is that a human can look at the list and recognise a file that should not be
|
|
151
|
+
* on it.
|
|
152
|
+
*/
|
|
153
|
+
export declare function describeOrphanLabelArtifacts(report: OrphanLabelArtifactsReport): string;
|
|
154
|
+
//# sourceMappingURL=orphan-label-artifacts.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orphan-label-artifacts.utils.d.ts","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/orphan-label-artifacts.utils.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,2BAA2B,EAC3B,aAAa,EACd,MAAM,iCAAiC,CAAC;AAUzC;;;;;;;;GAQG;AACH,oBAAY,2BAA2B;IACrC,yFAAyF;IACzF,QAAQ,aAAa;IACrB,qFAAqF;IACrF,wBAAwB,6BAA6B;IACrD;;;;;;OAMG;IACH,uBAAuB,4BAA4B;CACpD;AAED,+DAA+D;AAC/D,MAAM,WAAW,kBAAkB;IACjC,oEAAoE;IACpE,YAAY,EAAE,MAAM,CAAC;IACrB,yFAAyF;IACzF,MAAM,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,2BAA2B,CAAC;IACrC,6EAA6E;IAC7E,cAAc,EAAE,SAAS,2BAA2B,EAAE,CAAC;IACvD;;;;OAIG;IACH,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,qEAAqE;IACrE,iBAAiB,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,kFAAkF;IAClF,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,MAAM,GACf;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAU9C;AAED;;;;;;;;GAQG;AACH,wBAAsB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC,CA2BhG;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE;IAChD,YAAY,EAAE,SAAS,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,cAAc,CAAC,EAAE,CAAC;IACpE,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,aAAa,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAC7C,cAAc,EAAE,SAAS,2BAA2B,EAAE,CAAC;CACxD,GAAG,0BAA0B,CA2B7B;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,0BAA0B,GAAG,MAAM,CAqBvF"}
|