@wildo-ai/dev-companion 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/__tests__/asset-noop.d.ts.map +1 -1
- package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +1 -1
- package/dist/esm/__tests__/internal-test-view.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-creative-brief.schemas.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.js +9 -3
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
- package/dist/esm/brand/models/logo-judge.schemas.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts +3 -24
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.js +10 -48
- package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
- package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/logo-deliberation.companion.service.js +2 -8
- package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
- package/dist/esm/brand/services/logo-generation.companion.service.d.ts +6 -3
- package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/logo-generation.companion.service.js +11 -12
- package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
- package/dist/esm/brand/utils/derived-brand-assets.d.ts +0 -1
- package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
- package/dist/esm/brand/utils/derived-brand-assets.js +1 -2
- package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
- package/dist/esm/brand/utils/stage-brand-candidate.d.ts +7 -9
- package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
- package/dist/esm/brand/utils/stage-brand-candidate.js +8 -11
- package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +52 -2
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +45 -0
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +45 -5
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +180 -9
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts +12 -22
- package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/git-change-set.companion.service.js +151 -82
- package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts +30 -4
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js +30 -4
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.js +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
- package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.d.ts.map +1 -1
- package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.d.ts.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.d.ts +57 -57
- package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts +90 -0
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -0
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.js +98 -0
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -0
- package/dist/esm/companion-api/controllers/companion.controller.d.ts +32 -5
- package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.js +126 -41
- package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts +8 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts.map +1 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.js +8 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.js.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.models.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts +34 -0
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -0
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js +65 -0
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -0
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts +11 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js +10 -2
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
- package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/context/companion-context.d.ts.map +1 -1
- package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
- package/dist/esm/core/inject/models/container.d.ts.map +1 -1
- package/dist/esm/core/inject/models/container.js +0 -7
- package/dist/esm/core/inject/models/container.js.map +1 -1
- package/dist/esm/core/inject/models/service-types.d.ts +0 -1
- package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
- package/dist/esm/core/inject/models/service-types.js +0 -1
- package/dist/esm/core/inject/models/service-types.js.map +1 -1
- package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
- package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +8 -4
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.js +42 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-register.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +3 -2
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-child.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts +14 -5
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js +14 -5
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-context-block.builder.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts +38 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js +143 -19
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts +23 -0
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.js +23 -0
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.js.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.models.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts +4 -4
- package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-startup-assembly.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/models/companion-runtime.models.d.ts.map +1 -1
- package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +16 -13
- package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
- package/dist/esm/core/runtime/services/start-companion-application.service.js +70 -45
- package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.js +9 -2
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-workbench-topology.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.d.ts.map +1 -1
- package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/execution-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/feature-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/milestone-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/product-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/role-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.models.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js +4 -4
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
- package/dist/esm/core/utils/atomic-write.utils.d.ts.map +1 -1
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +13 -3
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.js +0 -5
- package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.js +0 -2
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
- package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.js +4 -2
- package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.js +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.js.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.js +23 -1
- package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
- package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.js +15 -2
- package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js +7 -3
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js +11 -5
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts +9 -24
- package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.js +11 -60
- package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts +39 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js +39 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_announcement.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_card.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_modal.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_tooltip.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_tour.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
- package/dist/esm/i18n/index.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +58 -0
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-unit.models.js +35 -0
- package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js +8 -3
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
- package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +55 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +178 -73
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts +3 -3
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js +16 -5
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +35 -2
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +68 -29
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +126 -35
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-file-source.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts +143 -0
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js +179 -0
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts +154 -0
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js +174 -0
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts +104 -0
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js +163 -18
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/market/services/market-generation.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +72 -0
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts +17 -4
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js +25 -5
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js +9 -4
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +3 -9
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +48 -28
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +83 -2
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +197 -4
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +37 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +227 -15
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts +117 -2
- package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-doc.companion.service.js +258 -69
- package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts +5 -1
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js +142 -10
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts +2 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js +10 -2
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
- package/package.json +17 -17
- package/dist/esm/core/runtime/companion-startup-composition-fence.d.ts +0 -44
- package/dist/esm/core/runtime/companion-startup-composition-fence.d.ts.map +0 -1
- package/dist/esm/core/runtime/companion-startup-composition-fence.js +0 -85
- package/dist/esm/core/runtime/companion-startup-composition-fence.js.map +0 -1
- package/dist/esm/expert-personas/utils/canonical-json.d.ts +0 -25
- package/dist/esm/expert-personas/utils/canonical-json.d.ts.map +0 -1
- package/dist/esm/expert-personas/utils/canonical-json.js +0 -45
- package/dist/esm/expert-personas/utils/canonical-json.js.map +0 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts +0 -19
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +0 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js +0 -19
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +0 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.d.ts +0 -17
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.d.ts.map +0 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.js +0 -17
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.js.map +0 -1
package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-build-dispatch.companion.service.js","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/application-build-dispatch.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAE9E,OAAO,EACL,8BAA8B,EAC9B,yBAAyB,GAE1B,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EACL,wBAAwB,EACxB,uBAAuB,EACvB,yBAAyB,EACzB,0BAA0B,GAG3B,MAAM,oDAAoD,CAAC;AAE5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAEjF,OAAO,EAAE,6BAA6B,EAAE,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zF;iBACF,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,qDAAqD,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAC3H,CAAC;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAA;AA3fY,wCAAwC;IADpD,UAAU,EAAE;IAKR,WAAA,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;IAChD,WAAA,MAAM,CAAC,uBAAuB,CAAC,0BAA0B,CAAC,CAAA;IAC1D,WAAA,MAAM,CAAC,uBAAuB,CAAC,mBAAmB,CAAC,CAAA;IACnD,WAAA,MAAM,CAAC,uBAAuB,CAAC,0BAA0B,CAAC,CAAA;IAC1D,WAAA,MAAM,CAAC,uBAAuB,CAAC,oBAAoB,CAAC,CAAA;uDAHkC,mCAAmC;QAC/C,4BAA4B;QACT,8CAA8C;QACtD,6BAA6B;GAT1G,wCAAwC,CA2fpD;;AAED,2GAA2G;AAC3G,MAAM,4BAA4B,GAAG,OAAO,CAAC","sourcesContent":["import { inject, injectable } from 'inversify';\nimport { WorkbenchBuildPlanTaskStatus } from '@wildo-ai/platform-core-shared';\n\nimport {\n composeBuildTaskCodingContract,\n slugifyRegistryIdentifier,\n type BuildTaskContextSource,\n} from '@wildo-ai/application-creation-runtime';\nimport type { LoggerService } from '@wildo-ai/saas-backend-lib';\nimport { SAAS_SERVICE_TYPES } from '@wildo-ai/saas-backend-lib';\nimport { MetaWorkflow_ContextSourceRole } from '@wildo-ai/saas-models/meta-workflows';\nimport {\n BuildPlanTaskGraphSchema,\n BuildPlanTaskTargetKind,\n selectReadyBuildPlanTasks,\n validateBuildPlanTaskGraph,\n type ApplicationCodingTaskContract,\n type BuildPlanTask,\n} 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 { CompanionIntrospectionService } from '../../core/introspection/services/companion-introspection.companion.service';\nimport { loadSpecificationsCompanionExports } from '../../core/context/companion-package-loaders.companion';\nimport { waitForDevCompileQuiet } from '../../core/runtime/dev-compile-quiet.companion';\nimport {\n CodingAgentDispatchCompanionService,\n type ParkedCodingSessionState,\n} from '../../claude-cli/services/coding-agent-dispatch.companion.service';\nimport {\n resolveApplicationCodingTaskVerificationPlans,\n type ApplicationCodingTaskRunAdmission,\n} from '../../claude-cli/models/coding-agent-dispatch.models';\nimport { GitChangeSetCompanionService } from '../../claude-cli/services/git-change-set.companion.service';\nimport type { CompanionExecutionSessionContext } from '../../core/traceability/companion-traceability.models';\nimport {\n ApplicationBuildGenerationStepCompanionService,\n type ApplicationBuildGenerationStepRunResult,\n} from './application-build-generation-step.companion.service';\nimport {\n ApplicationBuildTaskNotACodingTaskError,\n resolveBuildPlanTaskCodingPolicy,\n resolveBuildTaskLandedEvidencePaths,\n} from './application-build-task-coding-policy.companion.service';\n\n/** No build plan, or nothing left to do. Named so the transport can say which. */\n\nexport class ApplicationBuildPlanUnavailableError extends Error {}\nexport class ApplicationBuildPlanExhaustedError extends Error {}\n\n/** What the next dispatch WOULD be. Returned unconfirmed, so a creator sees the scope before anything runs. */\nexport interface ApplicationBuildDispatchPlan {\n readonly taskRef: string;\n readonly objective: string;\n readonly targetKind: string;\n /**\n * Present exactly when the next task is a companion generation step. A build plan INTERLEAVES two\n * executors — coding tasks for a coding agent, and companion generation steps (labels, seeds, emails)\n * the companion runs itself — and this route serves BOTH: `dispatch-next` routes by the task's own\n * `target.kind`. (An earlier version refused generation steps by name; now that an executor exists,\n * the refusal would be a hole in the build lane, not a boundary.)\n */\n readonly generationStepRef?: string;\n readonly allowedPathPrefixes: readonly string[];\n readonly prohibitedPathPrefixes: readonly string[];\n readonly requiredChecks: readonly string[];\n readonly installedSkillRefs: readonly string[];\n readonly readyTaskRefs: readonly string[];\n readonly landedTaskRefs: readonly string[];\n}\n\n/**\n * One dispatched build task's outcome — exactly one of the two executor results is present, matching the\n * plan's `targetKind`. `admission` for a coding run; `generationStep` for a companion generation step.\n */\nexport interface ApplicationBuildDispatchResult {\n readonly plan: ApplicationBuildDispatchPlan;\n readonly admission?: ApplicationCodingTaskRunAdmission;\n readonly generationStep?: ApplicationBuildGenerationStepRunResult;\n}\n\n/**\n * Dispatch the next ready build-plan task to a coding agent.\n *\n * ## The chain, and who owns each link\n *\n * | link | owner |\n * |---|---|\n * | which tasks have landed | GIT — a task has landed when the files it produces are committed |\n * | which are READY | `selectReadyBuildPlanTasks` in `_core` — pure, prerequisite-closed |\n * | what a task may touch | `resolveBuildPlanTaskCodingPolicy` — the ONLY place a `target.kind` becomes paths |\n * | the contract | `composeBuildTaskCodingContract` in the runtime — pure, schema-pinned |\n * | the run | `CodingAgentDispatchCompanionService` — mutation lock, git baseline, change-set capture |\n *\n * Nothing in that chain is decided by a model. The agent is handed a task and a boundary; it does not\n * choose either.\n *\n * ## There is no confirmation flag, and that was a correction\n *\n * `dispatchNextBuildTask` ran only when the caller also passed `confirmWorkspaceMutation: true`. It was\n * removed the day it was written, because it protected nothing the mechanism does not already protect:\n * the scope is derived from the task's CLOSED `target.kind` and cannot be widened, the mutation lock\n * admits one workspace-mutating run at a time, the run is bracketed by a git baseline snapshot and a\n * change-set capture so every touched path is visible and revertible, the required checks gate the\n * result, and nothing is ACCEPTED until a human commits.\n *\n * A caller that posts to this route is asking for a coding run — that IS the route. Making them say so\n * twice is the acceptance ceremony this whole migration exists to remove, and a field that feels like a\n * control while enforcing nothing is the exact failure mode recorded in the plan's objective.\n *\n * What was genuinely useful in it — seeing the scope before committing to a run — is a READ, and lives at\n * `describeNextBuildTask` below.\n */\n@injectable()\nexport class ApplicationBuildDispatchCompanionService {\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(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.CodingAgentDispatchService) private readonly dispatch: CodingAgentDispatchCompanionService,\n @inject(COMPANION_SERVICE_TYPES.GitChangeSetService) private readonly git: GitChangeSetCompanionService,\n @inject(COMPANION_SERVICE_TYPES.BuildGenerationStepService) private readonly generationSteps: ApplicationBuildGenerationStepCompanionService,\n @inject(COMPANION_SERVICE_TYPES.IntrospectionService) private readonly introspection: CompanionIntrospectionService,\n ) {\n this.logDebug = this.logger.debugByType('ApplicationBuildDispatchCompanionService');\n }\n\n /** What the next run would be, without running it. Pure read — nothing is locked, created or started. */\n public async describeNextBuildTask(input: { readonly maximumTokenBudget?: number } = {}): Promise<ApplicationBuildDispatchPlan> {\n return (await this.prepareNextBuildTask(input)).plan;\n }\n\n /**\n * Run the next ready build-plan task, routed by its own `target.kind`: a coding task goes to the coding\n * agent (bounded by its scope, locked, captured and verified); a companion generation step runs the\n * companion's own pipeline for that step. One route, two executors — the interleaving IS the build loop.\n */\n /**\n * The last few DETACHED dispatch outcomes, newest first — the observation channel the synchronous\n * door lacked. Measured 2026-09-04: a 40+-minute i18n generation step outlived the HTTP request's\n * 30-minute ceiling, the response died with the socket, and the only signals left were file\n * mtimes and a lock file whose EXISTENCE turned out to mean nothing — the operator was blind for\n * half the run. In-memory by design: the step's real product is files on disk (durable in git),\n * and this record is the run's NARRATIVE, not its truth.\n */\n private readonly lastDetachedDispatches: Array<{\n readonly taskRef: string;\n readonly startedAt: string;\n finishedAt?: string;\n ok?: boolean;\n error?: string;\n }> = [];\n\n public readDetachedDispatches(): readonly { taskRef: string; startedAt: string; finishedAt?: string; ok?: boolean; error?: string }[] {\n return [...this.lastDetachedDispatches];\n }\n\n /**\n * Fire the next ready build task WITHOUT holding an HTTP request over it. Returns the selected\n * plan immediately; the outcome lands in {@link readDetachedDispatches} and, for a coding task,\n * in the durable actor-task row it already writes. The same single-flight properties hold — this\n * is the same `dispatchNextBuildTask`, minus the requirement that a socket survive it.\n */\n public submitBuildDispatchDetached(\n input: { readonly maximumTokenBudget?: number } = {},\n session?: CompanionExecutionSessionContext,\n ): Promise<ApplicationBuildDispatchPlan> {\n return this.prepareNextBuildTask(input).then((prepared) => {\n const record: { taskRef: string; startedAt: string; finishedAt?: string; ok?: boolean; error?: string } = {\n taskRef: prepared.plan.taskRef,\n startedAt: new Date().toISOString(),\n };\n this.lastDetachedDispatches.unshift(record);\n this.lastDetachedDispatches.splice(5);\n void this.dispatchNextBuildTask(input, session)\n .then(() => { record.finishedAt = new Date().toISOString(); record.ok = true; })\n .catch((error) => {\n record.finishedAt = new Date().toISOString(); record.ok = false;\n record.error = error instanceof Error ? error.message.slice(0, 400) : String(error).slice(0, 400);\n this.logDebug('Detached build dispatch failed', { taskRef: record.taskRef, error: record.error });\n });\n return prepared.plan;\n });\n }\n\n public async dispatchNextBuildTask(\n input: { readonly maximumTokenBudget?: number } = {},\n session?: CompanionExecutionSessionContext,\n ): Promise<ApplicationBuildDispatchResult> {\n const prepared = await this.prepareNextBuildTask(input);\n if (prepared.kind === 'GENERATION_STEP') {\n this.logDebug('Running a companion generation step', {\n taskRef: prepared.plan.taskRef,\n generationStepRef: prepared.plan.generationStepRef,\n });\n const generationStep = await this.generationSteps.executeGenerationStep(prepared.task, session);\n return { plan: prepared.plan, generationStep };\n }\n this.logDebug('Dispatching a build task to the coding agent', {\n taskRef: prepared.plan.taskRef,\n allowedPathPrefixes: prepared.plan.allowedPathPrefixes,\n });\n /*\n * The churn gate, and deliberately NOT the retry (#265): a coding turn MUTATES the workspace, so\n * a kill mid-turn leaves a change-set the attribution machinery must reconcile — re-dispatching\n * blind on top of that is how two half-runs interleave. The gate raises the odds the turn never\n * meets the respawn; a killed coding run stays what it is today, a visibly aborted task an\n * operator re-dispatches deliberately.\n */\n await waitForDevCompileQuiet({\n frameworkRepositoryRoot: this.companionContext.resolvedHomes.framework.repositoryRoot,\n log: (message, context) => this.logDebug(message, { taskRef: prepared.plan.taskRef, ...context }),\n });\n const admission = await this.dispatch.runApplicationCodingTask(prepared.contract as ApplicationCodingTaskContract);\n return { plan: prepared.plan, admission };\n }\n\n /**\n * Reconstruct the answerable state for a parked coding task whose IN-PROCESS\n * state was lost to a companion restart, by RE-SELECTING it from the build plan.\n *\n * The durable row still names its build-plan `taskRef` and carries the persisted\n * `suspension`; from those this re-composes the same bounded contract (mutation\n * scope + verification plan come from the task and its coding policy, unchanged\n * by a restart) against a DETERMINISTIC self-description context — the resume\n * discards context anyway, since the agent's persisted session holds the real\n * one. A fresh baseline is captured for the change-set the resume will produce.\n *\n * Returns `null` when the task cannot be answered this way: not a parked coding\n * row, the agent does not support resume, the build task no longer exists, or it\n * is not a coding target. The caller then refuses rather than starting an\n * unrelated or unbounded run.\n */\n public async reconstructParkedCodingTaskForResume(\n taskId: string,\n sessionContext?: CompanionExecutionSessionContext,\n ): Promise<ParkedCodingSessionState | null> {\n const meta = await this.dispatch.loadPersistedParkedCodingTask(taskId, sessionContext);\n if (!meta || !meta.suspension.resumable) return null;\n\n const graph = await this.readBuildPlan();\n const task = graph.tasks.find((entry) => entry.taskRef === meta.taskRef);\n if (!task || task.target === undefined || task.target.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP) {\n return null;\n }\n\n let contract: ApplicationCodingTaskContract;\n try {\n const boundary = resolveBuildPlanTaskCodingPolicy(task as Parameters<typeof resolveBuildPlanTaskCodingPolicy>[0]);\n contract = composeBuildTaskCodingContract({\n task,\n boundary,\n // The deterministic self-description only: a resume does not re-send the\n // task prompt, so re-running the full live-query/introspection assembly\n // would spend a model call to build context nothing reads.\n contextSources: [this.buildTaskSelfDescriptionContextSource(task, graph.tasks.length)],\n objectiveRef: 'application-creation:objective/build-plan',\n maximumTokenBudget: DEFAULT_CONTEXT_TOKEN_BUDGET,\n });\n } catch {\n // A task that no longer composes to a bounded run (empty scope, no checks,\n // wrong target) is not answerable — refuse rather than resume unbounded.\n return null;\n }\n\n const verificationPlans = resolveApplicationCodingTaskVerificationPlans(contract.verificationIntent.requiredChecks);\n const baseline = await this.git.captureWorktreeSnapshot();\n return {\n durableTask: meta.durableTask,\n task: contract,\n verificationPlans,\n baseline,\n suspension: meta.suspension,\n parkedAt: new Date().toISOString(),\n };\n }\n\n private async prepareNextBuildTask(input: {\n readonly maximumTokenBudget?: number;\n }): Promise<\n | { readonly kind: 'CODING'; readonly plan: ApplicationBuildDispatchPlan; readonly contract: ReturnType<typeof composeBuildTaskCodingContract> }\n | { readonly kind: 'GENERATION_STEP'; readonly plan: ApplicationBuildDispatchPlan; readonly task: BuildPlanTask }\n > {\n const graph = await this.readBuildPlan();\n const landedTaskRefs = await this.resolveLandedTaskRefs(graph.tasks);\n\n const ready = selectReadyBuildPlanTasks(graph, landedTaskRefs);\n if (ready.length === 0) {\n throw new ApplicationBuildPlanExhaustedError(\n `Every task in the build plan has landed, or none is ready: ${graph.tasks.length} task(s), `\n + `${landedTaskRefs.size} landed.`,\n );\n }\n /*\n * The FIRST ready task, in graph order — routed by its own `target.kind`, never reordered.\n *\n * Deliberately not a choice among the ready set: the graph already encodes the ordering its author\n * intended, and something picking among ready tasks would be a second scheduler disagreeing with the\n * first. (An earlier version skipped generation steps to find a coding task and refused when none\n * remained — correct while no executor existed, a hole in the lane once one did: the first authored\n * generation step parked the Wonder Todos build behind a named 409 forever.)\n */\n const task = ready[0]!;\n if (task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP) {\n const evidencePaths = await this.generationSteps.resolveGenerationStepEvidencePaths(task);\n const evidenceRoots = [...new Set(evidencePaths.map((evidencePath) => `${evidencePath.split('/').slice(0, -1).join('/')}/`))].sort();\n const plan: ApplicationBuildDispatchPlan = {\n taskRef: task.taskRef,\n objective: task.objective,\n targetKind: task.target.kind,\n generationStepRef: task.target.generationStepRef,\n allowedPathPrefixes: evidenceRoots,\n prohibitedPathPrefixes: [],\n // The pipelines validate their own output; skills are a coding agent's channel, not this executor's.\n requiredChecks: [],\n installedSkillRefs: [],\n readyTaskRefs: ready.map((entry) => entry.taskRef),\n landedTaskRefs: [...landedTaskRefs].sort(),\n };\n return { kind: 'GENERATION_STEP', plan, task };\n }\n const boundary = resolveBuildPlanTaskCodingPolicy(task as Parameters<typeof resolveBuildPlanTaskCodingPolicy>[0]);\n const contract = composeBuildTaskCodingContract({\n task,\n boundary,\n contextSources: await this.buildContextSources(task, graph.tasks.length),\n objectiveRef: 'application-creation:objective/build-plan',\n maximumTokenBudget: input.maximumTokenBudget ?? DEFAULT_CONTEXT_TOKEN_BUDGET,\n });\n\n const plan: ApplicationBuildDispatchPlan = {\n taskRef: task.taskRef,\n objective: task.objective,\n targetKind: task.target!.kind,\n allowedPathPrefixes: contract.mutationScope.allowedPathPrefixes,\n prohibitedPathPrefixes: contract.mutationScope.prohibitedPathPrefixes,\n requiredChecks: contract.verificationIntent.requiredChecks,\n installedSkillRefs: contract.installedSkillRefs,\n readyTaskRefs: ready.map((entry) => entry.taskRef),\n landedTaskRefs: [...landedTaskRefs].sort(),\n };\n\n return { kind: 'CODING', plan, contract };\n }\n\n /**\n * Which tasks have landed, read from GIT.\n *\n * A task has landed when every file it PRODUCES is committed — tracked, and with HEAD, index and worktree\n * in agreement. Not \"the file exists\": an untracked or half-edited file is work in progress, and treating\n * it as landed would let the next task build on something nobody accepted.\n *\n * This replaced a replay of a journal stream that had no writer anywhere, so the answer was permanently\n * \"nothing has landed\" and the loop could never advance past its first task. Git also answers correctly\n * after a restart, on a fresh clone, and on the other side of a branch switch — none of which an\n * in-memory journal can.\n */\n /**\n * How far the current build plan's execution has progressed — the eligibility board's input for the\n * \"plan complete ⇒ re-decompose is sequencing, not a live option\" gate. `undefined` when the\n * application has no (valid) build plan: absence of a plan is not zero-of-zero progress.\n */\n public async resolveBuildExecutionProgress(): Promise<{ readonly totalTasks: number; readonly landedTasks: number } | undefined> {\n let plan: Awaited<ReturnType<typeof this.readBuildPlan>>;\n try {\n plan = await this.readBuildPlan();\n } catch {\n return undefined;\n }\n const landed = await this.resolveLandedTaskRefs(plan.tasks);\n return { totalTasks: plan.tasks.length, landedTasks: landed.size };\n }\n\n /**\n * Every build-plan task in the DISPATCH view — the creation board's `workbenchBuildPlanTasks`\n * rows (`workbench-creation-board-resources.md`, Phase 2).\n *\n * `status` is computed per read, never stored: `landed` = the task's evidence paths are all\n * committed (the same resolution the dispatcher itself selects by), `ready` = every prerequisite\n * landed and it has not, `blocked` = otherwise. Exactly one holds.\n *\n * An application with NO authored build plan answers ZERO TASKS rather than throwing: the plan\n * file legitimately does not exist until build-decompose runs, so \"nothing there yet\" is the\n * true answer. Absence is tested DIRECTLY (the exports carry no `buildPlanSpecification`) rather\n * than by catching `ApplicationBuildPlanUnavailableError`, because `readBuildPlan` throws that\n * SAME class for a plan that exists and fails schema or semantic validation — and flattening an\n * invalid plan into an empty board would be \"could not look\" wearing \"nothing there\".\n */\n public async describeBuildPlanBoard(): Promise<readonly {\n readonly taskRef: string;\n readonly objective: string;\n readonly targetKind: string;\n readonly functionalTopic: string;\n readonly status: WorkbenchBuildPlanTaskStatus;\n readonly prerequisiteTaskRefs: readonly string[];\n }[]> {\n const exports = await loadSpecificationsCompanionExports(this.companionContext);\n const authored = (exports as unknown as Record<string, unknown>).buildPlanSpecification;\n if (authored === undefined || authored === null) return [];\n\n const plan = await this.readBuildPlan();\n const landed = await this.resolveLandedTaskRefs(plan.tasks);\n const ready = new Set(selectReadyBuildPlanTasks(plan, landed).map((task) => task.taskRef));\n return plan.tasks.map((task) => ({\n taskRef: task.taskRef,\n objective: task.objective,\n targetKind: String(task.target?.kind ?? ''),\n functionalTopic: String(task.functionalTopic),\n status: landed.has(task.taskRef) ? WorkbenchBuildPlanTaskStatus.LANDED\n : ready.has(task.taskRef) ? WorkbenchBuildPlanTaskStatus.READY\n : WorkbenchBuildPlanTaskStatus.BLOCKED,\n prerequisiteTaskRefs: task.prerequisiteTaskRefs,\n }));\n }\n\n private async resolveLandedTaskRefs(tasks: readonly BuildPlanTask[]): Promise<ReadonlySet<string>> {\n const landed = new Set<string>();\n for (const task of tasks) {\n const evidencePaths = task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP\n // Planner-derived: the exact unit files the step's pipelines write (see that service's JSDoc for\n // why a directory prefix would be dishonest here).\n ? await this.generationSteps.resolveGenerationStepEvidencePaths(task)\n : resolveBuildTaskLandedEvidencePaths(task);\n if (evidencePaths.length === 0) continue;\n const committed = await Promise.all(evidencePaths.map((path) => this.git.isWorktreePathCommitted(path)));\n if (committed.every(Boolean)) landed.add(task.taskRef);\n }\n return landed;\n }\n\n /** The application's accepted build plan, validated before anything is selected from it. */\n private async readBuildPlan(): ReturnType<typeof BuildPlanTaskGraphSchema.parseAsync> {\n const exports = await loadSpecificationsCompanionExports(this.companionContext);\n const authored = (exports as unknown as Record<string, unknown>).buildPlanSpecification;\n if (authored === undefined || authored === null) {\n throw new ApplicationBuildPlanUnavailableError(\n 'This application has no build plan. Run the build-decompose playbook first.',\n );\n }\n const parsed = BuildPlanTaskGraphSchema.safeParse(authored);\n if (!parsed.success) {\n throw new ApplicationBuildPlanUnavailableError(\n `The application's build plan does not satisfy its schema: ${parsed.error.issues.slice(0, 3).map((issue) => `${issue.path.join('.')}: ${issue.message}`).join('; ')}`,\n );\n }\n // Semantic validation too, not just the shape: a graph with a dangling prerequisite would let\n // `selectReadyBuildPlanTasks` report a task ready whose dependency can never land.\n const findings = validateBuildPlanTaskGraph(parsed.data);\n if (findings.length > 0) {\n throw new ApplicationBuildPlanUnavailableError(\n `The application's build plan fails semantic validation: ${findings.slice(0, 3).map((finding) => finding.message).join('; ')}`,\n );\n }\n return parsed.data;\n }\n\n /**\n * What the run is allowed to see — the PUSH floor of the dispatch lane's context (issue #253).\n *\n * Widened 2026-09-02 from \"the task itself and nothing else yet\" to the lean mandatory core the\n * epic's re-analysis decided, and deliberately no further: everything an agent might need beyond\n * its target's blast radius is the PULL door's job (`wildo context …`, issue #252), which the\n * `live-queries` source below points at. Anticipating everything here would be the planner trap\n * (#254) re-entering through the push door. Everything is model-safe by construction — the\n * application's own accepted build plan, its own live registry, its own domain plan — and the\n * contract's composer re-asserts `SAFE_FOR_MODEL` on every source regardless.\n *\n * ## Failure posture: best-effort on the derived sources, deliberately\n *\n * The playbook lane's workspace-truth section fails CLOSED, because a tool-less planner with no\n * workspace truth invents module ids. A CODING agent is the opposite case on both counts: it has\n * tools (it can read the tree, and the door), so a missing derived source degrades speed rather\n * than truth — while refusing the dispatch because a subprocess hiccuped would block the build on\n * context the run could recover for itself. So: the TASK is always present, the derived sources\n * are added when their reads succeed, and a failed read is a WARN naming what was omitted.\n *\n * ## No new cache, verified rather than assumed\n *\n * The re-analysis asked for the introspection read to be cached across a 55-task plan. It already\n * is: `CompanionIntrospectionService.requestInfo` carries its own source-state derivation cache,\n * keyed on the observed workspace state — asking again after nothing changed is a cache hit, and\n * a landed task invalidates it by changing the sources it hashes. Adding a second cache here would\n * be a copy that can only ever disagree.\n */\n /**\n * The task's own DETERMINISTIC self-description — no introspection, no LLM.\n *\n * The first (and mandatory) context source of every coding task, extracted so\n * a RESUME can rebuild a schema-valid contract without re-running the expensive\n * live-query / module-introspection assembly whose output a resume discards\n * anyway (the agent's session already holds the real context).\n */\n private buildTaskSelfDescriptionContextSource(task: BuildPlanTask, totalTasks: number): BuildTaskContextSource {\n return {\n sourceRef: 'application-creation:context/build-task',\n originRef: 'application-creation:origin/build-plan',\n role: MetaWorkflow_ContextSourceRole.MANDATORY,\n content: {\n taskRef: task.taskRef,\n objective: task.objective,\n target: task.target,\n functionalTopic: task.functionalTopic,\n skillRefs: task.skillRefs,\n prerequisiteTaskRefs: task.prerequisiteTaskRefs,\n positionInPlan: `one of ${totalTasks} tasks in the application's accepted build plan`,\n },\n };\n }\n\n private async buildContextSources(task: BuildPlanTask, totalTasks: number): Promise<readonly BuildTaskContextSource[]> {\n const sources: BuildTaskContextSource[] = [this.buildTaskSelfDescriptionContextSource(task, totalTasks)];\n\n /*\n * The DOOR MENU — tier-0 of the pull half: the live-query ids and the two commands that expand\n * them. Ids only, not descriptions: `wildo context list` IS the descriptions, one command away,\n * and rendering ~27 descriptions into every dispatch prompt would spend the budget this source\n * exists to save. Read from the same catalog the CLI menu serves, so it cannot drift from what\n * the companion actually answers.\n */\n const catalog = this.introspection.describeCatalog();\n sources.push({\n sourceRef: 'application-creation:context/live-queries',\n originRef: 'application-creation:origin/dev-companion',\n role: MetaWorkflow_ContextSourceRole.MANDATORY,\n content: {\n guidance: 'Live application state is one shell command away — prefer asking over re-deriving from the tree. '\n + '`wildo context list` prints the menu with descriptions; `wildo context info <behaviorId>` runs one query; '\n + '`wildo context journey` shows the creation journey; `wildo context coherence` the cross-family coherence report.',\n behaviorIds: catalog.behaviors.map((behavior) => behavior.behaviorId),\n },\n });\n\n const moduleRef = task.target && 'moduleRef' in task.target ? task.target.moduleRef : undefined;\n const resourceRef = task.target && 'resourceRef' in task.target ? task.target.resourceRef : undefined;\n\n // WORKSPACE TRUTH, sliced to the target: the target module's real resources and present schema\n // fields, plus the exact list of every module id (counts stay exact — a slice that hid the\n // population would under-report, and an agent that invents a module id dispatches a no-op).\n try {\n const backendServiceKey = Object.entries(this.companionContext.servicesByKey)\n .find(([, service]) => !service.frontendType)?.[0];\n if (backendServiceKey) {\n const result = await this.introspection.requestInfo({ serviceKey: backendServiceKey, behavior: 'resources-registry' });\n if (result.success) {\n const snapshot = result.data as {\n modules?: ReadonlyArray<{ moduleId: string; resourceTypes: readonly string[] }>;\n resourceSchemaFields?: Record<string, readonly string[]>;\n };\n const modules = snapshot.modules ?? [];\n const targetModule = moduleRef === undefined\n ? undefined\n : modules.find((sharedModule) => slugifyRegistryIdentifier(sharedModule.moduleId) === moduleRef);\n sources.push({\n sourceRef: 'application-creation:context/workspace-truth',\n originRef: 'application-creation:origin/resources-registry-introspection',\n role: MetaWorkflow_ContextSourceRole.MANDATORY,\n content: {\n allModuleIds: modules.map((sharedModule) => sharedModule.moduleId),\n ...(targetModule\n ? {\n targetModule: {\n moduleId: targetModule.moduleId,\n resources: targetModule.resourceTypes.map((resourceType) => ({\n resourceType,\n slugRef: slugifyRegistryIdentifier(resourceType),\n presentSchemaFields: snapshot.resourceSchemaFields?.[resourceType] ?? [],\n })),\n },\n }\n : {}),\n note: 'A resource listed here already EXISTS as a registered skeleton — its task is enrichment, not creation. '\n + 'A domain-plan resource NOT listed here does not exist yet. Full registry: `wildo context info resources-registry`.',\n },\n });\n } else {\n this.logDebug('Workspace-truth source omitted from the dispatch context (introspection failed)', { taskRef: task.taskRef });\n }\n }\n } catch (error) {\n this.logger.warn('Workspace-truth source omitted from the dispatch context', { taskRef: task.taskRef, error: String(error) });\n }\n\n // THE DOMAIN-PLAN SLICE for the target: WHAT this task's objective enriches toward, in the\n // application's own accepted words — the module semantics and, for a relationship task, the\n // relationship drafts touching the target. Absent plan (older app, or foundation not run) is\n // simply absent; nothing here invents a fallback.\n try {\n const exports = await loadSpecificationsCompanionExports(this.companionContext);\n const domainPlan = (exports as { domainPlanSpecification?: unknown }).domainPlanSpecification as {\n modules?: ReadonlyArray<{ relatedModuleId: string; mainResources?: readonly string[]; supportingResources?: readonly string[] }>;\n relationships?: ReadonlyArray<{ relationshipRef: string; sourceResourceRef: string; targetResourceRef: string }>;\n } | undefined;\n const planModules = domainPlan?.modules ?? [];\n const targetPlanModule = moduleRef === undefined\n ? undefined\n : planModules.find((planModule) => slugifyRegistryIdentifier(planModule.relatedModuleId) === moduleRef);\n if (targetPlanModule) {\n const moduleResourceSlugs = new Set(\n [...(targetPlanModule.mainResources ?? []), ...(targetPlanModule.supportingResources ?? [])]\n .map((resourceType) => slugifyRegistryIdentifier(resourceType)),\n );\n sources.push({\n sourceRef: 'application-creation:context/domain-plan-slice',\n originRef: 'application-creation:origin/domain-plan',\n role: MetaWorkflow_ContextSourceRole.MANDATORY,\n content: {\n targetModule: targetPlanModule,\n ...(resourceRef !== undefined ? { targetResourceRef: resourceRef } : {}),\n relationshipsTouchingModule: (domainPlan?.relationships ?? []).filter((relationship) =>\n moduleResourceSlugs.has(slugifyRegistryIdentifier(relationship.sourceResourceRef))\n || moduleResourceSlugs.has(slugifyRegistryIdentifier(relationship.targetResourceRef))),\n },\n });\n }\n } catch (error) {\n this.logger.warn('Domain-plan slice omitted from the dispatch context', { taskRef: task.taskRef, error: String(error) });\n }\n\n return sources;\n }\n}\n\n/** Context ceiling for one dispatch. Stated here because only the host knows what the agent can accept. */\nconst DEFAULT_CONTEXT_TOKEN_BUDGET = 120_000;\n"]}
|
|
1
|
+
{"version":3,"file":"application-build-dispatch.companion.service.js","sourceRoot":"","sources":["../../../../src/meta-workflows/services/application-build-dispatch.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAE9E,OAAO,EACL,8BAA8B,EAC9B,yBAAyB,GAE1B,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EACL,sCAAsC,EACtC,wBAAwB,EACxB,uBAAuB,EACvB,yBAAyB,EACzB,0BAA0B,GAG3B,MAAM,oDAAoD,CAAC;AAE5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAEjF,OAAO,EAAE,6BAA6B,EAAE,MAAM,6EAA6E,CAAC;AAC5H,OAAO,EAAE,kCAAkC,EAAE,MAAM,wDAAwD,CAAC;AAC5G,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EACL,mCAAmC,GAEpC,MAAM,mEAAmE,CAAC;AAC3E,OAAO,EACL,6CAA6C,GAE9C,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,4BAA4B,EAAE,MAAM,4DAA4D,CAA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IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,YAAY,EAAE,EAAE,CACrF,mBAAmB,CAAC,GAAG,CAAC,yBAAyB,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAC;+BAC/E,mBAAmB,CAAC,GAAG,CAAC,yBAAyB,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAC,CAAC;qBACzF;iBACF,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,qDAAqD,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAC3H,CAAC;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAA;AA3gBY,wCAAwC;IADpD,UAAU,EAAE;IAKR,WAAA,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;IAChD,WAAA,MAAM,CAAC,uBAAuB,CAAC,0BAA0B,CAAC,CAAA;IAC1D,WAAA,MAAM,CAAC,uBAAuB,CAAC,mBAAmB,CAAC,CAAA;IACnD,WAAA,MAAM,CAAC,uBAAuB,CAAC,0BAA0B,CAAC,CAAA;IAC1D,WAAA,MAAM,CAAC,uBAAuB,CAAC,oBAAoB,CAAC,CAAA;uDAHkC,mCAAmC;QAC/C,4BAA4B;QACT,8CAA8C;QACtD,6BAA6B;GAT1G,wCAAwC,CA2gBpD","sourcesContent":["import { inject, injectable } from 'inversify';\nimport { WorkbenchBuildPlanTaskStatus } from '@wildo-ai/platform-core-shared';\n\nimport {\n composeBuildTaskCodingContract,\n slugifyRegistryIdentifier,\n type BuildTaskContextSource,\n} from '@wildo-ai/application-creation-runtime';\nimport type { LoggerService } from '@wildo-ai/saas-backend-lib';\nimport { SAAS_SERVICE_TYPES } from '@wildo-ai/saas-backend-lib';\nimport {\n BUILD_PLAN_TASK_GRAPH_HARD_FLOOR_CODES,\n BuildPlanTaskGraphSchema,\n BuildPlanTaskTargetKind,\n selectReadyBuildPlanTasks,\n validateBuildPlanTaskGraph,\n type ApplicationCodingTaskContract,\n type BuildPlanTask,\n} 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 { CompanionIntrospectionService } from '../../core/introspection/services/companion-introspection.companion.service';\nimport { loadSpecificationsCompanionExports } from '../../core/context/companion-package-loaders.companion';\nimport { waitForDevCompileQuiet } from '../../core/runtime/dev-compile-quiet.companion';\nimport {\n CodingAgentDispatchCompanionService,\n type ParkedCodingSessionState,\n} from '../../claude-cli/services/coding-agent-dispatch.companion.service';\nimport {\n resolveApplicationCodingTaskVerificationPlans,\n type ApplicationCodingTaskRunAdmission,\n} from '../../claude-cli/models/coding-agent-dispatch.models';\nimport { GitChangeSetCompanionService } from '../../claude-cli/services/git-change-set.companion.service';\nimport type { CompanionExecutionSessionContext } from '../../core/traceability/companion-traceability.models';\nimport {\n ApplicationBuildGenerationStepCompanionService,\n ApplicationBuildGenerationStepLandedKind,\n type ApplicationBuildGenerationStepRunResult,\n} from './application-build-generation-step.companion.service';\nimport {\n ApplicationBuildTaskNotACodingTaskError,\n resolveBuildPlanTaskCodingPolicy,\n resolveBuildTaskLandedEvidencePaths,\n} from './application-build-task-coding-policy.companion.service';\n\n/** No build plan, or nothing left to do. Named so the transport can say which. */\n\nexport class ApplicationBuildPlanUnavailableError extends Error {}\nexport class ApplicationBuildPlanExhaustedError extends Error {}\n\n/** What the next dispatch WOULD be. Returned unconfirmed, so a creator sees the scope before anything runs. */\nexport interface ApplicationBuildDispatchPlan {\n readonly taskRef: string;\n readonly objective: string;\n readonly targetKind: string;\n /**\n * Present exactly when the next task is a companion generation step. A build plan INTERLEAVES two\n * executors — coding tasks for a coding agent, and companion generation steps (labels, seeds, emails)\n * the companion runs itself — and this route serves BOTH: `dispatch-next` routes by the task's own\n * `target.kind`. (An earlier version refused generation steps by name; now that an executor exists,\n * the refusal would be a hole in the build lane, not a boundary.)\n */\n readonly generationStepRef?: string;\n readonly allowedPathPrefixes: readonly string[];\n readonly prohibitedPathPrefixes: readonly string[];\n readonly requiredChecks: readonly string[];\n readonly installedSkillRefs: readonly string[];\n readonly readyTaskRefs: readonly string[];\n readonly landedTaskRefs: readonly string[];\n}\n\n/**\n * One dispatched build task's outcome — exactly one of the two executor results is present, matching the\n * plan's `targetKind`. `admission` for a coding run; `generationStep` for a companion generation step.\n */\nexport interface ApplicationBuildDispatchResult {\n readonly plan: ApplicationBuildDispatchPlan;\n readonly admission?: ApplicationCodingTaskRunAdmission;\n readonly generationStep?: ApplicationBuildGenerationStepRunResult;\n}\n\n/**\n * Dispatch the next ready build-plan task to a coding agent.\n *\n * ## The chain, and who owns each link\n *\n * | link | owner |\n * |---|---|\n * | which tasks have landed | GIT — a task has landed when the files it produces are committed |\n * | which are READY | `selectReadyBuildPlanTasks` in `_core` — pure, prerequisite-closed |\n * | what a task may touch | `resolveBuildPlanTaskCodingPolicy` — the ONLY place a `target.kind` becomes paths |\n * | the contract | `composeBuildTaskCodingContract` in the runtime — pure, schema-pinned |\n * | the run | `CodingAgentDispatchCompanionService` — mutation lock, git baseline, change-set capture |\n *\n * Nothing in that chain is decided by a model. The agent is handed a task and a boundary; it does not\n * choose either.\n *\n * ## There is no confirmation flag, and that was a correction\n *\n * `dispatchNextBuildTask` ran only when the caller also passed `confirmWorkspaceMutation: true`. It was\n * removed the day it was written, because it protected nothing the mechanism does not already protect:\n * the scope is derived from the task's CLOSED `target.kind` and cannot be widened, the mutation lock\n * admits one workspace-mutating run at a time, the run is bracketed by a git baseline snapshot and a\n * change-set capture so every touched path is visible and revertible, the required checks gate the\n * result, and nothing is ACCEPTED until a human commits.\n *\n * A caller that posts to this route is asking for a coding run — that IS the route. Making them say so\n * twice is the acceptance ceremony this whole migration exists to remove, and a field that feels like a\n * control while enforcing nothing is the exact failure mode recorded in the plan's objective.\n *\n * What was genuinely useful in it — seeing the scope before committing to a run — is a READ, and lives at\n * `describeNextBuildTask` below.\n */\n@injectable()\nexport class ApplicationBuildDispatchCompanionService {\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(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.CodingAgentDispatchService) private readonly dispatch: CodingAgentDispatchCompanionService,\n @inject(COMPANION_SERVICE_TYPES.GitChangeSetService) private readonly git: GitChangeSetCompanionService,\n @inject(COMPANION_SERVICE_TYPES.BuildGenerationStepService) private readonly generationSteps: ApplicationBuildGenerationStepCompanionService,\n @inject(COMPANION_SERVICE_TYPES.IntrospectionService) private readonly introspection: CompanionIntrospectionService,\n ) {\n this.logDebug = this.logger.debugByType('ApplicationBuildDispatchCompanionService');\n }\n\n /** What the next run would be, without running it. Pure read — nothing is locked, created or started. */\n public async describeNextBuildTask(): Promise<ApplicationBuildDispatchPlan> {\n return (await this.prepareNextBuildTask()).plan;\n }\n\n /**\n * Run the next ready build-plan task, routed by its own `target.kind`: a coding task goes to the coding\n * agent (bounded by its scope, locked, captured and verified); a companion generation step runs the\n * companion's own pipeline for that step. One route, two executors — the interleaving IS the build loop.\n */\n /**\n * The last few DETACHED dispatch outcomes, newest first — the observation channel the synchronous\n * door lacked. Measured 2026-09-04: a 40+-minute i18n generation step outlived the HTTP request's\n * 30-minute ceiling, the response died with the socket, and the only signals left were file\n * mtimes and a lock file whose EXISTENCE turned out to mean nothing — the operator was blind for\n * half the run. In-memory by design: the step's real product is files on disk (durable in git),\n * and this record is the run's NARRATIVE, not its truth.\n */\n private readonly lastDetachedDispatches: Array<{\n readonly taskRef: string;\n readonly startedAt: string;\n finishedAt?: string;\n ok?: boolean;\n error?: string;\n }> = [];\n\n public readDetachedDispatches(): readonly { taskRef: string; startedAt: string; finishedAt?: string; ok?: boolean; error?: string }[] {\n return [...this.lastDetachedDispatches];\n }\n\n /**\n * Fire the next ready build task WITHOUT holding an HTTP request over it. Returns the selected\n * plan immediately; the outcome lands in {@link readDetachedDispatches} and, for a coding task,\n * in the durable actor-task row it already writes. The same single-flight properties hold — this\n * is the same `dispatchNextBuildTask`, minus the requirement that a socket survive it.\n */\n public submitBuildDispatchDetached(\n session?: CompanionExecutionSessionContext,\n ): Promise<ApplicationBuildDispatchPlan> {\n return this.prepareNextBuildTask().then((prepared) => {\n const record: { taskRef: string; startedAt: string; finishedAt?: string; ok?: boolean; error?: string } = {\n taskRef: prepared.plan.taskRef,\n startedAt: new Date().toISOString(),\n };\n this.lastDetachedDispatches.unshift(record);\n this.lastDetachedDispatches.splice(5);\n void this.dispatchNextBuildTask(session)\n .then(() => { record.finishedAt = new Date().toISOString(); record.ok = true; })\n .catch((error) => {\n record.finishedAt = new Date().toISOString(); record.ok = false;\n record.error = error instanceof Error ? error.message.slice(0, 400) : String(error).slice(0, 400);\n this.logDebug('Detached build dispatch failed', { taskRef: record.taskRef, error: record.error });\n });\n return prepared.plan;\n });\n }\n\n public async dispatchNextBuildTask(\n session?: CompanionExecutionSessionContext,\n ): Promise<ApplicationBuildDispatchResult> {\n const prepared = await this.prepareNextBuildTask();\n if (prepared.kind === 'GENERATION_STEP') {\n this.logDebug('Running a companion generation step', {\n taskRef: prepared.plan.taskRef,\n generationStepRef: prepared.plan.generationStepRef,\n });\n const generationStep = await this.generationSteps.executeGenerationStep(prepared.task, session);\n return { plan: prepared.plan, generationStep };\n }\n this.logDebug('Dispatching a build task to the coding agent', {\n taskRef: prepared.plan.taskRef,\n allowedPathPrefixes: prepared.plan.allowedPathPrefixes,\n });\n /*\n * The churn gate, and deliberately NOT the retry (#265): a coding turn MUTATES the workspace, so\n * a kill mid-turn leaves a change-set the attribution machinery must reconcile — re-dispatching\n * blind on top of that is how two half-runs interleave. The gate raises the odds the turn never\n * meets the respawn; a killed coding run stays what it is today, a visibly aborted task an\n * operator re-dispatches deliberately.\n */\n await waitForDevCompileQuiet({\n frameworkRepositoryRoot: this.companionContext.resolvedHomes.framework.repositoryRoot,\n log: (message, context) => this.logDebug(message, { taskRef: prepared.plan.taskRef, ...context }),\n });\n const admission = await this.dispatch.runApplicationCodingTask(prepared.contract as ApplicationCodingTaskContract);\n return { plan: prepared.plan, admission };\n }\n\n /**\n * Reconstruct the answerable state for a parked coding task whose IN-PROCESS\n * state was lost to a companion restart, by RE-SELECTING it from the build plan.\n *\n * The durable row still names its build-plan `taskRef` and carries the persisted\n * `suspension`; from those this re-composes the same bounded contract (mutation\n * scope + verification plan come from the task and its coding policy, unchanged\n * by a restart) against a DETERMINISTIC self-description context — the resume\n * discards context anyway, since the agent's persisted session holds the real\n * one. A fresh baseline is captured for the change-set the resume will produce.\n *\n * Returns `null` when the task cannot be answered this way: not a parked coding\n * row, the agent does not support resume, the build task no longer exists, or it\n * is not a coding target. The caller then refuses rather than starting an\n * unrelated or unbounded run.\n */\n public async reconstructParkedCodingTaskForResume(\n taskId: string,\n sessionContext?: CompanionExecutionSessionContext,\n ): Promise<ParkedCodingSessionState | null> {\n const meta = await this.dispatch.loadPersistedParkedCodingTask(taskId, sessionContext);\n if (!meta || !meta.suspension.resumable) return null;\n\n const graph = await this.readBuildPlan();\n const task = graph.tasks.find((entry) => entry.taskRef === meta.taskRef);\n if (!task || task.target === undefined || task.target.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP) {\n return null;\n }\n\n let contract: ApplicationCodingTaskContract;\n try {\n const boundary = resolveBuildPlanTaskCodingPolicy(task as Parameters<typeof resolveBuildPlanTaskCodingPolicy>[0]);\n contract = composeBuildTaskCodingContract({\n task,\n boundary,\n // The deterministic self-description only: a resume does not re-send the\n // task prompt, so re-running the full live-query/introspection assembly\n // would spend a model call to build context nothing reads.\n contextSources: [this.buildTaskSelfDescriptionContextSource(task, graph.tasks.length)],\n objectiveRef: 'application-creation:objective/build-plan',\n });\n } catch {\n // A task that no longer composes to a bounded run (empty scope, no checks,\n // wrong target) is not answerable — refuse rather than resume unbounded.\n return null;\n }\n\n const verificationPlans = resolveApplicationCodingTaskVerificationPlans(contract.verificationIntent.requiredChecks);\n const baseline = await this.git.captureWorktreeSnapshot();\n return {\n durableTask: meta.durableTask,\n task: contract,\n verificationPlans,\n baseline,\n suspension: meta.suspension,\n parkedAt: new Date().toISOString(),\n };\n }\n\n private async prepareNextBuildTask(): Promise<\n | { readonly kind: 'CODING'; readonly plan: ApplicationBuildDispatchPlan; readonly contract: ReturnType<typeof composeBuildTaskCodingContract> }\n | { readonly kind: 'GENERATION_STEP'; readonly plan: ApplicationBuildDispatchPlan; readonly task: BuildPlanTask }\n > {\n const graph = await this.readBuildPlan();\n const landedTaskRefs = await this.resolveLandedTaskRefs(graph.tasks);\n\n const ready = selectReadyBuildPlanTasks(graph, landedTaskRefs);\n if (ready.length === 0) {\n throw new ApplicationBuildPlanExhaustedError(\n `Every task in the build plan has landed, or none is ready: ${graph.tasks.length} task(s), `\n + `${landedTaskRefs.size} landed.`,\n );\n }\n /*\n * The FIRST ready task, in graph order — routed by its own `target.kind`, never reordered.\n *\n * Deliberately not a choice among the ready set: the graph already encodes the ordering its author\n * intended, and something picking among ready tasks would be a second scheduler disagreeing with the\n * first. (An earlier version skipped generation steps to find a coding task and refused when none\n * remained — correct while no executor existed, a hole in the lane once one did: the first authored\n * generation step parked the Wonder Todos build behind a named 409 forever.)\n */\n const task = ready[0]!;\n if (task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP) {\n const evidencePaths = await this.generationSteps.resolveGenerationStepEvidencePaths(task);\n const evidenceRoots = [...new Set(evidencePaths.map((evidencePath) => `${evidencePath.split('/').slice(0, -1).join('/')}/`))].sort();\n const plan: ApplicationBuildDispatchPlan = {\n taskRef: task.taskRef,\n objective: task.objective,\n targetKind: task.target.kind,\n generationStepRef: task.target.generationStepRef,\n allowedPathPrefixes: evidenceRoots,\n prohibitedPathPrefixes: [],\n // The pipelines validate their own output; skills are a coding agent's channel, not this executor's.\n requiredChecks: [],\n installedSkillRefs: [],\n readyTaskRefs: ready.map((entry) => entry.taskRef),\n landedTaskRefs: [...landedTaskRefs].sort(),\n };\n return { kind: 'GENERATION_STEP', plan, task };\n }\n const boundary = resolveBuildPlanTaskCodingPolicy(task as Parameters<typeof resolveBuildPlanTaskCodingPolicy>[0]);\n const contract = composeBuildTaskCodingContract({\n task,\n boundary,\n contextSources: await this.buildContextSources(task, graph.tasks.length),\n objectiveRef: 'application-creation:objective/build-plan',\n });\n\n const plan: ApplicationBuildDispatchPlan = {\n taskRef: task.taskRef,\n objective: task.objective,\n targetKind: task.target!.kind,\n allowedPathPrefixes: contract.mutationScope.allowedPathPrefixes,\n prohibitedPathPrefixes: contract.mutationScope.prohibitedPathPrefixes,\n requiredChecks: contract.verificationIntent.requiredChecks,\n installedSkillRefs: contract.installedSkillRefs,\n readyTaskRefs: ready.map((entry) => entry.taskRef),\n landedTaskRefs: [...landedTaskRefs].sort(),\n };\n\n return { kind: 'CODING', plan, contract };\n }\n\n /**\n * Which tasks have landed, read from GIT.\n *\n * A task has landed when every file it PRODUCES is committed — tracked, and with HEAD, index and worktree\n * in agreement. Not \"the file exists\": an untracked or half-edited file is work in progress, and treating\n * it as landed would let the next task build on something nobody accepted.\n *\n * This replaced a replay of a journal stream that had no writer anywhere, so the answer was permanently\n * \"nothing has landed\" and the loop could never advance past its first task. Git also answers correctly\n * after a restart, on a fresh clone, and on the other side of a branch switch — none of which an\n * in-memory journal can.\n */\n /**\n * How far the current build plan's execution has progressed — the eligibility board's input for the\n * \"plan complete ⇒ re-decompose is sequencing, not a live option\" gate. `undefined` when the\n * application has no (valid) build plan: absence of a plan is not zero-of-zero progress.\n */\n public async resolveBuildExecutionProgress(): Promise<{ readonly totalTasks: number; readonly landedTasks: number } | undefined> {\n let plan: Awaited<ReturnType<typeof this.readBuildPlan>>;\n try {\n plan = await this.readBuildPlan();\n } catch {\n return undefined;\n }\n const landed = await this.resolveLandedTaskRefs(plan.tasks);\n return { totalTasks: plan.tasks.length, landedTasks: landed.size };\n }\n\n /**\n * Every build-plan task in the DISPATCH view — the creation board's `workbenchBuildPlanTasks`\n * rows (`workbench-creation-board-resources.md`, Phase 2).\n *\n * `status` is computed per read, never stored: `landed` = the task's evidence paths are all\n * committed (the same resolution the dispatcher itself selects by), `ready` = every prerequisite\n * landed and it has not, `blocked` = otherwise. Exactly one holds.\n *\n * An application with NO authored build plan answers ZERO TASKS rather than throwing: the plan\n * file legitimately does not exist until build-decompose runs, so \"nothing there yet\" is the\n * true answer. Absence is tested DIRECTLY (the exports carry no `buildPlanSpecification`) rather\n * than by catching `ApplicationBuildPlanUnavailableError`, because `readBuildPlan` throws that\n * SAME class for a plan that exists and fails schema or semantic validation — and flattening an\n * invalid plan into an empty board would be \"could not look\" wearing \"nothing there\".\n */\n public async describeBuildPlanBoard(): Promise<readonly {\n readonly taskRef: string;\n readonly objective: string;\n readonly targetKind: string;\n readonly functionalTopic: string;\n readonly status: WorkbenchBuildPlanTaskStatus;\n readonly prerequisiteTaskRefs: readonly string[];\n }[]> {\n const exports = await loadSpecificationsCompanionExports(this.companionContext);\n const authored = (exports as unknown as Record<string, unknown>).buildPlanSpecification;\n if (authored === undefined || authored === null) return [];\n\n const plan = await this.readBuildPlan();\n const landed = await this.resolveLandedTaskRefs(plan.tasks);\n const ready = new Set(selectReadyBuildPlanTasks(plan, landed).map((task) => task.taskRef));\n return plan.tasks.map((task) => ({\n taskRef: task.taskRef,\n objective: task.objective,\n targetKind: String(task.target?.kind ?? ''),\n functionalTopic: String(task.functionalTopic),\n status: landed.has(task.taskRef) ? WorkbenchBuildPlanTaskStatus.LANDED\n : ready.has(task.taskRef) ? WorkbenchBuildPlanTaskStatus.READY\n : WorkbenchBuildPlanTaskStatus.BLOCKED,\n prerequisiteTaskRefs: task.prerequisiteTaskRefs,\n }));\n }\n\n private async resolveLandedTaskRefs(tasks: readonly BuildPlanTask[]): Promise<ReadonlySet<string>> {\n const landed = new Set<string>();\n for (const task of tasks) {\n if (task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP) {\n /*\n * A generation step declares HOW it proves it landed, because not every step proves it with\n * files. Most name the exact unit files their pipelines write (see that service's JSDoc for\n * why a directory prefix would be dishonest). The migration step cannot — its artifact is\n * `backend-api/migrations/<timestamp>_<name>/migration.sql` and the timestamp is minted\n * during the run — so it lands on the STATE it exists to reach instead.\n *\n * Read the condition, never the evidence paths: for the migration step those name the\n * accepted lockfile, which predates the step, so landing on it would pass having verified\n * nothing.\n */\n const condition = await this.generationSteps.resolveGenerationStepLandedCondition(task);\n if (condition.kind === ApplicationBuildGenerationStepLandedKind.SCHEMA_PLAN_IN_SYNC) {\n if (await this.generationSteps.isSchemaPlanInSync()) landed.add(task.taskRef);\n continue;\n }\n if (condition.paths.length === 0) continue;\n const committedPaths = await Promise.all(condition.paths.map((path) => this.git.isWorktreePathCommitted(path)));\n if (committedPaths.every(Boolean)) landed.add(task.taskRef);\n continue;\n }\n const evidencePaths = resolveBuildTaskLandedEvidencePaths(task);\n if (evidencePaths.length === 0) continue;\n const committed = await Promise.all(evidencePaths.map((path) => this.git.isWorktreePathCommitted(path)));\n if (committed.every(Boolean)) landed.add(task.taskRef);\n }\n return landed;\n }\n\n /** The application's accepted build plan, validated before anything is selected from it. */\n private async readBuildPlan(): ReturnType<typeof BuildPlanTaskGraphSchema.parseAsync> {\n const exports = await loadSpecificationsCompanionExports(this.companionContext);\n const authored = (exports as unknown as Record<string, unknown>).buildPlanSpecification;\n if (authored === undefined || authored === null) {\n throw new ApplicationBuildPlanUnavailableError(\n 'This application has no build plan. Run the build-decompose playbook first.',\n );\n }\n const parsed = BuildPlanTaskGraphSchema.safeParse(authored);\n if (!parsed.success) {\n throw new ApplicationBuildPlanUnavailableError(\n `The application's build plan does not satisfy its schema: ${parsed.error.issues.slice(0, 3).map((issue) => `${issue.path.join('.')}: ${issue.message}`).join('; ')}`,\n );\n }\n // Semantic validation too, not just the shape: a graph whose ordering is unsound would let\n // `selectReadyBuildPlanTasks` report a task ready before the work it depends on can have landed.\n //\n // Gated on the FLOOR codes, not on `findings.length > 0` as it was until 2026-09-09. That older\n // reading made this gate disagree with the landing gate about the same graph: an authoring\n // warning — a resource stage whose predecessor is absent from the plan, which is legitimate when\n // the tree already carries that stage — landed happily at the semantic authority and then made\n // the whole plan permanently undispatchable HERE, with the refusal naming a warning. One\n // classification, named once in `_core` beside the codes.\n const findings = validateBuildPlanTaskGraph(parsed.data);\n const blocking = findings.filter((finding) => BUILD_PLAN_TASK_GRAPH_HARD_FLOOR_CODES.includes(finding.code));\n if (blocking.length > 0) {\n throw new ApplicationBuildPlanUnavailableError(\n `The application's build plan fails semantic validation: ${blocking.slice(0, 3).map((finding) => finding.message).join('; ')}`,\n );\n }\n return parsed.data;\n }\n\n /**\n * What the run is allowed to see — the PUSH floor of the dispatch lane's context (issue #253).\n *\n * Widened 2026-09-02 from \"the task itself and nothing else yet\" to the lean mandatory core the\n * epic's re-analysis decided, and deliberately no further: everything an agent might need beyond\n * its target's blast radius is the PULL door's job (`wildo context …`, issue #252), which the\n * `live-queries` source below points at. Anticipating everything here would be the planner trap\n * (#254) re-entering through the push door. Everything is model-safe by construction — the\n * application's own accepted build plan, its own live registry, its own domain plan — and the\n * contract's composer re-asserts `SAFE_FOR_MODEL` on every source regardless.\n *\n * ## Failure posture: best-effort on the derived sources, deliberately\n *\n * The playbook lane's workspace-truth section fails CLOSED, because a tool-less planner with no\n * workspace truth invents module ids. A CODING agent is the opposite case on both counts: it has\n * tools (it can read the tree, and the door), so a missing derived source degrades speed rather\n * than truth — while refusing the dispatch because a subprocess hiccuped would block the build on\n * context the run could recover for itself. So: the TASK is always present, the derived sources\n * are added when their reads succeed, and a failed read is a WARN naming what was omitted.\n *\n * ## No new cache, verified rather than assumed\n *\n * The re-analysis asked for the introspection read to be cached across a 55-task plan. It already\n * is: `CompanionIntrospectionService.requestInfo` carries its own source-state derivation cache,\n * keyed on the observed workspace state — asking again after nothing changed is a cache hit, and\n * a landed task invalidates it by changing the sources it hashes. Adding a second cache here would\n * be a copy that can only ever disagree.\n */\n /**\n * The task's own DETERMINISTIC self-description — no introspection, no LLM.\n *\n * The first (and mandatory) context source of every coding task, extracted so\n * a RESUME can rebuild a schema-valid contract without re-running the expensive\n * live-query / module-introspection assembly whose output a resume discards\n * anyway (the agent's session already holds the real context).\n */\n private buildTaskSelfDescriptionContextSource(task: BuildPlanTask, totalTasks: number): BuildTaskContextSource {\n return {\n sourceRef: 'application-creation:context/build-task',\n originRef: 'application-creation:origin/build-plan',\n content: {\n taskRef: task.taskRef,\n objective: task.objective,\n target: task.target,\n functionalTopic: task.functionalTopic,\n skillRefs: task.skillRefs,\n prerequisiteTaskRefs: task.prerequisiteTaskRefs,\n positionInPlan: `one of ${totalTasks} tasks in the application's accepted build plan`,\n },\n };\n }\n\n private async buildContextSources(task: BuildPlanTask, totalTasks: number): Promise<readonly BuildTaskContextSource[]> {\n const sources: BuildTaskContextSource[] = [this.buildTaskSelfDescriptionContextSource(task, totalTasks)];\n\n /*\n * The DOOR MENU — tier-0 of the pull half: the live-query ids and the two commands that expand\n * them. Ids only, not descriptions: `wildo context list` IS the descriptions, one command away,\n * and rendering ~27 descriptions into every dispatch prompt would spend the budget this source\n * exists to save. Read from the same catalog the CLI menu serves, so it cannot drift from what\n * the companion actually answers.\n */\n const catalog = this.introspection.describeCatalog();\n sources.push({\n sourceRef: 'application-creation:context/live-queries',\n originRef: 'application-creation:origin/dev-companion',\n content: {\n guidance: 'Live application state is one shell command away — prefer asking over re-deriving from the tree. '\n + '`wildo context list` prints the menu with descriptions; `wildo context info <behaviorId>` runs one query; '\n + '`wildo context journey` shows the creation journey; `wildo context coherence` the cross-family coherence report.',\n behaviorIds: catalog.behaviors.map((behavior) => behavior.behaviorId),\n },\n });\n\n const moduleRef = task.target && 'moduleRef' in task.target ? task.target.moduleRef : undefined;\n const resourceRef = task.target && 'resourceRef' in task.target ? task.target.resourceRef : undefined;\n\n // WORKSPACE TRUTH, sliced to the target: the target module's real resources and present schema\n // fields, plus the exact list of every module id (counts stay exact — a slice that hid the\n // population would under-report, and an agent that invents a module id dispatches a no-op).\n try {\n const backendServiceKey = Object.entries(this.companionContext.servicesByKey)\n .find(([, service]) => !service.frontendType)?.[0];\n if (backendServiceKey) {\n const result = await this.introspection.requestInfo({ serviceKey: backendServiceKey, behavior: 'resources-registry' });\n if (result.success) {\n const snapshot = result.data as {\n modules?: ReadonlyArray<{ moduleId: string; resourceTypes: readonly string[] }>;\n resourceSchemaFields?: Record<string, readonly string[]>;\n };\n const modules = snapshot.modules ?? [];\n const targetModule = moduleRef === undefined\n ? undefined\n : modules.find((sharedModule) => slugifyRegistryIdentifier(sharedModule.moduleId) === moduleRef);\n sources.push({\n sourceRef: 'application-creation:context/workspace-truth',\n originRef: 'application-creation:origin/resources-registry-introspection',\n content: {\n allModuleIds: modules.map((sharedModule) => sharedModule.moduleId),\n ...(targetModule\n ? {\n targetModule: {\n moduleId: targetModule.moduleId,\n resources: targetModule.resourceTypes.map((resourceType) => ({\n resourceType,\n slugRef: slugifyRegistryIdentifier(resourceType),\n presentSchemaFields: snapshot.resourceSchemaFields?.[resourceType] ?? [],\n })),\n },\n }\n : {}),\n note: 'A resource listed here already EXISTS as a registered skeleton — its task is enrichment, not creation. '\n + 'A domain-plan resource NOT listed here does not exist yet. Full registry: `wildo context info resources-registry`.',\n },\n });\n } else {\n this.logDebug('Workspace-truth source omitted from the dispatch context (introspection failed)', { taskRef: task.taskRef });\n }\n }\n } catch (error) {\n this.logger.warn('Workspace-truth source omitted from the dispatch context', { taskRef: task.taskRef, error: String(error) });\n }\n\n // THE DOMAIN-PLAN SLICE for the target: WHAT this task's objective enriches toward, in the\n // application's own accepted words — the module semantics and, for a relationship task, the\n // relationship drafts touching the target. Absent plan (older app, or foundation not run) is\n // simply absent; nothing here invents a fallback.\n try {\n const exports = await loadSpecificationsCompanionExports(this.companionContext);\n const domainPlan = (exports as { domainPlanSpecification?: unknown }).domainPlanSpecification as {\n modules?: ReadonlyArray<{ relatedModuleId: string; mainResources?: readonly string[]; supportingResources?: readonly string[] }>;\n relationships?: ReadonlyArray<{ relationshipRef: string; sourceResourceRef: string; targetResourceRef: string }>;\n } | undefined;\n const planModules = domainPlan?.modules ?? [];\n const targetPlanModule = moduleRef === undefined\n ? undefined\n : planModules.find((planModule) => slugifyRegistryIdentifier(planModule.relatedModuleId) === moduleRef);\n if (targetPlanModule) {\n const moduleResourceSlugs = new Set(\n [...(targetPlanModule.mainResources ?? []), ...(targetPlanModule.supportingResources ?? [])]\n .map((resourceType) => slugifyRegistryIdentifier(resourceType)),\n );\n sources.push({\n sourceRef: 'application-creation:context/domain-plan-slice',\n originRef: 'application-creation:origin/domain-plan',\n content: {\n targetModule: targetPlanModule,\n ...(resourceRef !== undefined ? { targetResourceRef: resourceRef } : {}),\n relationshipsTouchingModule: (domainPlan?.relationships ?? []).filter((relationship) =>\n moduleResourceSlugs.has(slugifyRegistryIdentifier(relationship.sourceResourceRef))\n || moduleResourceSlugs.has(slugifyRegistryIdentifier(relationship.targetResourceRef))),\n },\n });\n }\n } catch (error) {\n this.logger.warn('Domain-plan slice omitted from the dispatch context', { taskRef: task.taskRef, error: String(error) });\n }\n\n return sources;\n }\n}\n"]}
|
package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts
CHANGED
|
@@ -37,8 +37,55 @@ export declare enum ApplicationBuildGenerationStep {
|
|
|
37
37
|
* mark only if someone drove it by hand (issue #220). Hand-supplying a logo stays available and
|
|
38
38
|
* unchanged; what this adds is the journey's own path to one.
|
|
39
39
|
*/
|
|
40
|
-
LOGO = "logo"
|
|
40
|
+
LOGO = "logo",
|
|
41
|
+
/**
|
|
42
|
+
* `wildo db generate` — turn the drift between the application's resource model and its accepted
|
|
43
|
+
* schema plan into a committed migration, so a PostgreSQL-backed application's tables exist.
|
|
44
|
+
*
|
|
45
|
+
* Added under the rule this enum's docblock states — a value joins WHEN a pipeline exists to
|
|
46
|
+
* execute it. The pipeline is the CLI's own generate door, which already owns every hard part
|
|
47
|
+
* (the planner, the risk vocabulary, the refusals) and advances the lockfile in the same
|
|
48
|
+
* invocation that writes the migration.
|
|
49
|
+
*
|
|
50
|
+
* The step is a NO-OP on an application with no accepted plan, and it REFUSES rather than
|
|
51
|
+
* guessing — see `executeGenerationStep`. That is deliberate: without a lockfile
|
|
52
|
+
* `wildo db generate` treats the whole model as an INITIAL migration, which on a MongoDB-backed
|
|
53
|
+
* application would author a table set nothing uses.
|
|
54
|
+
*/
|
|
55
|
+
DATABASE_MIGRATIONS = "database-migrations"
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* How a generation step proves it did its work.
|
|
59
|
+
*
|
|
60
|
+
* Two kinds, because the obvious single answer does not fit every step. Most steps write FILES
|
|
61
|
+
* whose paths are known before they run, and "landed" means those files are committed. A migration
|
|
62
|
+
* step cannot: its artifact is `backend-api/migrations/<timestamp>_<name>/migration.sql`, and the
|
|
63
|
+
* timestamp is minted DURING the run.
|
|
64
|
+
*
|
|
65
|
+
* The tempting substitutes were both rejected, and the reasons are worth keeping:
|
|
66
|
+
*
|
|
67
|
+
* - the accepted lockfile — it ALREADY EXISTS before the step runs (the foundation playbook writes
|
|
68
|
+
* the baseline), so "is it committed?" is trivially true and the step would land having done
|
|
69
|
+
* nothing. That is precisely the directory-prefix shortcut this service's `LOGO` case warns about.
|
|
70
|
+
* - an empty path list — legal, and it makes the dispatch host SKIP the landed check entirely, so a
|
|
71
|
+
* step that generated nothing would read as complete.
|
|
72
|
+
*
|
|
73
|
+
* So the migration step's evidence is not a file at all: it is the STATE the step exists to reach —
|
|
74
|
+
* the model and the accepted plan agree. That is what `wildo db diff --check` answers.
|
|
75
|
+
*/
|
|
76
|
+
export declare enum ApplicationBuildGenerationStepLandedKind {
|
|
77
|
+
/** Landed when every named path is committed. The shape every file-writing step uses. */
|
|
78
|
+
COMMITTED_PATHS = "committed_paths",
|
|
79
|
+
/** Landed when the resource model and the accepted schema plan agree. */
|
|
80
|
+
SCHEMA_PLAN_IN_SYNC = "schema_plan_in_sync"
|
|
41
81
|
}
|
|
82
|
+
/** What the dispatch host must evaluate to decide whether a generation-step task has landed. */
|
|
83
|
+
export type ApplicationBuildGenerationStepLandedCondition = {
|
|
84
|
+
readonly kind: ApplicationBuildGenerationStepLandedKind.COMMITTED_PATHS;
|
|
85
|
+
readonly paths: readonly string[];
|
|
86
|
+
} | {
|
|
87
|
+
readonly kind: ApplicationBuildGenerationStepLandedKind.SCHEMA_PLAN_IN_SYNC;
|
|
88
|
+
};
|
|
42
89
|
/** A build plan referenced a generation step this companion cannot execute. Named, so the plan author sees the vocabulary. */
|
|
43
90
|
export declare class ApplicationBuildUnknownGenerationStepError extends Error {
|
|
44
91
|
constructor(taskRef: string, generationStepRef: string);
|
|
@@ -81,8 +128,25 @@ export interface ApplicationBuildLogoStepRunResult {
|
|
|
81
128
|
/** The app-root-relative files this step is responsible for — the same paths the landed check reads. */
|
|
82
129
|
readonly evidencePaths: readonly string[];
|
|
83
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* What one executed `database-migrations` step did.
|
|
133
|
+
*
|
|
134
|
+
* `evidencePaths` is present for symmetry with its siblings and carries the MUTATION SCOPE, not the
|
|
135
|
+
* landed evidence — this step lands on `SCHEMA_PLAN_IN_SYNC`, never on a path.
|
|
136
|
+
*/
|
|
137
|
+
export interface ApplicationBuildDatabaseMigrationsStepRunResult {
|
|
138
|
+
readonly generationStepRef: ApplicationBuildGenerationStep.DATABASE_MIGRATIONS;
|
|
139
|
+
/** True when the plan was already in sync and `wildo db generate` had nothing to write. */
|
|
140
|
+
readonly skippedBecauseAlreadyInSync: boolean;
|
|
141
|
+
/** The migration folder names present after the run that were not present before it. Usually 0 or 1. */
|
|
142
|
+
readonly generatedMigrationFolders: readonly string[];
|
|
143
|
+
/** The generator's own output tail — it names the tables and the risk of each change. */
|
|
144
|
+
readonly outputTail: string;
|
|
145
|
+
/** MUTATION SCOPE, not landed evidence. */
|
|
146
|
+
readonly evidencePaths: readonly string[];
|
|
147
|
+
}
|
|
84
148
|
/** One executed generation step's result, discriminated by the step it ran. */
|
|
85
|
-
export type ApplicationBuildGenerationStepRunResult = ApplicationBuildI18nLabelsStepRunResult | ApplicationBuildEmailTemplatesStepRunResult | ApplicationBuildLogoStepRunResult;
|
|
149
|
+
export type ApplicationBuildGenerationStepRunResult = ApplicationBuildI18nLabelsStepRunResult | ApplicationBuildEmailTemplatesStepRunResult | ApplicationBuildLogoStepRunResult | ApplicationBuildDatabaseMigrationsStepRunResult;
|
|
86
150
|
/**
|
|
87
151
|
* Execute companion-owned generation steps of a build plan, and answer which
|
|
88
152
|
* files each step is responsible for.
|
|
@@ -126,6 +190,23 @@ export declare class ApplicationBuildGenerationStepCompanionService {
|
|
|
126
190
|
* (`isWorktreePathCommitted`).
|
|
127
191
|
*/
|
|
128
192
|
resolveGenerationStepEvidencePaths(task: BuildPlanTask): Promise<readonly string[]>;
|
|
193
|
+
/**
|
|
194
|
+
* How this task proves it landed — the ONLY landed authority for a generation step.
|
|
195
|
+
*
|
|
196
|
+
* Split from {@link resolveGenerationStepEvidencePaths} because that method answers a different
|
|
197
|
+
* question (which paths may this task write?) and the two answers diverge for exactly one step.
|
|
198
|
+
* Reading landing off the evidence paths would land the migration step on a file that predates it.
|
|
199
|
+
*/
|
|
200
|
+
resolveGenerationStepLandedCondition(task: BuildPlanTask): Promise<ApplicationBuildGenerationStepLandedCondition>;
|
|
201
|
+
/**
|
|
202
|
+
* Does the resource model agree with the accepted schema plan?
|
|
203
|
+
*
|
|
204
|
+
* FAIL-CLOSED on every uncertainty, and the direction matters: an unknown answer must read as NOT
|
|
205
|
+
* in sync, so the task stays ready and runs again. The opposite bias would land a migration task
|
|
206
|
+
* that never generated anything. Re-running costs nothing — `wildo db generate` over a clean plan
|
|
207
|
+
* reports "nothing to generate" and exits 0.
|
|
208
|
+
*/
|
|
209
|
+
isSchemaPlanInSync(): Promise<boolean>;
|
|
129
210
|
/**
|
|
130
211
|
* Run the task's generation step. Incremental by construction: both
|
|
131
212
|
* pipelines consult the freshness lock and skip fresh units, so re-running
|
|
@@ -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,EAAE,MAAM,4BAA4B,CAAC;AAGzF,OAAO,EAA2B,KAAK,aAAa,EAAE,MAAM,oDAAoD,CAAC;AAGjH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAE7E,OAAO,EAAE,gCAAgC,EAAE,MAAM,mEAAmE,CAAC;AACrH,OAAO,EACL,qCAAqC,EACrC,KAAK,kBAAkB,EACxB,MAAM,wEAAwE,CAAC;AAChF,OAAO,EACL,qCAAqC,EACrC,KAAK,kBAAkB,EACxB,MAAM,wEAAwE,CAAC;AAChF,OAAO,EACL,6BAA6B,EAC7B,KAAK,4BAA4B,EACjC,KAAK,kCAAkC,EACxC,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EACL,gCAAgC,EAChC,KAAK,sBAAsB,EAC5B,MAAM,0DAA0D,CAAC;AAClE,OAAO,EACL,2BAA2B,EAC3B,KAAK,iBAAiB,EACvB,MAAM,qDAAqD,CAAC;AAC7D,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,uDAAuD,CAAC;AAE9G;;;;;;;;;;;;;;;GAeG;AACH,oBAAY,8BAA8B;IACxC,WAAW,gBAAgB;IAC3B,eAAe,oBAAoB;IACnC;;;;;;;;;OASG;IACH,IAAI,SAAS;IACb;;;;;;;;;;;;;OAaG;IACH,mBAAmB,wBAAwB;CAC5C;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AAuB,EACpC,gBAAgB,EAAE,gBAAgB,EAC3B,OAAO,EAAE,gCAAgC,EACpC,SAAS,EAAE,qCAAqC,EAChD,SAAS,EAAE,qCAAqC,EACxD,cAAc,EAAE,6BAA6B,EAC1C,gBAAgB,EAAE,gCAAgC,EACvD,WAAW,EAAE,2BAA2B;IAK/G;;;;;OAKG;IACU,kCAAkC,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC;IAgDhG;;;;;;OAMG;IACU,oCAAoC,CAC/C,IAAI,EAAE,aAAa,GAClB,OAAO,CAAC,6CAA6C,CAAC;IAWzD;;;;;;;OAOG;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
|
}
|