@wildo-ai/dev-companion 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/__tests__/asset-noop.d.ts.map +1 -1
- package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +1 -1
- package/dist/esm/__tests__/internal-test-view.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-creative-brief.schemas.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.js +9 -3
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
- package/dist/esm/brand/models/logo-judge.schemas.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts +3 -24
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.js +10 -48
- package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
- package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/logo-deliberation.companion.service.js +2 -8
- package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
- package/dist/esm/brand/services/logo-generation.companion.service.d.ts +6 -3
- package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/logo-generation.companion.service.js +11 -12
- package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
- package/dist/esm/brand/utils/derived-brand-assets.d.ts +0 -1
- package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
- package/dist/esm/brand/utils/derived-brand-assets.js +1 -2
- package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
- package/dist/esm/brand/utils/stage-brand-candidate.d.ts +7 -9
- package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
- package/dist/esm/brand/utils/stage-brand-candidate.js +8 -11
- package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +52 -2
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +45 -0
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +45 -5
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +192 -13
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts +12 -22
- package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/git-change-set.companion.service.js +151 -82
- package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts +30 -4
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js +30 -4
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +16 -0
- package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.js +17 -0
- package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
- package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.d.ts.map +1 -1
- package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.d.ts.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.d.ts +57 -57
- package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts +90 -0
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -0
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.js +98 -0
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -0
- package/dist/esm/companion-api/controllers/companion.controller.d.ts +33 -5
- package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.js +150 -40
- package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts +8 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts.map +1 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.js +8 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.js.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.models.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts +34 -0
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -0
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js +65 -0
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -0
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts +11 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js +10 -2
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
- package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/context/companion-context.d.ts.map +1 -1
- package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
- package/dist/esm/core/inject/models/container.d.ts.map +1 -1
- package/dist/esm/core/inject/models/container.js +0 -7
- package/dist/esm/core/inject/models/container.js.map +1 -1
- package/dist/esm/core/inject/models/service-types.d.ts +0 -1
- package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
- package/dist/esm/core/inject/models/service-types.js +0 -1
- package/dist/esm/core/inject/models/service-types.js.map +1 -1
- package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
- package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +8 -4
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +8 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.js +42 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts +4 -9
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-register.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +3 -2
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-child.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts +14 -5
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js +14 -5
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts +0 -21
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js +39 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-context-block.builder.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts +41 -2
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js +178 -41
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts +23 -0
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.js +23 -0
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.js.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.models.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts +4 -4
- package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-startup-assembly.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-startup-assembly.js +5 -0
- package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/models/companion-runtime.models.d.ts.map +1 -1
- package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +16 -13
- package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
- package/dist/esm/core/runtime/services/start-companion-application.service.js +70 -45
- package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.js +9 -2
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-workbench-topology.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.d.ts.map +1 -1
- package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/execution-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/feature-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/milestone-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/product-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/role-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.models.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js +4 -4
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
- package/dist/esm/core/utils/atomic-write.utils.d.ts.map +1 -1
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +13 -3
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.js +0 -5
- package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.js +0 -2
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
- package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.js +4 -2
- package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.js +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.js.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.js +23 -1
- package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
- package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.d.ts +82 -3
- package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.js +128 -6
- package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js +7 -3
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js +11 -5
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts +9 -24
- package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.js +11 -60
- package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts +39 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js +39 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_announcement.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_card.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_modal.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_tooltip.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_tour.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
- package/dist/esm/i18n/index.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +58 -0
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-unit.models.js +35 -0
- package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js +8 -3
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
- package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +55 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +178 -73
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts +3 -3
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js +16 -5
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +35 -2
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +68 -29
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +126 -35
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-file-source.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts +143 -0
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js +179 -0
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts +154 -0
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js +174 -0
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts +104 -0
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js +163 -18
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/market/services/market-generation.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts +82 -3
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +210 -54
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts +27 -1
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js +38 -5
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts +49 -0
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js +95 -0
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -0
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js +9 -4
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +25 -6
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +82 -25
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +83 -2
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +197 -4
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +44 -3
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +346 -42
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts +117 -2
- package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-doc.companion.service.js +260 -69
- package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts +7 -1
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js +179 -10
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts +2 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js +10 -2
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
- package/package.json +17 -17
- package/dist/esm/core/runtime/companion-startup-composition-fence.d.ts +0 -44
- package/dist/esm/core/runtime/companion-startup-composition-fence.d.ts.map +0 -1
- package/dist/esm/core/runtime/companion-startup-composition-fence.js +0 -85
- package/dist/esm/core/runtime/companion-startup-composition-fence.js.map +0 -1
- package/dist/esm/expert-personas/utils/canonical-json.d.ts +0 -25
- package/dist/esm/expert-personas/utils/canonical-json.d.ts.map +0 -1
- package/dist/esm/expert-personas/utils/canonical-json.js +0 -45
- package/dist/esm/expert-personas/utils/canonical-json.js.map +0 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts +0 -19
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +0 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js +0 -19
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +0 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.d.ts +0 -17
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.d.ts.map +0 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.js +0 -17
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-build-generation-step.companion.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"application-build-generation-step.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/services/application-build-generation-step.companion.service.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,uBAAuB,EAAE,aAAa,E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AOG;IACU,kBAAkB,IAAI,OAAO,CAAC,OAAO,CAAC;IAoBnD;;;;OAIG;IACU,qBAAqB,CAChC,IAAI,EAAE,aAAa,EACnB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,uCAAuC,CAAC;IA4InD;;;;;;;;OAQG;YACW,oBAAoB;IAgBlC,OAAO,CAAC,wBAAwB;IAQhC;;;;;OAKG;IACH,OAAO,CAAC,qBAAqB;IAa7B,gHAAgH;IAChH,OAAO,CAAC,uBAAuB;CAOhC"}
|
package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js
CHANGED
|
@@ -12,8 +12,9 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
12
12
|
};
|
|
13
13
|
import * as path from 'node:path';
|
|
14
14
|
import { stat } from 'node:fs/promises';
|
|
15
|
+
import { existsSync, readdirSync } from 'node:fs';
|
|
15
16
|
import { inject, injectable } from 'inversify';
|
|
16
|
-
import { SAAS_SERVICE_TYPES } from '@wildo-ai/saas-backend-lib';
|
|
17
|
+
import { SAAS_SERVICE_TYPES, executeBoundedSubprocess } from '@wildo-ai/saas-backend-lib';
|
|
17
18
|
import { AvailableLanguage } from '@wildo-ai/presets-components-models';
|
|
18
19
|
import { BuildPlanTaskTargetKind } from '@wildo-ai/saas-specifications/application-creation';
|
|
19
20
|
import { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types.js';
|
|
@@ -55,7 +56,54 @@ export var ApplicationBuildGenerationStep;
|
|
|
55
56
|
* unchanged; what this adds is the journey's own path to one.
|
|
56
57
|
*/
|
|
57
58
|
ApplicationBuildGenerationStep["LOGO"] = "logo";
|
|
59
|
+
/**
|
|
60
|
+
* `wildo db generate` — turn the drift between the application's resource model and its accepted
|
|
61
|
+
* schema plan into a committed migration, so a PostgreSQL-backed application's tables exist.
|
|
62
|
+
*
|
|
63
|
+
* Added under the rule this enum's docblock states — a value joins WHEN a pipeline exists to
|
|
64
|
+
* execute it. The pipeline is the CLI's own generate door, which already owns every hard part
|
|
65
|
+
* (the planner, the risk vocabulary, the refusals) and advances the lockfile in the same
|
|
66
|
+
* invocation that writes the migration.
|
|
67
|
+
*
|
|
68
|
+
* The step is a NO-OP on an application with no accepted plan, and it REFUSES rather than
|
|
69
|
+
* guessing — see `executeGenerationStep`. That is deliberate: without a lockfile
|
|
70
|
+
* `wildo db generate` treats the whole model as an INITIAL migration, which on a MongoDB-backed
|
|
71
|
+
* application would author a table set nothing uses.
|
|
72
|
+
*/
|
|
73
|
+
ApplicationBuildGenerationStep["DATABASE_MIGRATIONS"] = "database-migrations";
|
|
58
74
|
})(ApplicationBuildGenerationStep || (ApplicationBuildGenerationStep = {}));
|
|
75
|
+
/** The application-root-relative accepted schema plan. Its PRESENCE is what says migrations were adopted. */
|
|
76
|
+
const SCHEMA_PLAN_LOCKFILE_RELATIVE_PATH = 'backend-api/migrations/schema-plan.lock.json';
|
|
77
|
+
/** The compiled registry `wildo db` imports to compute the current plan. Absent ⇒ the plan cannot be computed. */
|
|
78
|
+
const MODULES_REGISTRY_RELATIVE_PATH = 'backend-api/dist/modules-registry.backend.js';
|
|
79
|
+
/** Bounds on the `wildo db generate` subprocess. Generous: it spawns a runner that imports the whole app registry. */
|
|
80
|
+
const MIGRATION_GENERATION_TIMEOUT_MS = 10 * 60 * 1000;
|
|
81
|
+
/**
|
|
82
|
+
* How a generation step proves it did its work.
|
|
83
|
+
*
|
|
84
|
+
* Two kinds, because the obvious single answer does not fit every step. Most steps write FILES
|
|
85
|
+
* whose paths are known before they run, and "landed" means those files are committed. A migration
|
|
86
|
+
* step cannot: its artifact is `backend-api/migrations/<timestamp>_<name>/migration.sql`, and the
|
|
87
|
+
* timestamp is minted DURING the run.
|
|
88
|
+
*
|
|
89
|
+
* The tempting substitutes were both rejected, and the reasons are worth keeping:
|
|
90
|
+
*
|
|
91
|
+
* - the accepted lockfile — it ALREADY EXISTS before the step runs (the foundation playbook writes
|
|
92
|
+
* the baseline), so "is it committed?" is trivially true and the step would land having done
|
|
93
|
+
* nothing. That is precisely the directory-prefix shortcut this service's `LOGO` case warns about.
|
|
94
|
+
* - an empty path list — legal, and it makes the dispatch host SKIP the landed check entirely, so a
|
|
95
|
+
* step that generated nothing would read as complete.
|
|
96
|
+
*
|
|
97
|
+
* So the migration step's evidence is not a file at all: it is the STATE the step exists to reach —
|
|
98
|
+
* the model and the accepted plan agree. That is what `wildo db diff --check` answers.
|
|
99
|
+
*/
|
|
100
|
+
export var ApplicationBuildGenerationStepLandedKind;
|
|
101
|
+
(function (ApplicationBuildGenerationStepLandedKind) {
|
|
102
|
+
/** Landed when every named path is committed. The shape every file-writing step uses. */
|
|
103
|
+
ApplicationBuildGenerationStepLandedKind["COMMITTED_PATHS"] = "committed_paths";
|
|
104
|
+
/** Landed when the resource model and the accepted schema plan agree. */
|
|
105
|
+
ApplicationBuildGenerationStepLandedKind["SCHEMA_PLAN_IN_SYNC"] = "schema_plan_in_sync";
|
|
106
|
+
})(ApplicationBuildGenerationStepLandedKind || (ApplicationBuildGenerationStepLandedKind = {}));
|
|
59
107
|
/**
|
|
60
108
|
* The SSOT module `brand-accept` rewrites when it promotes a winner.
|
|
61
109
|
*
|
|
@@ -70,6 +118,33 @@ export class ApplicationBuildUnknownGenerationStepError extends Error {
|
|
|
70
118
|
+ `Known steps: ${Object.values(ApplicationBuildGenerationStep).join(', ')}.`);
|
|
71
119
|
}
|
|
72
120
|
}
|
|
121
|
+
/**
|
|
122
|
+
* The identity allowlist for the `wildo db generate` subprocess.
|
|
123
|
+
*
|
|
124
|
+
* PATH is the load-bearing entry: the CLI is a GLOBAL install and is deliberately NOT linked into an
|
|
125
|
+
* application's `node_modules/.bin` — verified on both dogfood applications — so it is reachable
|
|
126
|
+
* only through PATH. Kept to the same minimal set the verification hook uses rather than passing the
|
|
127
|
+
* companion's whole environment.
|
|
128
|
+
*/
|
|
129
|
+
function buildMigrationSubprocessEnv() {
|
|
130
|
+
const env = {};
|
|
131
|
+
for (const key of ['PATH', 'HOME', 'USER', 'LOGNAME', 'SHELL', 'TERM']) {
|
|
132
|
+
const value = process.env[key];
|
|
133
|
+
if (value !== undefined)
|
|
134
|
+
env[key] = value;
|
|
135
|
+
}
|
|
136
|
+
return env;
|
|
137
|
+
}
|
|
138
|
+
/** Migration folder names currently on disk (not the lockfile beside them). */
|
|
139
|
+
function listMigrationFolders(saasRoot) {
|
|
140
|
+
const migrationsRoot = path.join(saasRoot, 'backend-api', 'migrations');
|
|
141
|
+
if (!existsSync(migrationsRoot))
|
|
142
|
+
return [];
|
|
143
|
+
return readdirSync(migrationsRoot, { withFileTypes: true })
|
|
144
|
+
.filter((entry) => entry.isDirectory())
|
|
145
|
+
.map((entry) => entry.name)
|
|
146
|
+
.sort();
|
|
147
|
+
}
|
|
73
148
|
/**
|
|
74
149
|
* Execute companion-owned generation steps of a build plan, and answer which
|
|
75
150
|
* files each step is responsible for.
|
|
@@ -149,10 +224,72 @@ let ApplicationBuildGenerationStepCompanionService = class ApplicationBuildGener
|
|
|
149
224
|
* as a consequence of the step's own work.
|
|
150
225
|
*/
|
|
151
226
|
return [path.posix.join('specifications', 'src', 'brand', BRAND_RESOLVED_ASSETS_MODULE)];
|
|
227
|
+
case ApplicationBuildGenerationStep.DATABASE_MIGRATIONS:
|
|
228
|
+
/*
|
|
229
|
+
* ⚠ MUTATION SCOPE ONLY — this path is NOT this step's landed evidence, and using it as
|
|
230
|
+
* such would be the defect the landed-kind vocabulary above exists to prevent: the lockfile
|
|
231
|
+
* already exists before the step runs, so a landed check over it passes having verified
|
|
232
|
+
* nothing.
|
|
233
|
+
*
|
|
234
|
+
* It is named here because the dispatch host derives the task's writable roots from these
|
|
235
|
+
* paths' DIRECTORIES, and `backend-api/migrations/` is exactly right: the step writes the
|
|
236
|
+
* new migration folder and rewrites the lockfile, and nothing else.
|
|
237
|
+
*
|
|
238
|
+
* `resolveGenerationStepLandedCondition` is the only landed authority, and for this step it
|
|
239
|
+
* answers SCHEMA_PLAN_IN_SYNC.
|
|
240
|
+
*/
|
|
241
|
+
return [SCHEMA_PLAN_LOCKFILE_RELATIVE_PATH];
|
|
152
242
|
default:
|
|
153
243
|
throw new ApplicationBuildUnknownGenerationStepError(task.taskRef, generationStepRef);
|
|
154
244
|
}
|
|
155
245
|
}
|
|
246
|
+
/**
|
|
247
|
+
* How this task proves it landed — the ONLY landed authority for a generation step.
|
|
248
|
+
*
|
|
249
|
+
* Split from {@link resolveGenerationStepEvidencePaths} because that method answers a different
|
|
250
|
+
* question (which paths may this task write?) and the two answers diverge for exactly one step.
|
|
251
|
+
* Reading landing off the evidence paths would land the migration step on a file that predates it.
|
|
252
|
+
*/
|
|
253
|
+
async resolveGenerationStepLandedCondition(task) {
|
|
254
|
+
const generationStepRef = this.requireGenerationStepRef(task);
|
|
255
|
+
if (generationStepRef === ApplicationBuildGenerationStep.DATABASE_MIGRATIONS) {
|
|
256
|
+
return { kind: ApplicationBuildGenerationStepLandedKind.SCHEMA_PLAN_IN_SYNC };
|
|
257
|
+
}
|
|
258
|
+
return {
|
|
259
|
+
kind: ApplicationBuildGenerationStepLandedKind.COMMITTED_PATHS,
|
|
260
|
+
paths: await this.resolveGenerationStepEvidencePaths(task),
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Does the resource model agree with the accepted schema plan?
|
|
265
|
+
*
|
|
266
|
+
* FAIL-CLOSED on every uncertainty, and the direction matters: an unknown answer must read as NOT
|
|
267
|
+
* in sync, so the task stays ready and runs again. The opposite bias would land a migration task
|
|
268
|
+
* that never generated anything. Re-running costs nothing — `wildo db generate` over a clean plan
|
|
269
|
+
* reports "nothing to generate" and exits 0.
|
|
270
|
+
*/
|
|
271
|
+
async isSchemaPlanInSync() {
|
|
272
|
+
const saasRoot = this.companionContext.saasRoot;
|
|
273
|
+
if (!existsSync(path.join(saasRoot, SCHEMA_PLAN_LOCKFILE_RELATIVE_PATH)))
|
|
274
|
+
return false;
|
|
275
|
+
if (!existsSync(path.join(saasRoot, MODULES_REGISTRY_RELATIVE_PATH)))
|
|
276
|
+
return false;
|
|
277
|
+
try {
|
|
278
|
+
await executeBoundedSubprocess({
|
|
279
|
+
command: 'wildo',
|
|
280
|
+
args: ['db', 'diff', '--check'],
|
|
281
|
+
cwd: saasRoot,
|
|
282
|
+
env: buildMigrationSubprocessEnv(),
|
|
283
|
+
timeoutMs: MIGRATION_GENERATION_TIMEOUT_MS,
|
|
284
|
+
});
|
|
285
|
+
return true;
|
|
286
|
+
}
|
|
287
|
+
catch {
|
|
288
|
+
// Drift, an absent CLI, or a runner that could not import the registry — none of them is
|
|
289
|
+
// "in sync", and the caller re-runs the step rather than trusting a guess.
|
|
290
|
+
return false;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
156
293
|
/**
|
|
157
294
|
* Run the task's generation step. Incremental by construction: both
|
|
158
295
|
* pipelines consult the freshness lock and skip fresh units, so re-running
|
|
@@ -224,12 +361,68 @@ let ApplicationBuildGenerationStepCompanionService = class ApplicationBuildGener
|
|
|
224
361
|
const deliberation = await this.logoDeliberation.run({});
|
|
225
362
|
/*
|
|
226
363
|
* `run` stages its winner as the standard single-candidate manifest `accept` expects, which
|
|
227
|
-
* is why the two compose with no adapter
|
|
228
|
-
*
|
|
364
|
+
* is why the two compose with no adapter: the staged manifest IS the hand-off. An identity
|
|
365
|
+
* pin re-asserting that the manifest still held the winner went with the digest fences — a
|
|
366
|
+
* single-candidate staging area written one await earlier has nothing else it could hold.
|
|
229
367
|
*/
|
|
230
|
-
const accept = await this.brandAccept.accept({
|
|
368
|
+
const accept = await this.brandAccept.accept({});
|
|
231
369
|
return { generationStepRef, deliberation, accept, skippedBecauseAlreadyAccepted: false, evidencePaths };
|
|
232
370
|
}
|
|
371
|
+
case ApplicationBuildGenerationStep.DATABASE_MIGRATIONS: {
|
|
372
|
+
const saasRoot = this.companionContext.saasRoot;
|
|
373
|
+
const evidencePaths = await this.resolveGenerationStepEvidencePaths(task);
|
|
374
|
+
/*
|
|
375
|
+
* REFUSE rather than generate when there is no accepted plan.
|
|
376
|
+
*
|
|
377
|
+
* `wildo db generate` treats an absent lockfile as the INITIAL migration and renders the
|
|
378
|
+
* whole model — correct when a human asks for a baseline, wrong here: on a MongoDB-backed
|
|
379
|
+
* application it would author a table set nothing uses, and commit it. The baseline is the
|
|
380
|
+
* foundation playbook's step, and its absence means either this step was authored for an
|
|
381
|
+
* application that must not have it, or foundation has not run.
|
|
382
|
+
*/
|
|
383
|
+
if (!existsSync(path.join(saasRoot, SCHEMA_PLAN_LOCKFILE_RELATIVE_PATH))) {
|
|
384
|
+
throw new Error(`Build task ${task.taskRef} runs the database-migrations step, but this application has no accepted schema `
|
|
385
|
+
+ `plan (${SCHEMA_PLAN_LOCKFILE_RELATIVE_PATH} is absent). A MongoDB-backed application must not author this `
|
|
386
|
+
+ 'step at all; a PostgreSQL-backed one establishes its baseline in the foundation playbook '
|
|
387
|
+
+ '(`wildo db diff --update-lockfile`) before any migration can be generated.');
|
|
388
|
+
}
|
|
389
|
+
/*
|
|
390
|
+
* The plan is computed by IMPORTING the compiled backend registry, so an unbuilt tree cannot
|
|
391
|
+
* produce one. Generating from a stale or absent model would author a migration for a model
|
|
392
|
+
* nobody has — worse than not generating, because it then gets applied.
|
|
393
|
+
*/
|
|
394
|
+
if (!existsSync(path.join(saasRoot, MODULES_REGISTRY_RELATIVE_PATH))) {
|
|
395
|
+
throw new Error(`Build task ${task.taskRef} runs the database-migrations step, but ${MODULES_REGISTRY_RELATIVE_PATH} does not `
|
|
396
|
+
+ 'exist. The schema plan is computed by importing the compiled backend registry; build backend-api first.');
|
|
397
|
+
}
|
|
398
|
+
const before = listMigrationFolders(saasRoot);
|
|
399
|
+
this.logDebug('Running the database-migrations generation step', { taskRef: task.taskRef });
|
|
400
|
+
/*
|
|
401
|
+
* The migration LABEL comes from the task ref, so the folder is traceable back to the task
|
|
402
|
+
* that produced it. Sanitised to the kebab-case shape `--name` accepts; the CLI still owns
|
|
403
|
+
* the timestamp prefix, which is why the resulting path cannot be predicted here.
|
|
404
|
+
*/
|
|
405
|
+
const label = task.taskRef.toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '').slice(0, 60)
|
|
406
|
+
|| 'build-plan-migration';
|
|
407
|
+
const result = await executeBoundedSubprocess({
|
|
408
|
+
command: 'wildo',
|
|
409
|
+
args: ['db', 'generate', '--name', label],
|
|
410
|
+
cwd: saasRoot,
|
|
411
|
+
env: buildMigrationSubprocessEnv(),
|
|
412
|
+
timeoutMs: MIGRATION_GENERATION_TIMEOUT_MS,
|
|
413
|
+
});
|
|
414
|
+
const after = listMigrationFolders(saasRoot);
|
|
415
|
+
const generatedMigrationFolders = after.filter((folder) => !before.includes(folder));
|
|
416
|
+
return {
|
|
417
|
+
generationStepRef,
|
|
418
|
+
// A clean plan is a legitimate outcome, not a failure: the resources this task follows may
|
|
419
|
+
// have been migrated by an earlier one. The generator reports "nothing to generate".
|
|
420
|
+
skippedBecauseAlreadyInSync: generatedMigrationFolders.length === 0,
|
|
421
|
+
generatedMigrationFolders,
|
|
422
|
+
outputTail: `${result.stdout}${result.stderr}`.slice(-2000),
|
|
423
|
+
evidencePaths,
|
|
424
|
+
};
|
|
425
|
+
}
|
|
233
426
|
default:
|
|
234
427
|
throw new ApplicationBuildUnknownGenerationStepError(task.taskRef, generationStepRef);
|
|
235
428
|
}
|
package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-build-generation-step.companion.service.js","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/application-build-generation-step.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAG/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACh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,CAAC,CAAC;IACjE,CAAC;CACF,CAAA;AA1MY,8CAA8C;IAD1D,UAAU,EAAE;IAKR,WAAA,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAA;IAC3C,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;IAChD,WAAA,MAAM,CAAC,uBAAuB,CAAC,uBAAuB,CAAC,CAAA;IACvD,WAAA,MAAM,CAAC,uBAAuB,CAAC,4BAA4B,CAAC,CAAA;IAC5D,WAAA,MAAM,CAAC,uBAAuB,CAAC,4BAA4B,CAAC,CAAA;IAC5D,WAAA,MAAM,CAAC,uBAAuB,CAAC,oBAAoB,CAAC,CAAA;IACpD,WAAA,MAAM,CAAC,uBAAuB,CAAC,uBAAuB,CAAC,CAAA;IACvD,WAAA,MAAM,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,CAAA;iEALgC,gCAAgC;QACzB,qCAAqC;QACrC,qCAAqC;QACxC,6BAA6B;QACxB,gCAAgC;QAC1C,2BAA2B;GAZpG,8CAA8C,CA0M1D","sourcesContent":["import * as path from 'node:path';\nimport { stat } from 'node:fs/promises';\nimport { inject, injectable } from 'inversify';\n\nimport type { AppConfigurationService, LoggerService } from '@wildo-ai/saas-backend-lib';\nimport { SAAS_SERVICE_TYPES } from '@wildo-ai/saas-backend-lib';\nimport { AvailableLanguage } from '@wildo-ai/presets-components-models';\nimport { BuildPlanTaskTargetKind, type BuildPlanTask } from '@wildo-ai/saas-specifications/application-creation';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { getCompanionConfiguredPrimaryLanguage } from '../../core/config/primary-language.companion.utils';\nimport { LabellingPlannerCompanionService } from '../../i18n-labelling/services/labelling-planner.companion.service';\nimport {\n LabellizeOrchestratorCompanionService,\n type LabellizeRunResult,\n} from '../../i18n-labelling/services/labellize-orchestrator.companion.service';\nimport {\n TranslateOrchestratorCompanionService,\n type TranslateRunResult,\n} from '../../i18n-labelling/services/translate-orchestrator.companion.service';\nimport {\n EmailTemplateCompanionService,\n type GenerateEmailTemplatesResult,\n type TranslateEmailTemplateLabelsResult,\n} from '../../email/services/email-template.companion.service';\nimport {\n LogoDeliberationCompanionService,\n type LogoDeliberationResult,\n} from '../../brand/services/logo-deliberation.companion.service';\nimport {\n BrandAcceptCompanionService,\n type BrandAcceptResult,\n} from '../../brand/services/brand-accept.companion.service';\nimport type { CompanionExecutionSessionContext } from '../../core/traceability/companion-traceability.models';\n\n/**\n * The companion generation steps this host can EXECUTE.\n *\n * The values are the `generationStepRef` slugs a build plan authors on a\n * `COMPANION_GENERATION_STEP` target — the closed vocabulary this enum is the\n * named home of. A build plan may only reference steps that exist here: an\n * unknown ref refuses by name (below) instead of silently parking the build,\n * which is exactly how the first generation step ever authored\n * (`i18n-labels`) stalled the Wonder Todos build plan — the vocabulary\n * existed in `_core`, and nothing executed it.\n *\n * Seeds join this enum WHEN a seed-generation pipeline exists to execute —\n * adding the value without one would let a build plan dispatch a step that can\n * only fail; the unknown-ref refusal below is the honest answer until then.\n * The executor is the integration point, not a new lane per step.\n */\nexport enum ApplicationBuildGenerationStep {\n I18N_LABELS = 'i18n-labels',\n EMAIL_TEMPLATES = 'email-templates',\n /**\n * The brand mark: an expert panel derives creative directions, images are generated, a vision\n * judge scores them, and the winner is promoted into the specifications SSOT.\n *\n * Added under the rule this enum's docblock states — a value joins WHEN a pipeline exists to\n * execute it. That pipeline was fully built and reachable only by a human issuing\n * `POST /brand/{generate,deliberate,accept}-logo`, so an application could acquire a considered\n * mark only if someone drove it by hand (issue #220). Hand-supplying a logo stays available and\n * unchanged; what this adds is the journey's own path to one.\n */\n LOGO = 'logo',\n}\n\n/**\n * The SSOT module `brand-accept` rewrites when it promotes a winner.\n *\n * Restated here rather than imported because it is a module-private constant of the brand service;\n * the two must agree, and the pin in this lane's tests is what says so.\n */\nconst BRAND_RESOLVED_ASSETS_MODULE = 'resolved-assets.generated.ts';\n\n/** A build plan referenced a generation step this companion cannot execute. Named, so the plan author sees the vocabulary. */\nexport class ApplicationBuildUnknownGenerationStepError extends Error {\n public constructor(taskRef: string, generationStepRef: string) {\n super(\n `Build task ${taskRef} references generation step \"${generationStepRef}\", which this companion cannot execute. `\n + `Known steps: ${Object.values(ApplicationBuildGenerationStep).join(', ')}.`,\n );\n }\n}\n\n/** What one executed i18n-labels step did — the per-pipeline results, verbatim. */\nexport interface ApplicationBuildI18nLabelsStepRunResult {\n readonly generationStepRef: ApplicationBuildGenerationStep.I18N_LABELS;\n /** Primary-locale label generation (incremental — fresh units are skipped by the freshness lock). */\n readonly labellize: LabellizeRunResult;\n /** Translation into the other enabled locales; absent when the app enables only its primary locale. */\n readonly translate?: TranslateRunResult;\n /** The app-root-relative files this step is responsible for — the same paths the landed check reads. */\n readonly evidencePaths: readonly string[];\n}\n\n/** What one executed email-templates step did — the per-pipeline results, verbatim. */\nexport interface ApplicationBuildEmailTemplatesStepRunResult {\n readonly generationStepRef: ApplicationBuildGenerationStep.EMAIL_TEMPLATES;\n /** Primary-locale template + labels generation (incremental — existing template+labels pairs are skipped). */\n readonly emailGenerate: GenerateEmailTemplatesResult;\n /** Label translation into the other enabled locales; absent when the app enables only its primary locale. */\n readonly emailTranslate?: TranslateEmailTemplateLabelsResult;\n /** The app-root-relative files this step is responsible for — the same paths the landed check reads. */\n readonly evidencePaths: readonly string[];\n}\n\n/**\n * What one executed logo step did.\n *\n * `deliberation`/`accept` are absent when the step was SKIPPED because the application already has\n * an accepted mark — see the executor for why skipping is the incremental answer here rather than\n * the freshness lock the text pipelines use.\n */\nexport interface ApplicationBuildLogoStepRunResult {\n readonly generationStepRef: ApplicationBuildGenerationStep.LOGO;\n /** The expert-panel deliberation that derived directions, generated marks and picked a winner. */\n readonly deliberation?: LogoDeliberationResult;\n /** Promotion of that winner into `specifications/src/brand/` — images plus the rewritten SSOT. */\n readonly accept?: BrandAcceptResult;\n /** True when an accepted mark already existed and no model was called. */\n readonly skippedBecauseAlreadyAccepted: boolean;\n /** The app-root-relative files this step is responsible for — the same paths the landed check reads. */\n readonly evidencePaths: readonly string[];\n}\n\n/** One executed generation step's result, discriminated by the step it ran. */\nexport type ApplicationBuildGenerationStepRunResult =\n | ApplicationBuildI18nLabelsStepRunResult\n | ApplicationBuildEmailTemplatesStepRunResult\n | ApplicationBuildLogoStepRunResult;\n\n/**\n * Execute companion-owned generation steps of a build plan, and answer which\n * files each step is responsible for.\n *\n * A `COMPANION_GENERATION_STEP` is deterministic in its ROUTING and its\n * PLACEMENT — which pipeline runs and where the files land is decided by\n * code, never by a coding agent (`application-build-task-coding-policy`\n * refuses to compose a coding contract for one). The CONTENT may still come\n * from a model (labels are generated text), which is exactly the directive's\n * bucket-3 shape: a companion-owned generation step interleaved by the build\n * loop.\n *\n * ## Landed evidence, and why it is planner-derived\n *\n * The build lane's landed answer is GIT: a task has landed when the files it\n * produces are committed. A generation step's target carries only its\n * `generationStepRef` — no paths — so the file set must be DERIVED. For\n * `i18n-labels` it is the labelling planner's unit inventory crossed with the\n * app's enabled locales: exactly the files the pipelines write, re-derivable\n * after a restart, a fresh clone, or a branch switch. Deliberately NOT the\n * whole i18n directory: that is already committed on any app with history, and\n * a directory-prefix check would report the step landed without it ever\n * having run for the units it still owes.\n */\n@injectable()\nexport class ApplicationBuildGenerationStepCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n public constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(SAAS_SERVICE_TYPES.AppConfigService) private readonly appConfigService: AppConfigurationService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.LabellingPlannerService) private readonly planner: LabellingPlannerCompanionService,\n @inject(COMPANION_SERVICE_TYPES.LabellizeOrchestratorService) private readonly labellize: LabellizeOrchestratorCompanionService,\n @inject(COMPANION_SERVICE_TYPES.TranslateOrchestratorService) private readonly translate: TranslateOrchestratorCompanionService,\n @inject(COMPANION_SERVICE_TYPES.EmailTemplateService) private readonly emailTemplates: EmailTemplateCompanionService,\n @inject(COMPANION_SERVICE_TYPES.LogoDeliberationService) private readonly logoDeliberation: LogoDeliberationCompanionService,\n @inject(COMPANION_SERVICE_TYPES.BrandAcceptService) private readonly brandAccept: BrandAcceptCompanionService,\n ) {\n this.logDebug = this.logger.debugByType('ApplicationBuildGenerationStep');\n }\n\n /**\n * The app-root-relative files this task's generation step is responsible\n * for. The landed check treats the task as landed when EVERY one of them is\n * committed — same doctrine as every coding task, same reader\n * (`isWorktreePathCommitted`).\n */\n public async resolveGenerationStepEvidencePaths(task: BuildPlanTask): Promise<readonly string[]> {\n const generationStepRef = this.requireGenerationStepRef(task);\n switch (generationStepRef) {\n case ApplicationBuildGenerationStep.I18N_LABELS: {\n const i18nRoot = this.resolveI18nRelativeRoot();\n const locales = this.resolveEnabledLocales();\n const units = await this.planner.planAllUnits();\n return units.flatMap((unit) =>\n locales.map((locale) => path.posix.join(i18nRoot, unit.filePathHint.bucket, `${unit.filePathHint.slug}.${locale}.ts`)),\n );\n }\n case ApplicationBuildGenerationStep.EMAIL_TEMPLATES:\n // Placement is the email domain's authority; this lane only crosses it with the enabled locales.\n return this.emailTemplates.resolveExpectedArtifactRelativePaths(this.resolveEnabledLocales());\n case ApplicationBuildGenerationStep.LOGO:\n /*\n * The SSOT MODULE alone, deliberately — not the asset images beside it.\n *\n * Evidence must be derivable BEFORE the step runs, and the image filenames cannot be: they\n * are named after whichever mark the panel picks. The module can, and it is the honest\n * marker either way — `brand-accept` writes it only when a winner is promoted, so it is\n * absent on an application that has never accepted a logo and present exactly when one has.\n *\n * This is NOT the directory-prefix shortcut this class's docblock warns about. That check\n * would pass on any app whose `specifications/` is committed at all; this file exists only\n * as a consequence of the step's own work.\n */\n return [path.posix.join('specifications', 'src', 'brand', BRAND_RESOLVED_ASSETS_MODULE)];\n default:\n throw new ApplicationBuildUnknownGenerationStepError(task.taskRef, generationStepRef);\n }\n }\n\n /**\n * Run the task's generation step. Incremental by construction: both\n * pipelines consult the freshness lock and skip fresh units, so re-running\n * an already-satisfied step costs a plan read, not a model call.\n */\n public async executeGenerationStep(\n task: BuildPlanTask,\n session?: CompanionExecutionSessionContext,\n ): Promise<ApplicationBuildGenerationStepRunResult> {\n const generationStepRef = this.requireGenerationStepRef(task);\n switch (generationStepRef) {\n case ApplicationBuildGenerationStep.I18N_LABELS: {\n const primaryLocale = getCompanionConfiguredPrimaryLanguage(this.appConfigService.config);\n const targetLocales = this.resolveEnabledLocales().filter((locale) => locale !== primaryLocale);\n this.logDebug('Running the i18n-labels generation step', {\n taskRef: task.taskRef,\n primaryLocale,\n targetLocales,\n });\n const labellizeResult = await this.labellize.labellize({}, session);\n const translateResult = targetLocales.length > 0\n ? await this.translate.translate({ targetLocales }, session)\n : undefined;\n return {\n generationStepRef,\n labellize: labellizeResult,\n ...(translateResult ? { translate: translateResult } : {}),\n evidencePaths: await this.resolveGenerationStepEvidencePaths(task),\n };\n }\n case ApplicationBuildGenerationStep.EMAIL_TEMPLATES: {\n const primaryLocale = getCompanionConfiguredPrimaryLanguage(this.appConfigService.config);\n const targetLocales = this.resolveEnabledLocales().filter((locale) => locale !== primaryLocale);\n this.logDebug('Running the email-templates generation step', {\n taskRef: task.taskRef,\n primaryLocale,\n targetLocales,\n });\n const emailGenerate = await this.emailTemplates.generateTemplates({}, session);\n const emailTranslate = targetLocales.length > 0\n ? await this.emailTemplates.translateEmailTemplateLabels({ targetLocales: [...targetLocales] }, session)\n : undefined;\n return {\n generationStepRef,\n emailGenerate,\n ...(emailTranslate ? { emailTranslate } : {}),\n evidencePaths: await this.resolveGenerationStepEvidencePaths(task),\n };\n }\n case ApplicationBuildGenerationStep.LOGO: {\n const evidencePaths = await this.resolveGenerationStepEvidencePaths(task);\n /*\n * Incremental, but by PRESENCE rather than by the freshness lock the text pipelines use.\n *\n * Those pipelines skip per UNIT, because a label is cheap and units come and go. A logo\n * deliberation is a panel of three experts, N generated images and a vision judge — the\n * most expensive step in this enum by a wide margin — and an application has exactly one\n * accepted mark. So the honest unit of freshness is \"is there an accepted mark\", and the\n * answer is the same file the landed check reads. Re-running a satisfied step costs a\n * `stat`, not a model call.\n *\n * Replacing an existing mark stays a deliberate act through the brand routes; a build must\n * never quietly redraw an application's identity because it ran again.\n */\n if (await this.hasAcceptedBrandMark()) {\n this.logDebug('Skipping the logo generation step — an accepted mark already exists', {\n taskRef: task.taskRef,\n });\n return { generationStepRef, skippedBecauseAlreadyAccepted: true, evidencePaths };\n }\n\n this.logDebug('Running the logo generation step', { taskRef: task.taskRef });\n const deliberation = await this.logoDeliberation.run({});\n /*\n * `run` stages its winner as the standard single-candidate manifest `accept` expects, which\n * is why the two compose with no adapter. Passing the ref explicitly rather than relying on\n * that staging is the point at which this lane would otherwise trust an implicit hand-off.\n */\n const accept = await this.brandAccept.accept({ candidateRef: deliberation.staged.winnerRef });\n return { generationStepRef, deliberation, accept, skippedBecauseAlreadyAccepted: false, evidencePaths };\n }\n default:\n throw new ApplicationBuildUnknownGenerationStepError(task.taskRef, generationStepRef);\n }\n }\n\n /**\n * Does this application already carry an accepted brand mark?\n *\n * Presence of the SSOT module is the whole test. It is written only by a promotion, so its\n * existence means a winner was chosen — and its ABSENCE is what makes the step run. Reading the\n * module's contents to count assets was considered and rejected: it would need the specifications\n * package evaluated, which is a far heavier question than \"has this step ever succeeded\", and the\n * landed check next door already keys on the same file.\n */\n private async hasAcceptedBrandMark(): Promise<boolean> {\n const ssotModulePath = path.resolve(\n this.companionContext.saasRoot,\n 'specifications',\n 'src',\n 'brand',\n BRAND_RESOLVED_ASSETS_MODULE,\n );\n try {\n await stat(ssotModulePath);\n return true;\n } catch {\n return false;\n }\n }\n\n private requireGenerationStepRef(task: BuildPlanTask): string {\n const target = task.target;\n if (target?.kind !== BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP) {\n throw new Error(`Build task ${task.taskRef} is not a companion generation step.`);\n }\n return target.generationStepRef;\n }\n\n /**\n * The locales this application ENABLES — `appPreferences.languages.enabledLanguages`,\n * always including the primary. This is the \"every configured locale\" the\n * build task's objective speaks of; an app that enables only its primary\n * locale gets no translate pass and no foreign-locale evidence.\n */\n private resolveEnabledLocales(): readonly AvailableLanguage[] {\n const config = this.appConfigService.config as {\n appPreferences?: { languages?: { defaultLanguage?: unknown; enabledLanguages?: unknown } };\n } | null | undefined;\n const primary = getCompanionConfiguredPrimaryLanguage(config);\n const declared = config?.appPreferences?.languages?.enabledLanguages;\n const enabled = Array.isArray(declared)\n ? declared.filter((locale): locale is AvailableLanguage =>\n Object.values(AvailableLanguage).includes(locale as AvailableLanguage))\n : [];\n return [...new Set<AvailableLanguage>([primary, ...enabled])];\n }\n\n /** `<backend service path>/src/engine/i18n`, app-root relative — the same tree the orchestrators write into. */\n private resolveI18nRelativeRoot(): string {\n const backendService = Object.values(this.companionContext.backendServices)[0];\n if (!backendService) {\n throw new Error('No backend service configured for per-unit i18n output.');\n }\n return path.posix.join(backendService.path, 'src/engine/i18n');\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"application-build-generation-step.companion.service.js","sourceRoot":"","sources":["../../../../src/meta-workflows/services/application-build-generation-step.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAG/C,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,uBAAuB,EAAsB,MAAM,oDAAoD,CAAC;AAEj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'node:fs/promises';\nimport { existsSync, readdirSync } from 'node:fs';\nimport { inject, injectable } from 'inversify';\n\nimport type { AppConfigurationService, LoggerService } from '@wildo-ai/saas-backend-lib';\nimport { SAAS_SERVICE_TYPES, executeBoundedSubprocess } from '@wildo-ai/saas-backend-lib';\nimport { AvailableLanguage } from '@wildo-ai/presets-components-models';\nimport { BuildPlanTaskTargetKind, type BuildPlanTask } from '@wildo-ai/saas-specifications/application-creation';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { getCompanionConfiguredPrimaryLanguage } from '../../core/config/primary-language.companion.utils';\nimport { LabellingPlannerCompanionService } from '../../i18n-labelling/services/labelling-planner.companion.service';\nimport {\n LabellizeOrchestratorCompanionService,\n type LabellizeRunResult,\n} from '../../i18n-labelling/services/labellize-orchestrator.companion.service';\nimport {\n TranslateOrchestratorCompanionService,\n type TranslateRunResult,\n} from '../../i18n-labelling/services/translate-orchestrator.companion.service';\nimport {\n EmailTemplateCompanionService,\n type GenerateEmailTemplatesResult,\n type TranslateEmailTemplateLabelsResult,\n} from '../../email/services/email-template.companion.service';\nimport {\n LogoDeliberationCompanionService,\n type LogoDeliberationResult,\n} from '../../brand/services/logo-deliberation.companion.service';\nimport {\n BrandAcceptCompanionService,\n type BrandAcceptResult,\n} from '../../brand/services/brand-accept.companion.service';\nimport type { CompanionExecutionSessionContext } from '../../core/traceability/companion-traceability.models';\n\n/**\n * The companion generation steps this host can EXECUTE.\n *\n * The values are the `generationStepRef` slugs a build plan authors on a\n * `COMPANION_GENERATION_STEP` target — the closed vocabulary this enum is the\n * named home of. A build plan may only reference steps that exist here: an\n * unknown ref refuses by name (below) instead of silently parking the build,\n * which is exactly how the first generation step ever authored\n * (`i18n-labels`) stalled the Wonder Todos build plan — the vocabulary\n * existed in `_core`, and nothing executed it.\n *\n * Seeds join this enum WHEN a seed-generation pipeline exists to execute —\n * adding the value without one would let a build plan dispatch a step that can\n * only fail; the unknown-ref refusal below is the honest answer until then.\n * The executor is the integration point, not a new lane per step.\n */\nexport enum ApplicationBuildGenerationStep {\n I18N_LABELS = 'i18n-labels',\n EMAIL_TEMPLATES = 'email-templates',\n /**\n * The brand mark: an expert panel derives creative directions, images are generated, a vision\n * judge scores them, and the winner is promoted into the specifications SSOT.\n *\n * Added under the rule this enum's docblock states — a value joins WHEN a pipeline exists to\n * execute it. That pipeline was fully built and reachable only by a human issuing\n * `POST /brand/{generate,deliberate,accept}-logo`, so an application could acquire a considered\n * mark only if someone drove it by hand (issue #220). Hand-supplying a logo stays available and\n * unchanged; what this adds is the journey's own path to one.\n */\n LOGO = 'logo',\n /**\n * `wildo db generate` — turn the drift between the application's resource model and its accepted\n * schema plan into a committed migration, so a PostgreSQL-backed application's tables exist.\n *\n * Added under the rule this enum's docblock states — a value joins WHEN a pipeline exists to\n * execute it. The pipeline is the CLI's own generate door, which already owns every hard part\n * (the planner, the risk vocabulary, the refusals) and advances the lockfile in the same\n * invocation that writes the migration.\n *\n * The step is a NO-OP on an application with no accepted plan, and it REFUSES rather than\n * guessing — see `executeGenerationStep`. That is deliberate: without a lockfile\n * `wildo db generate` treats the whole model as an INITIAL migration, which on a MongoDB-backed\n * application would author a table set nothing uses.\n */\n DATABASE_MIGRATIONS = 'database-migrations',\n}\n\n/** The application-root-relative accepted schema plan. Its PRESENCE is what says migrations were adopted. */\nconst SCHEMA_PLAN_LOCKFILE_RELATIVE_PATH = 'backend-api/migrations/schema-plan.lock.json';\n\n/** The compiled registry `wildo db` imports to compute the current plan. Absent ⇒ the plan cannot be computed. */\nconst MODULES_REGISTRY_RELATIVE_PATH = 'backend-api/dist/modules-registry.backend.js';\n\n/** Bounds on the `wildo db generate` subprocess. Generous: it spawns a runner that imports the whole app registry. */\nconst MIGRATION_GENERATION_TIMEOUT_MS = 10 * 60 * 1000;\n\n/**\n * How a generation step proves it did its work.\n *\n * Two kinds, because the obvious single answer does not fit every step. Most steps write FILES\n * whose paths are known before they run, and \"landed\" means those files are committed. A migration\n * step cannot: its artifact is `backend-api/migrations/<timestamp>_<name>/migration.sql`, and the\n * timestamp is minted DURING the run.\n *\n * The tempting substitutes were both rejected, and the reasons are worth keeping:\n *\n * - the accepted lockfile — it ALREADY EXISTS before the step runs (the foundation playbook writes\n * the baseline), so \"is it committed?\" is trivially true and the step would land having done\n * nothing. That is precisely the directory-prefix shortcut this service's `LOGO` case warns about.\n * - an empty path list — legal, and it makes the dispatch host SKIP the landed check entirely, so a\n * step that generated nothing would read as complete.\n *\n * So the migration step's evidence is not a file at all: it is the STATE the step exists to reach —\n * the model and the accepted plan agree. That is what `wildo db diff --check` answers.\n */\nexport enum ApplicationBuildGenerationStepLandedKind {\n /** Landed when every named path is committed. The shape every file-writing step uses. */\n COMMITTED_PATHS = 'committed_paths',\n /** Landed when the resource model and the accepted schema plan agree. */\n SCHEMA_PLAN_IN_SYNC = 'schema_plan_in_sync',\n}\n\n/** What the dispatch host must evaluate to decide whether a generation-step task has landed. */\nexport type ApplicationBuildGenerationStepLandedCondition =\n | { readonly kind: ApplicationBuildGenerationStepLandedKind.COMMITTED_PATHS; readonly paths: readonly string[] }\n | { readonly kind: ApplicationBuildGenerationStepLandedKind.SCHEMA_PLAN_IN_SYNC };\n\n/**\n * The SSOT module `brand-accept` rewrites when it promotes a winner.\n *\n * Restated here rather than imported because it is a module-private constant of the brand service;\n * the two must agree, and the pin in this lane's tests is what says so.\n */\nconst BRAND_RESOLVED_ASSETS_MODULE = 'resolved-assets.generated.ts';\n\n/** A build plan referenced a generation step this companion cannot execute. Named, so the plan author sees the vocabulary. */\nexport class ApplicationBuildUnknownGenerationStepError extends Error {\n public constructor(taskRef: string, generationStepRef: string) {\n super(\n `Build task ${taskRef} references generation step \"${generationStepRef}\", which this companion cannot execute. `\n + `Known steps: ${Object.values(ApplicationBuildGenerationStep).join(', ')}.`,\n );\n }\n}\n\n/** What one executed i18n-labels step did — the per-pipeline results, verbatim. */\nexport interface ApplicationBuildI18nLabelsStepRunResult {\n readonly generationStepRef: ApplicationBuildGenerationStep.I18N_LABELS;\n /** Primary-locale label generation (incremental — fresh units are skipped by the freshness lock). */\n readonly labellize: LabellizeRunResult;\n /** Translation into the other enabled locales; absent when the app enables only its primary locale. */\n readonly translate?: TranslateRunResult;\n /** The app-root-relative files this step is responsible for — the same paths the landed check reads. */\n readonly evidencePaths: readonly string[];\n}\n\n/** What one executed email-templates step did — the per-pipeline results, verbatim. */\nexport interface ApplicationBuildEmailTemplatesStepRunResult {\n readonly generationStepRef: ApplicationBuildGenerationStep.EMAIL_TEMPLATES;\n /** Primary-locale template + labels generation (incremental — existing template+labels pairs are skipped). */\n readonly emailGenerate: GenerateEmailTemplatesResult;\n /** Label translation into the other enabled locales; absent when the app enables only its primary locale. */\n readonly emailTranslate?: TranslateEmailTemplateLabelsResult;\n /** The app-root-relative files this step is responsible for — the same paths the landed check reads. */\n readonly evidencePaths: readonly string[];\n}\n\n/**\n * What one executed logo step did.\n *\n * `deliberation`/`accept` are absent when the step was SKIPPED because the application already has\n * an accepted mark — see the executor for why skipping is the incremental answer here rather than\n * the freshness lock the text pipelines use.\n */\nexport interface ApplicationBuildLogoStepRunResult {\n readonly generationStepRef: ApplicationBuildGenerationStep.LOGO;\n /** The expert-panel deliberation that derived directions, generated marks and picked a winner. */\n readonly deliberation?: LogoDeliberationResult;\n /** Promotion of that winner into `specifications/src/brand/` — images plus the rewritten SSOT. */\n readonly accept?: BrandAcceptResult;\n /** True when an accepted mark already existed and no model was called. */\n readonly skippedBecauseAlreadyAccepted: boolean;\n /** The app-root-relative files this step is responsible for — the same paths the landed check reads. */\n readonly evidencePaths: readonly string[];\n}\n\n/**\n * What one executed `database-migrations` step did.\n *\n * `evidencePaths` is present for symmetry with its siblings and carries the MUTATION SCOPE, not the\n * landed evidence — this step lands on `SCHEMA_PLAN_IN_SYNC`, never on a path.\n */\nexport interface ApplicationBuildDatabaseMigrationsStepRunResult {\n readonly generationStepRef: ApplicationBuildGenerationStep.DATABASE_MIGRATIONS;\n /** True when the plan was already in sync and `wildo db generate` had nothing to write. */\n readonly skippedBecauseAlreadyInSync: boolean;\n /** The migration folder names present after the run that were not present before it. Usually 0 or 1. */\n readonly generatedMigrationFolders: readonly string[];\n /** The generator's own output tail — it names the tables and the risk of each change. */\n readonly outputTail: string;\n /** MUTATION SCOPE, not landed evidence. */\n readonly evidencePaths: readonly string[];\n}\n\n/** One executed generation step's result, discriminated by the step it ran. */\nexport type ApplicationBuildGenerationStepRunResult =\n | ApplicationBuildI18nLabelsStepRunResult\n | ApplicationBuildEmailTemplatesStepRunResult\n | ApplicationBuildLogoStepRunResult\n | ApplicationBuildDatabaseMigrationsStepRunResult;\n\n/**\n * The identity allowlist for the `wildo db generate` subprocess.\n *\n * PATH is the load-bearing entry: the CLI is a GLOBAL install and is deliberately NOT linked into an\n * application's `node_modules/.bin` — verified on both dogfood applications — so it is reachable\n * only through PATH. Kept to the same minimal set the verification hook uses rather than passing the\n * companion's whole environment.\n */\nfunction buildMigrationSubprocessEnv(): NodeJS.ProcessEnv {\n const env: NodeJS.ProcessEnv = {};\n for (const key of ['PATH', 'HOME', 'USER', 'LOGNAME', 'SHELL', 'TERM']) {\n const value = process.env[key];\n if (value !== undefined) env[key] = value;\n }\n return env;\n}\n\n/** Migration folder names currently on disk (not the lockfile beside them). */\nfunction listMigrationFolders(saasRoot: string): readonly string[] {\n const migrationsRoot = path.join(saasRoot, 'backend-api', 'migrations');\n if (!existsSync(migrationsRoot)) return [];\n return readdirSync(migrationsRoot, { withFileTypes: true })\n .filter((entry) => entry.isDirectory())\n .map((entry) => entry.name)\n .sort();\n}\n\n/**\n * Execute companion-owned generation steps of a build plan, and answer which\n * files each step is responsible for.\n *\n * A `COMPANION_GENERATION_STEP` is deterministic in its ROUTING and its\n * PLACEMENT — which pipeline runs and where the files land is decided by\n * code, never by a coding agent (`application-build-task-coding-policy`\n * refuses to compose a coding contract for one). The CONTENT may still come\n * from a model (labels are generated text), which is exactly the directive's\n * bucket-3 shape: a companion-owned generation step interleaved by the build\n * loop.\n *\n * ## Landed evidence, and why it is planner-derived\n *\n * The build lane's landed answer is GIT: a task has landed when the files it\n * produces are committed. A generation step's target carries only its\n * `generationStepRef` — no paths — so the file set must be DERIVED. For\n * `i18n-labels` it is the labelling planner's unit inventory crossed with the\n * app's enabled locales: exactly the files the pipelines write, re-derivable\n * after a restart, a fresh clone, or a branch switch. Deliberately NOT the\n * whole i18n directory: that is already committed on any app with history, and\n * a directory-prefix check would report the step landed without it ever\n * having run for the units it still owes.\n */\n@injectable()\nexport class ApplicationBuildGenerationStepCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n public constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(SAAS_SERVICE_TYPES.AppConfigService) private readonly appConfigService: AppConfigurationService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.LabellingPlannerService) private readonly planner: LabellingPlannerCompanionService,\n @inject(COMPANION_SERVICE_TYPES.LabellizeOrchestratorService) private readonly labellize: LabellizeOrchestratorCompanionService,\n @inject(COMPANION_SERVICE_TYPES.TranslateOrchestratorService) private readonly translate: TranslateOrchestratorCompanionService,\n @inject(COMPANION_SERVICE_TYPES.EmailTemplateService) private readonly emailTemplates: EmailTemplateCompanionService,\n @inject(COMPANION_SERVICE_TYPES.LogoDeliberationService) private readonly logoDeliberation: LogoDeliberationCompanionService,\n @inject(COMPANION_SERVICE_TYPES.BrandAcceptService) private readonly brandAccept: BrandAcceptCompanionService,\n ) {\n this.logDebug = this.logger.debugByType('ApplicationBuildGenerationStep');\n }\n\n /**\n * The app-root-relative files this task's generation step is responsible\n * for. The landed check treats the task as landed when EVERY one of them is\n * committed — same doctrine as every coding task, same reader\n * (`isWorktreePathCommitted`).\n */\n public async resolveGenerationStepEvidencePaths(task: BuildPlanTask): Promise<readonly string[]> {\n const generationStepRef = this.requireGenerationStepRef(task);\n switch (generationStepRef) {\n case ApplicationBuildGenerationStep.I18N_LABELS: {\n const i18nRoot = this.resolveI18nRelativeRoot();\n const locales = this.resolveEnabledLocales();\n const units = await this.planner.planAllUnits();\n return units.flatMap((unit) =>\n locales.map((locale) => path.posix.join(i18nRoot, unit.filePathHint.bucket, `${unit.filePathHint.slug}.${locale}.ts`)),\n );\n }\n case ApplicationBuildGenerationStep.EMAIL_TEMPLATES:\n // Placement is the email domain's authority; this lane only crosses it with the enabled locales.\n return this.emailTemplates.resolveExpectedArtifactRelativePaths(this.resolveEnabledLocales());\n case ApplicationBuildGenerationStep.LOGO:\n /*\n * The SSOT MODULE alone, deliberately — not the asset images beside it.\n *\n * Evidence must be derivable BEFORE the step runs, and the image filenames cannot be: they\n * are named after whichever mark the panel picks. The module can, and it is the honest\n * marker either way — `brand-accept` writes it only when a winner is promoted, so it is\n * absent on an application that has never accepted a logo and present exactly when one has.\n *\n * This is NOT the directory-prefix shortcut this class's docblock warns about. That check\n * would pass on any app whose `specifications/` is committed at all; this file exists only\n * as a consequence of the step's own work.\n */\n return [path.posix.join('specifications', 'src', 'brand', BRAND_RESOLVED_ASSETS_MODULE)];\n case ApplicationBuildGenerationStep.DATABASE_MIGRATIONS:\n /*\n * ⚠ MUTATION SCOPE ONLY — this path is NOT this step's landed evidence, and using it as\n * such would be the defect the landed-kind vocabulary above exists to prevent: the lockfile\n * already exists before the step runs, so a landed check over it passes having verified\n * nothing.\n *\n * It is named here because the dispatch host derives the task's writable roots from these\n * paths' DIRECTORIES, and `backend-api/migrations/` is exactly right: the step writes the\n * new migration folder and rewrites the lockfile, and nothing else.\n *\n * `resolveGenerationStepLandedCondition` is the only landed authority, and for this step it\n * answers SCHEMA_PLAN_IN_SYNC.\n */\n return [SCHEMA_PLAN_LOCKFILE_RELATIVE_PATH];\n default:\n throw new ApplicationBuildUnknownGenerationStepError(task.taskRef, generationStepRef);\n }\n }\n\n /**\n * How this task proves it landed — the ONLY landed authority for a generation step.\n *\n * Split from {@link resolveGenerationStepEvidencePaths} because that method answers a different\n * question (which paths may this task write?) and the two answers diverge for exactly one step.\n * Reading landing off the evidence paths would land the migration step on a file that predates it.\n */\n public async resolveGenerationStepLandedCondition(\n task: BuildPlanTask,\n ): Promise<ApplicationBuildGenerationStepLandedCondition> {\n const generationStepRef = this.requireGenerationStepRef(task);\n if (generationStepRef === ApplicationBuildGenerationStep.DATABASE_MIGRATIONS) {\n return { kind: ApplicationBuildGenerationStepLandedKind.SCHEMA_PLAN_IN_SYNC };\n }\n return {\n kind: ApplicationBuildGenerationStepLandedKind.COMMITTED_PATHS,\n paths: await this.resolveGenerationStepEvidencePaths(task),\n };\n }\n\n /**\n * Does the resource model agree with the accepted schema plan?\n *\n * FAIL-CLOSED on every uncertainty, and the direction matters: an unknown answer must read as NOT\n * in sync, so the task stays ready and runs again. The opposite bias would land a migration task\n * that never generated anything. Re-running costs nothing — `wildo db generate` over a clean plan\n * reports \"nothing to generate\" and exits 0.\n */\n public async isSchemaPlanInSync(): Promise<boolean> {\n const saasRoot = this.companionContext.saasRoot;\n if (!existsSync(path.join(saasRoot, SCHEMA_PLAN_LOCKFILE_RELATIVE_PATH))) return false;\n if (!existsSync(path.join(saasRoot, MODULES_REGISTRY_RELATIVE_PATH))) return false;\n try {\n await executeBoundedSubprocess({\n command: 'wildo',\n args: ['db', 'diff', '--check'],\n cwd: saasRoot,\n env: buildMigrationSubprocessEnv(),\n timeoutMs: MIGRATION_GENERATION_TIMEOUT_MS,\n });\n return true;\n } catch {\n // Drift, an absent CLI, or a runner that could not import the registry — none of them is\n // \"in sync\", and the caller re-runs the step rather than trusting a guess.\n return false;\n }\n }\n\n /**\n * Run the task's generation step. Incremental by construction: both\n * pipelines consult the freshness lock and skip fresh units, so re-running\n * an already-satisfied step costs a plan read, not a model call.\n */\n public async executeGenerationStep(\n task: BuildPlanTask,\n session?: CompanionExecutionSessionContext,\n ): Promise<ApplicationBuildGenerationStepRunResult> {\n const generationStepRef = this.requireGenerationStepRef(task);\n switch (generationStepRef) {\n case ApplicationBuildGenerationStep.I18N_LABELS: {\n const primaryLocale = getCompanionConfiguredPrimaryLanguage(this.appConfigService.config);\n const targetLocales = this.resolveEnabledLocales().filter((locale) => locale !== primaryLocale);\n this.logDebug('Running the i18n-labels generation step', {\n taskRef: task.taskRef,\n primaryLocale,\n targetLocales,\n });\n const labellizeResult = await this.labellize.labellize({}, session);\n const translateResult = targetLocales.length > 0\n ? await this.translate.translate({ targetLocales }, session)\n : undefined;\n return {\n generationStepRef,\n labellize: labellizeResult,\n ...(translateResult ? { translate: translateResult } : {}),\n evidencePaths: await this.resolveGenerationStepEvidencePaths(task),\n };\n }\n case ApplicationBuildGenerationStep.EMAIL_TEMPLATES: {\n const primaryLocale = getCompanionConfiguredPrimaryLanguage(this.appConfigService.config);\n const targetLocales = this.resolveEnabledLocales().filter((locale) => locale !== primaryLocale);\n this.logDebug('Running the email-templates generation step', {\n taskRef: task.taskRef,\n primaryLocale,\n targetLocales,\n });\n const emailGenerate = await this.emailTemplates.generateTemplates({}, session);\n const emailTranslate = targetLocales.length > 0\n ? await this.emailTemplates.translateEmailTemplateLabels({ targetLocales: [...targetLocales] }, session)\n : undefined;\n return {\n generationStepRef,\n emailGenerate,\n ...(emailTranslate ? { emailTranslate } : {}),\n evidencePaths: await this.resolveGenerationStepEvidencePaths(task),\n };\n }\n case ApplicationBuildGenerationStep.LOGO: {\n const evidencePaths = await this.resolveGenerationStepEvidencePaths(task);\n /*\n * Incremental, but by PRESENCE rather than by the freshness lock the text pipelines use.\n *\n * Those pipelines skip per UNIT, because a label is cheap and units come and go. A logo\n * deliberation is a panel of three experts, N generated images and a vision judge — the\n * most expensive step in this enum by a wide margin — and an application has exactly one\n * accepted mark. So the honest unit of freshness is \"is there an accepted mark\", and the\n * answer is the same file the landed check reads. Re-running a satisfied step costs a\n * `stat`, not a model call.\n *\n * Replacing an existing mark stays a deliberate act through the brand routes; a build must\n * never quietly redraw an application's identity because it ran again.\n */\n if (await this.hasAcceptedBrandMark()) {\n this.logDebug('Skipping the logo generation step — an accepted mark already exists', {\n taskRef: task.taskRef,\n });\n return { generationStepRef, skippedBecauseAlreadyAccepted: true, evidencePaths };\n }\n\n this.logDebug('Running the logo generation step', { taskRef: task.taskRef });\n const deliberation = await this.logoDeliberation.run({});\n /*\n * `run` stages its winner as the standard single-candidate manifest `accept` expects, which\n * is why the two compose with no adapter: the staged manifest IS the hand-off. An identity\n * pin re-asserting that the manifest still held the winner went with the digest fences — a\n * single-candidate staging area written one await earlier has nothing else it could hold.\n */\n const accept = await this.brandAccept.accept({});\n return { generationStepRef, deliberation, accept, skippedBecauseAlreadyAccepted: false, evidencePaths };\n }\n case ApplicationBuildGenerationStep.DATABASE_MIGRATIONS: {\n const saasRoot = this.companionContext.saasRoot;\n const evidencePaths = await this.resolveGenerationStepEvidencePaths(task);\n\n /*\n * REFUSE rather than generate when there is no accepted plan.\n *\n * `wildo db generate` treats an absent lockfile as the INITIAL migration and renders the\n * whole model — correct when a human asks for a baseline, wrong here: on a MongoDB-backed\n * application it would author a table set nothing uses, and commit it. The baseline is the\n * foundation playbook's step, and its absence means either this step was authored for an\n * application that must not have it, or foundation has not run.\n */\n if (!existsSync(path.join(saasRoot, SCHEMA_PLAN_LOCKFILE_RELATIVE_PATH))) {\n throw new Error(\n `Build task ${task.taskRef} runs the database-migrations step, but this application has no accepted schema `\n + `plan (${SCHEMA_PLAN_LOCKFILE_RELATIVE_PATH} is absent). A MongoDB-backed application must not author this `\n + 'step at all; a PostgreSQL-backed one establishes its baseline in the foundation playbook '\n + '(`wildo db diff --update-lockfile`) before any migration can be generated.',\n );\n }\n /*\n * The plan is computed by IMPORTING the compiled backend registry, so an unbuilt tree cannot\n * produce one. Generating from a stale or absent model would author a migration for a model\n * nobody has — worse than not generating, because it then gets applied.\n */\n if (!existsSync(path.join(saasRoot, MODULES_REGISTRY_RELATIVE_PATH))) {\n throw new Error(\n `Build task ${task.taskRef} runs the database-migrations step, but ${MODULES_REGISTRY_RELATIVE_PATH} does not `\n + 'exist. The schema plan is computed by importing the compiled backend registry; build backend-api first.',\n );\n }\n\n const before = listMigrationFolders(saasRoot);\n this.logDebug('Running the database-migrations generation step', { taskRef: task.taskRef });\n /*\n * The migration LABEL comes from the task ref, so the folder is traceable back to the task\n * that produced it. Sanitised to the kebab-case shape `--name` accepts; the CLI still owns\n * the timestamp prefix, which is why the resulting path cannot be predicted here.\n */\n const label = task.taskRef.toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '').slice(0, 60)\n || 'build-plan-migration';\n const result = await executeBoundedSubprocess({\n command: 'wildo',\n args: ['db', 'generate', '--name', label],\n cwd: saasRoot,\n env: buildMigrationSubprocessEnv(),\n timeoutMs: MIGRATION_GENERATION_TIMEOUT_MS,\n });\n const after = listMigrationFolders(saasRoot);\n const generatedMigrationFolders = after.filter((folder) => !before.includes(folder));\n return {\n generationStepRef,\n // A clean plan is a legitimate outcome, not a failure: the resources this task follows may\n // have been migrated by an earlier one. The generator reports \"nothing to generate\".\n skippedBecauseAlreadyInSync: generatedMigrationFolders.length === 0,\n generatedMigrationFolders,\n outputTail: `${result.stdout}${result.stderr}`.slice(-2000),\n evidencePaths,\n };\n }\n default:\n throw new ApplicationBuildUnknownGenerationStepError(task.taskRef, generationStepRef);\n }\n }\n\n /**\n * Does this application already carry an accepted brand mark?\n *\n * Presence of the SSOT module is the whole test. It is written only by a promotion, so its\n * existence means a winner was chosen — and its ABSENCE is what makes the step run. Reading the\n * module's contents to count assets was considered and rejected: it would need the specifications\n * package evaluated, which is a far heavier question than \"has this step ever succeeded\", and the\n * landed check next door already keys on the same file.\n */\n private async hasAcceptedBrandMark(): Promise<boolean> {\n const ssotModulePath = path.resolve(\n this.companionContext.saasRoot,\n 'specifications',\n 'src',\n 'brand',\n BRAND_RESOLVED_ASSETS_MODULE,\n );\n try {\n await stat(ssotModulePath);\n return true;\n } catch {\n return false;\n }\n }\n\n private requireGenerationStepRef(task: BuildPlanTask): string {\n const target = task.target;\n if (target?.kind !== BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP) {\n throw new Error(`Build task ${task.taskRef} is not a companion generation step.`);\n }\n return target.generationStepRef;\n }\n\n /**\n * The locales this application ENABLES — `appPreferences.languages.enabledLanguages`,\n * always including the primary. This is the \"every configured locale\" the\n * build task's objective speaks of; an app that enables only its primary\n * locale gets no translate pass and no foreign-locale evidence.\n */\n private resolveEnabledLocales(): readonly AvailableLanguage[] {\n const config = this.appConfigService.config as {\n appPreferences?: { languages?: { defaultLanguage?: unknown; enabledLanguages?: unknown } };\n } | null | undefined;\n const primary = getCompanionConfiguredPrimaryLanguage(config);\n const declared = config?.appPreferences?.languages?.enabledLanguages;\n const enabled = Array.isArray(declared)\n ? declared.filter((locale): locale is AvailableLanguage =>\n Object.values(AvailableLanguage).includes(locale as AvailableLanguage))\n : [];\n return [...new Set<AvailableLanguage>([primary, ...enabled])];\n }\n\n /** `<backend service path>/src/engine/i18n`, app-root relative — the same tree the orchestrators write into. */\n private resolveI18nRelativeRoot(): string {\n const backendService = Object.values(this.companionContext.backendServices)[0];\n if (!backendService) {\n throw new Error('No backend service configured for per-unit i18n output.');\n }\n return path.posix.join(backendService.path, 'src/engine/i18n');\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-build-task-coding-policy.companion.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"application-build-task-coding-policy.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/services/application-build-task-coding-policy.companion.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,aAAa,EACnB,MAAM,oDAAoD,CAAC;AAE5D;;;;;;;;;GASG;AACH,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,mBAAmB,EAAE,SAAS,MAAM,EAAE,CAAC;IAChD,QAAQ,CAAC,sBAAsB,EAAE,SAAS,MAAM,EAAE,CAAC;IACnD,QAAQ,CAAC,iBAAiB,EAAE,SAAS,MAAM,EAAE,CAAC;CAC/C;AAED,4FAA4F;AAC5F,qBAAa,uCAAwC,SAAQ,KAAK;aAC7B,OAAO,EAAE,MAAM;aAAkB,iBAAiB,EAAE,MAAM;gBAA1D,OAAO,EAAE,MAAM,EAAkB,iBAAiB,EAAE,MAAM;CAI9F;AA6BD,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,aAAa,GAAG,gCAAgC,CAgEtG;AAMD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,aAAa,GAAG,SAAS,MAAM,EAAE,CA2C1F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-trace-read.companion.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"execution-trace-read.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/services/execution-trace-read.companion.service.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAE7E,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,iGAAiG;IACjG,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;CACvC;AAED,MAAM,WAAW,qBAAsB,SAAQ,4BAA4B;IACzE,QAAQ,CAAC,MAAM,EAAE,SAAS,mBAAmB,EAAE,CAAC;IAChD,QAAQ,CAAC,KAAK,EAAE,SAAS,kBAAkB,EAAE,CAAC;CAC/C;AAED,qBAAa,2BAA4B,SAAQ,KAAK;CAAG;AAEzD;;;;;;;;;;GAUG;AACH,qBACa,kCAAkC;IAEO,OAAO,CAAC,QAAQ,CAAC,gBAAgB;gBAAhB,gBAAgB,EAAE,gBAAgB;IAG1F,YAAY,CAAC,KAAK,SAAK,GAAG,OAAO,CAAC,SAAS,4BAA4B,EAAE,CAAC;IASvF;;;;;;;OAOG;IACU,cAAc,IAAI,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC;IAM5C,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAe3E,6GAA6G;IAChG,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAUpG,OAAO,CAAC,YAAY;YAIN,SAAS;YAkBT,UAAU;YAUV,SAAS;CAOxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"foundation-executor.companion.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"foundation-executor.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/services/foundation-executor.companion.service.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAIL,sBAAsB,EAQvB,MAAM,wCAAwC,CAAC;AAGhD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAE7E;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,M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,CAAA;SAAE,CAAC,CAAC;QACtG,oDAAoD;QACpD,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;KAC3B,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAyDtC,OAAO,CAAC,eAAe;IA2CvB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,wBAAwB;CAUjC"}
|
package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playbook-choreography-checkpoint.companion.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"playbook-choreography-checkpoint.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/services/playbook-choreography-checkpoint.companion.service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,wCAAwC,CAAC;AAG7F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAE7E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,oCAAoC;;;;;;;;;;iBAc/C,CAAC;AAEH,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAExG,qBACa,8CAA8C;IAIpB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACR,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IAJrF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA+D;gBAGlC,MAAM,EAAE,aAAa,EACN,gBAAgB,EAAE,gBAAgB;IAKvG;;;;;;OAMG;IACU,IAAI,CAAC,QAAQ,EAAE,8BAA8B,GAAG,OAAO,CAAC,IAAI,CAAC;IAmB1E;;;;OAIG;IACU,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,8BAA8B,GAAG;QAAE,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,IAAI,CAAC;IAmB9H;;;;;;;;;;OAUG;IACU,IAAI,IAAI,OAAO,CAAC,SAAS;QACpC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;QAC7B,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;QACrC,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;QACrC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;KACjC,EAAE,CAAC;IAqBJ,+FAA+F;IAClF,OAAO,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIxD,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,WAAW;CAKpB"}
|
package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playbook-execution-trace.companion.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"playbook-execution-trace.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/services/playbook-execution-trace.companion.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,KAAK,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AAE/H,OAAO,EAGL,KAAK,gCAAgC,EACrC,KAAK,yBAAyB,EAC/B,MAAM,uDAAuD,CAAC;AAC/D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,wDAAwD,CAAC;AAE3G;;;;;;;;;;;;GAYG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE;IAClD,QAAQ,CAAC,YAAY,EAAE,4BAA4B,CAAC;IACpD,QAAQ,CAAC,OAAO,EAAE,gCAAgC,CAAC;IACnD,QAAQ,CAAC,IAAI,EAAE,yBAAyB,CAAC;CAC1C,GAAG,0BAA0B,CAkC7B"}
|
package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playbook-run-write-register.companion.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"playbook-run-write-register.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/services/playbook-run-write-register.companion.service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAIhE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAa7E,QAAA,MAAM,oBAAoB;;;;;QATxB,kDAAkD;;;QAGlD,yDAAyD;;QAEzD,4GAA4G;;;kBAS5G,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE1E,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,sIAAsI;IACtI,QAAQ,CAAC,eAAe,EAAE,SAAS,MAAM,EAAE,CAAC;CAC7C;AAED,qBAAa,mCAAoC,SAAQ,KAAK;gBACzC,KAAK,EAAE,MAAM;CAGjC;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBACa,wCAAwC;IAyBd,OAAO,CAAC,QAAQ,CAAC,MAAM;IACR,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IAzBrF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA+D;IAExF;;;;;;;;OAQG;IACH,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAyB;IAEpD,wBAAwB,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI;IAI3D,OAAO,CAAC,cAAc;gBAOgC,MAAM,EAAE,aAAa,EACN,gBAAgB,EAAE,gBAAgB;IAK1F,MAAM,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC;IASlE,gGAAgG;IACnF,IAAI,IAAI,OAAO,CAAC,SAAS,sBAAsB,EAAE,CAAC;IAkBlD,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,GAAE;QAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAO,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAuCjH,OAAO,CAAC,wBAAwB;IAIhC,OAAO,CAAC,iBAAiB;CAK1B"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ResearchAgentDispatchCompanionService } from '../../claude-cli/services/research-agent-dispatch.companion.service';
|
|
2
2
|
import { PlaybookChoreographyStopReason, type PlaybookChoreographyResult, PlaybookClarificationAction, type ApplicationCoherenceReport, type PlaybookClarificationAnswer, type PlaybookClarificationRequest, type PlaybookElicitationAnswer, type PlaybookLoopResult, type PlaybookEligibility, type PlaybookJudgeResult, type PlaybookExportWiringRecord, type PlaybookOutputLandingRecord, type RunPlaybookGenerationResult } from '@wildo-ai/application-creation-runtime';
|
|
3
3
|
import type { AgentsBackendService, LoggerService } from '@wildo-ai/saas-backend-lib';
|
|
4
|
-
import { type MetaWorkflow_Phase } from '@wildo-ai/saas-specifications/application-creation';
|
|
5
4
|
import { StructuredDeliberationCompanionService } from '../../deliberations/services/structured-deliberation.companion.service';
|
|
6
5
|
import { PlaybookRunWriteRegisterCompanionService } from './playbook-run-write-register.companion.service';
|
|
7
6
|
import { ApplicationBuildDispatchCompanionService } from './application-build-dispatch.companion.service';
|
|
@@ -31,8 +30,34 @@ export declare class UnknownPlaybookError extends Error {
|
|
|
31
30
|
/** A READINESS precondition fails. There is no way past this one: its inputs are absent or invalid. */
|
|
32
31
|
export declare class PlaybookNotReadyError extends Error {
|
|
33
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* A second concurrent run of a kind this companion admits only ONE of, over one working tree.
|
|
35
|
+
*
|
|
36
|
+
* The base exists so a transport has ONE thing to catch. The two subclasses stay distinct because a
|
|
37
|
+
* loop and a composite are distinct things with distinct remedies — merging them into one error would
|
|
38
|
+
* put "wait for the loop" in front of somebody whose composite is the thing running, which is the
|
|
39
|
+
* whole content of the message.
|
|
40
|
+
*/
|
|
41
|
+
export declare abstract class PlaybookRunAlreadyInFlightError extends Error {
|
|
42
|
+
}
|
|
34
43
|
/** A second concurrent loop was refused — one loop per companion (OC-1 design D4). Named so the transport answers 409. */
|
|
35
|
-
export declare class PlaybookLoopAlreadyRunningError extends
|
|
44
|
+
export declare class PlaybookLoopAlreadyRunningError extends PlaybookRunAlreadyInFlightError {
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* A second concurrent CHOREOGRAPHY was refused — one composite per companion. Transport answers 409.
|
|
48
|
+
*
|
|
49
|
+
* The refusal the checkpoint store has assumed since it was written and nobody enforced: it keys by
|
|
50
|
+
* playbook REF (`playbook-choreography-checkpoint.companion.service.ts`, "a composite is single-flight
|
|
51
|
+
* per application — so the ref IS the identity of the run in progress"), so a second run of the same
|
|
52
|
+
* composite LOADS the live run's mid-flight checkpoint and resumes from it, both runs then write the
|
|
53
|
+
* same file every iteration, and whichever concludes first `consume()`s it — deleting the other's only
|
|
54
|
+
* resume point while it is still paying for iterations. Two DIFFERENT composites do not collide on the
|
|
55
|
+
* file, and are refused for the loop's own recorded reason: two portfolios' writes interleaved over one
|
|
56
|
+
* working tree with nothing relating them, plus a single-slot `activeChoreography` marker that the
|
|
57
|
+
* second run overwrites and the first run's `finally` then clears, leaving `readRunsInFlight` reporting
|
|
58
|
+
* "nothing running" while something is.
|
|
59
|
+
*/
|
|
60
|
+
export declare class PlaybookChoreographyAlreadyRunningError extends PlaybookRunAlreadyInFlightError {
|
|
36
61
|
}
|
|
37
62
|
export declare class PlaybookRunCompanionService {
|
|
38
63
|
private readonly logger;
|
|
@@ -60,7 +85,6 @@ export declare class PlaybookRunCompanionService {
|
|
|
60
85
|
* (`.claude/context/application-creation-rebuild-principles.md` XII.2).
|
|
61
86
|
*/
|
|
62
87
|
listPlaybookEligibility(): Promise<{
|
|
63
|
-
readonly phase: MetaWorkflow_Phase;
|
|
64
88
|
readonly playbooks: readonly PlaybookEligibility[];
|
|
65
89
|
}>;
|
|
66
90
|
/**
|
|
@@ -399,6 +423,16 @@ export declare class PlaybookRunCompanionService {
|
|
|
399
423
|
readonly elicitationAnswers?: readonly PlaybookElicitationAnswer[];
|
|
400
424
|
/** Set by the choreography driver on a CHILD run: the parent composite's rendered elicitation. */
|
|
401
425
|
readonly parentElicitationSection?: string;
|
|
426
|
+
/**
|
|
427
|
+
* Set by the choreography driver on a CHILD run: the ref of the composite already running in this
|
|
428
|
+
* process. A child that is ITSELF a composite is admitted past the single-flight refusal on the
|
|
429
|
+
* strength of this — see `runChoreography`.
|
|
430
|
+
*
|
|
431
|
+
* DRIVER-ONLY, like `parentElicitationSection` and `stepResults` beside it. Both HTTP entry points
|
|
432
|
+
* (`POST /playbooks/:playbookRef/run` and the creation-plane dispatch) build this input from named
|
|
433
|
+
* fields rather than spreading a request body, so it is unreachable from outside.
|
|
434
|
+
*/
|
|
435
|
+
readonly nestedWithinChoreographyRef?: string;
|
|
402
436
|
/** The request's trace session, so this run's evidence lands beside the LLM call it explains. */
|
|
403
437
|
readonly session?: CompanionExecutionSessionContext;
|
|
404
438
|
/** Full pipe — generation, validation, rendering, judge — with NO filesystem writes. For testing playbooks. */
|
|
@@ -542,6 +576,13 @@ export declare class PlaybookRunCompanionService {
|
|
|
542
576
|
* contract, and condensing twice is how a source URL becomes "several sources indicate".
|
|
543
577
|
*/
|
|
544
578
|
private composeStepEvidenceSection;
|
|
579
|
+
/**
|
|
580
|
+
* Judge ONE composed brief through the dedicated structured gate agent. FAIL-OPEN by returning
|
|
581
|
+
* null on any fault — an auxiliary judgment must never withhold a generation (the turn
|
|
582
|
+
* classifier's contract, for the same reason). The judge sees the closed list of UNDECLARED
|
|
583
|
+
* sources only, so the repair arm can never be talked into removing anything.
|
|
584
|
+
*/
|
|
585
|
+
private judgeBriefAdequacy;
|
|
545
586
|
private composeBrief;
|
|
546
587
|
/**
|
|
547
588
|
* The CURRENT WORKSPACE as ground truth, for playbooks that plan against real code (J-1 stalls
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playbook-run.companion.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"playbook-run.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/services/playbook-run.companion.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qCAAqC,EAAE,MAAM,qEAAqE,CAAC;AAmD5H,OAAO,EAaL,8BAA8B,EAE9B,KAAK,0BAA0B,EAY/B,2BAA2B,EAG3B,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EAIjC,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EAEvB,KAAK,mBAAmB,EAGxB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAIjC,MAAM,wCAAwC,CAAC;AAKhD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAUtF,OAAO,EAAE,sCAAsC,EAAE,MAAM,wEAAwE,CAAC;AAGhI,OAAO,EAAE,wCAAwC,EAAE,MAAM,iDAAiD,CAAC;AAC3G,OAAO,EAAE,wCAAwC,EAAE,MAAM,gDAAgD,CAAC;AAC1G,OAAO,EAAE,4BAA4B,EAAE,MAAM,4DAA4D,CAAC;AAC1G,OAAO,EAAE,6BAA6B,EAAE,MAAM,6EAA6E,CAAC;AAC5H,OAAO,EAAE,kCAAkC,EAAE,KAAK,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAC7H,OAAO,EAAE,mCAAmC,EAAE,MAAM,mEAAmE,CA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