@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
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import * as fs from 'node:fs/promises';
|
|
2
|
+
import * as path from 'node:path';
|
|
3
|
+
import { LANGUAGE_INFO_MAP } from '@wildo-ai/presets-components-models';
|
|
4
|
+
/**
|
|
5
|
+
* Every locale code the framework recognises. Total over `AvailableLanguage`
|
|
6
|
+
* rather than a hand-kept list, so a language added to the vocabulary tomorrow
|
|
7
|
+
* is parsed as a locale by every existing installation instead of being
|
|
8
|
+
* silently misread as part of a slug.
|
|
9
|
+
*/
|
|
10
|
+
const KNOWN_LOCALE_CODES = new Set(Object.keys(LANGUAGE_INFO_MAP));
|
|
11
|
+
/**
|
|
12
|
+
* Whether the orphan question could be answered at all on this run.
|
|
13
|
+
*
|
|
14
|
+
* The two members are NOT "found some" / "found none" — that distinction is
|
|
15
|
+
* `orphanFiles.length`. They separate a judgement from a REFUSAL to judge,
|
|
16
|
+
* because the same empty `orphanFiles` array means opposite things in the two
|
|
17
|
+
* cases and a consumer that conflated them would read "nothing is stale" off a
|
|
18
|
+
* run that never looked.
|
|
19
|
+
*/
|
|
20
|
+
export var OrphanLabelArtifactsOutcome;
|
|
21
|
+
(function (OrphanLabelArtifactsOutcome) {
|
|
22
|
+
/** The planned unit set was total; `orphanFiles` / `orphanLockUnitIds` are a verdict. */
|
|
23
|
+
OrphanLabelArtifactsOutcome["REPORTED"] = "reported";
|
|
24
|
+
/** The plan declared itself incomplete; nothing was judged. See `incompleteness`. */
|
|
25
|
+
OrphanLabelArtifactsOutcome["UNAVAILABLE_PARTIAL_PLAN"] = "unavailable-partial-plan";
|
|
26
|
+
/**
|
|
27
|
+
* The plan may have been fine; reading the i18n state was not — the directory
|
|
28
|
+
* scan or the lock read threw. Distinct from `UNAVAILABLE_PARTIAL_PLAN`
|
|
29
|
+
* because the remedies are different (repair the filesystem/lock vs. start the
|
|
30
|
+
* frontend / bind the registry), and because merging them would let a broken
|
|
31
|
+
* read masquerade as a known-partial plan. See `scanFailure`.
|
|
32
|
+
*/
|
|
33
|
+
OrphanLabelArtifactsOutcome["UNAVAILABLE_SCAN_FAILED"] = "unavailable-scan-failed";
|
|
34
|
+
})(OrphanLabelArtifactsOutcome || (OrphanLabelArtifactsOutcome = {}));
|
|
35
|
+
/**
|
|
36
|
+
* Parse `<slug>.<locale>.ts` into its parts, or `undefined` when the name is not
|
|
37
|
+
* a generated per-unit label file.
|
|
38
|
+
*
|
|
39
|
+
* Deliberately conservative in the ONE direction that matters: the locale
|
|
40
|
+
* segment must be a known `AvailableLanguage` code. A hand-authored neighbour
|
|
41
|
+
* (`index.ts`, a helper, anything whose penultimate segment is not a locale) is
|
|
42
|
+
* therefore never parsed, so it can never be named an orphan. A slug containing
|
|
43
|
+
* dots keeps them — only the LAST two dot-separated segments are structural.
|
|
44
|
+
*/
|
|
45
|
+
export function parseGeneratedLabelFileName(fileName) {
|
|
46
|
+
if (!fileName.endsWith('.ts'))
|
|
47
|
+
return undefined;
|
|
48
|
+
const withoutExtension = fileName.slice(0, -'.ts'.length);
|
|
49
|
+
const lastDot = withoutExtension.lastIndexOf('.');
|
|
50
|
+
if (lastDot <= 0)
|
|
51
|
+
return undefined;
|
|
52
|
+
const locale = withoutExtension.slice(lastDot + 1);
|
|
53
|
+
if (!KNOWN_LOCALE_CODES.has(locale))
|
|
54
|
+
return undefined;
|
|
55
|
+
const slug = withoutExtension.slice(0, lastDot);
|
|
56
|
+
if (slug.length === 0)
|
|
57
|
+
return undefined;
|
|
58
|
+
return { slug, locale };
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Walk `<i18nRoot>/<bucket>/<slug>.<locale>.ts` and return every generated label
|
|
62
|
+
* file. One level deep, matching the layout `resolvePerUnitFilePath` writes.
|
|
63
|
+
*
|
|
64
|
+
* A missing root yields an empty list (a fresh application has generated
|
|
65
|
+
* nothing yet); any other filesystem error propagates, because "I could not read
|
|
66
|
+
* the directory" must never be reported to a caller as "the directory is empty"
|
|
67
|
+
* — that is the reading a prune would act on.
|
|
68
|
+
*/
|
|
69
|
+
export async function collectGeneratedLabelFiles(i18nRoot) {
|
|
70
|
+
let bucketEntries;
|
|
71
|
+
try {
|
|
72
|
+
bucketEntries = await fs.readdir(i18nRoot, { withFileTypes: true });
|
|
73
|
+
}
|
|
74
|
+
catch (err) {
|
|
75
|
+
if (err?.code === 'ENOENT')
|
|
76
|
+
return [];
|
|
77
|
+
throw err;
|
|
78
|
+
}
|
|
79
|
+
const files = [];
|
|
80
|
+
for (const bucketEntry of bucketEntries) {
|
|
81
|
+
if (!bucketEntry.isDirectory())
|
|
82
|
+
continue;
|
|
83
|
+
const bucket = bucketEntry.name;
|
|
84
|
+
const fileEntries = await fs.readdir(path.join(i18nRoot, bucket), { withFileTypes: true });
|
|
85
|
+
for (const fileEntry of fileEntries) {
|
|
86
|
+
if (!fileEntry.isFile())
|
|
87
|
+
continue;
|
|
88
|
+
const parsed = parseGeneratedLabelFileName(fileEntry.name);
|
|
89
|
+
if (!parsed)
|
|
90
|
+
continue;
|
|
91
|
+
files.push({
|
|
92
|
+
relativePath: `${bucket}/${fileEntry.name}`,
|
|
93
|
+
bucket,
|
|
94
|
+
slug: parsed.slug,
|
|
95
|
+
locale: parsed.locale,
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return files.sort((a, b) => a.relativePath.localeCompare(b.relativePath));
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Decide which generated files and lock rows are orphaned by the current plan.
|
|
103
|
+
*
|
|
104
|
+
* Pure — the caller supplies the scan and the plan, so the decision is testable
|
|
105
|
+
* without a filesystem and cannot be influenced by anything it did not receive.
|
|
106
|
+
*
|
|
107
|
+
* **Unit identity is `(bucket, slug)`, not a file name**, which is what makes one
|
|
108
|
+
* sweep cover BOTH orphan shapes the pipeline can produce. A unit's base file
|
|
109
|
+
* (`<slug>.<primaryLocale>.ts`) and every translation of it
|
|
110
|
+
* (`<slug>.<targetLocale>.ts`) share that pair, so a unit that stops being
|
|
111
|
+
* planned surfaces all of its files here at once — the translation files are not
|
|
112
|
+
* a second mechanism needing a second answer. Nothing is judged per-locale: a
|
|
113
|
+
* locale that is still on disk but no longer configured is a DIFFERENT question,
|
|
114
|
+
* and it is deliberately not answered here because the lock's `trackedLocales`
|
|
115
|
+
* only ever grows (`upsertI18nUnit` unions it) and therefore cannot serve as the
|
|
116
|
+
* denominator for "this locale was dropped".
|
|
117
|
+
*
|
|
118
|
+
* @param incompleteness Declared degradations from `planAllUnitsWithCompleteness`.
|
|
119
|
+
* Non-empty suppresses the whole verdict rather than only the suppressed
|
|
120
|
+
* buckets: a family that could not enumerate itself is also unable to promise
|
|
121
|
+
* that its units all live in the buckets it names.
|
|
122
|
+
*/
|
|
123
|
+
export function computeOrphanLabelArtifacts(args) {
|
|
124
|
+
const { plannedUnits, lockUnitIds, existingFiles, incompleteness } = args;
|
|
125
|
+
if (incompleteness.length > 0) {
|
|
126
|
+
return {
|
|
127
|
+
outcome: OrphanLabelArtifactsOutcome.UNAVAILABLE_PARTIAL_PLAN,
|
|
128
|
+
incompleteness,
|
|
129
|
+
orphanFiles: [],
|
|
130
|
+
orphanLockUnitIds: [],
|
|
131
|
+
scannedFileCount: existingFiles.length,
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
const plannedPairs = new Set(plannedUnits.map((unit) => `${unit.filePathHint.bucket}/${unit.filePathHint.slug}`));
|
|
135
|
+
const plannedIds = new Set(plannedUnits.map((unit) => unit.id));
|
|
136
|
+
return {
|
|
137
|
+
outcome: OrphanLabelArtifactsOutcome.REPORTED,
|
|
138
|
+
incompleteness: [],
|
|
139
|
+
orphanFiles: existingFiles
|
|
140
|
+
.filter((file) => !plannedPairs.has(`${file.bucket}/${file.slug}`))
|
|
141
|
+
.map((file) => file.relativePath),
|
|
142
|
+
orphanLockUnitIds: [...lockUnitIds].filter((id) => !plannedIds.has(id)).sort(),
|
|
143
|
+
scannedFileCount: existingFiles.length,
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* One operator-facing line summarising a report, for the run log. Names the
|
|
148
|
+
* artifacts rather than counting them: the whole value of a report over a delete
|
|
149
|
+
* is that a human can look at the list and recognise a file that should not be
|
|
150
|
+
* on it.
|
|
151
|
+
*/
|
|
152
|
+
export function describeOrphanLabelArtifacts(report) {
|
|
153
|
+
if (report.outcome === OrphanLabelArtifactsOutcome.UNAVAILABLE_SCAN_FAILED) {
|
|
154
|
+
return `Stale-unit detection skipped — the i18n state could not be read: ${report.scanFailure ?? 'unknown error'}`;
|
|
155
|
+
}
|
|
156
|
+
if (report.outcome === OrphanLabelArtifactsOutcome.UNAVAILABLE_PARTIAL_PLAN) {
|
|
157
|
+
const reasons = report.incompleteness
|
|
158
|
+
.map((entry) => `${entry.reason} (suppresses: ${entry.suppressedBuckets.join(', ') || 'none'})`)
|
|
159
|
+
.join('; ');
|
|
160
|
+
return `Stale-unit detection skipped — the plan is incomplete, so absence proves nothing: ${reasons}`;
|
|
161
|
+
}
|
|
162
|
+
const total = report.orphanFiles.length + report.orphanLockUnitIds.length;
|
|
163
|
+
if (total === 0) {
|
|
164
|
+
return `No stale label units: all ${report.scannedFileCount} generated file(s) belong to a planned unit`;
|
|
165
|
+
}
|
|
166
|
+
return [
|
|
167
|
+
`${total} stale label artifact(s) from unit(s) no longer planned — NOT removed, review before deleting.`,
|
|
168
|
+
report.orphanFiles.length > 0 ? `Files: ${report.orphanFiles.join(', ')}` : '',
|
|
169
|
+
report.orphanLockUnitIds.length > 0 ? `Lock units: ${report.orphanLockUnitIds.join(', ')}` : '',
|
|
170
|
+
]
|
|
171
|
+
.filter((part) => part.length > 0)
|
|
172
|
+
.join(' ');
|
|
173
|
+
}
|
|
174
|
+
//# sourceMappingURL=orphan-label-artifacts.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orphan-label-artifacts.utils.js","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/orphan-label-artifacts.utils.ts"],"names":[],"mappings":"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","sourcesContent":["import * as fs from 'node:fs/promises';\nimport * as path from 'node:path';\nimport { LANGUAGE_INFO_MAP } from '@wildo-ai/presets-components-models';\nimport type {\n LabellingPlanIncompleteness,\n LabellingUnit,\n} from '../models/labelling-unit.models';\n\n/**\n * Every locale code the framework recognises. Total over `AvailableLanguage`\n * rather than a hand-kept list, so a language added to the vocabulary tomorrow\n * is parsed as a locale by every existing installation instead of being\n * silently misread as part of a slug.\n */\nconst KNOWN_LOCALE_CODES: ReadonlySet<string> = new Set(Object.keys(LANGUAGE_INFO_MAP));\n\n/**\n * Whether the orphan question could be answered at all on this run.\n *\n * The two members are NOT \"found some\" / \"found none\" — that distinction is\n * `orphanFiles.length`. They separate a judgement from a REFUSAL to judge,\n * because the same empty `orphanFiles` array means opposite things in the two\n * cases and a consumer that conflated them would read \"nothing is stale\" off a\n * run that never looked.\n */\nexport enum OrphanLabelArtifactsOutcome {\n /** The planned unit set was total; `orphanFiles` / `orphanLockUnitIds` are a verdict. */\n REPORTED = 'reported',\n /** The plan declared itself incomplete; nothing was judged. See `incompleteness`. */\n UNAVAILABLE_PARTIAL_PLAN = 'unavailable-partial-plan',\n /**\n * The plan may have been fine; reading the i18n state was not — the directory\n * scan or the lock read threw. Distinct from `UNAVAILABLE_PARTIAL_PLAN`\n * because the remedies are different (repair the filesystem/lock vs. start the\n * frontend / bind the registry), and because merging them would let a broken\n * read masquerade as a known-partial plan. See `scanFailure`.\n */\n UNAVAILABLE_SCAN_FAILED = 'unavailable-scan-failed',\n}\n\n/** One generated label file discovered under the i18n root. */\nexport interface GeneratedLabelFile {\n /** Path relative to the i18n root, e.g. `resources/todos.en.ts`. */\n relativePath: string;\n /** Directory segment, e.g. `resources` — matches `LabellingUnit.filePathHint.bucket`. */\n bucket: string;\n /** File stem before the locale, e.g. `todos` — matches `filePathHint.slug`. */\n slug: string;\n /** Locale segment, guaranteed to be a member of `AvailableLanguage`. */\n locale: string;\n}\n\n/**\n * What label generation LEFT BEHIND: files and lock rows belonging to units the\n * application no longer plans.\n *\n * ## Why this reports and does not delete\n *\n * Key pruning inside a unit's file is safe because the unit was just planned and\n * regenerated — the planned key set is authoritative BY CONSTRUCTION for that\n * one unit. Unit pruning is a different question and has no such guarantee: it\n * asks whether a unit the run never mentioned still EXISTS, and the plan answers\n * that only as well as every one of its families could enumerate itself.\n *\n * Measured on the live planner, the frontend key snapshot degrades to EMPTY on\n * three separate conditions (no `SAAS_APP` frontend service, a failed\n * introspection subprocess, a malformed payload), each a logged warning rather\n * than a throw. On any of them all four frontend-derived buckets disappear from\n * the plan — on Wonder Todos that is `composite_views`, `views` and\n * `sidebar_sections`, three buckets of live, LLM-generated copy that a prune\n * would delete for the sole reason that the frontend dev server was not running.\n * Two more families (`milestones`, `billing`) vanish when their registry is not\n * bound in the container.\n *\n * Those five are DECLARED, so this report suppresses itself on them\n * ({@link OrphanLabelArtifactsOutcome.UNAVAILABLE_PARTIAL_PLAN}). One class is\n * not declarable at all: a resources registry that loaded some of the\n * application's modules reports success with fewer resources, and no signal\n * distinguishes that from a resource genuinely removed. That residual is why the\n * outcome of this unit is a REPORT — a human reading a named list of six files\n * loses nothing if the list is wrong, and an unlink does not have that property.\n *\n * ## What would make deletion safe\n *\n * A plan whose totality is established rather than assumed: the resources\n * registry would have to report the module set it loaded against the module set\n * the application declares, and every remaining family would have to answer\n * \"I enumerate my whole space\" rather than merely \"I did not fail\". Given that,\n * a prune gated on `outcome === REPORTED` becomes defensible — and should still\n * be an explicit operator verb, never a side effect of a generation run.\n */\nexport interface OrphanLabelArtifactsReport {\n outcome: OrphanLabelArtifactsOutcome;\n /** The declared degradations. Empty exactly when `outcome` is `REPORTED`. */\n incompleteness: readonly LabellingPlanIncompleteness[];\n /**\n * i18n-root-relative paths of generated label files whose `(bucket, slug)`\n * belongs to no planned unit — BASE and TRANSLATION files alike (see the\n * translation note on {@link computeOrphanLabelArtifacts}).\n */\n orphanFiles: readonly string[];\n /** Lock `sections.i18n.units` ids that belong to no planned unit. */\n orphanLockUnitIds: readonly string[];\n /** Count of generated files considered — the denominator behind `orphanFiles`. */\n scannedFileCount: number;\n /**\n * Why the i18n state could not be READ, when that is what stopped the verdict.\n * Set exactly when `outcome` is `UNAVAILABLE_SCAN_FAILED`.\n */\n scanFailure?: string;\n}\n\n/**\n * Parse `<slug>.<locale>.ts` into its parts, or `undefined` when the name is not\n * a generated per-unit label file.\n *\n * Deliberately conservative in the ONE direction that matters: the locale\n * segment must be a known `AvailableLanguage` code. A hand-authored neighbour\n * (`index.ts`, a helper, anything whose penultimate segment is not a locale) is\n * therefore never parsed, so it can never be named an orphan. A slug containing\n * dots keeps them — only the LAST two dot-separated segments are structural.\n */\nexport function parseGeneratedLabelFileName(\n fileName: string,\n): { slug: string; locale: string } | undefined {\n if (!fileName.endsWith('.ts')) return undefined;\n const withoutExtension = fileName.slice(0, -'.ts'.length);\n const lastDot = withoutExtension.lastIndexOf('.');\n if (lastDot <= 0) return undefined;\n const locale = withoutExtension.slice(lastDot + 1);\n if (!KNOWN_LOCALE_CODES.has(locale)) return undefined;\n const slug = withoutExtension.slice(0, lastDot);\n if (slug.length === 0) return undefined;\n return { slug, locale };\n}\n\n/**\n * Walk `<i18nRoot>/<bucket>/<slug>.<locale>.ts` and return every generated label\n * file. One level deep, matching the layout `resolvePerUnitFilePath` writes.\n *\n * A missing root yields an empty list (a fresh application has generated\n * nothing yet); any other filesystem error propagates, because \"I could not read\n * the directory\" must never be reported to a caller as \"the directory is empty\"\n * — that is the reading a prune would act on.\n */\nexport async function collectGeneratedLabelFiles(i18nRoot: string): Promise<GeneratedLabelFile[]> {\n let bucketEntries;\n try {\n bucketEntries = await fs.readdir(i18nRoot, { withFileTypes: true });\n } catch (err: unknown) {\n if ((err as NodeJS.ErrnoException)?.code === 'ENOENT') return [];\n throw err;\n }\n\n const files: GeneratedLabelFile[] = [];\n for (const bucketEntry of bucketEntries) {\n if (!bucketEntry.isDirectory()) continue;\n const bucket = bucketEntry.name;\n const fileEntries = await fs.readdir(path.join(i18nRoot, bucket), { withFileTypes: true });\n for (const fileEntry of fileEntries) {\n if (!fileEntry.isFile()) continue;\n const parsed = parseGeneratedLabelFileName(fileEntry.name);\n if (!parsed) continue;\n files.push({\n relativePath: `${bucket}/${fileEntry.name}`,\n bucket,\n slug: parsed.slug,\n locale: parsed.locale,\n });\n }\n }\n return files.sort((a, b) => a.relativePath.localeCompare(b.relativePath));\n}\n\n/**\n * Decide which generated files and lock rows are orphaned by the current plan.\n *\n * Pure — the caller supplies the scan and the plan, so the decision is testable\n * without a filesystem and cannot be influenced by anything it did not receive.\n *\n * **Unit identity is `(bucket, slug)`, not a file name**, which is what makes one\n * sweep cover BOTH orphan shapes the pipeline can produce. A unit's base file\n * (`<slug>.<primaryLocale>.ts`) and every translation of it\n * (`<slug>.<targetLocale>.ts`) share that pair, so a unit that stops being\n * planned surfaces all of its files here at once — the translation files are not\n * a second mechanism needing a second answer. Nothing is judged per-locale: a\n * locale that is still on disk but no longer configured is a DIFFERENT question,\n * and it is deliberately not answered here because the lock's `trackedLocales`\n * only ever grows (`upsertI18nUnit` unions it) and therefore cannot serve as the\n * denominator for \"this locale was dropped\".\n *\n * @param incompleteness Declared degradations from `planAllUnitsWithCompleteness`.\n * Non-empty suppresses the whole verdict rather than only the suppressed\n * buckets: a family that could not enumerate itself is also unable to promise\n * that its units all live in the buckets it names.\n */\nexport function computeOrphanLabelArtifacts(args: {\n plannedUnits: readonly Pick<LabellingUnit, 'id' | 'filePathHint'>[];\n lockUnitIds: readonly string[];\n existingFiles: readonly GeneratedLabelFile[];\n incompleteness: readonly LabellingPlanIncompleteness[];\n}): OrphanLabelArtifactsReport {\n const { plannedUnits, lockUnitIds, existingFiles, incompleteness } = args;\n\n if (incompleteness.length > 0) {\n return {\n outcome: OrphanLabelArtifactsOutcome.UNAVAILABLE_PARTIAL_PLAN,\n incompleteness,\n orphanFiles: [],\n orphanLockUnitIds: [],\n scannedFileCount: existingFiles.length,\n };\n }\n\n const plannedPairs = new Set(\n plannedUnits.map((unit) => `${unit.filePathHint.bucket}/${unit.filePathHint.slug}`),\n );\n const plannedIds = new Set(plannedUnits.map((unit) => unit.id));\n\n return {\n outcome: OrphanLabelArtifactsOutcome.REPORTED,\n incompleteness: [],\n orphanFiles: existingFiles\n .filter((file) => !plannedPairs.has(`${file.bucket}/${file.slug}`))\n .map((file) => file.relativePath),\n orphanLockUnitIds: [...lockUnitIds].filter((id) => !plannedIds.has(id)).sort(),\n scannedFileCount: existingFiles.length,\n };\n}\n\n/**\n * One operator-facing line summarising a report, for the run log. Names the\n * artifacts rather than counting them: the whole value of a report over a delete\n * is that a human can look at the list and recognise a file that should not be\n * on it.\n */\nexport function describeOrphanLabelArtifacts(report: OrphanLabelArtifactsReport): string {\n if (report.outcome === OrphanLabelArtifactsOutcome.UNAVAILABLE_SCAN_FAILED) {\n return `Stale-unit detection skipped — the i18n state could not be read: ${report.scanFailure ?? 'unknown error'}`;\n }\n if (report.outcome === OrphanLabelArtifactsOutcome.UNAVAILABLE_PARTIAL_PLAN) {\n const reasons = report.incompleteness\n .map((entry) => `${entry.reason} (suppresses: ${entry.suppressedBuckets.join(', ') || 'none'})`)\n .join('; ');\n return `Stale-unit detection skipped — the plan is incomplete, so absence proves nothing: ${reasons}`;\n }\n const total = report.orphanFiles.length + report.orphanLockUnitIds.length;\n if (total === 0) {\n return `No stale label units: all ${report.scannedFileCount} generated file(s) belong to a planned unit`;\n }\n return [\n `${total} stale label artifact(s) from unit(s) no longer planned — NOT removed, review before deleting.`,\n report.orphanFiles.length > 0 ? `Files: ${report.orphanFiles.join(', ')}` : '',\n report.orphanLockUnitIds.length > 0 ? `Lock units: ${report.orphanLockUnitIds.join(', ')}` : '',\n ]\n .filter((part) => part.length > 0)\n .join(' ');\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"per-unit-file.utils.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"per-unit-file.utils.d.ts","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/per-unit-file.utils.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,IAAI,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;IAC1C,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,mBAAmB,GAAG,MAAM,CAElG;AAED,wBAAsB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CASzF;AAED,wBAAsB,kBAAkB,CAAC,IAAI,EAAE;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,OAAO,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC,GAAG,OAAO,CAAC,MAAM,CAAC,CAWlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role-lifecycle-keys.utils.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"role-lifecycle-keys.utils.d.ts","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/role-lifecycle-keys.utils.ts"],"names":[],"mappings":"AAWA;;;;GAIG;AACH,eAAO,MAAM,kCAAkC;;;EAG7C,CAAC;AAEH;;;;GAIG;AACH,wBAAgB,eAAe,IAAI,MAAM,EAAE,CAwB1C;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,EAAE,CAmB/C"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { SystemEnumName } from '@wildo-ai/presets-components-models';
|
|
2
3
|
import type { AnyResourceConfiguration } from '@wildo-ai/saas-models';
|
|
3
4
|
import type { LabelKeyMeta } from '../models/labelling-unit.models';
|
|
4
5
|
/**
|
|
@@ -39,8 +40,38 @@ export interface SchemaFieldInfo {
|
|
|
39
40
|
* `buildEphemeralFieldKeyMeta`. OR-accumulated across schema occurrences.
|
|
40
41
|
*/
|
|
41
42
|
isEphemeral?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* The system-enum NAME this field's values belong to, when it has one — either
|
|
45
|
+
* declared by `.systemEnum('X')` on the schema, or recognised by an exact value-set
|
|
46
|
+
* match against `SYSTEM_ENUM_VALUES`.
|
|
47
|
+
*
|
|
48
|
+
* Recorded rather than discarded because it is the OTHER half of `isSystemEnum`.
|
|
49
|
+
* `isSystemEnum` says "suppress the per-field `<resource>.fields.<path>.enum.<value>`
|
|
50
|
+
* keys"; the name says WHERE the label must be planned instead
|
|
51
|
+
* (`system_enums.<name>.<value>`). Keeping only the boolean is what let a decorated
|
|
52
|
+
* name be suppressed here and never planned there, leaving the value with no label
|
|
53
|
+
* anywhere and rendering its RAW wire value in the UI — see
|
|
54
|
+
* `collectSystemEnumVocabularies` below.
|
|
55
|
+
*/
|
|
56
|
+
systemEnumName?: string;
|
|
42
57
|
}
|
|
43
58
|
export type SchemaFieldInfoMap = Map<string, SchemaFieldInfo>;
|
|
59
|
+
/**
|
|
60
|
+
* The framework's declared system-enum vocabulary — every `SystemEnumName` member,
|
|
61
|
+
* with its values.
|
|
62
|
+
*
|
|
63
|
+
* **A `Record<SystemEnumName, …>`, deliberately, and that is the whole point of this
|
|
64
|
+
* declaration.** The previous shape was an ARRAY of `{ name, values }` rows, and a second
|
|
65
|
+
* hand-kept copy of the same nine names lived in the labelling planner
|
|
66
|
+
* (`collectSystemEnumsKeys`). Both were written before `SystemEnumName.DURATION_UNIT`
|
|
67
|
+
* existed and neither was updated when it was added — so a `z_duration()` unit field was
|
|
68
|
+
* neither recognised here nor planned there. A `Record` keyed on the enum makes an
|
|
69
|
+
* eleventh member a COMPILE ERROR at this one site instead of a silent omission at two.
|
|
70
|
+
*
|
|
71
|
+
* Exported because the planner derives its system-enum unit from it; a second enumeration
|
|
72
|
+
* of this catalogue anywhere is the defect this replaces.
|
|
73
|
+
*/
|
|
74
|
+
export declare const SYSTEM_ENUM_VALUES: Record<SystemEnumName, readonly string[]>;
|
|
44
75
|
/**
|
|
45
76
|
* Recursively walk a Zod schema and populate the field info map.
|
|
46
77
|
*/
|
|
@@ -75,6 +106,79 @@ export declare function extractResourceFieldKeys(args: {
|
|
|
75
106
|
displayDefs: string[];
|
|
76
107
|
editDefs: string[];
|
|
77
108
|
}): string[];
|
|
109
|
+
/**
|
|
110
|
+
* Collect every system-enum vocabulary the application's own resources actually USE, as
|
|
111
|
+
* `name → values`.
|
|
112
|
+
*
|
|
113
|
+
* ## Why this exists, and why it walks the resources rather than reading a registry
|
|
114
|
+
*
|
|
115
|
+
* `extractResourceFieldKeys` above SUPPRESSES the per-field
|
|
116
|
+
* `<resource>.fields.<path>.enum.<value>` keys for any field whose `isSystemEnum` is true,
|
|
117
|
+
* on the contract that the value is labelled once, centrally, under
|
|
118
|
+
* `system_enums.<name>.<value>`. Nothing was enforcing the other half of that contract: the
|
|
119
|
+
* planner emitted a hand-written list of nine names, so every OTHER decorated name was
|
|
120
|
+
* suppressed here and planned nowhere — and `tResourceFieldEnumValue` then falls through to
|
|
121
|
+
* step 3 of its cascade and renders the RAW WIRE VALUE. Measured on the Wonder Todos
|
|
122
|
+
* generated tree on 2026-09-08: `organizationSubscriptions.status` had a field label and no
|
|
123
|
+
* `enum` block, so a subscription badge read `past_due`, a product type read `one_time`, and
|
|
124
|
+
* a pricing model read `per_unit`.
|
|
125
|
+
*
|
|
126
|
+
* Deriving from the SCHEMA WALK — rather than from the frontend's `registerCommonEnum`
|
|
127
|
+
* registry — is what makes the invariant structural instead of hand-kept:
|
|
128
|
+
*
|
|
129
|
+
* - it reads the exact same `buildResourceFieldInfoMap` walk that decides suppression, so
|
|
130
|
+
* "suppressed here ⇒ planned there" cannot come apart for any field;
|
|
131
|
+
* - it is total over the application. A resource that decorates a new vocabulary tomorrow
|
|
132
|
+
* is planned with no edit anywhere;
|
|
133
|
+
* - the registry could not have answered it anyway. `SYSTEM_ENUM_NAMES` is a Set mutated at
|
|
134
|
+
* FRONTEND startup by `registerBuiltinCommonEnums()` in a React bundle the companion's
|
|
135
|
+
* Node process never loads, it carries no VALUES, and two of the decorated vocabularies
|
|
136
|
+
* (`PlatformAccessGrantStatus`, `PlatformAccessGrantAutoApprovalReason`) are not in it at
|
|
137
|
+
* all — so a registry-derived planner would still have missed them.
|
|
138
|
+
*
|
|
139
|
+
* Vocabularies registered for RENDERING but never `.systemEnum()`-decorated (the
|
|
140
|
+
* user-preference badges, the two role vocabularies) are correctly absent: nothing suppresses
|
|
141
|
+
* their per-field keys, so they are already labelled — per field for the preferences, and in
|
|
142
|
+
* the `roles.*` tree for the roles. Planning them here would duplicate an authored label, and
|
|
143
|
+
* would flatten deliberate per-resource wording (`theme.AUTO` is "Automatic" on
|
|
144
|
+
* `userPreferences` and "System default" on `userSelfPreferences`).
|
|
145
|
+
*
|
|
146
|
+
* Values are de-duplicated across resources and returned in first-seen order per name; the
|
|
147
|
+
* caller sorts the names, so the emitted key list is deterministic and the lock fingerprint
|
|
148
|
+
* stays stable across runs.
|
|
149
|
+
*/
|
|
150
|
+
export declare function collectSystemEnumVocabularies(resourceConfigs: Iterable<AnyResourceConfiguration>): Map<string, Set<string>>;
|
|
151
|
+
/**
|
|
152
|
+
* Build the full `system_enums.<EnumName>.<value>` key list for the labelling plan.
|
|
153
|
+
*
|
|
154
|
+
* ## Two total sources, and why both are needed
|
|
155
|
+
*
|
|
156
|
+
* 1. **`SYSTEM_ENUM_VALUES`** — every member of the framework's declared `SystemEnumName`
|
|
157
|
+
* vocabulary, unconditionally. These are framework-owned and an application may reach one
|
|
158
|
+
* through a shared schema the resource walk does not necessarily see (a `z_duration()`
|
|
159
|
+
* field on a config object, say). Keyed as a `Record<SystemEnumName, …>` at its
|
|
160
|
+
* declaration, so an eleventh member is a compile error there rather than an omission
|
|
161
|
+
* here.
|
|
162
|
+
* 2. **`collectSystemEnumVocabularies`** — every vocabulary the application's own resource
|
|
163
|
+
* schemas declare with `.systemEnum()`, off the same walk that decides suppression. This
|
|
164
|
+
* is the half no fixed list can have: `SubscriptionStatus` has no `SystemEnumName`
|
|
165
|
+
* member, and an application that decorates a new vocabulary tomorrow is planned with no
|
|
166
|
+
* edit anywhere.
|
|
167
|
+
*
|
|
168
|
+
* ## Why it lives HERE rather than in the planner
|
|
169
|
+
*
|
|
170
|
+
* Beside `extractResourceFieldKeys`, which is the function it has to agree with. The defect
|
|
171
|
+
* this replaces was exactly a disagreement between the two: suppression lived here, the
|
|
172
|
+
* central plan lived in the planner as nine hand-written `push(...)` calls, and nothing
|
|
173
|
+
* connected them — so ten decorated vocabularies were suppressed here and planned nowhere,
|
|
174
|
+
* and `tResourceFieldEnumValue` rendered their raw wire values. One module now owns both
|
|
175
|
+
* halves, and one test can assert the invariant between them.
|
|
176
|
+
*
|
|
177
|
+
* Names are emitted in `SystemEnumName` declaration order first, then discovered ones sorted
|
|
178
|
+
* alphabetically, so the key list is deterministic and the labelling lock's fingerprint is
|
|
179
|
+
* stable across runs. A name in both sources contributes one group — the union of its values.
|
|
180
|
+
*/
|
|
181
|
+
export declare function buildSystemEnumLabelKeys(resourceConfigs: Iterable<AnyResourceConfiguration>): string[];
|
|
78
182
|
/**
|
|
79
183
|
* Build framework-general `LabelKeyMeta` for a resource's ephemeral fields.
|
|
80
184
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-fields-extractor.utils.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"schema-fields-extractor.utils.d.ts","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/schema-fields-extractor.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,OAAO,EACL,cAAc,EAUf,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE,CAAC,CAAC,UAAU,CAAC;IACtB;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;;;;;;;;OAYG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,MAAM,kBAAkB,GAAG,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;AAE9D;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,cAAc,EAAE,SAAS,MAAM,EAAE,CAWxE,CAAC;AAmGF;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,CAAC,CAAC,UAAU,GAAG,SAAS,EAChC,QAAQ,EAAE,MAAM,EAAE,EAClB,GAAG,EAAE,kBAAkB,GACtB,IAAI,CA6DN;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,2BAA2B,CAAC,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,CASlF;AA2BD;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE;IAC7C,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,wBAAwB,CAAC;IACzC,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,GAAG,MAAM,EAAE,CAoCX;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,wBAAgB,6BAA6B,CAC3C,eAAe,EAAE,QAAQ,CAAC,wBAAwB,CAAC,GAClD,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAc1B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,wBAAwB,CAAC,eAAe,EAAE,QAAQ,CAAC,wBAAwB,CAAC,GAAG,MAAM,EAAE,CAyBtG;AAmBD;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE;IAC/C,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,wBAAwB,CAAC;CAC1C,GAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAkB/B"}
|
|
@@ -1,28 +1,54 @@
|
|
|
1
1
|
import { unwrapSchema, getZodType, getZodDefProperty, hasZodInternals, getZodDefArrayProperty, getZodObjectShape, getZodDefSchemaProperty, getEnumValues, getSystemEnumName, hasTooltipForDisplay, hasTooltipForEdit, hasDescriptionForDisplay, hasDescriptionForEdit, isEphemeralField, } from '@wildo-ai/zod-decorators';
|
|
2
|
-
import { AvailableCurrency } from '@wildo-ai/zod-decorators';
|
|
2
|
+
import { AvailableCurrency, DurationUnit } from '@wildo-ai/zod-decorators';
|
|
3
3
|
import { SystemEnumName, CommonTimezone, TimeFormat, DateFormat, Month, AvailableLanguage, AvailableCountry, WorldRegion, WorldSubregion, LabelKind, } from '@wildo-ai/presets-components-models';
|
|
4
4
|
import { LabellingTypes } from '@wildo-ai/presets-components-models';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
/**
|
|
6
|
+
* The framework's declared system-enum vocabulary — every `SystemEnumName` member,
|
|
7
|
+
* with its values.
|
|
8
|
+
*
|
|
9
|
+
* **A `Record<SystemEnumName, …>`, deliberately, and that is the whole point of this
|
|
10
|
+
* declaration.** The previous shape was an ARRAY of `{ name, values }` rows, and a second
|
|
11
|
+
* hand-kept copy of the same nine names lived in the labelling planner
|
|
12
|
+
* (`collectSystemEnumsKeys`). Both were written before `SystemEnumName.DURATION_UNIT`
|
|
13
|
+
* existed and neither was updated when it was added — so a `z_duration()` unit field was
|
|
14
|
+
* neither recognised here nor planned there. A `Record` keyed on the enum makes an
|
|
15
|
+
* eleventh member a COMPILE ERROR at this one site instead of a silent omission at two.
|
|
16
|
+
*
|
|
17
|
+
* Exported because the planner derives its system-enum unit from it; a second enumeration
|
|
18
|
+
* of this catalogue anywhere is the defect this replaces.
|
|
19
|
+
*/
|
|
20
|
+
export const SYSTEM_ENUM_VALUES = {
|
|
21
|
+
[SystemEnumName.COMMON_TIMEZONE]: Object.values(CommonTimezone),
|
|
22
|
+
[SystemEnumName.TIME_FORMAT]: Object.values(TimeFormat),
|
|
23
|
+
[SystemEnumName.DATE_FORMAT]: Object.values(DateFormat),
|
|
24
|
+
[SystemEnumName.MONTH]: Object.values(Month),
|
|
25
|
+
[SystemEnumName.AVAILABLE_LANGUAGE]: Object.values(AvailableLanguage),
|
|
26
|
+
[SystemEnumName.AVAILABLE_CURRENCY]: Object.values(AvailableCurrency),
|
|
27
|
+
[SystemEnumName.DURATION_UNIT]: Object.values(DurationUnit),
|
|
28
|
+
[SystemEnumName.AVAILABLE_COUNTRY]: Object.values(AvailableCountry),
|
|
29
|
+
[SystemEnumName.WORLD_REGION]: Object.values(WorldRegion),
|
|
30
|
+
[SystemEnumName.WORLD_SUBREGION]: Object.values(WorldSubregion),
|
|
31
|
+
};
|
|
32
|
+
const SYSTEM_ENUM_VALUE_SETS = Object.entries(SYSTEM_ENUM_VALUES).map(([name, values]) => ({ name, values: new Set(values) }));
|
|
33
|
+
/**
|
|
34
|
+
* Recognise a field's value set as one of the framework's system enums, by EXACT set
|
|
35
|
+
* equality. Returns the matched name so the caller can plan the label under it; returns
|
|
36
|
+
* `undefined` when the values belong to no system enum.
|
|
37
|
+
*
|
|
38
|
+
* Value-set matching is the fallback for a field that carries no `.systemEnum()`
|
|
39
|
+
* decorator — a plain `z.enum(AvailableLanguage)` reaching a DTO through a path that
|
|
40
|
+
* dropped the decorated schema, for instance.
|
|
41
|
+
*/
|
|
42
|
+
function matchSystemEnumByValues(values) {
|
|
17
43
|
if (!values || values.length === 0)
|
|
18
|
-
return
|
|
44
|
+
return undefined;
|
|
19
45
|
const valueSet = new Set(values);
|
|
20
|
-
for (const { values: sysValues } of SYSTEM_ENUM_VALUE_SETS) {
|
|
46
|
+
for (const { name, values: sysValues } of SYSTEM_ENUM_VALUE_SETS) {
|
|
21
47
|
if (valueSet.size === sysValues.size && [...valueSet].every((v) => sysValues.has(v))) {
|
|
22
|
-
return
|
|
48
|
+
return name;
|
|
23
49
|
}
|
|
24
50
|
}
|
|
25
|
-
return
|
|
51
|
+
return undefined;
|
|
26
52
|
}
|
|
27
53
|
function registerField(pathParts, schema, acc) {
|
|
28
54
|
const fieldPath = pathParts.join('.');
|
|
@@ -90,8 +116,13 @@ function registerField(pathParts, schema, acc) {
|
|
|
90
116
|
}
|
|
91
117
|
}
|
|
92
118
|
entry.enumValues = enumValues;
|
|
119
|
+
// The DECORATOR wins over value matching: `.systemEnum('SubscriptionStatus')` names a
|
|
120
|
+
// vocabulary that has no `SystemEnumName` member and could never be recognised by
|
|
121
|
+
// values. Both answers feed one field so that suppression (`isSystemEnum`) and the
|
|
122
|
+
// planned destination (`systemEnumName`) can never disagree about the same field.
|
|
93
123
|
const decoratorSystemEnum = getSystemEnumName(schema);
|
|
94
|
-
entry.
|
|
124
|
+
entry.systemEnumName = decoratorSystemEnum || matchSystemEnumByValues(entry.enumValues);
|
|
125
|
+
entry.isSystemEnum = Boolean(entry.systemEnumName);
|
|
95
126
|
}
|
|
96
127
|
}
|
|
97
128
|
/**
|
|
@@ -256,6 +287,120 @@ export function extractResourceFieldKeys(args) {
|
|
|
256
287
|
}
|
|
257
288
|
return keys;
|
|
258
289
|
}
|
|
290
|
+
/**
|
|
291
|
+
* Collect every system-enum vocabulary the application's own resources actually USE, as
|
|
292
|
+
* `name → values`.
|
|
293
|
+
*
|
|
294
|
+
* ## Why this exists, and why it walks the resources rather than reading a registry
|
|
295
|
+
*
|
|
296
|
+
* `extractResourceFieldKeys` above SUPPRESSES the per-field
|
|
297
|
+
* `<resource>.fields.<path>.enum.<value>` keys for any field whose `isSystemEnum` is true,
|
|
298
|
+
* on the contract that the value is labelled once, centrally, under
|
|
299
|
+
* `system_enums.<name>.<value>`. Nothing was enforcing the other half of that contract: the
|
|
300
|
+
* planner emitted a hand-written list of nine names, so every OTHER decorated name was
|
|
301
|
+
* suppressed here and planned nowhere — and `tResourceFieldEnumValue` then falls through to
|
|
302
|
+
* step 3 of its cascade and renders the RAW WIRE VALUE. Measured on the Wonder Todos
|
|
303
|
+
* generated tree on 2026-09-08: `organizationSubscriptions.status` had a field label and no
|
|
304
|
+
* `enum` block, so a subscription badge read `past_due`, a product type read `one_time`, and
|
|
305
|
+
* a pricing model read `per_unit`.
|
|
306
|
+
*
|
|
307
|
+
* Deriving from the SCHEMA WALK — rather than from the frontend's `registerCommonEnum`
|
|
308
|
+
* registry — is what makes the invariant structural instead of hand-kept:
|
|
309
|
+
*
|
|
310
|
+
* - it reads the exact same `buildResourceFieldInfoMap` walk that decides suppression, so
|
|
311
|
+
* "suppressed here ⇒ planned there" cannot come apart for any field;
|
|
312
|
+
* - it is total over the application. A resource that decorates a new vocabulary tomorrow
|
|
313
|
+
* is planned with no edit anywhere;
|
|
314
|
+
* - the registry could not have answered it anyway. `SYSTEM_ENUM_NAMES` is a Set mutated at
|
|
315
|
+
* FRONTEND startup by `registerBuiltinCommonEnums()` in a React bundle the companion's
|
|
316
|
+
* Node process never loads, it carries no VALUES, and two of the decorated vocabularies
|
|
317
|
+
* (`PlatformAccessGrantStatus`, `PlatformAccessGrantAutoApprovalReason`) are not in it at
|
|
318
|
+
* all — so a registry-derived planner would still have missed them.
|
|
319
|
+
*
|
|
320
|
+
* Vocabularies registered for RENDERING but never `.systemEnum()`-decorated (the
|
|
321
|
+
* user-preference badges, the two role vocabularies) are correctly absent: nothing suppresses
|
|
322
|
+
* their per-field keys, so they are already labelled — per field for the preferences, and in
|
|
323
|
+
* the `roles.*` tree for the roles. Planning them here would duplicate an authored label, and
|
|
324
|
+
* would flatten deliberate per-resource wording (`theme.AUTO` is "Automatic" on
|
|
325
|
+
* `userPreferences` and "System default" on `userSelfPreferences`).
|
|
326
|
+
*
|
|
327
|
+
* Values are de-duplicated across resources and returned in first-seen order per name; the
|
|
328
|
+
* caller sorts the names, so the emitted key list is deterministic and the lock fingerprint
|
|
329
|
+
* stays stable across runs.
|
|
330
|
+
*/
|
|
331
|
+
export function collectSystemEnumVocabularies(resourceConfigs) {
|
|
332
|
+
const vocabularies = new Map();
|
|
333
|
+
for (const resourceConfig of resourceConfigs) {
|
|
334
|
+
for (const info of buildResourceFieldInfoMap(resourceConfig).values()) {
|
|
335
|
+
if (!info.systemEnumName || !info.enumValues || info.enumValues.length === 0)
|
|
336
|
+
continue;
|
|
337
|
+
let values = vocabularies.get(info.systemEnumName);
|
|
338
|
+
if (!values) {
|
|
339
|
+
values = new Set();
|
|
340
|
+
vocabularies.set(info.systemEnumName, values);
|
|
341
|
+
}
|
|
342
|
+
for (const value of info.enumValues)
|
|
343
|
+
values.add(value);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
return vocabularies;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Build the full `system_enums.<EnumName>.<value>` key list for the labelling plan.
|
|
350
|
+
*
|
|
351
|
+
* ## Two total sources, and why both are needed
|
|
352
|
+
*
|
|
353
|
+
* 1. **`SYSTEM_ENUM_VALUES`** — every member of the framework's declared `SystemEnumName`
|
|
354
|
+
* vocabulary, unconditionally. These are framework-owned and an application may reach one
|
|
355
|
+
* through a shared schema the resource walk does not necessarily see (a `z_duration()`
|
|
356
|
+
* field on a config object, say). Keyed as a `Record<SystemEnumName, …>` at its
|
|
357
|
+
* declaration, so an eleventh member is a compile error there rather than an omission
|
|
358
|
+
* here.
|
|
359
|
+
* 2. **`collectSystemEnumVocabularies`** — every vocabulary the application's own resource
|
|
360
|
+
* schemas declare with `.systemEnum()`, off the same walk that decides suppression. This
|
|
361
|
+
* is the half no fixed list can have: `SubscriptionStatus` has no `SystemEnumName`
|
|
362
|
+
* member, and an application that decorates a new vocabulary tomorrow is planned with no
|
|
363
|
+
* edit anywhere.
|
|
364
|
+
*
|
|
365
|
+
* ## Why it lives HERE rather than in the planner
|
|
366
|
+
*
|
|
367
|
+
* Beside `extractResourceFieldKeys`, which is the function it has to agree with. The defect
|
|
368
|
+
* this replaces was exactly a disagreement between the two: suppression lived here, the
|
|
369
|
+
* central plan lived in the planner as nine hand-written `push(...)` calls, and nothing
|
|
370
|
+
* connected them — so ten decorated vocabularies were suppressed here and planned nowhere,
|
|
371
|
+
* and `tResourceFieldEnumValue` rendered their raw wire values. One module now owns both
|
|
372
|
+
* halves, and one test can assert the invariant between them.
|
|
373
|
+
*
|
|
374
|
+
* Names are emitted in `SystemEnumName` declaration order first, then discovered ones sorted
|
|
375
|
+
* alphabetically, so the key list is deterministic and the labelling lock's fingerprint is
|
|
376
|
+
* stable across runs. A name in both sources contributes one group — the union of its values.
|
|
377
|
+
*/
|
|
378
|
+
export function buildSystemEnumLabelKeys(resourceConfigs) {
|
|
379
|
+
const vocabularies = new Map();
|
|
380
|
+
for (const [enumName, values] of Object.entries(SYSTEM_ENUM_VALUES)) {
|
|
381
|
+
vocabularies.set(enumName, new Set(values));
|
|
382
|
+
}
|
|
383
|
+
for (const [enumName, values] of collectSystemEnumVocabularies(resourceConfigs)) {
|
|
384
|
+
const existing = vocabularies.get(enumName);
|
|
385
|
+
if (existing) {
|
|
386
|
+
for (const value of values)
|
|
387
|
+
existing.add(value);
|
|
388
|
+
}
|
|
389
|
+
else {
|
|
390
|
+
vocabularies.set(enumName, values);
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
const declaredOrder = Object.keys(SYSTEM_ENUM_VALUES);
|
|
394
|
+
const declared = new Set(declaredOrder);
|
|
395
|
+
const discovered = [...vocabularies.keys()].filter((name) => !declared.has(name)).sort();
|
|
396
|
+
const keys = [];
|
|
397
|
+
for (const enumName of [...declaredOrder, ...discovered]) {
|
|
398
|
+
for (const value of vocabularies.get(enumName)) {
|
|
399
|
+
keys.push(`${LabellingTypes.SYSTEM_ENUMS}.${enumName}.${value}`);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
return keys;
|
|
403
|
+
}
|
|
259
404
|
/**
|
|
260
405
|
* Framework-general purpose for an ephemeral field's user-facing LABEL. The
|
|
261
406
|
* runtime field name (`plainKey`) is developer-oriented; the LLM, given this
|