@wildo-ai/dev-companion 1.1.3 → 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 +192 -13
- 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 +16 -0
- 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 +17 -0
- 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 +33 -5
- package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.js +150 -40
- 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 +8 -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 +4 -9
- 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 +0 -21
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js +39 -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 +41 -2
- 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 +178 -41
- 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 +5 -0
- 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 +82 -3
- package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.js +128 -6
- 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 +82 -3
- 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 +210 -54
- 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 +27 -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 +38 -5
- 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 +49 -0
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js +95 -0
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -0
- 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 +25 -6
- 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 +82 -25
- 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 +44 -3
- 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 +346 -42
- 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 +260 -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 +7 -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 +179 -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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"labelling-planner.companion.service.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/services/labelling-planner.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,CAAC,EAAE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oBAAE,MAAM,IAAI,KAAK,CAAC,SAAS,OAAO,iDAAiD,CAAC,EAAE,CAAC,CAAC;gBACzG,qEAAqE;gBACrE,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC;YACnC,CAAC;YACD,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC;KACF,CAAC;AACJ,CAAC;AAED,SAAS,OAAO,CAAC,KAAa;IAC5B,OAAO,KAAK,CAAC,OAAO,CAAC,kBAAkB,EAAE,GAAG,CAAC,CAAC;AAChD,CAAC;AAED,SAAS,eAAe,CAAC,KAAsB;IAC7C,MAAM,GAAG,GAA2B,EAAE,CAAC;IACvC,KAAK,MAAM,CAAC,IAAI,KAAK;QAAE,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IACpE,OAAO,GAAG,CAAC;AACb,CAAC","sourcesContent":["import { inject, injectable, optional } from 'inversify';\nimport { z } from 'zod';\nimport {\n LabellingTypes,\n LabellingPolicy,\n additionalLabelsRefs,\n type LabellingUnitaryDef,\n getRegisteredComponentLabels,\n LabelAudience,\n SystemEnumName,\n CommonTimezone,\n TimeFormat,\n DateFormat,\n Month,\n AvailableLanguage,\n AvailableCountry,\n WorldRegion,\n WorldSubregion,\n AuthResponseMessageRef,\n} from '@wildo-ai/presets-components-models';\nimport { AvailableCurrency } from '@wildo-ai/zod-decorators';\nimport { customShared_ResourcesConfigurationsFactoryMap } from '@wildo-ai/platform-core-shared';\nimport {\n CoreResourceOperation,\n ErrorCustomMessageReference,\n FrontendNotificationCustomMessageRefs,\n ERROR_GUIDANCE_REFS,\n type AnyResourceConfiguration,\n type GuidanceFlowDefinition,\n} from '@wildo-ai/saas-models';\nimport {\n SAAS_SERVICE_TYPES,\n ResourcesRegistryBackendService,\n} from '@wildo-ai/saas-backend-lib';\nimport type {\n LoggerService,\n MilestoneDefinitionRegistryBackendService,\n ProductCatalogSyncBackendService,\n} from '@wildo-ai/saas-backend-lib';\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport {\n LabellingUnitCategory,\n MAX_ITEMS_PER_CHUNK,\n type LabellingUnit,\n type LabellingUnitChunk,\n type LabelKeyMeta,\n} from '../models/labelling-unit.models';\nimport { LabellingSpecContextLoaderCompanionService } from './labelling-spec-context-loader.companion.service';\nimport { ComponentLabelsBootstrapCompanionService } from './component-labels-bootstrap.companion.service';\nimport { extractResourceFieldKeys, buildEphemeralFieldKeyMeta } from '../utils/schema-fields-extractor.utils';\nimport { collectAppGuidanceKeys, collectResourceGuidanceKeys, resolveAppLevelGuidanceLabelKeys } from '../utils/guidance-keys.utils';\nimport {\n type FrontendDerivedLabelKeys,\n EMPTY_FRONTEND_DERIVED_LABEL_KEYS,\n parseFrontendDerivedLabelSnapshot,\n} from '../utils/frontend-derived-label-keys.utils';\nimport {\n ROLE_LABELLING_UNIT_FILE_PATH_HINT,\n collectRoleKeys,\n collectLifecycleKeys,\n} from '../utils/role-lifecycle-keys.utils';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { CompanionIntrospectionService } from '../../core/introspection/services/companion-introspection.companion.service';\nimport { AppFrontendType } from '@wildo-ai/saas-models';\nimport { ENGINE_PAGE_METADATA } from '@wildo-ai/saas-frontend-lib/companion';\n\n/**\n * Resource types owned by the platform-core custom-shared vocabulary\n * (`wildoApplication`, `wildoApplicationsVersions`,\n * `wildoApplication{ActorSystem,FlowSystem}Executions`,\n * `wildoApplicationActorTasks`). They live in the companion registry so the\n * executions-persistence lane can resolve their repositories — they are NOT\n * app-facing resources and must not be labellized (see the skip in\n * `planResourceUnits`). Derived from the same factory map the registry\n * union merges in (`start-companion-application.service.ts`), so the two\n * lists can never drift.\n */\nconst PLATFORM_PLANE_RESOURCE_TYPES: ReadonlySet<string> = new Set(\n Object.keys(customShared_ResourcesConfigurationsFactoryMap),\n);\n\n/**\n * Plans the labelling work as a flat list of `LabellingUnit`s.\n *\n * Responsibilities:\n * - Walk every source of labels (components registry, resource registry,\n * theme catalogs, milestones, billing, roles, lifecycle, guidance,\n * backend messages, additional refs).\n * - Group keys by unit + sub-group (so one component / one resource /\n * one theme bucket = one unit).\n * - Chunk each sub-group at `MAX_ITEMS_PER_CHUNK` so each LLM call stays\n * bounded (and the structured-output schema fits).\n * - Provide a lazy `loadSpecContext` that the orchestrator triggers\n * only when a unit is actually about to be sent to the LLM.\n *\n * This service is purely a planner — it does NOT generate, write, or\n * translate anything. The orchestrators consume `LabellingUnit[]` and\n * decide what to do (labellize / translate / skip based on the lock).\n */\n@injectable()\nexport class LabellingPlannerCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n private guidanceFlowProvider: () => ReadonlyArray<GuidanceFlowDefinition> = () => [];\n private guidanceFlowProviderRegistered = false;\n\n constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(SAAS_SERVICE_TYPES.ResourceRegistryService) private readonly resourcesRegistryService: ResourcesRegistryBackendService,\n @inject(COMPANION_SERVICE_TYPES.LabellingSpecContextLoader) private readonly specContextLoader: LabellingSpecContextLoaderCompanionService,\n @inject(COMPANION_SERVICE_TYPES.ComponentLabelsBootstrapService) private readonly componentLabelsBootstrap: ComponentLabelsBootstrapCompanionService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.IntrospectionService) private readonly introspectionService: CompanionIntrospectionService,\n @inject(SAAS_SERVICE_TYPES.MilestoneDefinitionRegistry) @optional() private readonly milestoneDefinitionRegistry?: MilestoneDefinitionRegistryBackendService,\n @inject(SAAS_SERVICE_TYPES.ProductCatalogSyncService) @optional() private readonly productCatalogSync?: ProductCatalogSyncBackendService,\n ) {\n this.logDebug = this.logger.debugByType('LabellingPlannerService');\n }\n\n /**\n * Wire the app-level guidance-flow provider (OVERRIDE owner for app-level\n * `module.guidanceFlows` labels). When an app registers a provider the planner\n * trusts it as the single source of guidance-flow keys. When NO provider is\n * registered the planner falls back to frontend-module discovery (the\n * `frontend-labels-needed-info` behavior), so app-level guidance-flow labels\n * are still generated. Onboarding-view labels always come from discovery\n * regardless — they are not part of this provider contract.\n */\n public setGuidanceFlowProvider(provider: () => ReadonlyArray<GuidanceFlowDefinition>): void {\n this.guidanceFlowProvider = provider;\n this.guidanceFlowProviderRegistered = true;\n }\n\n /**\n * Plan all units in dependency-free order.\n *\n * Hydrates the decentralized component-labels registry on first call\n * (via static `.tsx` scan, no module loading). Idempotent — subsequent\n * calls are cheap.\n */\n public async planAllUnits(): Promise<LabellingUnit[]> {\n await this.componentLabelsBootstrap.hydrateOnce();\n // Run the frontend introspection subprocess ONCE per plan; both\n // `planFrontendDerivedUnits` and `planAppGuidanceUnit` consume the snapshot.\n const frontendDerived = await this.collectFrontendDerivedLabelKeys();\n const units: LabellingUnit[] = [\n ...this.planComponentUnits(),\n ...(await this.planResourceUnits(frontendDerived)),\n ...this.planErrorsMessagesUnit(),\n ...this.planThemeUnits(),\n ...(await this.planFrontendDerivedUnits(frontendDerived)),\n ...this.planEnginePageUnits(),\n ...this.planMilestoneUnits(),\n ...this.planBillingUnit(),\n ...(await this.planRolesUnit()),\n ...this.planLifecycleUnit(),\n ...(await this.planAppGuidanceUnit(frontendDerived)),\n ...this.planAdditionalUnit(),\n ];\n this.logDebug('Planned units', {\n total: units.length,\n byCategory: countByCategory(units),\n });\n return units;\n }\n\n // ================================================================\n // Frontend-derived label families (composite views, navigation views,\n // sidebar sections).\n //\n // These families are authored ENTIRELY in the frontend app\n // (composite/full-custom/flows-actors view components, the sidebar\n // `contentSections` config + per-module `sidebarSections`). Their label keys\n // can only be computed by loading the frontend modules — a Vite/`.ts` source\n // graph the companion MAIN process cannot import. The\n // `frontend-labels-needed-info` introspection behavior runs in the companion\n // SUBPROCESS (the one with the Node-bridge loader) and is the single source of\n // truth for frontend-derived label keys — see\n // `frontend-labels-needed-info.behavior.ts`.\n //\n // This method consumes ONLY the three frontend-ONLY namespaces below from the\n // snapshot's `appSpecificLabelKeys`. `resources.*` and resource-scoped\n // `guidance.*` are ALSO present in `appSpecificLabelKeys` but are DROPPED here\n // — they are materialized by `planResourceUnits` off the backend resources\n // registry (taking them here too would double-generate). App-level guidance\n // flows and onboarding views arrive on dedicated snapshot fields\n // (`appLevelGuidanceFlowLabelKeys` / `onboardingViewLabelKeys`) and are owned\n // by `planAppGuidanceUnit`, NOT here. `engine.pages.*` is framework-fixed and\n // sourced by `planEnginePageUnits`.\n // ================================================================\n\n private async planFrontendDerivedUnits(derived: FrontendDerivedLabelKeys): Promise<LabellingUnit[]> {\n const frontendKeys = derived.appSpecificLabelKeys;\n if (frontendKeys.length === 0) return [];\n\n const families: Array<{\n category: LabellingUnitCategory;\n id: string;\n displayLabel: string;\n bucket: string;\n prefix: string;\n keyParams?: Record<string, string[]>;\n }> = [\n {\n category: LabellingUnitCategory.COMPOSITE_VIEW,\n id: 'composite-views:root',\n displayLabel: 'composite views',\n bucket: 'composite_views',\n prefix: `${LabellingTypes.COMPOSITE_VIEWS}.`,\n },\n {\n category: LabellingUnitCategory.VIEW,\n id: 'views:root',\n displayLabel: 'navigation views',\n bucket: 'views',\n prefix: `${LabellingTypes.VIEWS}.`,\n // Custom execution-view labels carry interpolation params; thread them so\n // the labellize prompt enforces the placeholder contract (mirrors the\n // components bucket). chunkKeys applies each entry only to its own key.\n keyParams: derived.viewLabelParams,\n },\n {\n category: LabellingUnitCategory.SIDEBAR_SECTIONS_ROOT,\n id: 'sidebar-sections:root',\n displayLabel: 'sidebar sections',\n bucket: 'sidebar_sections',\n prefix: `${LabellingTypes.SIDEBAR_SECTIONS}.`,\n },\n {\n // Settings Hub rail labels — the application's authored categories and\n // placed sections.\n //\n // `keyMeta` comes from the SUBPROCESS (`derived.settingsHubKeyMeta`),\n // not from a spec registry like its three siblings: the authored wording\n // lives in the application's own `settings-hub.config.ts` and in the\n // engine destination catalog, neither of which the spec loader reads.\n // Threading it is not cosmetic — a generated key WINS over the authored\n // fallback in `tSettingsHubSection`, so a prompt working from the ref\n // alone silently REPLACES the rail's wording (measured on Wonder CRM\n // 2026-08-30: \"User provisioning\" → \"SCIM\", \"Audit streaming\" → \"SIEM\").\n category: LabellingUnitCategory.SETTINGS_HUB_ROOT,\n id: 'settings-hub:root',\n displayLabel: 'settings hub sections',\n bucket: 'settings_hub',\n prefix: `${LabellingTypes.SETTINGS_HUB}.`,\n },\n ];\n\n const units: LabellingUnit[] = [];\n for (const family of families) {\n const keys = frontendKeys.filter((key) => key.startsWith(family.prefix));\n if (keys.length === 0) continue;\n // Composite-view + non-composite-view (full-custom / flows-actors / chart /\n // execution) + sidebar-section title/description keys have authored per-slot\n // purposes in their spec registries — project them so the labellize prompt\n // carries real wording intent instead of the LLM inventing filler from the\n // ref alone.\n const keyMeta = family.category === LabellingUnitCategory.COMPOSITE_VIEW\n ? await this.specContextLoader.projectCompositeViewKeyMeta(keys)\n : family.category === LabellingUnitCategory.VIEW\n ? await this.specContextLoader.projectViewKeyMeta(keys)\n : family.category === LabellingUnitCategory.SIDEBAR_SECTIONS_ROOT\n ? await this.specContextLoader.projectSidebarSectionKeyMeta(keys)\n : family.category === LabellingUnitCategory.SETTINGS_HUB_ROOT\n ? Object.fromEntries(\n keys\n .filter(key => derived.settingsHubKeyMeta?.[key] !== undefined)\n .map(key => [key, { purpose: `Rail label for this settings destination. The application currently words it \"${derived.settingsHubKeyMeta?.[key]}\" — preserve that meaning and register; do not substitute the technical ref or an acronym.` }]),\n )\n : undefined;\n units.push({\n category: family.category,\n id: family.id,\n displayLabel: family.displayLabel,\n filePathHint: { bucket: family.bucket, slug: 'root' },\n chunks: chunkKeys(family.id, keys, family.keyParams, keyMeta),\n // Keys carry enough semantics (translationRef / section ref) for the LLM\n // to label from the identifier even when no keyMeta is projected.\n loadSpecContext: async () => undefined,\n });\n }\n return units;\n }\n\n /**\n * Invoke the `frontend-labels-needed-info` introspection behavior against the\n * app frontend service and return its full key snapshot: `appSpecificLabelKeys`\n * plus the two dedicated app-level guidance fields\n * (`appLevelGuidanceFlowLabelKeys`, `onboardingViewLabelKeys`).\n *\n * Returns an EMPTY snapshot (with a logged warning) when there is no SAAS_APP\n * frontend service or the subprocess fails/returns a malformed payload —\n * frontend-derived labels are best-effort and must never take down the whole\n * plan (which also feeds backend-only label generation). Payload shaping +\n * stale-subprocess tolerance lives in `parseFrontendDerivedLabelSnapshot`.\n */\n private async collectFrontendDerivedLabelKeys(): Promise<FrontendDerivedLabelKeys> {\n const appFrontendServiceKey = Object.entries(this.companionContext.servicesByKey)\n .find(([, service]) => service.frontendType === AppFrontendType.SAAS_APP)?.[0];\n\n if (!appFrontendServiceKey) {\n this.logDebug('No SAAS_APP frontend service found; skipping frontend-derived label keys.');\n return EMPTY_FRONTEND_DERIVED_LABEL_KEYS;\n }\n\n const result = await this.introspectionService.requestInfo({\n serviceKey: appFrontendServiceKey,\n behavior: 'frontend-labels-needed-info',\n });\n\n if (!result.success) {\n const message = 'error' in result ? result.error.message : 'unknown error';\n this.logger.warn(\n `frontend-labels-needed-info introspection failed; frontend-derived labels skipped: ${message}`,\n { serviceKey: appFrontendServiceKey },\n );\n return EMPTY_FRONTEND_DERIVED_LABEL_KEYS;\n }\n\n const snapshot = parseFrontendDerivedLabelSnapshot(result.data);\n if (!snapshot) {\n this.logger.warn('frontend-labels-needed-info returned no appSpecificLabelKeys array; frontend-derived labels skipped.');\n return EMPTY_FRONTEND_DERIVED_LABEL_KEYS;\n }\n\n return snapshot;\n }\n\n // ================================================================\n // Components — one unit per FrontendComponentType\n // ================================================================\n\n private planComponentUnits(): LabellingUnit[] {\n const registry = getRegisteredComponentLabels();\n\n const units: LabellingUnit[] = [];\n for (const [componentType, defs] of registry.entries()) {\n const keys = defs\n .map((d) => (typeof d === 'string' ? d : d?.ref))\n .filter((k): k is string => typeof k === 'string' && k.length > 0)\n .map((subKey) => `${LabellingTypes.COMPONENTS}.${componentType}.${subKey}`);\n\n if (keys.length === 0) continue;\n\n // Thread each label's DECLARED interpolation params (full key → param\n // names) so the labellize prompt can instruct the agent to emit EXACTLY\n // those single-brace placeholders (root-cause fix for the historical\n // `{value}` drift) and the post-generation validator can flag mismatches.\n // Object-form params (`{ key, isLabelled, … }`) collapse to their `key`;\n // plain-string defs and defs without params contribute no entry.\n const keyParams: Record<string, string[]> = {};\n for (const d of defs) {\n if (typeof d === 'string' || !d?.ref || !d.params || d.params.length === 0) continue;\n const paramNames = d.params\n .map((p) => (typeof p === 'string' ? p : p?.key))\n .filter((p): p is string => typeof p === 'string' && p.length > 0);\n if (paramNames.length === 0) continue;\n keyParams[`${LabellingTypes.COMPONENTS}.${componentType}.${d.ref}`] = paramNames;\n }\n\n // Thread the enriched per-key SEMANTIC metadata (purpose / kind / per-param\n // meaning / notes) authored in the component's `.labels.ts` def, so the\n // labellize + translate prompts get authoritative per-key context instead\n // of name-inference. Sparse: only keys that authored metadata get an entry.\n const keyMeta: Record<string, LabelKeyMeta> = {};\n for (const d of defs) {\n if (typeof d === 'string' || !d?.ref) continue;\n const paramMeanings: Record<string, string> = {};\n for (const p of d.params ?? []) {\n if (typeof p !== 'string' && p?.key && p.meaning) paramMeanings[p.key] = p.meaning;\n }\n const meta: LabelKeyMeta = {\n ...(d.purpose ? { purpose: d.purpose } : {}),\n ...(d.kind ? { kind: d.kind } : {}),\n ...(Object.keys(paramMeanings).length > 0 ? { paramMeanings } : {}),\n ...(d.notes && d.notes.length > 0 ? { notes: d.notes } : {}),\n };\n if (Object.keys(meta).length > 0) {\n keyMeta[`${LabellingTypes.COMPONENTS}.${componentType}.${d.ref}`] = meta;\n }\n }\n\n const registeredSubKeys = defs\n .map((d) => (typeof d === 'string' ? d : d?.ref))\n .filter((s): s is string => typeof s === 'string' && s.length > 0);\n\n units.push({\n category: LabellingUnitCategory.COMPONENT,\n id: `component:${componentType}`,\n displayLabel: componentType,\n filePathHint: { bucket: 'components', slug: slugify(componentType) },\n chunks: chunkKeys(componentType, keys, keyParams, keyMeta),\n loadSpecContext: () => this.specContextLoader.loadComponentContext(componentType, registeredSubKeys),\n });\n }\n return units;\n }\n\n // ================================================================\n // Resources — one unit per resource type. Sub-groups: header / operations\n // / emptyState / sections / wizardSteps / groups / fields-block-N.\n // Resource-attached guidance is folded into the resource unit.\n // ================================================================\n\n private async planResourceUnits(frontendDerived: FrontendDerivedLabelKeys): Promise<LabellingUnit[]> {\n const registry = this.resourcesRegistryService.getResourcesRegistry();\n const allResources = (registry.resourceConfigurations || {}) as Record<string, AnyResourceConfiguration>;\n\n const headerDefs = readDefs(LabellingPolicy[LabellingTypes.RESOURCES], 'header');\n const operationsDefs = readDefs(LabellingPolicy[LabellingTypes.RESOURCES], 'operations');\n const emptyStateDefs = readDefs(LabellingPolicy[LabellingTypes.RESOURCES], 'emptyState');\n const sectionDefs = readDefs(LabellingPolicy[LabellingTypes.RESOURCES_SECTIONS], 'section');\n const wizardStepDefs = readDefs(LabellingPolicy[LabellingTypes.RESOURCES_WIZARD_STEPS], 'section');\n const fieldDisplayDefs = readDefs(LabellingPolicy[LabellingTypes.RESOURCES_FIELDS], 'display');\n const fieldEditDefs = readDefs(LabellingPolicy[LabellingTypes.RESOURCES_FIELDS], 'edit');\n\n const units: LabellingUnit[] = [];\n\n for (const [resourceType, resourceConfig] of Object.entries(allResources)) {\n // Platform-plane vocabulary (`wildoApplication*`) is registry-present\n // for the EXECUTIONS-PERSISTENCE lane only (the companion registry is\n // backend-API vocabulary ∪ platform-core persistence vocabulary since\n // 2026-07-03), NOT for app labelling: these resources have no\n // app-frontend surface, so emitting `resources.wildoApplication*`\n // units would push platform-internal keys into the app's label files.\n // Skip by PROVENANCE (membership in the platform-core custom-shared\n // factory map) rather than by operation shape — `wildoApplication` /\n // `wildoApplicationsVersions` carry API_CALL variants, but that API is\n // the platform manager's, never this app's frontend.\n if (PLATFORM_PLANE_RESOURCE_TYPES.has(resourceType)) {\n continue;\n }\n const subgroups: { id: string; keys: string[] }[] = [];\n\n const headerKeys = headerDefs.map((sub) => `${LabellingTypes.RESOURCES}.${resourceType}.header.${sub}`);\n if (headerKeys.length) subgroups.push({ id: 'header', keys: headerKeys });\n\n const opIds = Array.from(new Set((resourceConfig.operations || []).map((op) => String(op.operationIdentifier))));\n // Per-operation description OPT-IN. The frontend ui-behavior is the ONLY source of\n // `operationFrontendConfig.hasDescription` (the planner main process never sees\n // `operationFrontendConfig` — it carries React components). The subprocess surfaces\n // it via the dedicated `operationDescriptionOptIns` snapshot field (resourceType →\n // opIds). The policy (`operationsDefs`) stays title-only; each flagged op ALSO gets a\n // `.description` key here so it flows through `projectResourceKeyMeta` below for\n // spec-driven copy quality. This is the bridge that lets engine resources (e.g.\n // organizations) — whose ui-behavior the main process cannot import — opt operations\n // into a description. Emitted once, only by the planner (the frontend mirror's\n // `resources.*` keys are dropped), so nothing double-generates.\n const descriptionOptInOpIds = new Set(frontendDerived.operationDescriptionOptIns[resourceType] ?? []);\n const opKeys: string[] = [];\n for (const opId of opIds) {\n for (const sub of operationsDefs) {\n opKeys.push(`${LabellingTypes.RESOURCES}.${resourceType}.operations.${opId}.${sub}`);\n }\n if (descriptionOptInOpIds.has(opId)) {\n opKeys.push(`${LabellingTypes.RESOURCES}.${resourceType}.operations.${opId}.description`);\n }\n }\n if (opKeys.length) subgroups.push({ id: 'operations', keys: opKeys });\n\n // Empty-state labels apply ONLY to resources that render a collection view (where an\n // empty state can appear) — i.e. resources with a LIST or SEARCH operation. Emitting\n // them for non-collection resources (singletons, nested-only sub-resources, junctions)\n // is pure waste, so gate the whole subgroup on a collection op. Within it, gate per\n // sub-key:\n // - title / description → always (both fall back to generic component labels in\n // `ResourceEmptyState`, so collection resources keep their\n // resource-specific copy = quality preserved)\n // - primaryActionLabel → only if the resource has a CREATE op (the default empty-state\n // primary action is CREATE; falls back to `createFirst` otherwise)\n // - secondaryActionLabel → only if the frontend declares a `secondaryAction` (the one\n // empty-state label with NO fallback; frontend-only fact bridged\n // via `emptyStateSecondaryActionRefs`)\n // All gates are fail-safe: a wrong skip degrades to a generic fallback, never a broken label.\n const hasCollectionOp =\n opIds.includes(CoreResourceOperation.LIST) || opIds.includes(CoreResourceOperation.SEARCH);\n if (hasCollectionOp) {\n const hasCreateOp = opIds.includes(CoreResourceOperation.CREATE);\n const hasSecondaryActionLabel = frontendDerived.emptyStateSecondaryActionRefs.includes(resourceType);\n const emptyStateKeys = emptyStateDefs\n .filter((sub) => {\n if (sub === 'primaryActionLabel') return hasCreateOp;\n if (sub === 'secondaryActionLabel') return hasSecondaryActionLabel;\n return true;\n })\n .map((sub) => `${LabellingTypes.RESOURCES}.${resourceType}.emptyState.${sub}`);\n if (emptyStateKeys.length) subgroups.push({ id: 'emptyState', keys: emptyStateKeys });\n }\n\n const layoutRefs = (resourceConfig as { frontendConfiguration?: { layout?: { refs?: { sections?: string[]; wizardSteps?: string[]; groups?: string[] } } } })\n .frontendConfiguration?.layout?.refs;\n\n const sectionKeys: string[] = [];\n for (const sectionRef of layoutRefs?.sections ?? []) {\n for (const sub of sectionDefs) {\n sectionKeys.push(`${LabellingTypes.RESOURCES}.${resourceType}.sections.${sectionRef}.${sub}`);\n }\n }\n if (sectionKeys.length) subgroups.push({ id: 'sections', keys: sectionKeys });\n\n const wizardKeys: string[] = [];\n for (const stepRef of layoutRefs?.wizardSteps ?? []) {\n for (const sub of wizardStepDefs) {\n wizardKeys.push(`${LabellingTypes.RESOURCES}.${resourceType}.wizardSteps.${stepRef}.${sub}`);\n }\n }\n if (wizardKeys.length) subgroups.push({ id: 'wizardSteps', keys: wizardKeys });\n\n const groupKeys: string[] = (layoutRefs?.groups ?? []).map(\n (gRef) => `${LabellingTypes.RESOURCES}.${resourceType}.groups.${gRef}.title`,\n );\n if (groupKeys.length) subgroups.push({ id: 'groups', keys: groupKeys });\n\n const fieldKeys = extractResourceFieldKeys({\n resourceType,\n resourceConfig,\n displayDefs: fieldDisplayDefs,\n editDefs: fieldEditDefs,\n });\n if (fieldKeys.length) subgroups.push({ id: 'fields', keys: fieldKeys });\n\n // Resource-attached guidance flows fold in under `guidance` subgroup\n // (resource-scoped). Root-level guidance lives in its own root unit.\n const resourceGuidanceKeys = collectResourceGuidanceKeys(resourceType, resourceConfig);\n if (resourceGuidanceKeys.length) subgroups.push({ id: 'guidance', keys: resourceGuidanceKeys });\n\n // Resource-attached milestones (milestones whose definition references\n // this resource) will be folded into the unit by Phase 2 once the\n // milestone-definition cross-index is exposed by the registry.\n\n // Project per-key meaning (kind + purpose) from the resource spec onto its\n // label keys — the resource analogue of the component `.labels.ts` keyMeta.\n const allKeys = subgroups.flatMap((sg) => sg.keys);\n const keyMeta = await this.specContextLoader.projectResourceKeyMeta(resourceType, allKeys);\n // Ephemeral fields (one-time secrets like an API key's `plainKey`) live only\n // in a customResponseDto, so the spec-driven projection above can't see them.\n // Project framework-general keyMeta from the `.isEphemeral()` marker itself —\n // a user-facing label (\"API key\", not \"Plain key\") + a \"copy it now, shown\n // once\" description — merged OVER the heuristic for those keys.\n Object.assign(keyMeta, buildEphemeralFieldKeyMeta({ resourceType, resourceConfig }));\n const chunks = subgroupsToChunks(`resource:${resourceType}`, subgroups, keyMeta);\n if (chunks.length === 0) continue;\n\n units.push({\n category: LabellingUnitCategory.RESOURCE,\n id: `resource:${resourceType}`,\n displayLabel: resourceType,\n filePathHint: { bucket: 'resources', slug: slugify(resourceType) },\n chunks,\n loadSpecContext: () => this.specContextLoader.loadResourceContext(resourceType),\n });\n }\n return units;\n }\n\n // ================================================================\n // Themes — grouped buckets (errors_messages, errors_guidance, etc.)\n // ================================================================\n\n private planThemeUnits(): LabellingUnit[] {\n // `errors_guidance` is the one theme bucket that declares interpolation\n // params (e.g. `retryCountdown → [\"seconds\"]`); thread them so regeneration\n // seeds the placeholder and the drift validator covers it like components.\n const errorsGuidance = this.collectErrorsGuidanceKeys();\n // NOTE: `errors_messages` is intentionally NOT in this generic theme loop.\n // It has its own `planErrorsMessagesUnit()` so it can project per-ref\n // `purpose` + `audience` from the error-message specs (the theme loop is\n // deliberately audience-less / keyMeta-less for the other buckets).\n const themes: { themeId: string; keys: string[]; keyParams?: Record<string, string[]> }[] = [\n { themeId: 'errors_guidance', keys: errorsGuidance.keys, keyParams: errorsGuidance.keyParams },\n { themeId: 'errors_validation', keys: this.collectErrorsValidationKeys() },\n { themeId: 'notifications_custom', keys: this.collectNotificationsCustomKeys() },\n { themeId: 'system_enums', keys: this.collectSystemEnumsKeys() },\n { themeId: 'backend_auth_messages', keys: this.collectBackendAuthMessagesKeys() },\n { themeId: 'backend_sms', keys: this.collectBackendSmsKeys() },\n ];\n\n const units: LabellingUnit[] = [];\n for (const { themeId, keys, keyParams } of themes) {\n if (keys.length === 0) continue;\n units.push({\n category: themeId.startsWith('backend_') ? LabellingUnitCategory.BACKEND_MESSAGES : LabellingUnitCategory.THEME,\n id: `theme:${themeId}`,\n displayLabel: themeId,\n filePathHint: { bucket: 'themes', slug: themeId },\n chunks: chunkKeys(themeId, keys, keyParams),\n loadSpecContext: async () => undefined,\n });\n }\n return units;\n }\n\n // ================================================================\n // Engine pages — one root unit listing the `i18nKey` of every engine\n // page enumerated in `ENGINE_PAGE_METADATA` (HOME, SECURITY_SETTINGS, …).\n //\n // Engine pages are framework-owned navigation targets; the metadata\n // record is the canonical source of truth for both routing and label\n // resolution (see `launcher-items.frontend.schemas.ts:ENGINE_PAGE_METADATA`).\n // The runtime label lookup uses `ctx.t(metadata.i18nKey)`, and the\n // i18n key itself is already a full dotted path (e.g.\n // `engine.pages.home`) — emit `<i18nKey>.title` per page.\n // ================================================================\n\n private planEnginePageUnits(): LabellingUnit[] {\n const entries = Object.values(ENGINE_PAGE_METADATA);\n if (entries.length === 0) return [];\n\n const keys: string[] = [];\n for (const metadata of entries) {\n keys.push(`${metadata.i18nKey}.title`);\n }\n\n return [{\n category: LabellingUnitCategory.ENGINE_PAGES_ROOT,\n id: 'engine-pages:root',\n displayLabel: 'engine pages',\n filePathHint: { bucket: 'engine_pages', slug: 'root' },\n chunks: chunkKeys('engine-pages', keys),\n // Engine pages have stable, app-agnostic semantics (Home, Security\n // Settings, …). The keys alone are enough for label generation;\n // rich context could be added later if app-specific tone is required.\n loadSpecContext: async () => undefined,\n }];\n }\n\n private planMilestoneUnits(): LabellingUnit[] {\n if (!this.milestoneDefinitionRegistry) return [];\n const definitions = this.milestoneDefinitionRegistry.getAllDefinitions();\n if (definitions.length === 0) return [];\n\n const keys: string[] = [];\n const uniqueCategories = new Set<string>();\n for (const def of definitions) {\n keys.push(`${LabellingTypes.MILESTONES}.${def.identifier}.title`);\n if (def.labels?.description) keys.push(`${LabellingTypes.MILESTONES}.${def.identifier}.description`);\n if (def.category) uniqueCategories.add(def.category);\n keys.push(`${LabellingTypes.MILESTONES}.${def.identifier}.reward.title`);\n keys.push(`${LabellingTypes.MILESTONES}.${def.identifier}.reward.message`);\n }\n for (const cat of uniqueCategories) {\n keys.push(`${LabellingTypes.MILESTONES}.categories.${cat}.label`);\n }\n\n return [{\n category: LabellingUnitCategory.MILESTONES_ROOT,\n id: 'milestones:root',\n displayLabel: 'milestones',\n filePathHint: { bucket: 'milestones', slug: 'root' },\n chunks: chunkKeys('milestones', keys),\n loadSpecContext: async () => undefined,\n }];\n }\n\n private planBillingUnit(): LabellingUnit[] {\n if (!this.productCatalogSync) return [];\n const definitions = this.productCatalogSync.getProductDefinitions();\n if (definitions.length === 0) return [];\n\n const keys: string[] = [];\n const featureKeys = new Set<string>();\n const limitKeys = new Set<string>();\n const creditPoolKeys = new Set<string>();\n\n for (const def of definitions) {\n keys.push(`${LabellingTypes.BILLING_PRODUCTS}.${def.key}.name`);\n keys.push(`${LabellingTypes.BILLING_PRODUCTS}.${def.key}.description`);\n keys.push(`${LabellingTypes.BILLING_PRODUCTS}.${def.key}.tagline`);\n for (const f of def.grantedFeatures ?? []) featureKeys.add(f);\n for (const l of Object.keys(def.grantedLimits ?? {})) limitKeys.add(l);\n const pool = def.purchaseConfig?.creditPoolKey;\n if (pool) creditPoolKeys.add(pool);\n }\n for (const f of featureKeys) {\n keys.push(`${LabellingTypes.BILLING_FEATURES}.${f}.label`);\n keys.push(`${LabellingTypes.BILLING_FEATURES}.${f}.description`);\n }\n for (const l of limitKeys) {\n keys.push(`${LabellingTypes.BILLING_LIMITS}.${l}.label`);\n keys.push(`${LabellingTypes.BILLING_LIMITS}.${l}.description`);\n keys.push(`${LabellingTypes.BILLING_LIMITS}.${l}.unit`);\n }\n for (const p of creditPoolKeys) {\n keys.push(`${LabellingTypes.BILLING_CREDIT_POOLS}.${p}.name`);\n keys.push(`${LabellingTypes.BILLING_CREDIT_POOLS}.${p}.description`);\n keys.push(`${LabellingTypes.BILLING_CREDIT_POOLS}.${p}.unit`);\n }\n\n return [{\n category: LabellingUnitCategory.BILLING,\n id: 'billing:root',\n displayLabel: 'billing',\n filePathHint: { bucket: 'billing', slug: 'root' },\n chunks: chunkKeys('billing', keys),\n loadSpecContext: async () => undefined,\n }];\n }\n\n /**\n * `errors_messages` theme unit — split out of the generic theme loop so it\n * can project per-ref `purpose` + `audience` from the authored\n * error-message specs (the errors-side twin of `planRolesUnit`). User-facing\n * error copy is then generated from intent instead of guessed from the bare\n * key string; internal refs (no spec) fall back to token-only generation.\n * Keeps the same unit id / output file (`themes/errors_messages.<locale>.ts`)\n * as before, so the lock + served bundle location are unchanged.\n */\n private planErrorsMessagesUnit(): LabellingUnit[] {\n const keys = this.collectErrorsMessagesKeys();\n if (keys.length === 0) return [];\n const keyMeta = this.specContextLoader.projectErrorMessageKeyMeta(keys);\n return [{\n category: LabellingUnitCategory.THEME,\n id: 'theme:errors_messages',\n displayLabel: 'errors_messages',\n filePathHint: { bucket: 'themes', slug: 'errors_messages' },\n chunks: chunkKeys('errors_messages', keys, undefined, keyMeta),\n // Most authored error messages are consumer-facing, so default the unit\n // to the END_USER register; per-ref ADMIN / DEVELOPER references override\n // it through their own `keyMeta.audience`.\n loadSpecContext: async () => ({ audience: LabelAudience.END_USER }),\n }];\n }\n\n private async planRolesUnit(): Promise<LabellingUnit[]> {\n const keys = collectRoleKeys();\n if (keys.length === 0) return [];\n // Project per-role `label` / `description` keyMeta from the authored role\n // specs. Engine baseline + app-defined roles share one flat namespace, so\n // custom app roles (e.g. `CUSTOM_APP_MANAGER`) get accurate, spec-driven\n // labels instead of token-only generation. See `projectRoleKeyMeta`.\n const keyMeta = await this.specContextLoader.projectRoleKeyMeta(keys);\n return [{\n category: LabellingUnitCategory.ROLES,\n id: 'roles:root',\n displayLabel: 'roles',\n filePathHint: ROLE_LABELLING_UNIT_FILE_PATH_HINT,\n chunks: chunkKeys('roles', keys, undefined, keyMeta),\n // Roles are an access-control / permission vocabulary surfaced in\n // member-management, role pickers, and permission chips — an operator\n // concern. Calibrate the generator to the ADMIN register (clean console\n // terms + authority-focused descriptions) rather than the END_USER default.\n loadSpecContext: async () => ({ audience: LabelAudience.ADMIN }),\n }];\n }\n\n private planLifecycleUnit(): LabellingUnit[] {\n const keys = collectLifecycleKeys();\n if (keys.length === 0) return [];\n return [{\n category: LabellingUnitCategory.LIFECYCLE,\n id: 'lifecycle:root',\n displayLabel: 'lifecycle',\n filePathHint: { bucket: 'lifecycle', slug: 'root' },\n chunks: chunkKeys('lifecycle', keys),\n loadSpecContext: async () => undefined,\n }];\n }\n\n /**\n * App-level guidance-namespace unit (`guidance.<ref>.*`) covering BOTH:\n * - app-level guidance flows (`module.guidanceFlows`): sourced from the\n * registered `setGuidanceFlowProvider` when present (the OVERRIDE owner),\n * else from frontend-module discovery (`appLevelGuidanceFlowLabelKeys`);\n * - onboarding views (`module.onboardingViews`): ALWAYS from frontend-module\n * discovery (`onboardingViewLabelKeys`) — they share the `guidance.*`\n * namespace but have no provider contract, so the provider override must\n * never suppress them.\n *\n * Resource-scoped guidance lives inside the corresponding resource unit\n * (`planResourceUnits`), NOT here. See `resolveAppLevelGuidanceLabelKeys` for\n * the override + de-duplication rule.\n */\n private async planAppGuidanceUnit(derived: FrontendDerivedLabelKeys): Promise<LabellingUnit[]> {\n const keys = resolveAppLevelGuidanceLabelKeys({\n guidanceFlowProviderRegistered: this.guidanceFlowProviderRegistered,\n providerGuidanceFlowKeys: collectAppGuidanceKeys(this.guidanceFlowProvider()),\n discoveredGuidanceFlowKeys: derived.appLevelGuidanceFlowLabelKeys,\n onboardingViewKeys: derived.onboardingViewLabelKeys,\n });\n if (keys.length === 0) return [];\n // App-level onboarding views + guidance flows author per-slot + per-element\n // purposes in their specs (keyed `app.<ref>`). Project them onto the bare-ref\n // `guidance.<ref>.*` keys so the modal/flow copy reflects authored intent\n // instead of generic filler (\"Utilize AI to enhance your workflow\").\n const keyMeta = await this.specContextLoader.projectGuidanceKeyMeta(keys);\n return [{\n category: LabellingUnitCategory.GUIDANCE_ROOT,\n id: 'guidance:root',\n displayLabel: 'guidance',\n filePathHint: { bucket: 'guidance', slug: 'root' },\n chunks: chunkKeys('guidance', keys, undefined, keyMeta),\n loadSpecContext: async () => undefined,\n }];\n }\n\n private planAdditionalUnit(): LabellingUnit[] {\n const keys = [...additionalLabelsRefs];\n if (keys.length === 0) return [];\n return [{\n category: LabellingUnitCategory.ADDITIONAL,\n id: 'additional:root',\n displayLabel: 'additional',\n filePathHint: { bucket: 'themes', slug: 'additional' },\n chunks: chunkKeys('additional', keys),\n loadSpecContext: async () => undefined,\n }];\n }\n\n // ================================================================\n // Theme key collectors\n // ================================================================\n\n private collectErrorsMessagesKeys(): string[] {\n const sectionConfig = LabellingPolicy[LabellingTypes.ERRORS_MESSAGES] as Record<string, LabellingUnitaryDef[]>;\n const displayDefs = readDefs(sectionConfig as unknown as Record<string, LabellingUnitaryDef[]>, 'display');\n const keys: string[] = [];\n for (const ref of Object.values(ErrorCustomMessageReference) as string[]) {\n for (const sub of displayDefs) {\n keys.push(`${LabellingTypes.ERRORS_MESSAGES}.${ref}.${sub}`);\n }\n }\n return keys;\n }\n\n private collectErrorsGuidanceKeys(): { keys: string[]; keyParams: Record<string, string[]> } {\n // Per-field declared params live in `LabellingPolicy[ERRORS_GUIDANCE].display`\n // (e.g. `retryCountdown → [\"seconds\"]`); `ERROR_GUIDANCE_REFS` only lists\n // which fields each ref needs. Build a field→params map, then attach it to\n // every `errors_guidance.<ref>.<field>` key whose field declares params.\n const displayDefs =\n (LabellingPolicy[LabellingTypes.ERRORS_GUIDANCE] as Record<string, LabellingUnitaryDef[]> | undefined)?.['display'] ?? [];\n const fieldParams: Record<string, string[]> = {};\n for (const def of displayDefs) {\n if (typeof def === 'string' || !def?.ref || !def.params || def.params.length === 0) continue;\n const params = def.params\n .map((p) => (typeof p === 'string' ? p : p?.key))\n .filter((p): p is string => typeof p === 'string' && p.length > 0);\n if (params.length > 0) fieldParams[def.ref] = params;\n }\n\n const keys: string[] = [];\n const keyParams: Record<string, string[]> = {};\n for (const [ref, fields] of Object.entries(ERROR_GUIDANCE_REFS)) {\n for (const field of fields) {\n const key = `${LabellingTypes.ERRORS_GUIDANCE}.${ref}.${field}`;\n keys.push(key);\n const params = fieldParams[field];\n if (params) keyParams[key] = params;\n }\n }\n return { keys, keyParams };\n }\n\n private collectErrorsValidationKeys(): string[] {\n const sectionConfig = LabellingPolicy[LabellingTypes.ERRORS_VALIDATION] as Record<string, LabellingUnitaryDef[]> | undefined;\n if (!sectionConfig) return [];\n const keys: string[] = [];\n for (const issueCode of Object.keys(sectionConfig)) {\n for (const def of sectionConfig[issueCode] || []) {\n const sub = typeof def === 'string' ? def : def?.ref;\n if (sub) keys.push(`${LabellingTypes.ERRORS_VALIDATION}.${issueCode}.${sub}`);\n }\n }\n return keys;\n }\n\n private collectNotificationsCustomKeys(): string[] {\n const keys: string[] = [];\n const seen = new Set<string>();\n const registry = this.resourcesRegistryService.getResourcesRegistry();\n const allResources = (registry.resourceConfigurations || {}) as Record<string, AnyResourceConfiguration>;\n\n for (const resourceConfig of Object.values(allResources)) {\n for (const op of resourceConfig.operations || []) {\n const notifs = (op as { userNotifications?: Array<{ channel: string; identifier: string; nextStep?: unknown }> }).userNotifications;\n if (!notifs) continue;\n for (const n of notifs) {\n if (n.channel !== 'front_end_success') continue;\n if (!n.identifier || seen.has(n.identifier)) continue;\n seen.add(n.identifier);\n keys.push(`${LabellingTypes.NOTIFICATIONS_CUSTOM}.${n.identifier}.msg`);\n if (n.nextStep) keys.push(`${LabellingTypes.NOTIFICATIONS_CUSTOM}.${n.identifier}.nextStepLabel`);\n }\n }\n }\n\n const sectionConfig = LabellingPolicy[LabellingTypes.NOTIFICATIONS_CUSTOM] as Record<string, LabellingUnitaryDef[]> | undefined;\n const displayDefs = readDefs(sectionConfig as unknown as Record<string, LabellingUnitaryDef[]>, 'display');\n for (const ref of Object.values(FrontendNotificationCustomMessageRefs) as string[]) {\n if (seen.has(ref)) continue;\n seen.add(ref);\n for (const sub of displayDefs) {\n keys.push(`${LabellingTypes.NOTIFICATIONS_CUSTOM}.${ref}.${sub}`);\n }\n }\n return keys;\n }\n\n private collectSystemEnumsKeys(): string[] {\n const prefix = LabellingTypes.SYSTEM_ENUMS;\n const keys: string[] = [];\n const push = (enumName: SystemEnumName, values: Iterable<string>) => {\n for (const v of values) keys.push(`${prefix}.${enumName}.${v}`);\n };\n push(SystemEnumName.COMMON_TIMEZONE, Object.values(CommonTimezone));\n push(SystemEnumName.TIME_FORMAT, Object.values(TimeFormat));\n push(SystemEnumName.DATE_FORMAT, Object.values(DateFormat));\n push(SystemEnumName.MONTH, Object.values(Month));\n push(SystemEnumName.AVAILABLE_LANGUAGE, Object.values(AvailableLanguage));\n push(SystemEnumName.AVAILABLE_CURRENCY, Object.values(AvailableCurrency));\n push(SystemEnumName.WORLD_REGION, Object.values(WorldRegion));\n push(SystemEnumName.WORLD_SUBREGION, Object.values(WorldSubregion));\n push(SystemEnumName.AVAILABLE_COUNTRY, Object.values(AvailableCountry));\n return keys;\n }\n\n private collectBackendAuthMessagesKeys(): string[] {\n const sectionConfig = LabellingPolicy[LabellingTypes.BACKEND_AUTH_MESSAGES] as Record<string, LabellingUnitaryDef[]>;\n const displayDefs = readDefs(sectionConfig as unknown as Record<string, LabellingUnitaryDef[]>, 'display');\n const keys: string[] = [];\n for (const ref of Object.values(AuthResponseMessageRef) as string[]) {\n for (const sub of displayDefs) {\n keys.push(`${LabellingTypes.BACKEND_AUTH_MESSAGES}.${ref}.${sub}`);\n }\n }\n return keys;\n }\n\n private collectBackendSmsKeys(): string[] {\n const sectionConfig = LabellingPolicy[LabellingTypes.BACKEND_SMS] as Record<string, LabellingUnitaryDef[]> | undefined;\n if (!sectionConfig) return [];\n const keys: string[] = [];\n for (const smsRef of Object.keys(sectionConfig)) {\n for (const def of sectionConfig[smsRef] || []) {\n const sub = typeof def === 'string' ? def : def?.ref;\n if (sub) keys.push(`${LabellingTypes.BACKEND_SMS}.${smsRef}.${sub}`);\n }\n }\n return keys;\n }\n\n // ================================================================\n // Helpers\n // ================================================================\n\n}\n\nfunction readDefs(section: Record<string, LabellingUnitaryDef[]> | undefined, key: string): string[] {\n const defs = section?.[key];\n if (!Array.isArray(defs)) return [];\n return defs\n .map((d) => (typeof d === 'string' ? d : d?.ref))\n .filter((s): s is string => typeof s === 'string' && s.length > 0);\n}\n\nfunction chunkKeys(\n unitId: string,\n keys: string[],\n keyParams?: Record<string, string[]>,\n keyMeta?: Record<string, LabelKeyMeta>,\n): LabellingUnitChunk[] {\n if (keys.length <= MAX_ITEMS_PER_CHUNK) {\n return [makeChunk('all', keys, keyParams, keyMeta)];\n }\n const chunks: LabellingUnitChunk[] = [];\n for (let i = 0; i < keys.length; i += MAX_ITEMS_PER_CHUNK) {\n chunks.push(makeChunk(`chunk-${Math.floor(i / MAX_ITEMS_PER_CHUNK) + 1}`, keys.slice(i, i + MAX_ITEMS_PER_CHUNK), keyParams, keyMeta));\n }\n return chunks;\n}\n\nfunction subgroupsToChunks(\n unitId: string,\n subgroups: { id: string; keys: string[] }[],\n keyMeta?: Record<string, LabelKeyMeta>,\n): LabellingUnitChunk[] {\n const chunks: LabellingUnitChunk[] = [];\n for (const { id, keys } of subgroups) {\n if (keys.length === 0) continue;\n if (keys.length <= MAX_ITEMS_PER_CHUNK) {\n chunks.push(makeChunk(id, keys, undefined, keyMeta));\n } else {\n for (let i = 0; i < keys.length; i += MAX_ITEMS_PER_CHUNK) {\n chunks.push(makeChunk(`${id}-${Math.floor(i / MAX_ITEMS_PER_CHUNK) + 1}`, keys.slice(i, i + MAX_ITEMS_PER_CHUNK), undefined, keyMeta));\n }\n }\n }\n return chunks;\n}\n\nfunction makeChunk(\n chunkId: string,\n keys: string[],\n keyParams?: Record<string, string[]>,\n keyMeta?: Record<string, LabelKeyMeta>,\n): LabellingUnitChunk {\n // Narrow the threaded param + meta maps to THIS chunk's keys — a unit's keys\n // are split across chunks at MAX_ITEMS_PER_CHUNK, so each chunk should only\n // carry what it actually owns (keeps the prompt focused per call).\n let chunkKeyParams: Record<string, string[]> | undefined;\n if (keyParams) {\n for (const k of keys) {\n const params = keyParams[k];\n if (params && params.length > 0) {\n (chunkKeyParams ??= {})[k] = params;\n }\n }\n }\n let chunkKeyMeta: Record<string, LabelKeyMeta> | undefined;\n if (keyMeta) {\n for (const k of keys) {\n const meta = keyMeta[k];\n if (meta) (chunkKeyMeta ??= {})[k] = meta;\n }\n }\n return {\n chunkId,\n keys,\n keyParams: chunkKeyParams,\n keyMeta: chunkKeyMeta,\n buildOutputSchema: (requestedKeys?: readonly string[]) => {\n const owned = new Set(keys);\n const subject = requestedKeys ?? keys;\n const shape: Record<string, z.ZodOptional<z.ZodString>> = {};\n for (const k of subject) {\n // Fail closed on a key this chunk does not own: the agent would happily\n // produce a label for it and the orchestrator would write it into the\n // unit file under a path nothing reads.\n if (!owned.has(k)) throw new Error(`Chunk ${chunkId} was asked to generate a key it does not own: ${k}`);\n // Optional by contract — see `LabellingUnitChunk.buildOutputSchema`.\n shape[k] = z.string().optional();\n }\n return z.object(shape);\n },\n };\n}\n\nfunction slugify(input: string): string {\n return input.replace(/[^A-Za-z0-9_-]+/g, '_');\n}\n\nfunction countByCategory(units: LabellingUnit[]): Record<string, number> {\n const out: Record<string, number> = {};\n for (const u of units) out[u.category] = (out[u.category] ?? 0) + 1;\n return out;\n}\n\n"]}
|
|
1
|
+
{"version":3,"file":"labelling-planner.companion.service.js","sourceRoot":"","sources":["../../../../src/i18n-labelling/services/labelling-planner.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,cAAc,EACd,eAAe,EACf,oBAAoB,EAEpB,4BAA4B,EAC5B,aAAa,EACb,sBAAsB,GACvB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,8CAA8C,EAAE,MAAM,gCAAgC,CAAC;AAChG,OAAO,EACL,qBAAqB,EACrB,2BAA2B,EAC3B,qCAAqC,EACrC,mBAAmB,GAGpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,kBAAkB,EAClB,+BAA+B,GAChC,MAAM,4BAA4B,CAAC;AAMpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EACL,iCAAiC,EACjC,qBAAqB,EACrB,mBAAmB,GAMpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,0CAA0C,EAAE,MAAM,mDAAmD,CAAC;AAC/G,OAAO,EAAE,wCAAwC,EAAE,MAAM,gDAAgD,CAAC;AAC1G,OAAO,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AACxI,OAAO,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,gCAAgC,EAAE,MAAM,8BAA8B,CAAC;AACrI,OAAO,EAEL,iCAAiC,EACjC,iCAAiC,GAClC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,kCAAkC,EAClC,eAAe,EACf,oBAAoB,GACrB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,6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gBACxE,sEAAsE;gBACtE,wCAAwC;gBACxC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;oBAAE,MAAM,IAAI,KAAK,CAAC,SAAS,OAAO,iDAAiD,CAAC,EAAE,CAAC,CAAC;gBACzG,qEAAqE;gBACrE,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC;YACnC,CAAC;YACD,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC;KACF,CAAC;AACJ,CAAC;AAED,SAAS,OAAO,CAAC,KAAa;IAC5B,OAAO,KAAK,CAAC,OAAO,CAAC,kBAAkB,EAAE,GAAG,CAAC,CAAC;AAChD,CAAC;AAED,SAAS,eAAe,CAAC,KAAsB;IAC7C,MAAM,GAAG,GAA2B,EAAE,CAAC;IACvC,KAAK,MAAM,CAAC,IAAI,KAAK;QAAE,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IACpE,OAAO,GAAG,CAAC;AACb,CAAC","sourcesContent":["import { inject, injectable, optional } from 'inversify';\nimport { z } from 'zod';\nimport {\n LabellingTypes,\n LabellingPolicy,\n additionalLabelsRefs,\n type LabellingUnitaryDef,\n getRegisteredComponentLabels,\n LabelAudience,\n AuthResponseMessageRef,\n} from '@wildo-ai/presets-components-models';\nimport { customShared_ResourcesConfigurationsFactoryMap } from '@wildo-ai/platform-core-shared';\nimport {\n CoreResourceOperation,\n ErrorCustomMessageReference,\n FrontendNotificationCustomMessageRefs,\n ERROR_GUIDANCE_REFS,\n type AnyResourceConfiguration,\n type GuidanceFlowDefinition,\n} from '@wildo-ai/saas-models';\nimport {\n SAAS_SERVICE_TYPES,\n ResourcesRegistryBackendService,\n} from '@wildo-ai/saas-backend-lib';\nimport type {\n LoggerService,\n MilestoneDefinitionRegistryBackendService,\n ProductCatalogSyncBackendService,\n} from '@wildo-ai/saas-backend-lib';\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport {\n LabellingPlanIncompletenessReason,\n LabellingUnitCategory,\n MAX_ITEMS_PER_CHUNK,\n type LabellingPlanIncompleteness,\n type LabellingPlanResult,\n type LabellingUnit,\n type LabellingUnitChunk,\n type LabelKeyMeta,\n} from '../models/labelling-unit.models';\nimport { LabellingSpecContextLoaderCompanionService } from './labelling-spec-context-loader.companion.service';\nimport { ComponentLabelsBootstrapCompanionService } from './component-labels-bootstrap.companion.service';\nimport { extractResourceFieldKeys, buildEphemeralFieldKeyMeta, buildSystemEnumLabelKeys } from '../utils/schema-fields-extractor.utils';\nimport { collectAppGuidanceKeys, collectResourceGuidanceKeys, resolveAppLevelGuidanceLabelKeys } from '../utils/guidance-keys.utils';\nimport {\n type FrontendDerivedLabelKeys,\n EMPTY_FRONTEND_DERIVED_LABEL_KEYS,\n parseFrontendDerivedLabelSnapshot,\n} from '../utils/frontend-derived-label-keys.utils';\nimport {\n ROLE_LABELLING_UNIT_FILE_PATH_HINT,\n collectRoleKeys,\n collectLifecycleKeys,\n} from '../utils/role-lifecycle-keys.utils';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { CompanionIntrospectionService } from '../../core/introspection/services/companion-introspection.companion.service';\nimport { AppFrontendType } from '@wildo-ai/saas-models';\nimport { ENGINE_PAGE_METADATA } from '@wildo-ai/saas-frontend-lib/companion';\n\n/**\n * Resource types owned by the platform-core custom-shared vocabulary\n * (`wildoApplication`, `wildoApplicationsVersions`,\n * `wildoApplication{ActorSystem,FlowSystem}Executions`,\n * `wildoApplicationActorTasks`). They live in the companion registry so the\n * executions-persistence lane can resolve their repositories — they are NOT\n * app-facing resources and must not be labellized (see the skip in\n * `planResourceUnits`). Derived from the same factory map the registry\n * union merges in (`start-companion-application.service.ts`), so the two\n * lists can never drift.\n */\nconst PLATFORM_PLANE_RESOURCE_TYPES: ReadonlySet<string> = new Set(\n Object.keys(customShared_ResourcesConfigurationsFactoryMap),\n);\n\n/** Static identity of one frontend-derived label family (see `FRONTEND_DERIVED_FAMILIES`). */\ninterface FrontendDerivedFamilyDescriptor {\n category: LabellingUnitCategory;\n id: string;\n displayLabel: string;\n bucket: string;\n prefix: string;\n}\n\n/**\n * The label families that exist ONLY if the frontend key snapshot could be\n * collected — their ref space is authored in the frontend app and cannot be\n * enumerated from any backend registry.\n *\n * Hoisted out of `planFrontendDerivedUnits` so that\n * {@link FRONTEND_DERIVED_LABEL_BUCKETS} — the list a degraded run reports as\n * unjudgeable — is DERIVED from the same descriptors the units are built from.\n * A hand-kept second copy would rot the day a fifth family is added, and it\n * would rot in the dangerous direction: a bucket missing from the suppression\n * list is a bucket an orphan report would happily condemn.\n */\nconst FRONTEND_DERIVED_FAMILIES: readonly FrontendDerivedFamilyDescriptor[] = [\n {\n category: LabellingUnitCategory.COMPOSITE_VIEW,\n id: 'composite-views:root',\n displayLabel: 'composite views',\n bucket: 'composite_views',\n prefix: `${LabellingTypes.COMPOSITE_VIEWS}.`,\n },\n {\n category: LabellingUnitCategory.VIEW,\n id: 'views:root',\n displayLabel: 'navigation views',\n bucket: 'views',\n prefix: `${LabellingTypes.VIEWS}.`,\n },\n {\n category: LabellingUnitCategory.SIDEBAR_SECTIONS_ROOT,\n id: 'sidebar-sections:root',\n displayLabel: 'sidebar sections',\n bucket: 'sidebar_sections',\n prefix: `${LabellingTypes.SIDEBAR_SECTIONS}.`,\n },\n {\n // Settings Hub rail labels — the application's authored categories and\n // placed sections.\n //\n // `keyMeta` comes from the SUBPROCESS (`derived.settingsHubKeyMeta`),\n // not from a spec registry like its three siblings: the authored wording\n // lives in the application's own `settings-hub.config.ts` and in the\n // engine destination catalog, neither of which the spec loader reads.\n // Threading it is not cosmetic — a generated key WINS over the authored\n // fallback in `tSettingsHubSection`, so a prompt working from the ref\n // alone silently REPLACES the rail's wording (measured on Wonder CRM\n // 2026-08-30: \"User provisioning\" → \"SCIM\", \"Audit streaming\" → \"SIEM\").\n category: LabellingUnitCategory.SETTINGS_HUB_ROOT,\n id: 'settings-hub:root',\n displayLabel: 'settings hub sections',\n bucket: 'settings_hub',\n prefix: `${LabellingTypes.SETTINGS_HUB}.`,\n },\n];\n\n/**\n * The `filePathHint.bucket` values a failed frontend introspection suppresses.\n * Derived — never authored — from {@link FRONTEND_DERIVED_FAMILIES}.\n */\nexport const FRONTEND_DERIVED_LABEL_BUCKETS: readonly string[] = FRONTEND_DERIVED_FAMILIES.map(\n (family) => family.bucket,\n);\n\n/**\n * Plans the labelling work as a flat list of `LabellingUnit`s.\n *\n * Responsibilities:\n * - Walk every source of labels (components registry, resource registry,\n * theme catalogs, milestones, billing, roles, lifecycle, guidance,\n * backend messages, additional refs).\n * - Group keys by unit + sub-group (so one component / one resource /\n * one theme bucket = one unit).\n * - Chunk each sub-group at `MAX_ITEMS_PER_CHUNK` so each LLM call stays\n * bounded (and the structured-output schema fits).\n * - Provide a lazy `loadSpecContext` that the orchestrator triggers\n * only when a unit is actually about to be sent to the LLM.\n *\n * This service is purely a planner — it does NOT generate, write, or\n * translate anything. The orchestrators consume `LabellingUnit[]` and\n * decide what to do (labellize / translate / skip based on the lock).\n */\n@injectable()\nexport class LabellingPlannerCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n private guidanceFlowProvider: () => ReadonlyArray<GuidanceFlowDefinition> = () => [];\n private guidanceFlowProviderRegistered = false;\n\n constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(SAAS_SERVICE_TYPES.ResourceRegistryService) private readonly resourcesRegistryService: ResourcesRegistryBackendService,\n @inject(COMPANION_SERVICE_TYPES.LabellingSpecContextLoader) private readonly specContextLoader: LabellingSpecContextLoaderCompanionService,\n @inject(COMPANION_SERVICE_TYPES.ComponentLabelsBootstrapService) private readonly componentLabelsBootstrap: ComponentLabelsBootstrapCompanionService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.IntrospectionService) private readonly introspectionService: CompanionIntrospectionService,\n @inject(SAAS_SERVICE_TYPES.MilestoneDefinitionRegistry) @optional() private readonly milestoneDefinitionRegistry?: MilestoneDefinitionRegistryBackendService,\n @inject(SAAS_SERVICE_TYPES.ProductCatalogSyncService) @optional() private readonly productCatalogSync?: ProductCatalogSyncBackendService,\n ) {\n this.logDebug = this.logger.debugByType('LabellingPlannerService');\n }\n\n /**\n * Wire the app-level guidance-flow provider (OVERRIDE owner for app-level\n * `module.guidanceFlows` labels). When an app registers a provider the planner\n * trusts it as the single source of guidance-flow keys. When NO provider is\n * registered the planner falls back to frontend-module discovery (the\n * `frontend-labels-needed-info` behavior), so app-level guidance-flow labels\n * are still generated. Onboarding-view labels always come from discovery\n * regardless — they are not part of this provider contract.\n */\n public setGuidanceFlowProvider(provider: () => ReadonlyArray<GuidanceFlowDefinition>): void {\n this.guidanceFlowProvider = provider;\n this.guidanceFlowProviderRegistered = true;\n }\n\n /**\n * Plan all units in dependency-free order.\n *\n * Hydrates the decentralized component-labels registry on first call\n * (via static `.tsx` scan, no module loading). Idempotent — subsequent\n * calls are cheap.\n */\n public async planAllUnits(): Promise<LabellingUnit[]> {\n return (await this.planAllUnitsWithCompleteness()).units;\n }\n\n /**\n * `planAllUnits()` plus the explicit answer to \"was every family able to\n * enumerate itself?\".\n *\n * Generation only ever needs the units — a family that could not answer\n * contributes no work and the run proceeds, which is why `planAllUnits()`\n * exists and stays the default. Any consumer that reasons about ABSENCE\n * (nothing planned this bucket ⇒ the bucket is stale) needs the second half,\n * because the two situations produce a byte-identical unit list: an\n * application with no composite views, and an application whose frontend\n * introspection could not run. See `LabellingPlanIncompletenessReason`.\n */\n public async planAllUnitsWithCompleteness(): Promise<LabellingPlanResult> {\n await this.componentLabelsBootstrap.hydrateOnce();\n const incompleteness: LabellingPlanIncompleteness[] = [];\n\n // Run the frontend introspection subprocess ONCE per plan; both\n // `planFrontendDerivedUnits` and `planAppGuidanceUnit` consume the snapshot.\n const frontend = await this.collectFrontendDerivedLabelKeys();\n if (frontend.incompleteness) incompleteness.push(frontend.incompleteness);\n const frontendDerived = frontend.snapshot;\n\n // The two `@optional()` registries. Read through the same predicate the\n // planner itself branches on, so the \"can this family answer?\" question has\n // ONE expression rather than a condition here and a copy of it in the\n // planning method — the copy is what would silently drift.\n if (!this.milestoneUnitsAreDerivable) {\n incompleteness.push({\n reason: LabellingPlanIncompletenessReason.MILESTONE_REGISTRY_UNBOUND,\n detail: 'MilestoneDefinitionRegistryBackendService is not bound; milestone labels were not planned.',\n suppressedBuckets: ['milestones'],\n });\n }\n if (!this.billingUnitsAreDerivable) {\n incompleteness.push({\n reason: LabellingPlanIncompletenessReason.PRODUCT_CATALOG_SYNC_UNBOUND,\n detail: 'ProductCatalogSyncBackendService is not bound; billing labels were not planned.',\n suppressedBuckets: ['billing'],\n });\n }\n\n const units: LabellingUnit[] = [\n ...this.planComponentUnits(),\n ...(await this.planResourceUnits(frontendDerived)),\n ...this.planErrorsMessagesUnit(),\n ...this.planThemeUnits(),\n ...(await this.planFrontendDerivedUnits(frontendDerived)),\n ...this.planEnginePageUnits(),\n ...this.planMilestoneUnits(),\n ...this.planBillingUnit(),\n ...(await this.planRolesUnit()),\n ...this.planLifecycleUnit(),\n ...(await this.planAppGuidanceUnit(frontendDerived)),\n ...this.planAdditionalUnit(),\n ];\n this.logDebug('Planned units', {\n total: units.length,\n byCategory: countByCategory(units),\n incompleteness: incompleteness.map((entry) => entry.reason),\n });\n return { units, incompleteness };\n }\n\n /**\n * Whether the milestone family can enumerate itself. The SINGLE expression\n * `planMilestoneUnits` branches on and `planAllUnitsWithCompleteness` reports\n * from — one invariant, one source.\n *\n * Note what is deliberately NOT folded in: a BOUND registry returning zero\n * definitions is an authoritative \"this application has no milestones\", not a\n * degradation, and it must stay distinguishable — otherwise an application\n * that genuinely dropped its last milestone could never be told its\n * `milestones/root.*.ts` files are stale.\n */\n private get milestoneUnitsAreDerivable(): boolean {\n return this.milestoneDefinitionRegistry !== undefined;\n }\n\n /** Billing twin of {@link milestoneUnitsAreDerivable}; same zero-definitions caveat. */\n private get billingUnitsAreDerivable(): boolean {\n return this.productCatalogSync !== undefined;\n }\n\n // ================================================================\n // Frontend-derived label families (composite views, navigation views,\n // sidebar sections).\n //\n // These families are authored ENTIRELY in the frontend app\n // (composite/full-custom/flows-actors view components, the sidebar\n // `contentSections` config + per-module `sidebarSections`). Their label keys\n // can only be computed by loading the frontend modules — a Vite/`.ts` source\n // graph the companion MAIN process cannot import. The\n // `frontend-labels-needed-info` introspection behavior runs in the companion\n // SUBPROCESS (the one with the Node-bridge loader) and is the single source of\n // truth for frontend-derived label keys — see\n // `frontend-labels-needed-info.behavior.ts`.\n //\n // This method consumes ONLY the three frontend-ONLY namespaces below from the\n // snapshot's `appSpecificLabelKeys`. `resources.*` and resource-scoped\n // `guidance.*` are ALSO present in `appSpecificLabelKeys` but are DROPPED here\n // — they are materialized by `planResourceUnits` off the backend resources\n // registry (taking them here too would double-generate). App-level guidance\n // flows and onboarding views arrive on dedicated snapshot fields\n // (`appLevelGuidanceFlowLabelKeys` / `onboardingViewLabelKeys`) and are owned\n // by `planAppGuidanceUnit`, NOT here. `engine.pages.*` is framework-fixed and\n // sourced by `planEnginePageUnits`.\n // ================================================================\n\n private async planFrontendDerivedUnits(derived: FrontendDerivedLabelKeys): Promise<LabellingUnit[]> {\n const frontendKeys = derived.appSpecificLabelKeys;\n if (frontendKeys.length === 0) return [];\n\n const families: Array<FrontendDerivedFamilyDescriptor & { keyParams?: Record<string, string[]> }> =\n FRONTEND_DERIVED_FAMILIES.map((family) => ({\n ...family,\n // Custom execution-view labels carry interpolation params; thread them so\n // the labellize prompt enforces the placeholder contract (mirrors the\n // components bucket). chunkKeys applies each entry only to its own key.\n ...(family.category === LabellingUnitCategory.VIEW ? { keyParams: derived.viewLabelParams } : {}),\n }));\n\n const units: LabellingUnit[] = [];\n for (const family of families) {\n const keys = frontendKeys.filter((key) => key.startsWith(family.prefix));\n if (keys.length === 0) continue;\n // Composite-view + non-composite-view (full-custom / flows-actors / chart /\n // execution) + sidebar-section title/description keys have authored per-slot\n // purposes in their spec registries — project them so the labellize prompt\n // carries real wording intent instead of the LLM inventing filler from the\n // ref alone.\n const keyMeta = family.category === LabellingUnitCategory.COMPOSITE_VIEW\n ? await this.specContextLoader.projectCompositeViewKeyMeta(keys)\n : family.category === LabellingUnitCategory.VIEW\n ? await this.specContextLoader.projectViewKeyMeta(keys)\n : family.category === LabellingUnitCategory.SIDEBAR_SECTIONS_ROOT\n ? await this.specContextLoader.projectSidebarSectionKeyMeta(keys)\n : family.category === LabellingUnitCategory.SETTINGS_HUB_ROOT\n ? Object.fromEntries(\n keys\n .filter(key => derived.settingsHubKeyMeta?.[key] !== undefined)\n .map(key => [key, { purpose: `Rail label for this settings destination. The application currently words it \"${derived.settingsHubKeyMeta?.[key]}\" — preserve that meaning and register; do not substitute the technical ref or an acronym.` }]),\n )\n : undefined;\n units.push({\n category: family.category,\n id: family.id,\n displayLabel: family.displayLabel,\n filePathHint: { bucket: family.bucket, slug: 'root' },\n chunks: chunkKeys(family.id, keys, family.keyParams, keyMeta),\n // Keys carry enough semantics (translationRef / section ref) for the LLM\n // to label from the identifier even when no keyMeta is projected.\n loadSpecContext: async () => undefined,\n });\n }\n return units;\n }\n\n /**\n * Invoke the `frontend-labels-needed-info` introspection behavior against the\n * app frontend service and return its full key snapshot: `appSpecificLabelKeys`\n * plus the two dedicated app-level guidance fields\n * (`appLevelGuidanceFlowLabelKeys`, `onboardingViewLabelKeys`).\n *\n * Returns an EMPTY snapshot (with a logged warning) when there is no SAAS_APP\n * frontend service or the subprocess fails/returns a malformed payload —\n * frontend-derived labels are best-effort and must never take down the whole\n * plan (which also feeds backend-only label generation). Payload shaping +\n * stale-subprocess tolerance lives in `parseFrontendDerivedLabelSnapshot`.\n */\n private async collectFrontendDerivedLabelKeys(): Promise<{\n snapshot: FrontendDerivedLabelKeys;\n /** Set on EVERY degraded path — the three empty-snapshot returns below. */\n incompleteness?: LabellingPlanIncompleteness;\n }> {\n const appFrontendServiceKey = Object.entries(this.companionContext.servicesByKey)\n .find(([, service]) => service.frontendType === AppFrontendType.SAAS_APP)?.[0];\n\n if (!appFrontendServiceKey) {\n this.logDebug('No SAAS_APP frontend service found; skipping frontend-derived label keys.');\n return {\n snapshot: EMPTY_FRONTEND_DERIVED_LABEL_KEYS,\n incompleteness: {\n reason: LabellingPlanIncompletenessReason.FRONTEND_INTROSPECTION_NO_APP_SERVICE,\n detail: 'No SAAS_APP frontend service is configured.',\n suppressedBuckets: FRONTEND_DERIVED_LABEL_BUCKETS,\n },\n };\n }\n\n const result = await this.introspectionService.requestInfo({\n serviceKey: appFrontendServiceKey,\n behavior: 'frontend-labels-needed-info',\n });\n\n if (!result.success) {\n const message = 'error' in result ? result.error.message : 'unknown error';\n this.logger.warn(\n `frontend-labels-needed-info introspection failed; frontend-derived labels skipped: ${message}`,\n { serviceKey: appFrontendServiceKey },\n );\n return {\n snapshot: EMPTY_FRONTEND_DERIVED_LABEL_KEYS,\n incompleteness: {\n reason: LabellingPlanIncompletenessReason.FRONTEND_INTROSPECTION_FAILED,\n detail: `frontend-labels-needed-info introspection failed on '${appFrontendServiceKey}': ${message}`,\n suppressedBuckets: FRONTEND_DERIVED_LABEL_BUCKETS,\n },\n };\n }\n\n const snapshot = parseFrontendDerivedLabelSnapshot(result.data);\n if (!snapshot) {\n this.logger.warn('frontend-labels-needed-info returned no appSpecificLabelKeys array; frontend-derived labels skipped.');\n return {\n snapshot: EMPTY_FRONTEND_DERIVED_LABEL_KEYS,\n incompleteness: {\n reason: LabellingPlanIncompletenessReason.FRONTEND_INTROSPECTION_MALFORMED,\n detail: `frontend-labels-needed-info on '${appFrontendServiceKey}' returned no appSpecificLabelKeys array.`,\n suppressedBuckets: FRONTEND_DERIVED_LABEL_BUCKETS,\n },\n };\n }\n\n return { snapshot };\n }\n\n // ================================================================\n // Components — one unit per FrontendComponentType\n // ================================================================\n\n private planComponentUnits(): LabellingUnit[] {\n const registry = getRegisteredComponentLabels();\n\n const units: LabellingUnit[] = [];\n for (const [componentType, defs] of registry.entries()) {\n const keys = defs\n .map((d) => (typeof d === 'string' ? d : d?.ref))\n .filter((k): k is string => typeof k === 'string' && k.length > 0)\n .map((subKey) => `${LabellingTypes.COMPONENTS}.${componentType}.${subKey}`);\n\n if (keys.length === 0) continue;\n\n // Thread each label's DECLARED interpolation params (full key → param\n // names) so the labellize prompt can instruct the agent to emit EXACTLY\n // those single-brace placeholders (root-cause fix for the historical\n // `{value}` drift) and the post-generation validator can flag mismatches.\n // Object-form params (`{ key, isLabelled, … }`) collapse to their `key`;\n // plain-string defs and defs without params contribute no entry.\n const keyParams: Record<string, string[]> = {};\n for (const d of defs) {\n if (typeof d === 'string' || !d?.ref || !d.params || d.params.length === 0) continue;\n const paramNames = d.params\n .map((p) => (typeof p === 'string' ? p : p?.key))\n .filter((p): p is string => typeof p === 'string' && p.length > 0);\n if (paramNames.length === 0) continue;\n keyParams[`${LabellingTypes.COMPONENTS}.${componentType}.${d.ref}`] = paramNames;\n }\n\n // Thread the enriched per-key SEMANTIC metadata (purpose / kind / per-param\n // meaning / notes) authored in the component's `.labels.ts` def, so the\n // labellize + translate prompts get authoritative per-key context instead\n // of name-inference. Sparse: only keys that authored metadata get an entry.\n const keyMeta: Record<string, LabelKeyMeta> = {};\n for (const d of defs) {\n if (typeof d === 'string' || !d?.ref) continue;\n const paramMeanings: Record<string, string> = {};\n for (const p of d.params ?? []) {\n if (typeof p !== 'string' && p?.key && p.meaning) paramMeanings[p.key] = p.meaning;\n }\n const meta: LabelKeyMeta = {\n ...(d.purpose ? { purpose: d.purpose } : {}),\n ...(d.kind ? { kind: d.kind } : {}),\n ...(Object.keys(paramMeanings).length > 0 ? { paramMeanings } : {}),\n ...(d.notes && d.notes.length > 0 ? { notes: d.notes } : {}),\n };\n if (Object.keys(meta).length > 0) {\n keyMeta[`${LabellingTypes.COMPONENTS}.${componentType}.${d.ref}`] = meta;\n }\n }\n\n const registeredSubKeys = defs\n .map((d) => (typeof d === 'string' ? d : d?.ref))\n .filter((s): s is string => typeof s === 'string' && s.length > 0);\n\n units.push({\n category: LabellingUnitCategory.COMPONENT,\n id: `component:${componentType}`,\n displayLabel: componentType,\n filePathHint: { bucket: 'components', slug: slugify(componentType) },\n chunks: chunkKeys(componentType, keys, keyParams, keyMeta),\n loadSpecContext: () => this.specContextLoader.loadComponentContext(componentType, registeredSubKeys),\n });\n }\n return units;\n }\n\n // ================================================================\n // Resources — one unit per resource type. Sub-groups: header / operations\n // / emptyState / sections / wizardSteps / groups / fields-block-N.\n // Resource-attached guidance is folded into the resource unit.\n // ================================================================\n\n private async planResourceUnits(frontendDerived: FrontendDerivedLabelKeys): Promise<LabellingUnit[]> {\n const registry = this.resourcesRegistryService.getResourcesRegistry();\n const allResources = (registry.resourceConfigurations || {}) as Record<string, AnyResourceConfiguration>;\n\n const headerDefs = readDefs(LabellingPolicy[LabellingTypes.RESOURCES], 'header');\n const operationsDefs = readDefs(LabellingPolicy[LabellingTypes.RESOURCES], 'operations');\n const emptyStateDefs = readDefs(LabellingPolicy[LabellingTypes.RESOURCES], 'emptyState');\n const sectionDefs = readDefs(LabellingPolicy[LabellingTypes.RESOURCES_SECTIONS], 'section');\n const wizardStepDefs = readDefs(LabellingPolicy[LabellingTypes.RESOURCES_WIZARD_STEPS], 'section');\n const fieldDisplayDefs = readDefs(LabellingPolicy[LabellingTypes.RESOURCES_FIELDS], 'display');\n const fieldEditDefs = readDefs(LabellingPolicy[LabellingTypes.RESOURCES_FIELDS], 'edit');\n\n const units: LabellingUnit[] = [];\n\n for (const [resourceType, resourceConfig] of Object.entries(allResources)) {\n // Platform-plane vocabulary (`wildoApplication*`) is registry-present\n // for the EXECUTIONS-PERSISTENCE lane only (the companion registry is\n // backend-API vocabulary ∪ platform-core persistence vocabulary since\n // 2026-07-03), NOT for app labelling: these resources have no\n // app-frontend surface, so emitting `resources.wildoApplication*`\n // units would push platform-internal keys into the app's label files.\n // Skip by PROVENANCE (membership in the platform-core custom-shared\n // factory map) rather than by operation shape — `wildoApplication` /\n // `wildoApplicationsVersions` carry API_CALL variants, but that API is\n // the platform manager's, never this app's frontend.\n if (PLATFORM_PLANE_RESOURCE_TYPES.has(resourceType)) {\n continue;\n }\n const subgroups: { id: string; keys: string[] }[] = [];\n\n const headerKeys = headerDefs.map((sub) => `${LabellingTypes.RESOURCES}.${resourceType}.header.${sub}`);\n if (headerKeys.length) subgroups.push({ id: 'header', keys: headerKeys });\n\n const opIds = Array.from(new Set((resourceConfig.operations || []).map((op) => String(op.operationIdentifier))));\n // Per-operation description OPT-IN. The frontend ui-behavior is the ONLY source of\n // `operationFrontendConfig.hasDescription` (the planner main process never sees\n // `operationFrontendConfig` — it carries React components). The subprocess surfaces\n // it via the dedicated `operationDescriptionOptIns` snapshot field (resourceType →\n // opIds). The policy (`operationsDefs`) stays title-only; each flagged op ALSO gets a\n // `.description` key here so it flows through `projectResourceKeyMeta` below for\n // spec-driven copy quality. This is the bridge that lets engine resources (e.g.\n // organizations) — whose ui-behavior the main process cannot import — opt operations\n // into a description. Emitted once, only by the planner (the frontend mirror's\n // `resources.*` keys are dropped), so nothing double-generates.\n const descriptionOptInOpIds = new Set(frontendDerived.operationDescriptionOptIns[resourceType] ?? []);\n const opKeys: string[] = [];\n for (const opId of opIds) {\n for (const sub of operationsDefs) {\n opKeys.push(`${LabellingTypes.RESOURCES}.${resourceType}.operations.${opId}.${sub}`);\n }\n if (descriptionOptInOpIds.has(opId)) {\n opKeys.push(`${LabellingTypes.RESOURCES}.${resourceType}.operations.${opId}.description`);\n }\n }\n if (opKeys.length) subgroups.push({ id: 'operations', keys: opKeys });\n\n // Empty-state labels apply ONLY to resources that render a collection view (where an\n // empty state can appear) — i.e. resources with a LIST or SEARCH operation. Emitting\n // them for non-collection resources (singletons, nested-only sub-resources, junctions)\n // is pure waste, so gate the whole subgroup on a collection op. Within it, gate per\n // sub-key:\n // - title / description → always (both fall back to generic component labels in\n // `ResourceEmptyState`, so collection resources keep their\n // resource-specific copy = quality preserved)\n // - primaryActionLabel → only if the resource has a CREATE op (the default empty-state\n // primary action is CREATE; falls back to `createFirst` otherwise)\n // - secondaryActionLabel → only if the frontend declares a `secondaryAction` (the one\n // empty-state label with NO fallback; frontend-only fact bridged\n // via `emptyStateSecondaryActionRefs`)\n // All gates are fail-safe: a wrong skip degrades to a generic fallback, never a broken label.\n const hasCollectionOp =\n opIds.includes(CoreResourceOperation.LIST) || opIds.includes(CoreResourceOperation.SEARCH);\n if (hasCollectionOp) {\n const hasCreateOp = opIds.includes(CoreResourceOperation.CREATE);\n const hasSecondaryActionLabel = frontendDerived.emptyStateSecondaryActionRefs.includes(resourceType);\n const emptyStateKeys = emptyStateDefs\n .filter((sub) => {\n if (sub === 'primaryActionLabel') return hasCreateOp;\n if (sub === 'secondaryActionLabel') return hasSecondaryActionLabel;\n return true;\n })\n .map((sub) => `${LabellingTypes.RESOURCES}.${resourceType}.emptyState.${sub}`);\n if (emptyStateKeys.length) subgroups.push({ id: 'emptyState', keys: emptyStateKeys });\n }\n\n const layoutRefs = (resourceConfig as { frontendConfiguration?: { layout?: { refs?: { sections?: string[]; wizardSteps?: string[]; groups?: string[] } } } })\n .frontendConfiguration?.layout?.refs;\n\n const sectionKeys: string[] = [];\n for (const sectionRef of layoutRefs?.sections ?? []) {\n for (const sub of sectionDefs) {\n sectionKeys.push(`${LabellingTypes.RESOURCES}.${resourceType}.sections.${sectionRef}.${sub}`);\n }\n }\n if (sectionKeys.length) subgroups.push({ id: 'sections', keys: sectionKeys });\n\n const wizardKeys: string[] = [];\n for (const stepRef of layoutRefs?.wizardSteps ?? []) {\n for (const sub of wizardStepDefs) {\n wizardKeys.push(`${LabellingTypes.RESOURCES}.${resourceType}.wizardSteps.${stepRef}.${sub}`);\n }\n }\n if (wizardKeys.length) subgroups.push({ id: 'wizardSteps', keys: wizardKeys });\n\n const groupKeys: string[] = (layoutRefs?.groups ?? []).map(\n (gRef) => `${LabellingTypes.RESOURCES}.${resourceType}.groups.${gRef}.title`,\n );\n if (groupKeys.length) subgroups.push({ id: 'groups', keys: groupKeys });\n\n const fieldKeys = extractResourceFieldKeys({\n resourceType,\n resourceConfig,\n displayDefs: fieldDisplayDefs,\n editDefs: fieldEditDefs,\n });\n if (fieldKeys.length) subgroups.push({ id: 'fields', keys: fieldKeys });\n\n // Resource-attached guidance flows fold in under `guidance` subgroup\n // (resource-scoped). Root-level guidance lives in its own root unit.\n const resourceGuidanceKeys = collectResourceGuidanceKeys(resourceType, resourceConfig);\n if (resourceGuidanceKeys.length) subgroups.push({ id: 'guidance', keys: resourceGuidanceKeys });\n\n // Resource-attached milestones (milestones whose definition references\n // this resource) will be folded into the unit by Phase 2 once the\n // milestone-definition cross-index is exposed by the registry.\n\n // Project per-key meaning (kind + purpose) from the resource spec onto its\n // label keys — the resource analogue of the component `.labels.ts` keyMeta.\n const allKeys = subgroups.flatMap((sg) => sg.keys);\n const keyMeta = await this.specContextLoader.projectResourceKeyMeta(resourceType, allKeys);\n // Ephemeral fields (one-time secrets like an API key's `plainKey`) live only\n // in a customResponseDto, so the spec-driven projection above can't see them.\n // Project framework-general keyMeta from the `.isEphemeral()` marker itself —\n // a user-facing label (\"API key\", not \"Plain key\") + a \"copy it now, shown\n // once\" description — merged OVER the heuristic for those keys.\n Object.assign(keyMeta, buildEphemeralFieldKeyMeta({ resourceType, resourceConfig }));\n const chunks = subgroupsToChunks(`resource:${resourceType}`, subgroups, keyMeta);\n if (chunks.length === 0) continue;\n\n units.push({\n category: LabellingUnitCategory.RESOURCE,\n id: `resource:${resourceType}`,\n displayLabel: resourceType,\n filePathHint: { bucket: 'resources', slug: slugify(resourceType) },\n chunks,\n loadSpecContext: () => this.specContextLoader.loadResourceContext(resourceType),\n });\n }\n return units;\n }\n\n // ================================================================\n // Themes — grouped buckets (errors_messages, errors_guidance, etc.)\n // ================================================================\n\n private planThemeUnits(): LabellingUnit[] {\n // `errors_guidance` is the one theme bucket that declares interpolation\n // params (e.g. `retryCountdown → [\"seconds\"]`); thread them so regeneration\n // seeds the placeholder and the drift validator covers it like components.\n const errorsGuidance = this.collectErrorsGuidanceKeys();\n // NOTE: `errors_messages` is intentionally NOT in this generic theme loop.\n // It has its own `planErrorsMessagesUnit()` so it can project per-ref\n // `purpose` + `audience` from the error-message specs (the theme loop is\n // deliberately audience-less / keyMeta-less for the other buckets).\n const themes: { themeId: string; keys: string[]; keyParams?: Record<string, string[]> }[] = [\n { themeId: 'errors_guidance', keys: errorsGuidance.keys, keyParams: errorsGuidance.keyParams },\n { themeId: 'errors_validation', keys: this.collectErrorsValidationKeys() },\n { themeId: 'notifications_custom', keys: this.collectNotificationsCustomKeys() },\n { themeId: 'system_enums', keys: this.collectSystemEnumsKeys() },\n { themeId: 'backend_auth_messages', keys: this.collectBackendAuthMessagesKeys() },\n { themeId: 'backend_sms', keys: this.collectBackendSmsKeys() },\n ];\n\n const units: LabellingUnit[] = [];\n for (const { themeId, keys, keyParams } of themes) {\n if (keys.length === 0) continue;\n units.push({\n category: themeId.startsWith('backend_') ? LabellingUnitCategory.BACKEND_MESSAGES : LabellingUnitCategory.THEME,\n id: `theme:${themeId}`,\n displayLabel: themeId,\n filePathHint: { bucket: 'themes', slug: themeId },\n chunks: chunkKeys(themeId, keys, keyParams),\n loadSpecContext: async () => undefined,\n });\n }\n return units;\n }\n\n // ================================================================\n // Engine pages — one root unit listing the `i18nKey` of every engine\n // page enumerated in `ENGINE_PAGE_METADATA` (HOME, SECURITY_SETTINGS, …).\n //\n // Engine pages are framework-owned navigation targets; the metadata\n // record is the canonical source of truth for both routing and label\n // resolution (see `launcher-items.frontend.schemas.ts:ENGINE_PAGE_METADATA`).\n // The runtime label lookup uses `ctx.t(metadata.i18nKey)`, and the\n // i18n key itself is already a full dotted path (e.g.\n // `engine.pages.home`) — emit `<i18nKey>.title` per page.\n // ================================================================\n\n private planEnginePageUnits(): LabellingUnit[] {\n const entries = Object.values(ENGINE_PAGE_METADATA);\n if (entries.length === 0) return [];\n\n const keys: string[] = [];\n for (const metadata of entries) {\n keys.push(`${metadata.i18nKey}.title`);\n }\n\n return [{\n category: LabellingUnitCategory.ENGINE_PAGES_ROOT,\n id: 'engine-pages:root',\n displayLabel: 'engine pages',\n filePathHint: { bucket: 'engine_pages', slug: 'root' },\n chunks: chunkKeys('engine-pages', keys),\n // Engine pages have stable, app-agnostic semantics (Home, Security\n // Settings, …). The keys alone are enough for label generation;\n // rich context could be added later if app-specific tone is required.\n loadSpecContext: async () => undefined,\n }];\n }\n\n private planMilestoneUnits(): LabellingUnit[] {\n if (!this.milestoneUnitsAreDerivable) return [];\n const definitions = this.milestoneDefinitionRegistry!.getAllDefinitions();\n if (definitions.length === 0) return [];\n\n const keys: string[] = [];\n const uniqueCategories = new Set<string>();\n for (const def of definitions) {\n keys.push(`${LabellingTypes.MILESTONES}.${def.identifier}.title`);\n if (def.labels?.description) keys.push(`${LabellingTypes.MILESTONES}.${def.identifier}.description`);\n if (def.category) uniqueCategories.add(def.category);\n keys.push(`${LabellingTypes.MILESTONES}.${def.identifier}.reward.title`);\n keys.push(`${LabellingTypes.MILESTONES}.${def.identifier}.reward.message`);\n }\n for (const cat of uniqueCategories) {\n keys.push(`${LabellingTypes.MILESTONES}.categories.${cat}.label`);\n }\n\n return [{\n category: LabellingUnitCategory.MILESTONES_ROOT,\n id: 'milestones:root',\n displayLabel: 'milestones',\n filePathHint: { bucket: 'milestones', slug: 'root' },\n chunks: chunkKeys('milestones', keys),\n loadSpecContext: async () => undefined,\n }];\n }\n\n private planBillingUnit(): LabellingUnit[] {\n if (!this.billingUnitsAreDerivable) return [];\n const definitions = this.productCatalogSync!.getProductDefinitions();\n if (definitions.length === 0) return [];\n\n const keys: string[] = [];\n const featureKeys = new Set<string>();\n const limitKeys = new Set<string>();\n const creditPoolKeys = new Set<string>();\n\n for (const def of definitions) {\n keys.push(`${LabellingTypes.BILLING_PRODUCTS}.${def.key}.name`);\n keys.push(`${LabellingTypes.BILLING_PRODUCTS}.${def.key}.description`);\n keys.push(`${LabellingTypes.BILLING_PRODUCTS}.${def.key}.tagline`);\n for (const f of def.grantedFeatures ?? []) featureKeys.add(f);\n for (const l of Object.keys(def.grantedLimits ?? {})) limitKeys.add(l);\n const pool = def.purchaseConfig?.creditPoolKey;\n if (pool) creditPoolKeys.add(pool);\n }\n for (const f of featureKeys) {\n keys.push(`${LabellingTypes.BILLING_FEATURES}.${f}.label`);\n keys.push(`${LabellingTypes.BILLING_FEATURES}.${f}.description`);\n }\n for (const l of limitKeys) {\n keys.push(`${LabellingTypes.BILLING_LIMITS}.${l}.label`);\n keys.push(`${LabellingTypes.BILLING_LIMITS}.${l}.description`);\n keys.push(`${LabellingTypes.BILLING_LIMITS}.${l}.unit`);\n }\n for (const p of creditPoolKeys) {\n keys.push(`${LabellingTypes.BILLING_CREDIT_POOLS}.${p}.name`);\n keys.push(`${LabellingTypes.BILLING_CREDIT_POOLS}.${p}.description`);\n keys.push(`${LabellingTypes.BILLING_CREDIT_POOLS}.${p}.unit`);\n }\n\n return [{\n category: LabellingUnitCategory.BILLING,\n id: 'billing:root',\n displayLabel: 'billing',\n filePathHint: { bucket: 'billing', slug: 'root' },\n chunks: chunkKeys('billing', keys),\n loadSpecContext: async () => undefined,\n }];\n }\n\n /**\n * `errors_messages` theme unit — split out of the generic theme loop so it\n * can project per-ref `purpose` + `audience` from the authored\n * error-message specs (the errors-side twin of `planRolesUnit`). User-facing\n * error copy is then generated from intent instead of guessed from the bare\n * key string; internal refs (no spec) fall back to token-only generation.\n * Keeps the same unit id / output file (`themes/errors_messages.<locale>.ts`)\n * as before, so the lock + served bundle location are unchanged.\n */\n private planErrorsMessagesUnit(): LabellingUnit[] {\n const keys = this.collectErrorsMessagesKeys();\n if (keys.length === 0) return [];\n const keyMeta = this.specContextLoader.projectErrorMessageKeyMeta(keys);\n return [{\n category: LabellingUnitCategory.THEME,\n id: 'theme:errors_messages',\n displayLabel: 'errors_messages',\n filePathHint: { bucket: 'themes', slug: 'errors_messages' },\n chunks: chunkKeys('errors_messages', keys, undefined, keyMeta),\n // Most authored error messages are consumer-facing, so default the unit\n // to the END_USER register; per-ref ADMIN / DEVELOPER references override\n // it through their own `keyMeta.audience`.\n loadSpecContext: async () => ({ audience: LabelAudience.END_USER }),\n }];\n }\n\n private async planRolesUnit(): Promise<LabellingUnit[]> {\n const keys = collectRoleKeys();\n if (keys.length === 0) return [];\n // Project per-role `label` / `description` keyMeta from the authored role\n // specs. Engine baseline + app-defined roles share one flat namespace, so\n // custom app roles (e.g. `CUSTOM_APP_MANAGER`) get accurate, spec-driven\n // labels instead of token-only generation. See `projectRoleKeyMeta`.\n const keyMeta = await this.specContextLoader.projectRoleKeyMeta(keys);\n return [{\n category: LabellingUnitCategory.ROLES,\n id: 'roles:root',\n displayLabel: 'roles',\n filePathHint: ROLE_LABELLING_UNIT_FILE_PATH_HINT,\n chunks: chunkKeys('roles', keys, undefined, keyMeta),\n // Roles are an access-control / permission vocabulary surfaced in\n // member-management, role pickers, and permission chips — an operator\n // concern. Calibrate the generator to the ADMIN register (clean console\n // terms + authority-focused descriptions) rather than the END_USER default.\n loadSpecContext: async () => ({ audience: LabelAudience.ADMIN }),\n }];\n }\n\n private planLifecycleUnit(): LabellingUnit[] {\n const keys = collectLifecycleKeys();\n if (keys.length === 0) return [];\n return [{\n category: LabellingUnitCategory.LIFECYCLE,\n id: 'lifecycle:root',\n displayLabel: 'lifecycle',\n filePathHint: { bucket: 'lifecycle', slug: 'root' },\n chunks: chunkKeys('lifecycle', keys),\n loadSpecContext: async () => undefined,\n }];\n }\n\n /**\n * App-level guidance-namespace unit (`guidance.<ref>.*`) covering BOTH:\n * - app-level guidance flows (`module.guidanceFlows`): sourced from the\n * registered `setGuidanceFlowProvider` when present (the OVERRIDE owner),\n * else from frontend-module discovery (`appLevelGuidanceFlowLabelKeys`);\n * - onboarding views (`module.onboardingViews`): ALWAYS from frontend-module\n * discovery (`onboardingViewLabelKeys`) — they share the `guidance.*`\n * namespace but have no provider contract, so the provider override must\n * never suppress them.\n *\n * Resource-scoped guidance lives inside the corresponding resource unit\n * (`planResourceUnits`), NOT here. See `resolveAppLevelGuidanceLabelKeys` for\n * the override + de-duplication rule.\n */\n private async planAppGuidanceUnit(derived: FrontendDerivedLabelKeys): Promise<LabellingUnit[]> {\n const keys = resolveAppLevelGuidanceLabelKeys({\n guidanceFlowProviderRegistered: this.guidanceFlowProviderRegistered,\n providerGuidanceFlowKeys: collectAppGuidanceKeys(this.guidanceFlowProvider()),\n discoveredGuidanceFlowKeys: derived.appLevelGuidanceFlowLabelKeys,\n onboardingViewKeys: derived.onboardingViewLabelKeys,\n });\n if (keys.length === 0) return [];\n // App-level onboarding views + guidance flows author per-slot + per-element\n // purposes in their specs (keyed `app.<ref>`). Project them onto the bare-ref\n // `guidance.<ref>.*` keys so the modal/flow copy reflects authored intent\n // instead of generic filler (\"Utilize AI to enhance your workflow\").\n const keyMeta = await this.specContextLoader.projectGuidanceKeyMeta(keys);\n return [{\n category: LabellingUnitCategory.GUIDANCE_ROOT,\n id: 'guidance:root',\n displayLabel: 'guidance',\n filePathHint: { bucket: 'guidance', slug: 'root' },\n chunks: chunkKeys('guidance', keys, undefined, keyMeta),\n loadSpecContext: async () => undefined,\n }];\n }\n\n private planAdditionalUnit(): LabellingUnit[] {\n const keys = [...additionalLabelsRefs];\n if (keys.length === 0) return [];\n return [{\n category: LabellingUnitCategory.ADDITIONAL,\n id: 'additional:root',\n displayLabel: 'additional',\n filePathHint: { bucket: 'themes', slug: 'additional' },\n chunks: chunkKeys('additional', keys),\n loadSpecContext: async () => undefined,\n }];\n }\n\n // ================================================================\n // Theme key collectors\n // ================================================================\n\n private collectErrorsMessagesKeys(): string[] {\n const sectionConfig = LabellingPolicy[LabellingTypes.ERRORS_MESSAGES] as Record<string, LabellingUnitaryDef[]>;\n const displayDefs = readDefs(sectionConfig as unknown as Record<string, LabellingUnitaryDef[]>, 'display');\n const keys: string[] = [];\n for (const ref of Object.values(ErrorCustomMessageReference) as string[]) {\n for (const sub of displayDefs) {\n keys.push(`${LabellingTypes.ERRORS_MESSAGES}.${ref}.${sub}`);\n }\n }\n return keys;\n }\n\n private collectErrorsGuidanceKeys(): { keys: string[]; keyParams: Record<string, string[]> } {\n // Per-field declared params live in `LabellingPolicy[ERRORS_GUIDANCE].display`\n // (e.g. `retryCountdown → [\"seconds\"]`); `ERROR_GUIDANCE_REFS` only lists\n // which fields each ref needs. Build a field→params map, then attach it to\n // every `errors_guidance.<ref>.<field>` key whose field declares params.\n const displayDefs =\n (LabellingPolicy[LabellingTypes.ERRORS_GUIDANCE] as Record<string, LabellingUnitaryDef[]> | undefined)?.['display'] ?? [];\n const fieldParams: Record<string, string[]> = {};\n for (const def of displayDefs) {\n if (typeof def === 'string' || !def?.ref || !def.params || def.params.length === 0) continue;\n const params = def.params\n .map((p) => (typeof p === 'string' ? p : p?.key))\n .filter((p): p is string => typeof p === 'string' && p.length > 0);\n if (params.length > 0) fieldParams[def.ref] = params;\n }\n\n const keys: string[] = [];\n const keyParams: Record<string, string[]> = {};\n for (const [ref, fields] of Object.entries(ERROR_GUIDANCE_REFS)) {\n for (const field of fields) {\n const key = `${LabellingTypes.ERRORS_GUIDANCE}.${ref}.${field}`;\n keys.push(key);\n const params = fieldParams[field];\n if (params) keyParams[key] = params;\n }\n }\n return { keys, keyParams };\n }\n\n private collectErrorsValidationKeys(): string[] {\n const sectionConfig = LabellingPolicy[LabellingTypes.ERRORS_VALIDATION] as Record<string, LabellingUnitaryDef[]> | undefined;\n if (!sectionConfig) return [];\n const keys: string[] = [];\n for (const issueCode of Object.keys(sectionConfig)) {\n for (const def of sectionConfig[issueCode] || []) {\n const sub = typeof def === 'string' ? def : def?.ref;\n if (sub) keys.push(`${LabellingTypes.ERRORS_VALIDATION}.${issueCode}.${sub}`);\n }\n }\n return keys;\n }\n\n private collectNotificationsCustomKeys(): string[] {\n const keys: string[] = [];\n const seen = new Set<string>();\n const registry = this.resourcesRegistryService.getResourcesRegistry();\n const allResources = (registry.resourceConfigurations || {}) as Record<string, AnyResourceConfiguration>;\n\n for (const resourceConfig of Object.values(allResources)) {\n for (const op of resourceConfig.operations || []) {\n const notifs = (op as { userNotifications?: Array<{ channel: string; identifier: string; nextStep?: unknown }> }).userNotifications;\n if (!notifs) continue;\n for (const n of notifs) {\n if (n.channel !== 'front_end_success') continue;\n if (!n.identifier || seen.has(n.identifier)) continue;\n seen.add(n.identifier);\n keys.push(`${LabellingTypes.NOTIFICATIONS_CUSTOM}.${n.identifier}.msg`);\n if (n.nextStep) keys.push(`${LabellingTypes.NOTIFICATIONS_CUSTOM}.${n.identifier}.nextStepLabel`);\n }\n }\n }\n\n const sectionConfig = LabellingPolicy[LabellingTypes.NOTIFICATIONS_CUSTOM] as Record<string, LabellingUnitaryDef[]> | undefined;\n const displayDefs = readDefs(sectionConfig as unknown as Record<string, LabellingUnitaryDef[]>, 'display');\n for (const ref of Object.values(FrontendNotificationCustomMessageRefs) as string[]) {\n if (seen.has(ref)) continue;\n seen.add(ref);\n for (const sub of displayDefs) {\n keys.push(`${LabellingTypes.NOTIFICATIONS_CUSTOM}.${ref}.${sub}`);\n }\n }\n return keys;\n }\n\n /**\n * The `system_enums.<EnumName>.<value>` keys, DERIVED — see `buildSystemEnumLabelKeys` for\n * the two total sources and the ordering contract.\n *\n * This method used to be nine literal `push(...)` calls: a hand-kept copy of another\n * module's catalogue, and the exact shape that rots. It had rotted twice by the time it was\n * measured (2026-09-08):\n *\n * - `SystemEnumName.DURATION_UNIT` was declared in `presets-components-models` and absent\n * from the list, so a `z_duration()` unit was planned nowhere;\n * - ten vocabularies decorated with `.systemEnum('X')` on real resource schemas — the\n * seven billing ones plus `PlatformAccessGrantStatus`,\n * `PlatformAccessGrantAutoApprovalReason` and `DurationUnit` — were SUPPRESSED from\n * per-field labelling by `extractResourceFieldKeys` on the promise that they would be\n * labelled here, and were not. `tResourceFieldEnumValue` then falls through to step 3 of\n * its cascade and renders the raw wire value, so a subscription badge read `past_due`\n * and a product type read `one_time` in the generated dogfood application.\n *\n * The derivation lives beside `extractResourceFieldKeys` rather than here precisely because\n * those are the two halves that have to agree; keeping them in one module is what lets one\n * test assert the invariant between them.\n */\n private collectSystemEnumsKeys(): string[] {\n const registry = this.resourcesRegistryService.getResourcesRegistry();\n const allResources = (registry.resourceConfigurations || {}) as Record<string, AnyResourceConfiguration>;\n return buildSystemEnumLabelKeys(Object.values(allResources));\n }\n\n private collectBackendAuthMessagesKeys(): string[] {\n const sectionConfig = LabellingPolicy[LabellingTypes.BACKEND_AUTH_MESSAGES] as Record<string, LabellingUnitaryDef[]>;\n const displayDefs = readDefs(sectionConfig as unknown as Record<string, LabellingUnitaryDef[]>, 'display');\n const keys: string[] = [];\n for (const ref of Object.values(AuthResponseMessageRef) as string[]) {\n for (const sub of displayDefs) {\n keys.push(`${LabellingTypes.BACKEND_AUTH_MESSAGES}.${ref}.${sub}`);\n }\n }\n return keys;\n }\n\n private collectBackendSmsKeys(): string[] {\n const sectionConfig = LabellingPolicy[LabellingTypes.BACKEND_SMS] as Record<string, LabellingUnitaryDef[]> | undefined;\n if (!sectionConfig) return [];\n const keys: string[] = [];\n for (const smsRef of Object.keys(sectionConfig)) {\n for (const def of sectionConfig[smsRef] || []) {\n const sub = typeof def === 'string' ? def : def?.ref;\n if (sub) keys.push(`${LabellingTypes.BACKEND_SMS}.${smsRef}.${sub}`);\n }\n }\n return keys;\n }\n\n // ================================================================\n // Helpers\n // ================================================================\n\n}\n\nfunction readDefs(section: Record<string, LabellingUnitaryDef[]> | undefined, key: string): string[] {\n const defs = section?.[key];\n if (!Array.isArray(defs)) return [];\n return defs\n .map((d) => (typeof d === 'string' ? d : d?.ref))\n .filter((s): s is string => typeof s === 'string' && s.length > 0);\n}\n\nfunction chunkKeys(\n unitId: string,\n keys: string[],\n keyParams?: Record<string, string[]>,\n keyMeta?: Record<string, LabelKeyMeta>,\n): LabellingUnitChunk[] {\n if (keys.length <= MAX_ITEMS_PER_CHUNK) {\n return [makeChunk('all', keys, keyParams, keyMeta)];\n }\n const chunks: LabellingUnitChunk[] = [];\n for (let i = 0; i < keys.length; i += MAX_ITEMS_PER_CHUNK) {\n chunks.push(makeChunk(`chunk-${Math.floor(i / MAX_ITEMS_PER_CHUNK) + 1}`, keys.slice(i, i + MAX_ITEMS_PER_CHUNK), keyParams, keyMeta));\n }\n return chunks;\n}\n\nfunction subgroupsToChunks(\n unitId: string,\n subgroups: { id: string; keys: string[] }[],\n keyMeta?: Record<string, LabelKeyMeta>,\n): LabellingUnitChunk[] {\n const chunks: LabellingUnitChunk[] = [];\n for (const { id, keys } of subgroups) {\n if (keys.length === 0) continue;\n if (keys.length <= MAX_ITEMS_PER_CHUNK) {\n chunks.push(makeChunk(id, keys, undefined, keyMeta));\n } else {\n for (let i = 0; i < keys.length; i += MAX_ITEMS_PER_CHUNK) {\n chunks.push(makeChunk(`${id}-${Math.floor(i / MAX_ITEMS_PER_CHUNK) + 1}`, keys.slice(i, i + MAX_ITEMS_PER_CHUNK), undefined, keyMeta));\n }\n }\n }\n return chunks;\n}\n\nfunction makeChunk(\n chunkId: string,\n keys: string[],\n keyParams?: Record<string, string[]>,\n keyMeta?: Record<string, LabelKeyMeta>,\n): LabellingUnitChunk {\n // Narrow the threaded param + meta maps to THIS chunk's keys — a unit's keys\n // are split across chunks at MAX_ITEMS_PER_CHUNK, so each chunk should only\n // carry what it actually owns (keeps the prompt focused per call).\n let chunkKeyParams: Record<string, string[]> | undefined;\n if (keyParams) {\n for (const k of keys) {\n const params = keyParams[k];\n if (params && params.length > 0) {\n (chunkKeyParams ??= {})[k] = params;\n }\n }\n }\n let chunkKeyMeta: Record<string, LabelKeyMeta> | undefined;\n if (keyMeta) {\n for (const k of keys) {\n const meta = keyMeta[k];\n if (meta) (chunkKeyMeta ??= {})[k] = meta;\n }\n }\n return {\n chunkId,\n keys,\n keyParams: chunkKeyParams,\n keyMeta: chunkKeyMeta,\n buildOutputSchema: (requestedKeys?: readonly string[]) => {\n const owned = new Set(keys);\n const subject = requestedKeys ?? keys;\n const shape: Record<string, z.ZodOptional<z.ZodString>> = {};\n for (const k of subject) {\n // Fail closed on a key this chunk does not own: the agent would happily\n // produce a label for it and the orchestrator would write it into the\n // unit file under a path nothing reads.\n if (!owned.has(k)) throw new Error(`Chunk ${chunkId} was asked to generate a key it does not own: ${k}`);\n // Optional by contract — see `LabellingUnitChunk.buildOutputSchema`.\n shape[k] = z.string().optional();\n }\n return z.object(shape);\n },\n };\n}\n\nfunction slugify(input: string): string {\n return input.replace(/[^A-Za-z0-9_-]+/g, '_');\n}\n\nfunction countByCategory(units: LabellingUnit[]): Record<string, number> {\n const out: Record<string, number> = {};\n for (const u of units) out[u.category] = (out[u.category] ?? 0) + 1;\n return out;\n}\n\n"]}
|
package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import type { LabelKeyMeta, LabellingUnitSpecContext } from '../models/labelling
|
|
|
9
9
|
*
|
|
10
10
|
* For a resource: resolves the authored `*.resource.specification.ts` from
|
|
11
11
|
* the `resourceSpecifications` companion exports (the SAME registry
|
|
12
|
-
* `wildo context
|
|
12
|
+
* `wildo context info resource-specifications` resolves, now carrying engine resource specs merged in
|
|
13
13
|
* via `companion-exports.ts`), keyed by `resourceType`, and surfaces a LEAN
|
|
14
14
|
* resource-level description (`purpose` / `businessRole`). Per-field /
|
|
15
15
|
* per-operation meaning is projected onto the individual label keys as
|
|
@@ -17,7 +17,7 @@ import type { LabelKeyMeta, LabellingUnitSpecContext } from '../models/labelling
|
|
|
17
17
|
*
|
|
18
18
|
* For a component: resolves the authored
|
|
19
19
|
* `*.frontend-component.specification.ts` (the SAME registry
|
|
20
|
-
* `wildo context
|
|
20
|
+
* `wildo context info` resolves) by its specification key and surfaces a LEAN
|
|
21
21
|
* labelling context — purpose, where it renders, and the nature of the labels.
|
|
22
22
|
* Components without an authored spec degrade to a generic description. The key
|
|
23
23
|
* list is NOT restated here (the labellize prompt enumerates chunk keys).
|
|
@@ -118,7 +118,7 @@ export declare class LabellingSpecContextLoaderCompanionService {
|
|
|
118
118
|
/**
|
|
119
119
|
* Lazily load the app's frontend-component specification registry from the
|
|
120
120
|
* specifications companion exports — the SAME `frontendComponentSpecifications`
|
|
121
|
-
* map `wildo context
|
|
121
|
+
* map `wildo context info` resolves against. Loaded once and cached.
|
|
122
122
|
* Best-effort: a load failure degrades component labelling to the generic
|
|
123
123
|
* description rather than breaking the run.
|
|
124
124
|
*/
|
package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"labelling-spec-context-loader.companion.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"labelling-spec-context-loader.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/i18n-labelling/services/labelling-spec-context-loader.companion.service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,+BAA+B,EAAE,MAAM,4BAA4B,CAAC;AAI7E,OAAO,KAAK,EAAE,8BAA8B,EAAiS,MAAM,+BAA+B,CAAC;AAKnX,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAE7E,OAAO,KAAK,EAAE,YAAY,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAmC9F;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBACa,0CAA0C;IAchB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACN,OAAO,CAAC,QAAQ,CAAC,wBAAwB;IAC3C,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IAfrF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA+D;IACxF,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAsD;IACxF,OAAO,CAAC,QAAQ,CAAC,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|
|
45
45
|
*
|
|
46
46
|
* For a resource: resolves the authored `*.resource.specification.ts` from
|
|
47
47
|
* the `resourceSpecifications` companion exports (the SAME registry
|
|
48
|
-
* `wildo context
|
|
48
|
+
* `wildo context info resource-specifications` resolves, now carrying engine resource specs merged in
|
|
49
49
|
* via `companion-exports.ts`), keyed by `resourceType`, and surfaces a LEAN
|
|
50
50
|
* resource-level description (`purpose` / `businessRole`). Per-field /
|
|
51
51
|
* per-operation meaning is projected onto the individual label keys as
|
|
@@ -53,7 +53,7 @@ const RESOURCE_VIEW_OPERATION_IDS = new Set([
|
|
|
53
53
|
*
|
|
54
54
|
* For a component: resolves the authored
|
|
55
55
|
* `*.frontend-component.specification.ts` (the SAME registry
|
|
56
|
-
* `wildo context
|
|
56
|
+
* `wildo context info` resolves) by its specification key and surfaces a LEAN
|
|
57
57
|
* labelling context — purpose, where it renders, and the nature of the labels.
|
|
58
58
|
* Components without an authored spec degrade to a generic description. The key
|
|
59
59
|
* list is NOT restated here (the labellize prompt enumerates chunk keys).
|
|
@@ -92,7 +92,8 @@ let LabellingSpecContextLoaderCompanionService = class LabellingSpecContextLoade
|
|
|
92
92
|
return cached ?? undefined;
|
|
93
93
|
}
|
|
94
94
|
// Resolve the authored resource specification from the companion exports —
|
|
95
|
-
// the SAME `resourceSpecifications` map `wildo context
|
|
95
|
+
// the SAME `resourceSpecifications` map `wildo context info
|
|
96
|
+
// resource-specifications` resolves, now
|
|
96
97
|
// carrying engine resource specs (users/organizations/billing/…) merged in
|
|
97
98
|
// via `companion-exports.ts` (Gap A). Keyed by `resourceType` directly.
|
|
98
99
|
// Replaces the prior fragile filesystem scan + first-`description:` regex.
|
|
@@ -314,6 +315,8 @@ let LabellingSpecContextLoaderCompanionService = class LabellingSpecContextLoade
|
|
|
314
315
|
projectForeignKeyLabelMeta(efs, sub) {
|
|
315
316
|
const relationshipContext = typeof efs.params.relationshipContext === 'string' ? efs.params.relationshipContext : undefined;
|
|
316
317
|
const targetType = efs.derived?.foreignKeyTarget?.resourceType;
|
|
318
|
+
// invented-display-text: prompt input — see `humanizeResourceType`. `targetHuman` is only ever
|
|
319
|
+
// interpolated into the `purpose` string handed to the model, never rendered.
|
|
317
320
|
const targetHuman = targetType ? humanizeResourceType(targetType) : undefined;
|
|
318
321
|
const kind = sub === 'tooltip' ? LabelKind.TOOLTIP
|
|
319
322
|
: sub === 'description' ? LabelKind.DESCRIPTION
|
|
@@ -388,7 +391,7 @@ let LabellingSpecContextLoaderCompanionService = class LabellingSpecContextLoade
|
|
|
388
391
|
return undefined;
|
|
389
392
|
}
|
|
390
393
|
// Pull the authored frontend-component specification (the same
|
|
391
|
-
// `*.frontend-component.specification.ts` surface `wildo context
|
|
394
|
+
// `*.frontend-component.specification.ts` surface `wildo context info`
|
|
392
395
|
// resolves) for the component's REAL purpose / UI role / translation role.
|
|
393
396
|
// The key list is intentionally NOT restated here — the labellize prompt
|
|
394
397
|
// enumerates the chunk keys directly (this kills the old 3×-redundant
|
|
@@ -408,7 +411,7 @@ let LabellingSpecContextLoaderCompanionService = class LabellingSpecContextLoade
|
|
|
408
411
|
/**
|
|
409
412
|
* Lazily load the app's frontend-component specification registry from the
|
|
410
413
|
* specifications companion exports — the SAME `frontendComponentSpecifications`
|
|
411
|
-
* map `wildo context
|
|
414
|
+
* map `wildo context info` resolves against. Loaded once and cached.
|
|
412
415
|
* Best-effort: a load failure degrades component labelling to the generic
|
|
413
416
|
* description rather than breaking the run.
|
|
414
417
|
*/
|
|
@@ -996,7 +999,15 @@ export { LabellingSpecContextLoaderCompanionService };
|
|
|
996
999
|
* deliberately do NOT title-case or singularize here (singularization would lie
|
|
997
1000
|
* about `USERS` → `User`). Pure.
|
|
998
1001
|
*/
|
|
1002
|
+
/*
|
|
1003
|
+
* The noun phrase below is PROMPT INPUT and is never rendered. It goes into the labellize prompt as
|
|
1004
|
+
* context ("Relationship to organization members."); the MODEL then authors the label a user
|
|
1005
|
+
* actually reads, and that label lands in the i18n tree like every other. So this is derived
|
|
1006
|
+
* context for an author, not a formatter standing in for one — the opposite of the defect
|
|
1007
|
+
* `.claude/rules/display-text-comes-from-i18n.md` forbids.
|
|
1008
|
+
*/
|
|
999
1009
|
function humanizeResourceType(resourceType) {
|
|
1010
|
+
// invented-display-text: prompt input, never rendered — see the note above this function.
|
|
1000
1011
|
return resourceType
|
|
1001
1012
|
.replace(/([a-z0-9])([A-Z])/g, '$1 $2')
|
|
1002
1013
|
.replace(/[_-]+/g, ' ')
|