@wildo-ai/dev-companion 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/__tests__/asset-noop.d.ts.map +1 -1
- package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +1 -1
- package/dist/esm/__tests__/internal-test-view.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-creative-brief.schemas.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.js +9 -3
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
- package/dist/esm/brand/models/logo-judge.schemas.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts +3 -24
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.js +10 -48
- package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
- package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/logo-deliberation.companion.service.js +2 -8
- package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
- package/dist/esm/brand/services/logo-generation.companion.service.d.ts +6 -3
- package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/logo-generation.companion.service.js +11 -12
- package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
- package/dist/esm/brand/utils/derived-brand-assets.d.ts +0 -1
- package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
- package/dist/esm/brand/utils/derived-brand-assets.js +1 -2
- package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
- package/dist/esm/brand/utils/stage-brand-candidate.d.ts +7 -9
- package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
- package/dist/esm/brand/utils/stage-brand-candidate.js +8 -11
- package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +52 -2
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +45 -0
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +45 -5
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +180 -9
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts +12 -22
- package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/git-change-set.companion.service.js +151 -82
- package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts +30 -4
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js +30 -4
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.js +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
- package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.d.ts.map +1 -1
- package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.d.ts.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.d.ts +57 -57
- package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts +90 -0
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -0
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.js +98 -0
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -0
- package/dist/esm/companion-api/controllers/companion.controller.d.ts +32 -5
- package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.js +126 -41
- package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts +8 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts.map +1 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.js +8 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.js.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.models.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts +34 -0
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -0
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js +65 -0
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -0
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts +11 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js +10 -2
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
- package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/context/companion-context.d.ts.map +1 -1
- package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
- package/dist/esm/core/inject/models/container.d.ts.map +1 -1
- package/dist/esm/core/inject/models/container.js +0 -7
- package/dist/esm/core/inject/models/container.js.map +1 -1
- package/dist/esm/core/inject/models/service-types.d.ts +0 -1
- package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
- package/dist/esm/core/inject/models/service-types.js +0 -1
- package/dist/esm/core/inject/models/service-types.js.map +1 -1
- package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
- package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +8 -4
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.js +42 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-register.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +3 -2
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-child.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts +14 -5
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js +14 -5
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-context-block.builder.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts +38 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js +143 -19
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts +23 -0
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.js +23 -0
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.js.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.models.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts +4 -4
- package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-startup-assembly.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/models/companion-runtime.models.d.ts.map +1 -1
- package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +16 -13
- package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
- package/dist/esm/core/runtime/services/start-companion-application.service.js +70 -45
- package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.js +9 -2
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-workbench-topology.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.d.ts.map +1 -1
- package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/execution-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/feature-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/milestone-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/product-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/role-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.models.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js +4 -4
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
- package/dist/esm/core/utils/atomic-write.utils.d.ts.map +1 -1
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +13 -3
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.js +0 -5
- package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.js +0 -2
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
- package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.js +4 -2
- package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.js +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.js.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.js +23 -1
- package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
- package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.js +15 -2
- package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js +7 -3
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js +11 -5
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts +9 -24
- package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.js +11 -60
- package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts +39 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js +39 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_announcement.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_card.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_modal.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_tooltip.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_tour.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
- package/dist/esm/i18n/index.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +58 -0
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-unit.models.js +35 -0
- package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js +8 -3
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
- package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +55 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +178 -73
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts +3 -3
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js +16 -5
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +35 -2
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +68 -29
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +126 -35
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-file-source.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts +143 -0
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js +179 -0
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts +154 -0
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js +174 -0
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts +104 -0
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js +163 -18
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/market/services/market-generation.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +72 -0
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts +17 -4
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js +25 -5
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js +9 -4
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +3 -9
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +48 -28
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +83 -2
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +197 -4
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +37 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +227 -15
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts +117 -2
- package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-doc.companion.service.js +258 -69
- package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts +5 -1
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js +142 -10
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts +2 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js +10 -2
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
- package/package.json +17 -17
- package/dist/esm/core/runtime/companion-startup-composition-fence.d.ts +0 -44
- package/dist/esm/core/runtime/companion-startup-composition-fence.d.ts.map +0 -1
- package/dist/esm/core/runtime/companion-startup-composition-fence.js +0 -85
- package/dist/esm/core/runtime/companion-startup-composition-fence.js.map +0 -1
- package/dist/esm/expert-personas/utils/canonical-json.d.ts +0 -25
- package/dist/esm/expert-personas/utils/canonical-json.d.ts.map +0 -1
- package/dist/esm/expert-personas/utils/canonical-json.js +0 -45
- package/dist/esm/expert-personas/utils/canonical-json.js.map +0 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts +0 -19
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +0 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js +0 -19
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +0 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.d.ts +0 -17
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.d.ts.map +0 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.js +0 -17
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.js.map +0 -1
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WHO must present the machine-local companion token — the P-29b floor's decision, and nothing else.
|
|
3
|
+
*
|
|
4
|
+
* It is a module of its own, with no imports, for two reasons that both bit this floor before:
|
|
5
|
+
*
|
|
6
|
+
* - **It is the half that can be pinned.** The floor's previous life ended because the middleware
|
|
7
|
+
* that used it was deleted with the single endpoint it guarded, and the service's own unit test —
|
|
8
|
+
* six cases, all mint-and-validate — went on passing. A decision expressed inside a controller that
|
|
9
|
+
* drags the whole companion DI graph behind it is a decision no cheap test ever exercises.
|
|
10
|
+
* - **Two ends must agree.** The CLI decides whether to ATTACH the token and the companion decides
|
|
11
|
+
* whether to REQUIRE it. Those are the same predicate written twice, in two packages that cannot
|
|
12
|
+
* import each other, so the least this side can do is state it once and name the other end.
|
|
13
|
+
*
|
|
14
|
+
* The CLI's copy is `COMPANION_TOKEN_UNGATED_METHODS` in
|
|
15
|
+
* `platform/factory/wildo-cli/src/services/companion/companion-client.service.ts`. Move one, move both.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* The methods that pass unconditionally.
|
|
19
|
+
*
|
|
20
|
+
* Gating is decided by the HTTP VERB rather than by a list of gated paths, and that is the whole
|
|
21
|
+
* design: the companion controller registers 68 routes and grows, so any hand-kept list of "the
|
|
22
|
+
* mutating ones" is a second enumeration of a population that moves — the shape
|
|
23
|
+
* `.claude/rules/invariant-call-site-enumeration.md` records as this repository's most frequent
|
|
24
|
+
* defect. With the verb as the discriminator, a route added tomorrow is gated by construction and
|
|
25
|
+
* there is nothing to remember.
|
|
26
|
+
*
|
|
27
|
+
* Reads stay open, deliberately: DD-6's posture for read-only routes is unchanged, and a token that
|
|
28
|
+
* has gone stale (an older CLI, a companion restarted under a running client) must not be able to
|
|
29
|
+
* blind the diagnostics an operator needs precisely when something is wrong.
|
|
30
|
+
*
|
|
31
|
+
* `OPTIONS` passes so a CORS preflight is answered rather than 401'd — a preflight carries no
|
|
32
|
+
* author-supplied headers by definition, so refusing it would only replace a legible refusal on the
|
|
33
|
+
* real request with an opaque browser-side CORS failure.
|
|
34
|
+
*/
|
|
35
|
+
export const COMPANION_TOKEN_FLOOR_UNGATED_METHODS = new Set(['GET', 'HEAD', 'OPTIONS']);
|
|
36
|
+
/**
|
|
37
|
+
* The mutating routes a BROWSER reaches, which therefore cannot carry the token.
|
|
38
|
+
*
|
|
39
|
+
* These are not an opinion about their risk — `/compliance/governance-facts` genuinely writes files.
|
|
40
|
+
* They are a statement of fact about their one caller: the application-creation workbench is a bundle
|
|
41
|
+
* running in the operator's browser (`platform/factory/application-creation-workbench`), and a browser
|
|
42
|
+
* cannot read `<saasRoot>/.wildo-saas/state/companion.token` (mode 0600, on disk). Gating them would
|
|
43
|
+
* 401 the board's own buttons, so the real choice is between an exemption that is written down and a
|
|
44
|
+
* gate that is quietly not applied.
|
|
45
|
+
*
|
|
46
|
+
* Proxy-injecting the token in the workbench's Vite dev server was considered and rejected twice over:
|
|
47
|
+
* it is dev-only (`server.proxy` has no effect on a built bundle, which reaches the companion through
|
|
48
|
+
* `VITE_COMPANION_URL`), and it would re-open on the workbench's own origin exactly the forgery the
|
|
49
|
+
* floor exists to refuse.
|
|
50
|
+
*
|
|
51
|
+
* The real fix is a migration already under way and half-finished: `runPlaybook`, `resumePlaybookRun`,
|
|
52
|
+
* `dispatchNextBuildTask` and `revertRunWrites` left this mount for CUSTOM RESOURCE OPERATIONS on the
|
|
53
|
+
* engine's `/api/v1` plane, which the workbench reaches with an authenticated session (it really does
|
|
54
|
+
* `POST /auth/authenticate`). These three are the stragglers — the workbench's own client names
|
|
55
|
+
* `cancelCodingAgentRun` "a recorded singleton exception until it has a resource to carry the verb".
|
|
56
|
+
* When each grows its resource operation, delete its row here.
|
|
57
|
+
*
|
|
58
|
+
* Kept as an EXEMPTION rather than as a gated-route list so the polarity stays right: the default is
|
|
59
|
+
* refusal, and every opening is one line somebody had to write and justify.
|
|
60
|
+
*/
|
|
61
|
+
export const COMPANION_TOKEN_FLOOR_BROWSER_EXEMPT_PATHS = [
|
|
62
|
+
'/playbooks/refresh-board',
|
|
63
|
+
'/compliance/governance-facts',
|
|
64
|
+
'/coding-agent/cancel',
|
|
65
|
+
];
|
|
66
|
+
/**
|
|
67
|
+
* Does this request have to present the local companion token?
|
|
68
|
+
*
|
|
69
|
+
* `path` is MOUNT-RELATIVE (`/playbooks/loop`, not `/api/companion/playbooks/loop`) and carries no
|
|
70
|
+
* query string — the same coordinate `req.path` gives inside the mounted router, and the same one
|
|
71
|
+
* `attachRequestTraceSession` already compares against.
|
|
72
|
+
*
|
|
73
|
+
* A path variant the exemption list does not match exactly — a trailing slash, a different case —
|
|
74
|
+
* requires the token. That is the safe direction, and it costs nothing: such a variant matches no
|
|
75
|
+
* route either.
|
|
76
|
+
*/
|
|
77
|
+
export function companionRequestRequiresLocalToken(method, path) {
|
|
78
|
+
if (COMPANION_TOKEN_FLOOR_UNGATED_METHODS.has(method.toUpperCase()))
|
|
79
|
+
return false;
|
|
80
|
+
return !COMPANION_TOKEN_FLOOR_BROWSER_EXEMPT_PATHS.includes(path);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The floor's complete verdict on one request: admit, or refuse.
|
|
84
|
+
*
|
|
85
|
+
* `isValidToken` is passed in rather than imported so this stays a pure function of its inputs — the
|
|
86
|
+
* validator is `CompanionAuthFloorCompanionService.isValidToken`, a constant-time digest comparison
|
|
87
|
+
* that already fails closed when the floor was never initialized.
|
|
88
|
+
*
|
|
89
|
+
* A repeated header arrives typed `string[]`. It is refused rather than searched: a caller that sends
|
|
90
|
+
* the token twice is either confused or probing, and "one of the values was right" is not a rule this
|
|
91
|
+
* floor wants to own.
|
|
92
|
+
*/
|
|
93
|
+
export function companionRequestIsAdmittedByTokenFloor(request, isValidToken) {
|
|
94
|
+
if (!companionRequestRequiresLocalToken(request.method, request.path))
|
|
95
|
+
return true;
|
|
96
|
+
return isValidToken(typeof request.presentedToken === 'string' ? request.presentedToken : undefined);
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=companion-token-floor.policy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"companion-token-floor.policy.js","sourceRoot":"","sources":["../../../../src/companion-api/controllers/companion-token-floor.policy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAwB,IAAI,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC;AAE9G;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,CAAC,MAAM,0CAA0C,GAAsB;IAC3E,0BAA0B;IAC1B,8BAA8B;IAC9B,sBAAsB;CACvB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,UAAU,kCAAkC,CAAC,MAAc,EAAE,IAAY;IAC7E,IAAI,qCAAqC,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;QAAE,OAAO,KAAK,CAAC;IAClF,OAAO,CAAC,0CAA0C,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACpE,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,sCAAsC,CACpD,OAAmH,EACnH,YAAwD;IAExD,IAAI,CAAC,kCAAkC,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC;IACnF,OAAO,YAAY,CAAC,OAAO,OAAO,CAAC,cAAc,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AACvG,CAAC","sourcesContent":["/**\n * WHO must present the machine-local companion token — the P-29b floor's decision, and nothing else.\n *\n * It is a module of its own, with no imports, for two reasons that both bit this floor before:\n *\n * - **It is the half that can be pinned.** The floor's previous life ended because the middleware\n * that used it was deleted with the single endpoint it guarded, and the service's own unit test —\n * six cases, all mint-and-validate — went on passing. A decision expressed inside a controller that\n * drags the whole companion DI graph behind it is a decision no cheap test ever exercises.\n * - **Two ends must agree.** The CLI decides whether to ATTACH the token and the companion decides\n * whether to REQUIRE it. Those are the same predicate written twice, in two packages that cannot\n * import each other, so the least this side can do is state it once and name the other end.\n *\n * The CLI's copy is `COMPANION_TOKEN_UNGATED_METHODS` in\n * `platform/factory/wildo-cli/src/services/companion/companion-client.service.ts`. Move one, move both.\n */\n\n/**\n * The methods that pass unconditionally.\n *\n * Gating is decided by the HTTP VERB rather than by a list of gated paths, and that is the whole\n * design: the companion controller registers 68 routes and grows, so any hand-kept list of \"the\n * mutating ones\" is a second enumeration of a population that moves — the shape\n * `.claude/rules/invariant-call-site-enumeration.md` records as this repository's most frequent\n * defect. With the verb as the discriminator, a route added tomorrow is gated by construction and\n * there is nothing to remember.\n *\n * Reads stay open, deliberately: DD-6's posture for read-only routes is unchanged, and a token that\n * has gone stale (an older CLI, a companion restarted under a running client) must not be able to\n * blind the diagnostics an operator needs precisely when something is wrong.\n *\n * `OPTIONS` passes so a CORS preflight is answered rather than 401'd — a preflight carries no\n * author-supplied headers by definition, so refusing it would only replace a legible refusal on the\n * real request with an opaque browser-side CORS failure.\n */\nexport const COMPANION_TOKEN_FLOOR_UNGATED_METHODS: ReadonlySet<string> = new Set(['GET', 'HEAD', 'OPTIONS']);\n\n/**\n * The mutating routes a BROWSER reaches, which therefore cannot carry the token.\n *\n * These are not an opinion about their risk — `/compliance/governance-facts` genuinely writes files.\n * They are a statement of fact about their one caller: the application-creation workbench is a bundle\n * running in the operator's browser (`platform/factory/application-creation-workbench`), and a browser\n * cannot read `<saasRoot>/.wildo-saas/state/companion.token` (mode 0600, on disk). Gating them would\n * 401 the board's own buttons, so the real choice is between an exemption that is written down and a\n * gate that is quietly not applied.\n *\n * Proxy-injecting the token in the workbench's Vite dev server was considered and rejected twice over:\n * it is dev-only (`server.proxy` has no effect on a built bundle, which reaches the companion through\n * `VITE_COMPANION_URL`), and it would re-open on the workbench's own origin exactly the forgery the\n * floor exists to refuse.\n *\n * The real fix is a migration already under way and half-finished: `runPlaybook`, `resumePlaybookRun`,\n * `dispatchNextBuildTask` and `revertRunWrites` left this mount for CUSTOM RESOURCE OPERATIONS on the\n * engine's `/api/v1` plane, which the workbench reaches with an authenticated session (it really does\n * `POST /auth/authenticate`). These three are the stragglers — the workbench's own client names\n * `cancelCodingAgentRun` \"a recorded singleton exception until it has a resource to carry the verb\".\n * When each grows its resource operation, delete its row here.\n *\n * Kept as an EXEMPTION rather than as a gated-route list so the polarity stays right: the default is\n * refusal, and every opening is one line somebody had to write and justify.\n */\nexport const COMPANION_TOKEN_FLOOR_BROWSER_EXEMPT_PATHS: readonly string[] = [\n '/playbooks/refresh-board',\n '/compliance/governance-facts',\n '/coding-agent/cancel',\n];\n\n/**\n * Does this request have to present the local companion token?\n *\n * `path` is MOUNT-RELATIVE (`/playbooks/loop`, not `/api/companion/playbooks/loop`) and carries no\n * query string — the same coordinate `req.path` gives inside the mounted router, and the same one\n * `attachRequestTraceSession` already compares against.\n *\n * A path variant the exemption list does not match exactly — a trailing slash, a different case —\n * requires the token. That is the safe direction, and it costs nothing: such a variant matches no\n * route either.\n */\nexport function companionRequestRequiresLocalToken(method: string, path: string): boolean {\n if (COMPANION_TOKEN_FLOOR_UNGATED_METHODS.has(method.toUpperCase())) return false;\n return !COMPANION_TOKEN_FLOOR_BROWSER_EXEMPT_PATHS.includes(path);\n}\n\n/**\n * The floor's complete verdict on one request: admit, or refuse.\n *\n * `isValidToken` is passed in rather than imported so this stays a pure function of its inputs — the\n * validator is `CompanionAuthFloorCompanionService.isValidToken`, a constant-time digest comparison\n * that already fails closed when the floor was never initialized.\n *\n * A repeated header arrives typed `string[]`. It is refused rather than searched: a caller that sends\n * the token twice is either confused or probing, and \"one of the values was right\" is not a rule this\n * floor wants to own.\n */\nexport function companionRequestIsAdmittedByTokenFloor(\n request: { readonly method: string; readonly path: string; readonly presentedToken: string | string[] | undefined },\n isValidToken: (presented: string | undefined) => boolean,\n): boolean {\n if (!companionRequestRequiresLocalToken(request.method, request.path)) return true;\n return isValidToken(typeof request.presentedToken === 'string' ? request.presentedToken : undefined);\n}\n"]}
|
|
@@ -19,6 +19,7 @@ import { CompanionIntrospectionService } from '../../core/introspection/services
|
|
|
19
19
|
import { CompanionExecutionsCompanionService } from '../../executions/services/companion-executions.companion.service';
|
|
20
20
|
import { ResearchAgentDispatchCompanionService } from '../../claude-cli/services/research-agent-dispatch.companion.service';
|
|
21
21
|
import { CodingAgentDispatchCompanionService } from '../../claude-cli/services/coding-agent-dispatch.companion.service';
|
|
22
|
+
import { CompanionAuthFloorCompanionService } from '../../core/auth/companion-auth-floor.companion.service';
|
|
22
23
|
import type { CompanionContext } from '../../core/context/companion-context';
|
|
23
24
|
import { CompanionTraceabilityService } from '../../core/traceability/companion-traceability.service';
|
|
24
25
|
/**
|
|
@@ -74,9 +75,34 @@ export declare class CompanionController extends AbstractControllerBackendServic
|
|
|
74
75
|
private readonly traceabilityService;
|
|
75
76
|
private readonly codingAgentDispatchService;
|
|
76
77
|
private readonly researchAgentDispatchService;
|
|
77
|
-
|
|
78
|
+
private readonly authFloorService;
|
|
79
|
+
constructor(logger: LoggerService, errorBuilder: ErrorBuilderBackendService, errorHandler: ErrorHandlerService, companionContext: CompanionContext, labellingPlannerService: LabellingPlannerCompanionService, labellizeOrchestratorService: LabellizeOrchestratorCompanionService, runWriteRegister: PlaybookRunWriteRegisterCompanionService, translateOrchestratorService: TranslateOrchestratorCompanionService, emailTemplateService: EmailTemplateCompanionService, marketGenerationService: MarketGenerationCompanionService, playbookRunService: PlaybookRunCompanionService, creationPlaneProjection: CreationPlaneProjectionCompanionService, buildDispatchService: ApplicationBuildDispatchCompanionService, executionTraceReadService: ExecutionTraceReadCompanionService, logoGenerationService: LogoGenerationCompanionService, logoDeliberationService: LogoDeliberationCompanionService, brandAcceptService: BrandAcceptCompanionService, expertPersonaService: ExpertPersonaCompanionService, deliberationService: DeliberationCompanionService, technicalDocService: TechnicalDocCompanionService, companionIntrospectionService: CompanionIntrospectionService, executionsService: CompanionExecutionsCompanionService, traceabilityService: CompanionTraceabilityService, codingAgentDispatchService: CodingAgentDispatchCompanionService, researchAgentDispatchService: ResearchAgentDispatchCompanionService, authFloorService: CompanionAuthFloorCompanionService);
|
|
78
80
|
protected setupRoutes(): void;
|
|
79
81
|
getCustomMountBasePath(): string;
|
|
82
|
+
/**
|
|
83
|
+
* The P-29b local-token floor, finally applied (issue: the gate that was minted and never mounted).
|
|
84
|
+
*
|
|
85
|
+
* `CompanionAuthFloorCompanionService` has minted a 0600 machine-local token on every companion boot
|
|
86
|
+
* since P-29 landed, and `isValidToken` / `buildUnauthorizedError` were written for a middleware that
|
|
87
|
+
* was deleted along with the one endpoint it guarded. Nothing replaced it, so from that day the
|
|
88
|
+
* loopback bind was the ENTIRE protection for every mutating route on this controller — coding
|
|
89
|
+
* dispatch, playbook runs, run-write revert, registry install, every LLM call that spends money.
|
|
90
|
+
*
|
|
91
|
+
* What the token adds over the loopback bind is narrow and worth stating, because the floor's own
|
|
92
|
+
* JSDoc is careful about what it does NOT prove: it is not evidence of human presence, and it does
|
|
93
|
+
* not stop a same-uid process that can read the file. What it stops is a caller that can reach the
|
|
94
|
+
* port but cannot read the filesystem — the shape of a page in the operator's browser, or any other
|
|
95
|
+
* process on the machine sending a request it did not earn the right to send.
|
|
96
|
+
*
|
|
97
|
+
* Fails CLOSED in every direction: a missing header, an unparsable header, a token from a previous
|
|
98
|
+
* boot, and an uninitialized floor (`expectedTokenDigest === null`) all refuse.
|
|
99
|
+
*
|
|
100
|
+
* `req.path` is mount-relative here (`/playbooks/loop`, not `/api/companion/playbooks/loop`) and
|
|
101
|
+
* excludes the query string — the same coordinate `attachRequestTraceSession` already compares
|
|
102
|
+
* against. A path variant that the exemption list does not match exactly (a trailing slash, say)
|
|
103
|
+
* refuses, which is the safe direction: it also matches no route.
|
|
104
|
+
*/
|
|
105
|
+
private enforceLocalTokenFloor;
|
|
80
106
|
private attachRequestTraceSession;
|
|
81
107
|
private getTraceSession;
|
|
82
108
|
private createTraceStep;
|
|
@@ -389,8 +415,9 @@ export declare class CompanionController extends AbstractControllerBackendServic
|
|
|
389
415
|
* `POST /api/companion/expert-personas/derive` — derive an app-specific
|
|
390
416
|
* expert-persona charter PROPOSAL (agentic deliberation system). Thin:
|
|
391
417
|
* `ExpertPersonaCompanionService.derive` owns the flow (resolve shaping
|
|
392
|
-
* inputs via introspection →
|
|
393
|
-
*
|
|
418
|
+
* inputs via introspection → invoke the derivation agent → stage the
|
|
419
|
+
* proposal). Body: `{ roleRef: string }`. Every call derives; there is no
|
|
420
|
+
* freshness cache to bypass.
|
|
394
421
|
*/
|
|
395
422
|
private expertPersonaDerive;
|
|
396
423
|
/**
|
|
@@ -420,8 +447,8 @@ export declare class CompanionController extends AbstractControllerBackendServic
|
|
|
420
447
|
* copy files into `specifications/src/brand/assets/` + rewrite
|
|
421
448
|
* `resolved-assets.generated.ts`).
|
|
422
449
|
*
|
|
423
|
-
* Body (all optional): `{
|
|
424
|
-
*
|
|
450
|
+
* Body (all optional): `{ runJudge?, requireJudgeAcceptance? }`. The staged
|
|
451
|
+
* single-candidate manifest is what gets accepted; the judge
|
|
425
452
|
* runs by default and its verdict is advisory (the human accept POST is the
|
|
426
453
|
* authority) unless `requireJudgeAcceptance` gates on it.
|
|
427
454
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companion.controller.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"companion.controller.d.ts","sourceRoot":"","sources":["../../../../src/companion-api/controllers/companion.controller.ts"],"names":[],"mappings":"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"}
|
|
@@ -11,16 +11,16 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
11
11
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
12
|
};
|
|
13
13
|
import { injectable, inject } from 'inversify';
|
|
14
|
-
import { AbstractControllerBackendService, LoggerService, ErrorBuilderBackendService, ErrorHandlerService, SAAS_SERVICE_TYPES,
|
|
14
|
+
import { AbstractControllerBackendService, LoggerService, ErrorBuilderBackendService, ErrorHandlerService, SAAS_SERVICE_TYPES, describeCaughtError, } from '@wildo-ai/saas-backend-lib';
|
|
15
15
|
import { CompanionActorTasksListQuerySchema, CompanionCreateActorTaskRequestSchema, CompanionCreateActorExecutionRequestSchema, CompanionLandGovernanceFactsRequestSchema, CompanionCreateFlowExecutionRequestSchema, CompanionExecutionsListQuerySchema, CompanionIntrospectionRequestSchema, CompanionUpdateActorTaskRequestSchema, } from '../companion-api.schemas.js';
|
|
16
|
-
import { ErrorType, ErrorCustomMessageReference, AppFrontendType, computeChartRegistrationAlignment, normalizeChartExecutionRef, } from '@wildo-ai/saas-models';
|
|
16
|
+
import { ErrorType, ErrorCustomMessageReference, AppFrontendType, computeChartRegistrationAlignment, ChartRegistrationBackendRefsProvenance, normalizeChartExecutionRef, } from '@wildo-ai/saas-models';
|
|
17
17
|
import { loadBackendCompanionExports } from '../../core/context/companion-package-loaders.companion.js';
|
|
18
18
|
import { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types.js';
|
|
19
19
|
import { LabellingPlannerCompanionService } from '../../i18n-labelling/services/labelling-planner.companion.service.js';
|
|
20
20
|
import { LabellizeOrchestratorCompanionService } from '../../i18n-labelling/services/labellize-orchestrator.companion.service.js';
|
|
21
21
|
import { TranslateOrchestratorCompanionService } from '../../i18n-labelling/services/translate-orchestrator.companion.service.js';
|
|
22
22
|
import { EmailTemplateCompanionService } from '../../email/services/email-template.companion.service.js';
|
|
23
|
-
import {
|
|
23
|
+
import { PlaybookRunAlreadyInFlightError, PlaybookNotReadyError, PlaybookRunCompanionService, UnknownPlaybookError } from '../../meta-workflows/services/playbook-run.companion.service.js';
|
|
24
24
|
import { CreationPlaneProjectionCompanionService } from '../../core/introspection/resources/creation-plane-projection.companion.service.js';
|
|
25
25
|
import { FoundationExecutionError } from '../../meta-workflows/services/foundation-executor.companion.service.js';
|
|
26
26
|
import { SuspendedPlaybookRunNotFoundError } from '../../meta-workflows/services/playbook-suspended-run.companion.service.js';
|
|
@@ -44,8 +44,10 @@ import { CompanionIntrospectionService } from '../../core/introspection/services
|
|
|
44
44
|
import { CompanionExecutionsCompanionService } from '../../executions/services/companion-executions.companion.service.js';
|
|
45
45
|
import { ResearchAgentDispatchCompanionService, ResearchAgentUnavailableError, } from '../../claude-cli/services/research-agent-dispatch.companion.service.js';
|
|
46
46
|
import { CodingAgentDispatchCompanionService } from '../../claude-cli/services/coding-agent-dispatch.companion.service.js';
|
|
47
|
+
import { COMPANION_TOKEN_HEADER, CompanionAuthFloorCompanionService, } from '../../core/auth/companion-auth-floor.companion.service.js';
|
|
47
48
|
import { CompanionTraceabilityLevel, isTraceExemptProbe } from '../../core/traceability/companion-traceability.models.js';
|
|
48
49
|
import { CompanionTraceabilityService } from '../../core/traceability/companion-traceability.service.js';
|
|
50
|
+
import { companionRequestIsAdmittedByTokenFloor } from './companion-token-floor.policy.js';
|
|
49
51
|
import { SPECIFICATION_CONTEXT_VALIDATION_ERROR_NAME } from '../../core/specifications/specification-context-factory.models.js';
|
|
50
52
|
import { StructuredDataCatalogAuditService } from '../../core/catalogs/structured-data-catalog-audit.service.js';
|
|
51
53
|
import { assertCompanionAvailableLanguage, assertEmailTemplateTestSendSucceeded, parseCompanionTargetLocales, } from './companion-i18n-api-contract.utils.js';
|
|
@@ -104,7 +106,8 @@ let CompanionController = class CompanionController extends AbstractControllerBa
|
|
|
104
106
|
traceabilityService;
|
|
105
107
|
codingAgentDispatchService;
|
|
106
108
|
researchAgentDispatchService;
|
|
107
|
-
|
|
109
|
+
authFloorService;
|
|
110
|
+
constructor(logger, errorBuilder, errorHandler, companionContext, labellingPlannerService, labellizeOrchestratorService, runWriteRegister, translateOrchestratorService, emailTemplateService, marketGenerationService, playbookRunService, creationPlaneProjection, buildDispatchService, executionTraceReadService, logoGenerationService, logoDeliberationService, brandAcceptService, expertPersonaService, deliberationService, technicalDocService, companionIntrospectionService, executionsService, traceabilityService, codingAgentDispatchService, researchAgentDispatchService, authFloorService) {
|
|
108
111
|
super(logger, errorBuilder, errorHandler, 'CompanionController');
|
|
109
112
|
this.companionContext = companionContext;
|
|
110
113
|
this.labellingPlannerService = labellingPlannerService;
|
|
@@ -128,8 +131,18 @@ let CompanionController = class CompanionController extends AbstractControllerBa
|
|
|
128
131
|
this.traceabilityService = traceabilityService;
|
|
129
132
|
this.codingAgentDispatchService = codingAgentDispatchService;
|
|
130
133
|
this.researchAgentDispatchService = researchAgentDispatchService;
|
|
134
|
+
this.authFloorService = authFloorService;
|
|
131
135
|
}
|
|
132
136
|
setupRoutes() {
|
|
137
|
+
/*
|
|
138
|
+
* The P-29b token floor, and it is registered FIRST on purpose — ahead of the trace middleware.
|
|
139
|
+
*
|
|
140
|
+
* An unauthorized caller must not be able to open a trace session: `attachRequestTraceSession`
|
|
141
|
+
* allocates a session directory per non-exempt request, so gating after it would let anyone who
|
|
142
|
+
* can reach the port spend disk and evict live sessions without ever passing a single handler.
|
|
143
|
+
* Refuse first, then trace what was admitted.
|
|
144
|
+
*/
|
|
145
|
+
this.router.use(this.enforceLocalTokenFloor.bind(this));
|
|
133
146
|
this.router.use(this.attachRequestTraceSession.bind(this));
|
|
134
147
|
// Health
|
|
135
148
|
this.router.get('/', this.asyncHandler(this.health.bind(this)));
|
|
@@ -329,6 +342,37 @@ let CompanionController = class CompanionController extends AbstractControllerBa
|
|
|
329
342
|
this.logRouteRegistration('post', '/registry/publish', 'Module-registry publish (Phase 6)');
|
|
330
343
|
}
|
|
331
344
|
getCustomMountBasePath() { return '/api/companion'; }
|
|
345
|
+
/**
|
|
346
|
+
* The P-29b local-token floor, finally applied (issue: the gate that was minted and never mounted).
|
|
347
|
+
*
|
|
348
|
+
* `CompanionAuthFloorCompanionService` has minted a 0600 machine-local token on every companion boot
|
|
349
|
+
* since P-29 landed, and `isValidToken` / `buildUnauthorizedError` were written for a middleware that
|
|
350
|
+
* was deleted along with the one endpoint it guarded. Nothing replaced it, so from that day the
|
|
351
|
+
* loopback bind was the ENTIRE protection for every mutating route on this controller — coding
|
|
352
|
+
* dispatch, playbook runs, run-write revert, registry install, every LLM call that spends money.
|
|
353
|
+
*
|
|
354
|
+
* What the token adds over the loopback bind is narrow and worth stating, because the floor's own
|
|
355
|
+
* JSDoc is careful about what it does NOT prove: it is not evidence of human presence, and it does
|
|
356
|
+
* not stop a same-uid process that can read the file. What it stops is a caller that can reach the
|
|
357
|
+
* port but cannot read the filesystem — the shape of a page in the operator's browser, or any other
|
|
358
|
+
* process on the machine sending a request it did not earn the right to send.
|
|
359
|
+
*
|
|
360
|
+
* Fails CLOSED in every direction: a missing header, an unparsable header, a token from a previous
|
|
361
|
+
* boot, and an uninitialized floor (`expectedTokenDigest === null`) all refuse.
|
|
362
|
+
*
|
|
363
|
+
* `req.path` is mount-relative here (`/playbooks/loop`, not `/api/companion/playbooks/loop`) and
|
|
364
|
+
* excludes the query string — the same coordinate `attachRequestTraceSession` already compares
|
|
365
|
+
* against. A path variant that the exemption list does not match exactly (a trailing slash, say)
|
|
366
|
+
* refuses, which is the safe direction: it also matches no route.
|
|
367
|
+
*/
|
|
368
|
+
enforceLocalTokenFloor(req, _res, next) {
|
|
369
|
+
const admitted = companionRequestIsAdmittedByTokenFloor({ method: req.method, path: req.path, presentedToken: req.headers[COMPANION_TOKEN_HEADER] }, (presented) => this.authFloorService.isValidToken(presented));
|
|
370
|
+
if (admitted) {
|
|
371
|
+
next();
|
|
372
|
+
return;
|
|
373
|
+
}
|
|
374
|
+
next(this.authFloorService.buildUnauthorizedError(`${req.method} ${req.path}`));
|
|
375
|
+
}
|
|
332
376
|
attachRequestTraceSession(req, res, next) {
|
|
333
377
|
// Polled probes are infrastructure noise, not build-time work — see
|
|
334
378
|
// `isTraceExemptProbe` for the full rationale (session-dir spam + live-
|
|
@@ -484,12 +528,41 @@ let CompanionController = class CompanionController extends AbstractControllerBa
|
|
|
484
528
|
}
|
|
485
529
|
const frontendChartRefs = result.data
|
|
486
530
|
.frontendChartRegistrationRefs ?? [];
|
|
487
|
-
// Backend side — the
|
|
531
|
+
// Backend side — the EFFECTIVE set the backend registers, not the module declarations.
|
|
532
|
+
//
|
|
533
|
+
// `buildApplicationInitializationConfig()` is the same pure builder backend startup uses; it
|
|
534
|
+
// assembles configuration and starts nothing, and its `chartDefinitions` is the array
|
|
535
|
+
// `StartApplicationBackendService` hands to `ChartRegistry.registerChart`. That matters
|
|
536
|
+
// because the assembly does `overrides.chartDefinitions ?? backendRegistry.chartDefinitions`
|
|
537
|
+
// — a REPLACE — so `mergeBackendDomainModules(...)`, which this route used until 2026-09-09,
|
|
538
|
+
// is a different population the moment an application supplies that override: a dropped chart
|
|
539
|
+
// read as ALIGNED and 404'd at runtime.
|
|
540
|
+
//
|
|
541
|
+
// It is also what the contract asks for in as many words ("tooling must not reconstruct
|
|
542
|
+
// selected runtime capabilities from lower-level registries or naming conventions"), so the
|
|
543
|
+
// previous composition was violating the surface it was calling.
|
|
488
544
|
const backendExports = await loadBackendCompanionExports(this.companionContext);
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
545
|
+
if (typeof backendExports.buildApplicationInitializationConfig !== 'function') {
|
|
546
|
+
// REFUSE rather than fall back to the declarations. A fallback here would answer about a
|
|
547
|
+
// population this route cannot vouch for, under a route whose whole output is a verdict —
|
|
548
|
+
// and it would do so silently, which is the defect this change removes.
|
|
549
|
+
throw this.errorBuilder.buildError(ErrorType.CONFIGURATION, undefined, {
|
|
550
|
+
customMessageReference: ErrorCustomMessageReference.CONFIGURATION,
|
|
551
|
+
context: {
|
|
552
|
+
message: 'chart-registration audit: the application\'s backend companion-exports declare no '
|
|
553
|
+
+ '`buildApplicationInitializationConfig`, so the effective registered chart set cannot be '
|
|
554
|
+
+ 'read. Add it to `backendCompanionExports` (it is a REQUIRED member of '
|
|
555
|
+
+ '`BackendCompanionExports`) and re-run.',
|
|
556
|
+
},
|
|
557
|
+
});
|
|
558
|
+
}
|
|
559
|
+
const backendRegisteredRefs = (backendExports.buildApplicationInitializationConfig().chartDefinitions ?? [])
|
|
560
|
+
.map((definition) => normalizeChartExecutionRef(definition.ref));
|
|
561
|
+
this.jsonSuccess(res, computeChartRegistrationAlignment({
|
|
562
|
+
frontendChartRefs,
|
|
563
|
+
backendRegisteredRefs,
|
|
564
|
+
backendRefsProvenance: ChartRegistrationBackendRefsProvenance.EFFECTIVE_INITIALIZATION_CONFIG,
|
|
565
|
+
}));
|
|
493
566
|
}
|
|
494
567
|
catch (e) {
|
|
495
568
|
this.jsonError(res, e, next);
|
|
@@ -840,11 +913,19 @@ let CompanionController = class CompanionController extends AbstractControllerBa
|
|
|
840
913
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
841
914
|
// CODING-AGENT STATUS (typed Flows/Actors coding path)
|
|
842
915
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
843
|
-
// The P-29 token middleware that used to live
|
|
916
|
+
// The P-29 token middleware that used to live HERE guarded only the raw
|
|
844
917
|
// POST /coding-agent/dispatch endpoint; it was deleted with that endpoint
|
|
845
|
-
// at the first-activation hard cut
|
|
846
|
-
//
|
|
847
|
-
//
|
|
918
|
+
// at the first-activation hard cut, and for as long as it stayed deleted
|
|
919
|
+
// `CompanionAuthFloorCompanionService`'s token half had no consumer at all.
|
|
920
|
+
// It is back, and deliberately not here: `enforceLocalTokenFloor` is a
|
|
921
|
+
// router-level middleware registered first in `setupRoutes`, so it covers
|
|
922
|
+
// every mutating route on the mount rather than the one endpoint whose
|
|
923
|
+
// author happened to remember it. Per-route gating is what let the floor
|
|
924
|
+
// die with a single deletion.
|
|
925
|
+
// The OTHER half of the same auth floor is unchanged and enforced at
|
|
926
|
+
// startup before the server listens: the fail-closed loopback assertion,
|
|
927
|
+
// with no override, which is why the companion must never bind beyond this
|
|
928
|
+
// machine.
|
|
848
929
|
/**
|
|
849
930
|
* Stop the in-flight coding run.
|
|
850
931
|
*
|
|
@@ -1537,8 +1618,10 @@ let CompanionController = class CompanionController extends AbstractControllerBa
|
|
|
1537
1618
|
});
|
|
1538
1619
|
}
|
|
1539
1620
|
catch (error) {
|
|
1540
|
-
if (error instanceof
|
|
1541
|
-
// 409: the caller is authorized and the payload is valid; the current STATE forbids a second
|
|
1621
|
+
if (error instanceof PlaybookRunAlreadyInFlightError) {
|
|
1622
|
+
// 409: the caller is authorized and the payload is valid; the current STATE forbids a second run.
|
|
1623
|
+
// Caught on the BASE: a loop iteration can select a composite, so this route can be refused by
|
|
1624
|
+
// the choreography's single-flight guard as well as by the loop's own.
|
|
1542
1625
|
next(this.errorBuilder.buildError(ErrorType.CONFLICT, undefined, {
|
|
1543
1626
|
customMessageReference: ErrorCustomMessageReference.VALIDATION,
|
|
1544
1627
|
context: { message: error.message },
|
|
@@ -1605,8 +1688,7 @@ let CompanionController = class CompanionController extends AbstractControllerBa
|
|
|
1605
1688
|
*/
|
|
1606
1689
|
async describeNextBuildTask(req, res, next) {
|
|
1607
1690
|
try {
|
|
1608
|
-
const
|
|
1609
|
-
const plan = await this.buildDispatchService.describeNextBuildTask(Number.isSafeInteger(budget) ? { maximumTokenBudget: budget } : {});
|
|
1691
|
+
const plan = await this.buildDispatchService.describeNextBuildTask();
|
|
1610
1692
|
res.json({ plan, dispatched: false });
|
|
1611
1693
|
}
|
|
1612
1694
|
catch (error) {
|
|
@@ -1631,17 +1713,16 @@ let CompanionController = class CompanionController extends AbstractControllerBa
|
|
|
1631
1713
|
async dispatchNextBuildTask(req, res, next) {
|
|
1632
1714
|
try {
|
|
1633
1715
|
const body = req.body || {};
|
|
1634
|
-
const budget = Number.isSafeInteger(body.maximumTokenBudget) ? { maximumTokenBudget: body.maximumTokenBudget } : {};
|
|
1635
1716
|
// DETACHED mode: a generation step can outlive any reasonable HTTP ceiling (an i18n run
|
|
1636
1717
|
// measured 40+ minutes against the 30-minute server cap, 2026-09-04), and a response that
|
|
1637
1718
|
// dies with the socket leaves the operator blind. 202 + the selected plan now; the outcome
|
|
1638
1719
|
// is readable at GET /build/dispatches (and, for coding tasks, in the durable task row).
|
|
1639
1720
|
if (body.async === true) {
|
|
1640
|
-
const plan = await this.buildDispatchService.submitBuildDispatchDetached(
|
|
1721
|
+
const plan = await this.buildDispatchService.submitBuildDispatchDetached(this.getTraceSession(res));
|
|
1641
1722
|
res.status(202).json({ plan, dispatched: true, async: true, note: 'Running detached. Poll GET /build/dispatches for the outcome.' });
|
|
1642
1723
|
return;
|
|
1643
1724
|
}
|
|
1644
|
-
const result = await this.buildDispatchService.dispatchNextBuildTask(
|
|
1725
|
+
const result = await this.buildDispatchService.dispatchNextBuildTask(this.getTraceSession(res));
|
|
1645
1726
|
res.json({
|
|
1646
1727
|
plan: result.plan,
|
|
1647
1728
|
dispatched: true,
|
|
@@ -1948,6 +2029,20 @@ let CompanionController = class CompanionController extends AbstractControllerBa
|
|
|
1948
2029
|
});
|
|
1949
2030
|
}
|
|
1950
2031
|
catch (error) {
|
|
2032
|
+
/*
|
|
2033
|
+
* A SECOND composite, refused. 409 and not 500: the caller is authorized, the payload is valid,
|
|
2034
|
+
* and it is the companion's current STATE that forbids the run — the same answer the loop route
|
|
2035
|
+
* has always given, which this route needed the day `runChoreography` started refusing. Without
|
|
2036
|
+
* it a creator launching a second market analysis would get "internal" and no way to learn that
|
|
2037
|
+
* their own earlier run is what is in the way; the message names its ref and start time.
|
|
2038
|
+
*/
|
|
2039
|
+
if (error instanceof PlaybookRunAlreadyInFlightError) {
|
|
2040
|
+
next(this.errorBuilder.buildError(ErrorType.CONFLICT, undefined, {
|
|
2041
|
+
customMessageReference: ErrorCustomMessageReference.VALIDATION,
|
|
2042
|
+
context: { message: error.message },
|
|
2043
|
+
}));
|
|
2044
|
+
return;
|
|
2045
|
+
}
|
|
1951
2046
|
// Refusals a creator must be able to READ, rather than a sanitized 500.
|
|
1952
2047
|
if (error instanceof UnknownPlaybookError) {
|
|
1953
2048
|
next(this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {
|
|
@@ -2199,25 +2294,20 @@ let CompanionController = class CompanionController extends AbstractControllerBa
|
|
|
2199
2294
|
* `POST /api/companion/expert-personas/derive` — derive an app-specific
|
|
2200
2295
|
* expert-persona charter PROPOSAL (agentic deliberation system). Thin:
|
|
2201
2296
|
* `ExpertPersonaCompanionService.derive` owns the flow (resolve shaping
|
|
2202
|
-
* inputs via introspection →
|
|
2203
|
-
*
|
|
2297
|
+
* inputs via introspection → invoke the derivation agent → stage the
|
|
2298
|
+
* proposal). Body: `{ roleRef: string }`. Every call derives; there is no
|
|
2299
|
+
* freshness cache to bypass.
|
|
2204
2300
|
*/
|
|
2205
2301
|
async expertPersonaDerive(req, res, next) {
|
|
2206
2302
|
try {
|
|
2207
2303
|
const body = req.body || {};
|
|
2208
|
-
const { roleRef
|
|
2304
|
+
const { roleRef } = body;
|
|
2209
2305
|
if (typeof roleRef !== 'string' || roleRef.length === 0) {
|
|
2210
2306
|
throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {
|
|
2211
2307
|
customMessageReference: ErrorCustomMessageReference.VALIDATION,
|
|
2212
2308
|
context: { message: '`roleRef` must be a non-empty string.' },
|
|
2213
2309
|
});
|
|
2214
2310
|
}
|
|
2215
|
-
if (forceRederive !== undefined && typeof forceRederive !== 'boolean') {
|
|
2216
|
-
throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {
|
|
2217
|
-
customMessageReference: ErrorCustomMessageReference.VALIDATION,
|
|
2218
|
-
context: { message: '`forceRederive` must be a boolean when provided.' },
|
|
2219
|
-
});
|
|
2220
|
-
}
|
|
2221
2311
|
const traceSession = this.getTraceSession(res);
|
|
2222
2312
|
const traceStep = this.createTraceStep(res, 'agent-invocation', 'expert-persona-derive');
|
|
2223
2313
|
const traceContext = traceSession && traceStep
|
|
@@ -2228,7 +2318,7 @@ let CompanionController = class CompanionController extends AbstractControllerBa
|
|
|
2228
2318
|
attributes: {},
|
|
2229
2319
|
}
|
|
2230
2320
|
: undefined;
|
|
2231
|
-
const result = await this.expertPersonaService.derive({ roleRef
|
|
2321
|
+
const result = await this.expertPersonaService.derive({ roleRef }, traceContext);
|
|
2232
2322
|
this.jsonSuccess(res, result);
|
|
2233
2323
|
}
|
|
2234
2324
|
catch (e) {
|
|
@@ -2337,21 +2427,15 @@ let CompanionController = class CompanionController extends AbstractControllerBa
|
|
|
2337
2427
|
* copy files into `specifications/src/brand/assets/` + rewrite
|
|
2338
2428
|
* `resolved-assets.generated.ts`).
|
|
2339
2429
|
*
|
|
2340
|
-
* Body (all optional): `{
|
|
2341
|
-
*
|
|
2430
|
+
* Body (all optional): `{ runJudge?, requireJudgeAcceptance? }`. The staged
|
|
2431
|
+
* single-candidate manifest is what gets accepted; the judge
|
|
2342
2432
|
* runs by default and its verdict is advisory (the human accept POST is the
|
|
2343
2433
|
* authority) unless `requireJudgeAcceptance` gates on it.
|
|
2344
2434
|
*/
|
|
2345
2435
|
async brandAcceptLogo(req, res, next) {
|
|
2346
2436
|
try {
|
|
2347
2437
|
const body = req.body || {};
|
|
2348
|
-
const {
|
|
2349
|
-
if (candidateRef !== undefined && typeof candidateRef !== 'string') {
|
|
2350
|
-
throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {
|
|
2351
|
-
customMessageReference: ErrorCustomMessageReference.VALIDATION,
|
|
2352
|
-
context: { message: '`candidateRef` must be a string when provided.' },
|
|
2353
|
-
});
|
|
2354
|
-
}
|
|
2438
|
+
const { runJudge, requireJudgeAcceptance } = body;
|
|
2355
2439
|
if (runJudge !== undefined && typeof runJudge !== 'boolean') {
|
|
2356
2440
|
throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {
|
|
2357
2441
|
customMessageReference: ErrorCustomMessageReference.VALIDATION,
|
|
@@ -2375,7 +2459,6 @@ let CompanionController = class CompanionController extends AbstractControllerBa
|
|
|
2375
2459
|
}
|
|
2376
2460
|
: undefined;
|
|
2377
2461
|
const result = await this.brandAcceptService.accept({
|
|
2378
|
-
...(typeof candidateRef === 'string' ? { candidateRef } : {}),
|
|
2379
2462
|
...(typeof runJudge === 'boolean' ? { runJudge } : {}),
|
|
2380
2463
|
...(typeof requireJudgeAcceptance === 'boolean' ? { requireJudgeAcceptance } : {}),
|
|
2381
2464
|
}, traceContext);
|
|
@@ -2540,6 +2623,7 @@ CompanionController = __decorate([
|
|
|
2540
2623
|
__param(22, inject(COMPANION_SERVICE_TYPES.TraceabilityService)),
|
|
2541
2624
|
__param(23, inject(COMPANION_SERVICE_TYPES.CodingAgentDispatchService)),
|
|
2542
2625
|
__param(24, inject(COMPANION_SERVICE_TYPES.ResearchAgentDispatchService)),
|
|
2626
|
+
__param(25, inject(COMPANION_SERVICE_TYPES.AuthFloorService)),
|
|
2543
2627
|
__metadata("design:paramtypes", [LoggerService,
|
|
2544
2628
|
ErrorBuilderBackendService,
|
|
2545
2629
|
ErrorHandlerService, Object, LabellingPlannerCompanionService,
|
|
@@ -2562,7 +2646,8 @@ CompanionController = __decorate([
|
|
|
2562
2646
|
CompanionExecutionsCompanionService,
|
|
2563
2647
|
CompanionTraceabilityService,
|
|
2564
2648
|
CodingAgentDispatchCompanionService,
|
|
2565
|
-
ResearchAgentDispatchCompanionService
|
|
2649
|
+
ResearchAgentDispatchCompanionService,
|
|
2650
|
+
CompanionAuthFloorCompanionService])
|
|
2566
2651
|
], CompanionController);
|
|
2567
2652
|
export { CompanionController };
|
|
2568
2653
|
export default CompanionController;
|