@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
|
@@ -13,11 +13,15 @@
|
|
|
13
13
|
*
|
|
14
14
|
* ## The confinement, and it is TWO independent things
|
|
15
15
|
*
|
|
16
|
-
* 1. The `claude-code-acp-research` profile's `
|
|
17
|
-
* non-mutating tool kinds (`read`, `search`, `fetch`, `think`) plus `edit
|
|
18
|
-
* never the unclassified `other`.
|
|
16
|
+
* 1. The `claude-code-acp-research` profile's `AUTO_ACCEPT_READS_AND_EDITS` ceiling admits the
|
|
17
|
+
* protocol's non-mutating tool kinds (`read`, `search`, `fetch`, `think`) plus `edit`, and
|
|
18
|
+
* nothing else: never `execute`, never the unclassified `other`. The ceilings are kind-SETS,
|
|
19
|
+
* not nested ranks, so read the name carefully: `AUTO_ACCEPT_EDITS` admits ONLY the mutating
|
|
20
|
+
* kinds and is precisely the inverse of what research needs. (The profile was `AUTO_ACCEPT_READS` until three lost
|
|
19
21
|
* compliance runs showed evidence living only in run memory cannot be leveraged or recovered;
|
|
20
|
-
* the edit admission exists solely so findings persist as they are gathered
|
|
22
|
+
* the edit admission exists solely so findings persist as they are gathered, and the first
|
|
23
|
+
* attempt at it named `AUTO_ACCEPT_EDITS` and cost two rounds of a live run with every web
|
|
24
|
+
* fetch refused.)
|
|
21
25
|
* 2. This dispatch supplies a location predicate that admits ONLY the evidence store
|
|
22
26
|
* (`specifications/research-evidence/`) and refuses every other path — built by the same
|
|
23
27
|
* `buildApplicationCodingTaskLocationPredicate` the coding lane trusts. The runner applies it to
|
|
@@ -95,6 +99,28 @@ export declare class ResearchAgentDispatchCompanionService {
|
|
|
95
99
|
* No lock, no change set, no reconciliation — a run that cannot mutate has nothing to attribute and
|
|
96
100
|
* nothing to recover. Several research lanes may therefore run concurrently, which is what makes a
|
|
97
101
|
* breadth-first fan-out possible at all.
|
|
102
|
+
*
|
|
103
|
+
* ## "Cannot mutate" is one island short, and the coding lane is where that was paid for
|
|
104
|
+
*
|
|
105
|
+
* This run CAN write, to exactly one place: its evidence store
|
|
106
|
+
* (`specifications/research-evidence/`, admitted by the location predicate below). That store is
|
|
107
|
+
* inside the application repository and is COMMITTABLE, so it is fully visible to the coding lane's
|
|
108
|
+
* whole-worktree change-set capture — and a research turn overlapping a coding run therefore
|
|
109
|
+
* appeared in that run's change set, at a path no coding task declares, i.e. as a false
|
|
110
|
+
* `MUTATION_SCOPE_VIOLATION` that failed the coding run closed. Two live paths reach that overlap:
|
|
111
|
+
* an operator's `POST /api/companion/research`, and a composite's `RESEARCH_AGENT` children, which
|
|
112
|
+
* the choreography dispatches concurrently.
|
|
113
|
+
*
|
|
114
|
+
* The fix is on the coding side, where the misattribution happens —
|
|
115
|
+
* `CONCURRENT_HOST_LANE_ROOTS` in `git-change-set.companion.service.ts` names this store as
|
|
116
|
+
* lane-owned, so its writes are RECORDED in the change set and excluded from the scope decision.
|
|
117
|
+
* Taking the workspace-mutation lock here was rejected and measured: that lock is acquired with
|
|
118
|
+
* `retries: { retries: 0 }`, so it refuses rather than queues, and it would refuse two of every
|
|
119
|
+
* three lanes of the fan-out this JSDoc exists to protect.
|
|
120
|
+
*
|
|
121
|
+
* So if this lane ever grows a SECOND writable island, the coding lane's list has to grow with it
|
|
122
|
+
* in the same change. Nothing mechanical joins them — the predicate is one exported function
|
|
123
|
+
* precisely so the join is a single named place rather than a convention.
|
|
98
124
|
*/
|
|
99
125
|
runResearchTask(request: ResearchTaskRequest): Promise<ResearchTaskResult>;
|
|
100
126
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"research-agent-dispatch.companion.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"research-agent-dispatch.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/claude-cli/services/research-agent-dispatch.companion.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAGH,OAAO,EACL,0BAA0B,EAC1B,aAAa,EAEb,KAAK,oBAAoB,EAC1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAIL,sBAAsB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACvB,MAAM,sCAAsC,CAAC;AAI9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAU7E,wGAAwG;AACxG,MAAM,WAAW,mBAAmB;IAClC;;;;;;OAMG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,+EAA+E;IAC/E,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,kBAAkB;IACjC,4FAA4F;IAC5F,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,sBAAsB,CAAC;IAC5C,QAAQ,CAAC,KAAK,CAAC,EAAE,iBAAiB,CAAC;IACnC;;;;;;OAMG;IACH,QAAQ,CAAC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IACxC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,yBAAyB,CAAC,qBAAqB,CAAC,CAAC;IAChF;;;OAGG;IACH,QAAQ,CAAC,qBAAqB,EAAE,SAAS,MAAM,EAAE,CAAC;IAClD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,+FAA+F;IAC/F,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;CACxC;AAED,iIAAiI;AACjI,qBAAa,6BAA8B,SAAQ,KAAK;CAAG;AAE3D,qBACa,qCAAqC;IAIX,OAAO,CAAC,QAAQ,CAAC,MAAM;IACV,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC5B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC7B,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IANrF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA+D;gBAGlC,MAAM,EAAE,aAAa,EACR,YAAY,EAAE,0BAA0B,EACvC,aAAa,EAAE,oBAAoB,EAClC,gBAAgB,EAAE,gBAAgB;IAMvG;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACU,eAAe,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAiHxF"}
|
|
@@ -13,11 +13,15 @@
|
|
|
13
13
|
*
|
|
14
14
|
* ## The confinement, and it is TWO independent things
|
|
15
15
|
*
|
|
16
|
-
* 1. The `claude-code-acp-research` profile's `
|
|
17
|
-
* non-mutating tool kinds (`read`, `search`, `fetch`, `think`) plus `edit
|
|
18
|
-
* never the unclassified `other`.
|
|
16
|
+
* 1. The `claude-code-acp-research` profile's `AUTO_ACCEPT_READS_AND_EDITS` ceiling admits the
|
|
17
|
+
* protocol's non-mutating tool kinds (`read`, `search`, `fetch`, `think`) plus `edit`, and
|
|
18
|
+
* nothing else: never `execute`, never the unclassified `other`. The ceilings are kind-SETS,
|
|
19
|
+
* not nested ranks, so read the name carefully: `AUTO_ACCEPT_EDITS` admits ONLY the mutating
|
|
20
|
+
* kinds and is precisely the inverse of what research needs. (The profile was `AUTO_ACCEPT_READS` until three lost
|
|
19
21
|
* compliance runs showed evidence living only in run memory cannot be leveraged or recovered;
|
|
20
|
-
* the edit admission exists solely so findings persist as they are gathered
|
|
22
|
+
* the edit admission exists solely so findings persist as they are gathered, and the first
|
|
23
|
+
* attempt at it named `AUTO_ACCEPT_EDITS` and cost two rounds of a live run with every web
|
|
24
|
+
* fetch refused.)
|
|
21
25
|
* 2. This dispatch supplies a location predicate that admits ONLY the evidence store
|
|
22
26
|
* (`specifications/research-evidence/`) and refuses every other path — built by the same
|
|
23
27
|
* `buildApplicationCodingTaskLocationPredicate` the coding lane trusts. The runner applies it to
|
|
@@ -77,6 +81,28 @@ let ResearchAgentDispatchCompanionService = class ResearchAgentDispatchCompanion
|
|
|
77
81
|
* No lock, no change set, no reconciliation — a run that cannot mutate has nothing to attribute and
|
|
78
82
|
* nothing to recover. Several research lanes may therefore run concurrently, which is what makes a
|
|
79
83
|
* breadth-first fan-out possible at all.
|
|
84
|
+
*
|
|
85
|
+
* ## "Cannot mutate" is one island short, and the coding lane is where that was paid for
|
|
86
|
+
*
|
|
87
|
+
* This run CAN write, to exactly one place: its evidence store
|
|
88
|
+
* (`specifications/research-evidence/`, admitted by the location predicate below). That store is
|
|
89
|
+
* inside the application repository and is COMMITTABLE, so it is fully visible to the coding lane's
|
|
90
|
+
* whole-worktree change-set capture — and a research turn overlapping a coding run therefore
|
|
91
|
+
* appeared in that run's change set, at a path no coding task declares, i.e. as a false
|
|
92
|
+
* `MUTATION_SCOPE_VIOLATION` that failed the coding run closed. Two live paths reach that overlap:
|
|
93
|
+
* an operator's `POST /api/companion/research`, and a composite's `RESEARCH_AGENT` children, which
|
|
94
|
+
* the choreography dispatches concurrently.
|
|
95
|
+
*
|
|
96
|
+
* The fix is on the coding side, where the misattribution happens —
|
|
97
|
+
* `CONCURRENT_HOST_LANE_ROOTS` in `git-change-set.companion.service.ts` names this store as
|
|
98
|
+
* lane-owned, so its writes are RECORDED in the change set and excluded from the scope decision.
|
|
99
|
+
* Taking the workspace-mutation lock here was rejected and measured: that lock is acquired with
|
|
100
|
+
* `retries: { retries: 0 }`, so it refuses rather than queues, and it would refuse two of every
|
|
101
|
+
* three lanes of the fan-out this JSDoc exists to protect.
|
|
102
|
+
*
|
|
103
|
+
* So if this lane ever grows a SECOND writable island, the coding lane's list has to grow with it
|
|
104
|
+
* in the same change. Nothing mechanical joins them — the predicate is one exported function
|
|
105
|
+
* precisely so the join is a single named place rather than a convention.
|
|
80
106
|
*/
|
|
81
107
|
async runResearchTask(request) {
|
|
82
108
|
const objective = request.objective.trim();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"research-agent-dispatch.companion.service.js","sourceRoot":"","sources":["../../../../../src/claude-cli/services/research-agent-dispatch.companion.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;;;;;;;;;;;;;AAEH,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EACL,0BAA0B,EAC1B,aAAa,EACb,kBAAkB,GAEnB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAIL,sBAAsB,GAGvB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,2BAA2B,EAAE,SAAS,EAAqC,MAAM,uBAAuB,CAAC;AAElH,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAEjF,OAAO,EAAE,8BAA8B,EAAE,MAAM,kFAAkF,CAAC;AAClI,OAAO,EAAE,2CAA2C,EAAE,MAAM,2CAA2C,CAAC;AACxG,OAAO,EACL,+BAA+B,EAC/B,+BAA+B,EAC/B,gCAAgC,EAChC,wBAAwB,GACzB,MAAM,qCAAqC,CAAC;AA8C7C,iIAAiI;AACjI,MAAM,OAAO,6BAA8B,SAAQ,KAAK;CAAG;AAGpD,IAAM,qCAAqC,GAA3C,MAAM,qCAAqC;IAIM;IACa;IACC;IACC;IANpD,QAAQ,C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,mBAAmB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACzG,qBAAqB,EAAE,MAAM,EAAE,qBAAqB,IAAI,EAAE;YAC1D,SAAS;YACT,qBAAqB;SACtB,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,wBAAwB,EAAE;YACtC,UAAU;YACV,SAAS;YACT,cAAc,EAAE,QAAQ,CAAC,MAAM;YAC/B,qBAAqB,EAAE,MAAM,CAAC,qBAAqB;YACnD,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,CAAC,MAAM;YAC1D,qBAAqB;SACtB,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAA;AArIY,qCAAqC;IADjD,UAAU,EAAE;IAKR,WAAA,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAA;IAC9C,WAAA,MAAM,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,CAAA;IAC/C,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;qCAHW,aAAa;QACM,0BAA0B;GALhG,qCAAqC,CAqIjD","sourcesContent":["/**\n * Research dispatch — the evidence half of the ACP lane. Read-only toward the workspace, except\n * for its own evidence store.\n *\n * ## Why this is a SECOND WRAPPER and not a mode on the coding one\n *\n * The generic session runner (`runACPCodingSession`, engine) is already task-agnostic: command, cwd,\n * prompt, permission ceiling, a location predicate, an event sink. Everything that makes the coding\n * dispatch a CODING dispatch — the typed task contract, the git change-set capture, the mutation\n * scope, the single-flight lock — sits in that wrapper, and none of it applies to a run that mutates\n * nothing and returns text. So research is a sibling over the same runner rather than a branch\n * inside a service whose every other line is about attributing writes.\n *\n * ## The confinement, and it is TWO independent things\n *\n * 1. The `claude-code-acp-research` profile's `AUTO_ACCEPT_EDITS` ceiling admits the protocol's\n * non-mutating tool kinds (`read`, `search`, `fetch`, `think`) plus `edit` — never `execute`,\n * never the unclassified `other`. (It was `AUTO_ACCEPT_READS` until 2026-09-04, when three lost\n * compliance runs showed evidence living only in run memory cannot be leveraged or recovered;\n * the edit admission exists solely so findings persist as they are gathered.)\n * 2. This dispatch supplies a location predicate that admits ONLY the evidence store\n * (`specifications/research-evidence/`) and refuses every other path — built by the same\n * `buildApplicationCodingTaskLocationPredicate` the coding lane trusts. The runner applies it to\n * any permission request declaring locations, whatever its kind, and separately gates the\n * client-side write RPC. So a web read (which declares no location) passes, an evidence-store\n * write passes, and any other filesystem read or write does not.\n *\n * Neither alone is the guarantee. The ceiling stops the kinds; the predicate stops the paths.\n *\n * ## Measured before it was built (2026-08-29)\n *\n * Under `PROMPT_ALWAYS` with every location refused, a live probe asking a public-web pricing\n * question had both `WebFetch` and `WebSearch` arrive as `toolKind: 'fetch'` and be refused; the\n * agent ended its turn declining to guess from memory. Re-run under `AUTO_ACCEPT_READS`, the same\n * probe fetched the page and returned the figure with its source URL, `reportedFileLocations: []`.\n */\n\nimport { inject, injectable } from 'inversify';\nimport {\n ErrorBuilderBackendService,\n LoggerService,\n SAAS_SERVICE_TYPES,\n type AgentsBackendService,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n CodingAgent_OperationContext_BaseSchema,\n CodingAgent_RunTaskInputSchema,\n CodingAgent_RunTaskOutputSchema,\n CodingAgent_StopReason,\n type CodingAgent_RunTaskOutput,\n type CodingAgent_Usage,\n} from '@wildo-ai/external-connectors-models';\nimport { ErrorCustomMessageReference, ErrorType, type FlowsActors_Agent_Invocation } from '@wildo-ai/saas-models';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { APPLICATION_RESEARCH_AGENT_REF } from '../../meta-workflows/models/application-research-agent.actors-system.definitions';\nimport { buildApplicationCodingTaskLocationPredicate } from './coding-agent-dispatch.companion.service';\nimport {\n RESEARCH_EVIDENCE_RELATIVE_ROOT,\n composeEvidenceStoreInstruction,\n resolveResearchEvidenceDirectory,\n writeFinalEvidenceRecord,\n} from './research-evidence-store.companion';\n\n/** One research objective, composed by whatever is asking — a playbook, a choreography, an operator. */\nexport interface ResearchTaskRequest {\n /**\n * What to find out, in the requester's own words.\n *\n * Deliberately free text rather than a structured query: the objective is INVENTED per run and\n * adapted to what an earlier round found, which is the whole reason a research step is an agent\n * and not a search API. Code gates the KIND of work and its bounds; it never gates the content.\n */\n readonly objective: string;\n /**\n * Which investigation this task belongs to — normally the composite playbook ref. Names the\n * evidence-store directory every round of that investigation consolidates into. Absent for an\n * operator's ad-hoc question, which lands under `adhoc`.\n */\n readonly evidenceScope?: string;\n /** The playbook that asked, recorded in the persisted evidence frontmatter. */\n readonly playbookRef?: string;\n}\n\nexport interface ResearchTaskResult {\n /** The agent's final message — the evidence, in prose, with the sources it says it read. */\n readonly evidence: string;\n readonly stopReason: CodingAgent_StopReason;\n readonly usage?: CodingAgent_Usage;\n /**\n * Permission requests the runner refused, with the reason.\n *\n * Carried because a research answer that looks thin has two very different causes — the agent\n * found little, or the ceiling refused the tool it needed — and they are indistinguishable from\n * the prose alone.\n */\n readonly deniedPermissionCount?: number;\n readonly permissionDecisions?: CodingAgent_RunTaskOutput['permissionDecisions'];\n /**\n * Paths the agent reported touching. Every entry must sit inside the evidence store — carried so\n * that claim is an observed fact in the record rather than an assumption about the configuration.\n */\n readonly reportedFileLocations: readonly string[];\n readonly elapsedMs: number;\n /** Where the final brief was persisted — the companion-side backstop write, always present. */\n readonly persistedEvidencePath: string;\n}\n\n/** The research agent is not registered, or the profile it names is absent. Named so a transport answers 409 rather than 500. */\nexport class ResearchAgentUnavailableError extends Error {}\n\n@injectable()\nexport class ResearchAgentDispatchCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(SAAS_SERVICE_TYPES.ErrorBuilderService) private readonly errorBuilder: ErrorBuilderBackendService,\n @inject(SAAS_SERVICE_TYPES.AgentsBackendService) private readonly agentsService: AgentsBackendService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n ) {\n this.logDebug = this.logger.debugByType('ResearchAgentDispatchCompanionService');\n this.logger.setDebugTypeLogging('ResearchAgentDispatchCompanionService', true);\n }\n\n /**\n * Run one research objective and return what the agent found.\n *\n * No lock, no change set, no reconciliation — a run that cannot mutate has nothing to attribute and\n * nothing to recover. Several research lanes may therefore run concurrently, which is what makes a\n * breadth-first fan-out possible at all.\n */\n public async runResearchTask(request: ResearchTaskRequest): Promise<ResearchTaskResult> {\n const objective = request.objective.trim();\n if (objective.length === 0) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: 'A research task needs an objective; an empty one would spend a turn to learn nothing.' },\n });\n }\n if (this.agentsService.getAgent(APPLICATION_RESEARCH_AGENT_REF) === undefined) {\n throw new ResearchAgentUnavailableError(\n `The research agent \"${APPLICATION_RESEARCH_AGENT_REF}\" is not registered. It is registered at companion startup; `\n + 'a companion started before it existed needs a restart.',\n );\n }\n\n const evidenceDirectory = resolveResearchEvidenceDirectory(this.companionContext.saasRoot, request.evidenceScope ?? 'adhoc');\n const promptWithStore = [objective, '', composeEvidenceStoreInstruction(evidenceDirectory)].join('\\n');\n\n const invocation: FlowsActors_Agent_Invocation<\n typeof CodingAgent_RunTaskInputSchema,\n typeof CodingAgent_RunTaskOutputSchema,\n typeof CodingAgent_OperationContext_BaseSchema\n > = {\n agentRef: APPLICATION_RESEARCH_AGENT_REF,\n initiator: {},\n invocationContext: [],\n input: { prompt: promptWithStore },\n output: { finalMessage: '', stopReason: CodingAgent_StopReason.END_TURN },\n executionContext: { callTimestamp: new Date().toISOString() },\n artifactBindings: [],\n };\n\n const startedAtMs = Date.now();\n const startedAtIso = new Date(startedAtMs).toISOString();\n this.logDebug('Research task starting', { objectiveLength: objective.length, evidenceScope: request.evidenceScope });\n const response = await this.agentsService.invokeAgent(invocation, undefined, {\n workspaceRootPath: this.companionContext.saasRoot,\n /*\n * ONE writable island: the evidence store. The predicate is the SAME builder the coding lane\n * trusts (symlink-aware, boundary-matched), scoped to `specifications/research-evidence/` and\n * nothing else — so the agent can consolidate findings to disk as it researches (evidence\n * that survives an interrupted turn) and read prior rounds' files, while the rest of the\n * workspace stays refused. A web fetch declares no location and is unaffected. This replaced\n * the original refuse-every-path predicate on 2026-09-04, when three lost compliance runs\n * showed that evidence living only in run memory cannot be leveraged or recovered.\n */\n isPermittedCodingLocation: buildApplicationCodingTaskLocationPredicate(\n this.companionContext.saasRoot,\n [RESEARCH_EVIDENCE_RELATIVE_ROOT],\n [],\n ),\n });\n\n const output = response.output as Partial<CodingAgent_RunTaskOutput> | undefined;\n const evidence = typeof output?.finalMessage === 'string' ? output.finalMessage : '';\n const stopReason = output?.stopReason ?? CodingAgent_StopReason.UNRECOGNISED;\n const elapsedMs = Date.now() - startedAtMs;\n\n /*\n * A CANCELLED turn is not a completed one and its partial prose is not evidence — the same\n * refusal the coding lane makes, for the same reason: a truncated answer reads exactly like a\n * short one. Checked BEFORE the backstop write, so a cancelled turn's partial FINAL MESSAGE is\n * never persisted as a completed record — whatever the agent already consolidated to the store\n * during the turn stands on its own, file by file, and is exactly what incremental persistence\n * is for.\n */\n if (stopReason === CodingAgent_StopReason.CANCELLED) {\n throw new Error(`Research task was cancelled after ${elapsedMs}ms; its partial answer is not evidence.`);\n }\n\n // The companion-side backstop: the completed brief lands on disk with its provenance even when\n // the agent consolidated nothing itself. Best-effort by construction — a store write failing\n // must not turn a completed research turn into a failed one.\n let persistedEvidencePath = '';\n try {\n persistedEvidencePath = writeFinalEvidenceRecord({\n evidenceDirectoryAbsolutePath: evidenceDirectory,\n objective,\n evidence,\n stopReason,\n startedAtIso,\n elapsedMs,\n ...(request.playbookRef ? { playbookRef: request.playbookRef } : {}),\n });\n } catch (persistError) {\n this.logger.warn('Research evidence backstop write failed; the returned brief is the only copy', {\n evidenceDirectory,\n failure: persistError instanceof Error ? persistError.message : String(persistError),\n });\n }\n\n const result: ResearchTaskResult = {\n evidence,\n stopReason,\n ...(((response.executionContext as { usage?: CodingAgent_Usage } | undefined)?.usage)\n ? { usage: (response.executionContext as { usage?: CodingAgent_Usage }).usage }\n : {}),\n ...(output?.deniedPermissionCount !== undefined ? { deniedPermissionCount: output.deniedPermissionCount } : {}),\n ...(output?.permissionDecisions !== undefined ? { permissionDecisions: output.permissionDecisions } : {}),\n reportedFileLocations: output?.reportedFileLocations ?? [],\n elapsedMs,\n persistedEvidencePath,\n };\n this.logDebug('Research task finished', {\n stopReason,\n elapsedMs,\n evidenceLength: evidence.length,\n deniedPermissionCount: result.deniedPermissionCount,\n reportedFileLocations: result.reportedFileLocations.length,\n persistedEvidencePath,\n });\n return result;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"research-agent-dispatch.companion.service.js","sourceRoot":"","sources":["../../../../src/claude-cli/services/research-agent-dispatch.companion.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;;;;;;;;;;;;;AAEH,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EACL,0BAA0B,EAC1B,aAAa,EACb,kBAAkB,GAEnB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAIL,sBAAsB,GAGvB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,2BAA2B,EAAE,SAAS,EAAqC,MAAM,uBAAuB,CAAC;AAElH,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAEjF,OAAO,EAAE,8BAA8B,EAAE,MAAM,kFAAkF,CAAC;AAClI,OAAO,EAAE,2CAA2C,EAAE,MAAM,2CAA2C,CAAC;AACxG,OAAO,EACL,+BAA+B,EAC/B,+BAA+B,EAC/B,gCAAgC,EAChC,wBAAwB,GACzB,MAAM,qCAAqC,CAAC;AA8C7C,iIAAiI;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CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC/G,GAAG,CAAC,MAAM,EAAE,mBAAmB,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,mBAAmB,EAAE,MAAM,CAAC,mBAAmB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACzG,qBAAqB,EAAE,MAAM,EAAE,qBAAqB,IAAI,EAAE;YAC1D,SAAS;YACT,qBAAqB;SACtB,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,wBAAwB,EAAE;YACtC,UAAU;YACV,SAAS;YACT,cAAc,EAAE,QAAQ,CAAC,MAAM;YAC/B,qBAAqB,EAAE,MAAM,CAAC,qBAAqB;YACnD,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,CAAC,MAAM;YAC1D,qBAAqB;SACtB,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAA;AA3JY,qCAAqC;IADjD,UAAU,EAAE;IAKR,WAAA,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAA;IAC9C,WAAA,MAAM,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,CAAA;IAC/C,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;qCAHW,aAAa;QACM,0BAA0B;GALhG,qCAAqC,CA2JjD","sourcesContent":["/**\n * Research dispatch — the evidence half of the ACP lane. Read-only toward the workspace, except\n * for its own evidence store.\n *\n * ## Why this is a SECOND WRAPPER and not a mode on the coding one\n *\n * The generic session runner (`runACPCodingSession`, engine) is already task-agnostic: command, cwd,\n * prompt, permission ceiling, a location predicate, an event sink. Everything that makes the coding\n * dispatch a CODING dispatch — the typed task contract, the git change-set capture, the mutation\n * scope, the single-flight lock — sits in that wrapper, and none of it applies to a run that mutates\n * nothing and returns text. So research is a sibling over the same runner rather than a branch\n * inside a service whose every other line is about attributing writes.\n *\n * ## The confinement, and it is TWO independent things\n *\n * 1. The `claude-code-acp-research` profile's `AUTO_ACCEPT_READS_AND_EDITS` ceiling admits the\n * protocol's non-mutating tool kinds (`read`, `search`, `fetch`, `think`) plus `edit`, and\n * nothing else: never `execute`, never the unclassified `other`. The ceilings are kind-SETS,\n * not nested ranks, so read the name carefully: `AUTO_ACCEPT_EDITS` admits ONLY the mutating\n * kinds and is precisely the inverse of what research needs. (The profile was `AUTO_ACCEPT_READS` until three lost\n * compliance runs showed evidence living only in run memory cannot be leveraged or recovered;\n * the edit admission exists solely so findings persist as they are gathered, and the first\n * attempt at it named `AUTO_ACCEPT_EDITS` and cost two rounds of a live run with every web\n * fetch refused.)\n * 2. This dispatch supplies a location predicate that admits ONLY the evidence store\n * (`specifications/research-evidence/`) and refuses every other path — built by the same\n * `buildApplicationCodingTaskLocationPredicate` the coding lane trusts. The runner applies it to\n * any permission request declaring locations, whatever its kind, and separately gates the\n * client-side write RPC. So a web read (which declares no location) passes, an evidence-store\n * write passes, and any other filesystem read or write does not.\n *\n * Neither alone is the guarantee. The ceiling stops the kinds; the predicate stops the paths.\n *\n * ## Measured before it was built (2026-08-29)\n *\n * Under `PROMPT_ALWAYS` with every location refused, a live probe asking a public-web pricing\n * question had both `WebFetch` and `WebSearch` arrive as `toolKind: 'fetch'` and be refused; the\n * agent ended its turn declining to guess from memory. Re-run under `AUTO_ACCEPT_READS`, the same\n * probe fetched the page and returned the figure with its source URL, `reportedFileLocations: []`.\n */\n\nimport { inject, injectable } from 'inversify';\nimport {\n ErrorBuilderBackendService,\n LoggerService,\n SAAS_SERVICE_TYPES,\n type AgentsBackendService,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n CodingAgent_OperationContext_BaseSchema,\n CodingAgent_RunTaskInputSchema,\n CodingAgent_RunTaskOutputSchema,\n CodingAgent_StopReason,\n type CodingAgent_RunTaskOutput,\n type CodingAgent_Usage,\n} from '@wildo-ai/external-connectors-models';\nimport { ErrorCustomMessageReference, ErrorType, type FlowsActors_Agent_Invocation } from '@wildo-ai/saas-models';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { APPLICATION_RESEARCH_AGENT_REF } from '../../meta-workflows/models/application-research-agent.actors-system.definitions';\nimport { buildApplicationCodingTaskLocationPredicate } from './coding-agent-dispatch.companion.service';\nimport {\n RESEARCH_EVIDENCE_RELATIVE_ROOT,\n composeEvidenceStoreInstruction,\n resolveResearchEvidenceDirectory,\n writeFinalEvidenceRecord,\n} from './research-evidence-store.companion';\n\n/** One research objective, composed by whatever is asking — a playbook, a choreography, an operator. */\nexport interface ResearchTaskRequest {\n /**\n * What to find out, in the requester's own words.\n *\n * Deliberately free text rather than a structured query: the objective is INVENTED per run and\n * adapted to what an earlier round found, which is the whole reason a research step is an agent\n * and not a search API. Code gates the KIND of work and its bounds; it never gates the content.\n */\n readonly objective: string;\n /**\n * Which investigation this task belongs to — normally the composite playbook ref. Names the\n * evidence-store directory every round of that investigation consolidates into. Absent for an\n * operator's ad-hoc question, which lands under `adhoc`.\n */\n readonly evidenceScope?: string;\n /** The playbook that asked, recorded in the persisted evidence frontmatter. */\n readonly playbookRef?: string;\n}\n\nexport interface ResearchTaskResult {\n /** The agent's final message — the evidence, in prose, with the sources it says it read. */\n readonly evidence: string;\n readonly stopReason: CodingAgent_StopReason;\n readonly usage?: CodingAgent_Usage;\n /**\n * Permission requests the runner refused, with the reason.\n *\n * Carried because a research answer that looks thin has two very different causes — the agent\n * found little, or the ceiling refused the tool it needed — and they are indistinguishable from\n * the prose alone.\n */\n readonly deniedPermissionCount?: number;\n readonly permissionDecisions?: CodingAgent_RunTaskOutput['permissionDecisions'];\n /**\n * Paths the agent reported touching. Every entry must sit inside the evidence store — carried so\n * that claim is an observed fact in the record rather than an assumption about the configuration.\n */\n readonly reportedFileLocations: readonly string[];\n readonly elapsedMs: number;\n /** Where the final brief was persisted — the companion-side backstop write, always present. */\n readonly persistedEvidencePath: string;\n}\n\n/** The research agent is not registered, or the profile it names is absent. Named so a transport answers 409 rather than 500. */\nexport class ResearchAgentUnavailableError extends Error {}\n\n@injectable()\nexport class ResearchAgentDispatchCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(SAAS_SERVICE_TYPES.ErrorBuilderService) private readonly errorBuilder: ErrorBuilderBackendService,\n @inject(SAAS_SERVICE_TYPES.AgentsBackendService) private readonly agentsService: AgentsBackendService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n ) {\n this.logDebug = this.logger.debugByType('ResearchAgentDispatchCompanionService');\n this.logger.setDebugTypeLogging('ResearchAgentDispatchCompanionService', true);\n }\n\n /**\n * Run one research objective and return what the agent found.\n *\n * No lock, no change set, no reconciliation — a run that cannot mutate has nothing to attribute and\n * nothing to recover. Several research lanes may therefore run concurrently, which is what makes a\n * breadth-first fan-out possible at all.\n *\n * ## \"Cannot mutate\" is one island short, and the coding lane is where that was paid for\n *\n * This run CAN write, to exactly one place: its evidence store\n * (`specifications/research-evidence/`, admitted by the location predicate below). That store is\n * inside the application repository and is COMMITTABLE, so it is fully visible to the coding lane's\n * whole-worktree change-set capture — and a research turn overlapping a coding run therefore\n * appeared in that run's change set, at a path no coding task declares, i.e. as a false\n * `MUTATION_SCOPE_VIOLATION` that failed the coding run closed. Two live paths reach that overlap:\n * an operator's `POST /api/companion/research`, and a composite's `RESEARCH_AGENT` children, which\n * the choreography dispatches concurrently.\n *\n * The fix is on the coding side, where the misattribution happens —\n * `CONCURRENT_HOST_LANE_ROOTS` in `git-change-set.companion.service.ts` names this store as\n * lane-owned, so its writes are RECORDED in the change set and excluded from the scope decision.\n * Taking the workspace-mutation lock here was rejected and measured: that lock is acquired with\n * `retries: { retries: 0 }`, so it refuses rather than queues, and it would refuse two of every\n * three lanes of the fan-out this JSDoc exists to protect.\n *\n * So if this lane ever grows a SECOND writable island, the coding lane's list has to grow with it\n * in the same change. Nothing mechanical joins them — the predicate is one exported function\n * precisely so the join is a single named place rather than a convention.\n */\n public async runResearchTask(request: ResearchTaskRequest): Promise<ResearchTaskResult> {\n const objective = request.objective.trim();\n if (objective.length === 0) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: 'A research task needs an objective; an empty one would spend a turn to learn nothing.' },\n });\n }\n if (this.agentsService.getAgent(APPLICATION_RESEARCH_AGENT_REF) === undefined) {\n throw new ResearchAgentUnavailableError(\n `The research agent \"${APPLICATION_RESEARCH_AGENT_REF}\" is not registered. It is registered at companion startup; `\n + 'a companion started before it existed needs a restart.',\n );\n }\n\n const evidenceDirectory = resolveResearchEvidenceDirectory(this.companionContext.saasRoot, request.evidenceScope ?? 'adhoc');\n const promptWithStore = [objective, '', composeEvidenceStoreInstruction(evidenceDirectory)].join('\\n');\n\n const invocation: FlowsActors_Agent_Invocation<\n typeof CodingAgent_RunTaskInputSchema,\n typeof CodingAgent_RunTaskOutputSchema,\n typeof CodingAgent_OperationContext_BaseSchema\n > = {\n agentRef: APPLICATION_RESEARCH_AGENT_REF,\n initiator: {},\n invocationContext: [],\n input: { prompt: promptWithStore },\n output: { finalMessage: '', stopReason: CodingAgent_StopReason.END_TURN },\n executionContext: { callTimestamp: new Date().toISOString() },\n artifactBindings: [],\n };\n\n const startedAtMs = Date.now();\n const startedAtIso = new Date(startedAtMs).toISOString();\n this.logDebug('Research task starting', { objectiveLength: objective.length, evidenceScope: request.evidenceScope });\n const response = await this.agentsService.invokeAgent(invocation, undefined, {\n workspaceRootPath: this.companionContext.saasRoot,\n /*\n * ONE writable island: the evidence store. The predicate is the SAME builder the coding lane\n * trusts (symlink-aware, boundary-matched), scoped to `specifications/research-evidence/` and\n * nothing else — so the agent can consolidate findings to disk as it researches (evidence\n * that survives an interrupted turn) and read prior rounds' files, while the rest of the\n * workspace stays refused. A web fetch declares no location and is unaffected. This replaced\n * the original refuse-every-path predicate on 2026-09-04, when three lost compliance runs\n * showed that evidence living only in run memory cannot be leveraged or recovered.\n */\n isPermittedCodingLocation: buildApplicationCodingTaskLocationPredicate(\n this.companionContext.saasRoot,\n [RESEARCH_EVIDENCE_RELATIVE_ROOT],\n [],\n ),\n });\n\n const output = response.output as Partial<CodingAgent_RunTaskOutput> | undefined;\n const evidence = typeof output?.finalMessage === 'string' ? output.finalMessage : '';\n const stopReason = output?.stopReason ?? CodingAgent_StopReason.UNRECOGNISED;\n const elapsedMs = Date.now() - startedAtMs;\n\n /*\n * A CANCELLED turn is not a completed one and its partial prose is not evidence — the same\n * refusal the coding lane makes, for the same reason: a truncated answer reads exactly like a\n * short one. Checked BEFORE the backstop write, so a cancelled turn's partial FINAL MESSAGE is\n * never persisted as a completed record — whatever the agent already consolidated to the store\n * during the turn stands on its own, file by file, and is exactly what incremental persistence\n * is for.\n */\n if (stopReason === CodingAgent_StopReason.CANCELLED) {\n throw new Error(`Research task was cancelled after ${elapsedMs}ms; its partial answer is not evidence.`);\n }\n\n // The companion-side backstop: the completed brief lands on disk with its provenance even when\n // the agent consolidated nothing itself. Best-effort by construction — a store write failing\n // must not turn a completed research turn into a failed one.\n let persistedEvidencePath = '';\n try {\n persistedEvidencePath = writeFinalEvidenceRecord({\n evidenceDirectoryAbsolutePath: evidenceDirectory,\n objective,\n evidence,\n stopReason,\n startedAtIso,\n elapsedMs,\n ...(request.playbookRef ? { playbookRef: request.playbookRef } : {}),\n });\n } catch (persistError) {\n this.logger.warn('Research evidence backstop write failed; the returned brief is the only copy', {\n evidenceDirectory,\n failure: persistError instanceof Error ? persistError.message : String(persistError),\n });\n }\n\n const result: ResearchTaskResult = {\n evidence,\n stopReason,\n ...(((response.executionContext as { usage?: CodingAgent_Usage } | undefined)?.usage)\n ? { usage: (response.executionContext as { usage?: CodingAgent_Usage }).usage }\n : {}),\n ...(output?.deniedPermissionCount !== undefined ? { deniedPermissionCount: output.deniedPermissionCount } : {}),\n ...(output?.permissionDecisions !== undefined ? { permissionDecisions: output.permissionDecisions } : {}),\n reportedFileLocations: output?.reportedFileLocations ?? [],\n elapsedMs,\n persistedEvidencePath,\n };\n this.logDebug('Research task finished', {\n stopReason,\n elapsedMs,\n evidenceLength: evidence.length,\n deniedPermissionCount: result.deniedPermissionCount,\n reportedFileLocations: result.reportedFileLocations.length,\n persistedEvidencePath,\n });\n return result;\n }\n}\n"]}
|
|
@@ -47,7 +47,7 @@ export declare function slugifyEvidenceScope(scope: string): string;
|
|
|
47
47
|
* that the directory is the ONLY writable location — the predicate enforces it, but an agent told
|
|
48
48
|
* the boundary spends its turn researching instead of discovering refusals.
|
|
49
49
|
*
|
|
50
|
-
* ## Why it also carries a SOURCE-NEUTRALITY clause (2026-09-
|
|
50
|
+
* ## Why it also carries a SOURCE-NEUTRALITY clause (2026-09-04)
|
|
51
51
|
*
|
|
52
52
|
* A compliance researcher enumerating "which regimes apply" reaches for proprietary security
|
|
53
53
|
* certification and attestation standards unprompted, alongside the public law that is the actual
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"research-evidence-store.companion.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"research-evidence-store.companion.d.ts","sourceRoot":"","sources":["../../../../src/claude-cli/services/research-evidence-store.companion.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,uGAAuG;AACvG,eAAO,MAAM,+BAA+B,qCAAqC,CAAC;AAElF;;;;GAIG;AACH,wBAAgB,gCAAgC,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAExF;AAED,iGAAiG;AACjG,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAO1D;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,+BAA+B,CAAC,6BAA6B,EAAE,MAAM,GAAG,MAAM,CAS7F;AAED,sGAAsG;AACtG,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,6BAA6B,EAAE,MAAM,CAAC;IAC/C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,yFAAyF;IACzF,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,wBAAwB,GAAG,MAAM,CAgChF"}
|
|
@@ -58,7 +58,7 @@ export function slugifyEvidenceScope(scope) {
|
|
|
58
58
|
* that the directory is the ONLY writable location — the predicate enforces it, but an agent told
|
|
59
59
|
* the boundary spends its turn researching instead of discovering refusals.
|
|
60
60
|
*
|
|
61
|
-
* ## Why it also carries a SOURCE-NEUTRALITY clause (2026-09-
|
|
61
|
+
* ## Why it also carries a SOURCE-NEUTRALITY clause (2026-09-04)
|
|
62
62
|
*
|
|
63
63
|
* A compliance researcher enumerating "which regimes apply" reaches for proprietary security
|
|
64
64
|
* certification and attestation standards unprompted, alongside the public law that is the actual
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"research-evidence-store.companion.js","sourceRoot":"","sources":["../../../../../src/claude-cli/services/research-evidence-store.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC5E,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,uGAAuG;AACvG,MAAM,CAAC,MAAM,+BAA+B,GAAG,kCAAkC,CAAC;AAElF;;;;GAIG;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AG,IAAI,CAAC,KAAK,CAAC,6BAA6B,EAAE,GAAG,GAAG,UAAU,KAAK,KAAK,CAAC,CAAC;IACrF,OAAO,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC5B,KAAK,IAAI,CAAC,CAAC;QACX,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,6BAA6B,EAAE,GAAG,GAAG,UAAU,KAAK,KAAK,CAAC,CAAC;IACnF,CAAC;IACD,MAAM,WAAW,GAAG;QAClB,KAAK;QACL,cAAc,KAAK,CAAC,YAAY,EAAE;QAClC,cAAc,KAAK,CAAC,SAAS,EAAE;QAC/B,eAAe,KAAK,CAAC,UAAU,EAAE;QACjC,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,gBAAgB,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACnE,KAAK;KACN,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACb,MAAM,IAAI,GAAG;QACX,WAAW;QACX,EAAE;QACF,cAAc;QACd,EAAE;QACF,KAAK,CAAC,SAAS;QACf,EAAE;QACF,aAAa;QACb,EAAE;QACF,KAAK,CAAC,QAAQ;QACd,EAAE;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACb,aAAa,CAAC,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;IACtC,OAAO,QAAQ,CAAC;AAClB,CAAC","sourcesContent":["import { mkdirSync, writeFileSync, existsSync, readdirSync } from 'node:fs';\nimport { join } from 'node:path';\n\n/**\n * The research evidence store — where a research agent's findings become FILES.\n *\n * ## Why this exists (2026-09-04)\n *\n * Research evidence used to live in exactly one place: the run's in-memory step results, feeding\n * the next child's brief and dying with the run. Three consecutive compliance runs proved what that\n * costs — a 56-minute, 14-children evidence body lost to a quota cut, then two relaunches lost to\n * an expired login — and the run-level checkpoint only protects the SCHEDULING state, not the\n * knowledge. The store is the knowledge half: evidence lands on disk as it is gathered, survives\n * any death, and is READ BACK by later runs so they extend prior research instead of re-buying it.\n *\n * ## Where, and why it is COMMITTABLE\n *\n * `<application>/specifications/research-evidence/<scope>/` — inside the application repository,\n * outside `specifications/src/`, so it enters no TypeScript program and no family classification.\n * Committable on purpose: source-attributed research is knowledge the posture artifacts cite, and\n * \"delete it and re-run\" costs hours and a quota window — git is where things that must survive a\n * re-clone live (`one-source-of-truth.md`). Acceptance stays a human commit, like every other\n * working edit an agent lands.\n *\n * ## Who writes\n *\n * TWO writers, layered:\n * 1. The research AGENT, incrementally, during its turn — the profile's location predicate admits\n * exactly this directory (built by the same `buildApplicationCodingTaskLocationPredicate` the\n * coding lane trusts), so a mid-turn death still leaves everything already consolidated.\n * 2. The COMPANION, once per completed task — `writeFinalEvidenceRecord` persists the returned\n * brief with its provenance frontmatter, so a completed turn is on disk even if the agent wrote\n * nothing itself.\n */\n\n/** Application-relative root of the store. Also the ONLY path prefix the research predicate admits. */\nexport const RESEARCH_EVIDENCE_RELATIVE_ROOT = 'specifications/research-evidence';\n\n/**\n * A scope names the investigation a set of evidence files belongs to — normally the composite\n * playbook ref (`top_down.compliance-analysis`), so every child of one choreography, across every\n * run of it, consolidates into one directory.\n */\nexport function resolveResearchEvidenceDirectory(saasRoot: string, scope: string): string {\n return join(saasRoot, RESEARCH_EVIDENCE_RELATIVE_ROOT, slugifyEvidenceScope(scope));\n}\n\n/** Directory-safe scope: lowercase, dots and separators to hyphens, nothing traversal-shaped. */\nexport function slugifyEvidenceScope(scope: string): string {\n const slug = scope\n .toLowerCase()\n .replace(/[^a-z0-9]+/g, '-')\n .replace(/^-+|-+$/g, '')\n .slice(0, 80);\n return slug.length > 0 ? slug : 'adhoc';\n}\n\n/**\n * The prompt block that turns \"you may write here\" into \"you consolidate here\".\n *\n * Appended to every research objective by the dispatch, never authored per playbook: the store is a\n * property of the LANE, and a convention restated per method drifts. The instruction is explicit\n * that the directory is the ONLY writable location — the predicate enforces it, but an agent told\n * the boundary spends its turn researching instead of discovering refusals.\n *\n * ## Why it also carries a SOURCE-NEUTRALITY clause (2026-09-05)\n *\n * A compliance researcher enumerating \"which regimes apply\" reaches for proprietary security\n * certification and attestation standards unprompted, alongside the public law that is the actual\n * subject. Public law is fine — statutes and regulations are quotable. The proprietary standards are\n * not: their control catalogues and identifiers are licensed material, and `CLAUDE.md` confines every\n * external framework name, identifier and mapping to a rights-classified boundary that this store is\n * not. `pnpm check:assurance-control-boundary` refuses them repository-wide against a baseline drained\n * to zero, so a dogfood application's committed store is a surface where they land in FRAMEWORK git.\n *\n * That is not hypothetical: Wonder CRM's first accepted evidence population carried six such names —\n * every one of them merely listing the standard as \"voluntary, not a legal obligation, never\n * researched\" — and reddened the gate on the shared branch. The finding survives its neutral phrasing\n * intact, which is why the instruction asks for the CATEGORY rather than forbidding the conclusion:\n * an agent told only \"do not name X\" tends to drop the finding along with the name.\n */\nexport function composeEvidenceStoreInstruction(evidenceDirectoryAbsolutePath: string): string {\n return [\n '# Evidence store (persist as you go)',\n `The directory \\`${evidenceDirectoryAbsolutePath}\\` is your evidence store — the ONLY location you may write to (every other path is refused).`,\n 'FIRST read what it already contains: earlier rounds consolidated their findings there. Extend that record; do not re-research or restate what a prior file already establishes with sources.',\n 'AS YOU RESEARCH, persist your findings into markdown files in that directory — one file per coherent topic, named `<topic-slug>.md`, updated in place as your understanding sharpens. Each finding carries its source URL beside it. Write incrementally: evidence on disk survives an interrupted turn; evidence only in your final message does not.',\n 'SOURCE NEUTRALITY: name public law freely (statutes, regulations, regulator guidance — quote and cite them). Do NOT name a proprietary security certification or attestation standard, or any of its control identifiers, in a file or in your final message: their catalogues are licensed material this store is not a rights-classified boundary for. Refer to that whole class as \"voluntary security-certification and attestation frameworks\" and state your finding about it in full — the conclusion is wanted, the proprietary name is not.',\n 'Your final message still reports the answer in full — the store is the durable record, not a substitute for answering.',\n ].join('\\n');\n}\n\n/** What the companion persists about one COMPLETED research task, beside whatever the agent wrote. */\nexport interface FinalEvidenceRecordInput {\n readonly evidenceDirectoryAbsolutePath: string;\n readonly objective: string;\n readonly evidence: string;\n readonly stopReason: string;\n readonly startedAtIso: string;\n readonly elapsedMs: number;\n /** The playbook that asked, when one did — an operator's ad-hoc `/research` has none. */\n readonly playbookRef?: string;\n}\n\n/**\n * Persist the final returned brief as a dated, provenance-stamped markdown record.\n *\n * Filename is `<yyyy-mm-dd>-round-<n>.md` where `n` disambiguates within a day — deliberately NOT\n * derived from the objective, whose first words are near-identical across rounds of one\n * investigation. Returns the absolute path written, so the caller can report it.\n */\nexport function writeFinalEvidenceRecord(input: FinalEvidenceRecordInput): string {\n mkdirSync(input.evidenceDirectoryAbsolutePath, { recursive: true });\n const day = input.startedAtIso.slice(0, 10);\n const existing = readdirSync(input.evidenceDirectoryAbsolutePath).filter((name) => name.startsWith(`${day}-round-`));\n let round = existing.length + 1;\n let filePath = join(input.evidenceDirectoryAbsolutePath, `${day}-round-${round}.md`);\n while (existsSync(filePath)) {\n round += 1;\n filePath = join(input.evidenceDirectoryAbsolutePath, `${day}-round-${round}.md`);\n }\n const frontmatter = [\n '---',\n `startedAt: ${input.startedAtIso}`,\n `elapsedMs: ${input.elapsedMs}`,\n `stopReason: ${input.stopReason}`,\n ...(input.playbookRef ? [`playbookRef: ${input.playbookRef}`] : []),\n '---',\n ].join('\\n');\n const body = [\n frontmatter,\n '',\n '## Objective',\n '',\n input.objective,\n '',\n '## Evidence',\n '',\n input.evidence,\n '',\n ].join('\\n');\n writeFileSync(filePath, body, 'utf8');\n return filePath;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"research-evidence-store.companion.js","sourceRoot":"","sources":["../../../../src/claude-cli/services/research-evidence-store.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC5E,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,uGAAu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KAAK,GAAG,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;IAChC,IAAI,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,6BAA6B,EAAE,GAAG,GAAG,UAAU,KAAK,KAAK,CAAC,CAAC;IACrF,OAAO,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC5B,KAAK,IAAI,CAAC,CAAC;QACX,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,6BAA6B,EAAE,GAAG,GAAG,UAAU,KAAK,KAAK,CAAC,CAAC;IACnF,CAAC;IACD,MAAM,WAAW,GAAG;QAClB,KAAK;QACL,cAAc,KAAK,CAAC,YAAY,EAAE;QAClC,cAAc,KAAK,CAAC,SAAS,EAAE;QAC/B,eAAe,KAAK,CAAC,UAAU,EAAE;QACjC,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,gBAAgB,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACnE,KAAK;KACN,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACb,MAAM,IAAI,GAAG;QACX,WAAW;QACX,EAAE;QACF,cAAc;QACd,EAAE;QACF,KAAK,CAAC,SAAS;QACf,EAAE;QACF,aAAa;QACb,EAAE;QACF,KAAK,CAAC,QAAQ;QACd,EAAE;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACb,aAAa,CAAC,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;IACtC,OAAO,QAAQ,CAAC;AAClB,CAAC","sourcesContent":["import { mkdirSync, writeFileSync, existsSync, readdirSync } from 'node:fs';\nimport { join } from 'node:path';\n\n/**\n * The research evidence store — where a research agent's findings become FILES.\n *\n * ## Why this exists (2026-09-04)\n *\n * Research evidence used to live in exactly one place: the run's in-memory step results, feeding\n * the next child's brief and dying with the run. Three consecutive compliance runs proved what that\n * costs — a 56-minute, 14-children evidence body lost to a quota cut, then two relaunches lost to\n * an expired login — and the run-level checkpoint only protects the SCHEDULING state, not the\n * knowledge. The store is the knowledge half: evidence lands on disk as it is gathered, survives\n * any death, and is READ BACK by later runs so they extend prior research instead of re-buying it.\n *\n * ## Where, and why it is COMMITTABLE\n *\n * `<application>/specifications/research-evidence/<scope>/` — inside the application repository,\n * outside `specifications/src/`, so it enters no TypeScript program and no family classification.\n * Committable on purpose: source-attributed research is knowledge the posture artifacts cite, and\n * \"delete it and re-run\" costs hours and a quota window — git is where things that must survive a\n * re-clone live (`one-source-of-truth.md`). Acceptance stays a human commit, like every other\n * working edit an agent lands.\n *\n * ## Who writes\n *\n * TWO writers, layered:\n * 1. The research AGENT, incrementally, during its turn — the profile's location predicate admits\n * exactly this directory (built by the same `buildApplicationCodingTaskLocationPredicate` the\n * coding lane trusts), so a mid-turn death still leaves everything already consolidated.\n * 2. The COMPANION, once per completed task — `writeFinalEvidenceRecord` persists the returned\n * brief with its provenance frontmatter, so a completed turn is on disk even if the agent wrote\n * nothing itself.\n */\n\n/** Application-relative root of the store. Also the ONLY path prefix the research predicate admits. */\nexport const RESEARCH_EVIDENCE_RELATIVE_ROOT = 'specifications/research-evidence';\n\n/**\n * A scope names the investigation a set of evidence files belongs to — normally the composite\n * playbook ref (`top_down.compliance-analysis`), so every child of one choreography, across every\n * run of it, consolidates into one directory.\n */\nexport function resolveResearchEvidenceDirectory(saasRoot: string, scope: string): string {\n return join(saasRoot, RESEARCH_EVIDENCE_RELATIVE_ROOT, slugifyEvidenceScope(scope));\n}\n\n/** Directory-safe scope: lowercase, dots and separators to hyphens, nothing traversal-shaped. */\nexport function slugifyEvidenceScope(scope: string): string {\n const slug = scope\n .toLowerCase()\n .replace(/[^a-z0-9]+/g, '-')\n .replace(/^-+|-+$/g, '')\n .slice(0, 80);\n return slug.length > 0 ? slug : 'adhoc';\n}\n\n/**\n * The prompt block that turns \"you may write here\" into \"you consolidate here\".\n *\n * Appended to every research objective by the dispatch, never authored per playbook: the store is a\n * property of the LANE, and a convention restated per method drifts. The instruction is explicit\n * that the directory is the ONLY writable location — the predicate enforces it, but an agent told\n * the boundary spends its turn researching instead of discovering refusals.\n *\n * ## Why it also carries a SOURCE-NEUTRALITY clause (2026-09-04)\n *\n * A compliance researcher enumerating \"which regimes apply\" reaches for proprietary security\n * certification and attestation standards unprompted, alongside the public law that is the actual\n * subject. Public law is fine — statutes and regulations are quotable. The proprietary standards are\n * not: their control catalogues and identifiers are licensed material, and `CLAUDE.md` confines every\n * external framework name, identifier and mapping to a rights-classified boundary that this store is\n * not. `pnpm check:assurance-control-boundary` refuses them repository-wide against a baseline drained\n * to zero, so a dogfood application's committed store is a surface where they land in FRAMEWORK git.\n *\n * That is not hypothetical: Wonder CRM's first accepted evidence population carried six such names —\n * every one of them merely listing the standard as \"voluntary, not a legal obligation, never\n * researched\" — and reddened the gate on the shared branch. The finding survives its neutral phrasing\n * intact, which is why the instruction asks for the CATEGORY rather than forbidding the conclusion:\n * an agent told only \"do not name X\" tends to drop the finding along with the name.\n */\nexport function composeEvidenceStoreInstruction(evidenceDirectoryAbsolutePath: string): string {\n return [\n '# Evidence store (persist as you go)',\n `The directory \\`${evidenceDirectoryAbsolutePath}\\` is your evidence store — the ONLY location you may write to (every other path is refused).`,\n 'FIRST read what it already contains: earlier rounds consolidated their findings there. Extend that record; do not re-research or restate what a prior file already establishes with sources.',\n 'AS YOU RESEARCH, persist your findings into markdown files in that directory — one file per coherent topic, named `<topic-slug>.md`, updated in place as your understanding sharpens. Each finding carries its source URL beside it. Write incrementally: evidence on disk survives an interrupted turn; evidence only in your final message does not.',\n 'SOURCE NEUTRALITY: name public law freely (statutes, regulations, regulator guidance — quote and cite them). Do NOT name a proprietary security certification or attestation standard, or any of its control identifiers, in a file or in your final message: their catalogues are licensed material this store is not a rights-classified boundary for. Refer to that whole class as \"voluntary security-certification and attestation frameworks\" and state your finding about it in full — the conclusion is wanted, the proprietary name is not.',\n 'Your final message still reports the answer in full — the store is the durable record, not a substitute for answering.',\n ].join('\\n');\n}\n\n/** What the companion persists about one COMPLETED research task, beside whatever the agent wrote. */\nexport interface FinalEvidenceRecordInput {\n readonly evidenceDirectoryAbsolutePath: string;\n readonly objective: string;\n readonly evidence: string;\n readonly stopReason: string;\n readonly startedAtIso: string;\n readonly elapsedMs: number;\n /** The playbook that asked, when one did — an operator's ad-hoc `/research` has none. */\n readonly playbookRef?: string;\n}\n\n/**\n * Persist the final returned brief as a dated, provenance-stamped markdown record.\n *\n * Filename is `<yyyy-mm-dd>-round-<n>.md` where `n` disambiguates within a day — deliberately NOT\n * derived from the objective, whose first words are near-identical across rounds of one\n * investigation. Returns the absolute path written, so the caller can report it.\n */\nexport function writeFinalEvidenceRecord(input: FinalEvidenceRecordInput): string {\n mkdirSync(input.evidenceDirectoryAbsolutePath, { recursive: true });\n const day = input.startedAtIso.slice(0, 10);\n const existing = readdirSync(input.evidenceDirectoryAbsolutePath).filter((name) => name.startsWith(`${day}-round-`));\n let round = existing.length + 1;\n let filePath = join(input.evidenceDirectoryAbsolutePath, `${day}-round-${round}.md`);\n while (existsSync(filePath)) {\n round += 1;\n filePath = join(input.evidenceDirectoryAbsolutePath, `${day}-round-${round}.md`);\n }\n const frontmatter = [\n '---',\n `startedAt: ${input.startedAtIso}`,\n `elapsedMs: ${input.elapsedMs}`,\n `stopReason: ${input.stopReason}`,\n ...(input.playbookRef ? [`playbookRef: ${input.playbookRef}`] : []),\n '---',\n ].join('\\n');\n const body = [\n frontmatter,\n '',\n '## Objective',\n '',\n input.objective,\n '',\n '## Evidence',\n '',\n input.evidence,\n '',\n ].join('\\n');\n writeFileSync(filePath, body, 'utf8');\n return filePath;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-label-placeholder-contract.companion.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"check-label-placeholder-contract.companion.d.ts","sourceRoot":"","sources":["../../../src/code-compliance-check/check-label-placeholder-contract.companion.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-raw-feature-id-literals.companion.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"check-raw-feature-id-literals.companion.d.ts","sourceRoot":"","sources":["../../../src/code-compliance-check/check-raw-feature-id-literals.companion.ts"],"names":[],"mappings":""}
|
|
@@ -286,8 +286,9 @@ export declare const CompanionExecutionsListQuerySchema: z.ZodObject<{
|
|
|
286
286
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
287
287
|
}, z.core.$strip>;
|
|
288
288
|
export declare const CompanionCreateActorExecutionRequestSchema: z.ZodObject<{
|
|
289
|
-
systemRef: z.ZodString;
|
|
290
289
|
status: z.ZodEnum<typeof FlowsActors_Status>;
|
|
290
|
+
finishedAt: z.ZodOptional<z.ZodString>;
|
|
291
|
+
systemRef: z.ZodString;
|
|
291
292
|
initiator: z.ZodOptional<z.ZodObject<{
|
|
292
293
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
293
294
|
userId: z.ZodOptional<z.ZodString>;
|
|
@@ -300,7 +301,6 @@ export declare const CompanionCreateActorExecutionRequestSchema: z.ZodObject<{
|
|
|
300
301
|
webhookProviderId: z.ZodOptional<z.ZodString>;
|
|
301
302
|
anonymousUserId: z.ZodOptional<z.ZodString>;
|
|
302
303
|
}, z.core.$strip>>;
|
|
303
|
-
finishedAt: z.ZodOptional<z.ZodString>;
|
|
304
304
|
plan: z.ZodOptional<z.ZodObject<{
|
|
305
305
|
_id: z.ZodString;
|
|
306
306
|
goalDescription: z.ZodString;
|
|
@@ -989,8 +989,9 @@ export declare const CompanionCreateActorExecutionRequestSchema: z.ZodObject<{
|
|
|
989
989
|
}, z.core.$strip>>>;
|
|
990
990
|
}, z.core.$strip>;
|
|
991
991
|
export declare const CompanionCreateFlowExecutionRequestSchema: z.ZodObject<{
|
|
992
|
-
systemRef: z.ZodString;
|
|
993
992
|
status: z.ZodEnum<typeof FlowsActors_Status>;
|
|
993
|
+
finishedAt: z.ZodOptional<z.ZodString>;
|
|
994
|
+
systemRef: z.ZodString;
|
|
994
995
|
initiator: z.ZodOptional<z.ZodObject<{
|
|
995
996
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
996
997
|
userId: z.ZodOptional<z.ZodString>;
|
|
@@ -1003,7 +1004,6 @@ export declare const CompanionCreateFlowExecutionRequestSchema: z.ZodObject<{
|
|
|
1003
1004
|
webhookProviderId: z.ZodOptional<z.ZodString>;
|
|
1004
1005
|
anonymousUserId: z.ZodOptional<z.ZodString>;
|
|
1005
1006
|
}, z.core.$strip>>;
|
|
1006
|
-
finishedAt: z.ZodOptional<z.ZodString>;
|
|
1007
1007
|
errorStates: z.ZodOptional<z.ZodObject<{
|
|
1008
1008
|
circuitBreakerStatus: z.ZodOptional<z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_CircuitBreaker_Status>>;
|
|
1009
1009
|
checkpointChecks: z.ZodArray<z.ZodObject<{
|
|
@@ -1104,6 +1104,7 @@ export declare const CompanionActorTasksListQuerySchema: z.ZodObject<{
|
|
|
1104
1104
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1105
1105
|
}, z.core.$strip>;
|
|
1106
1106
|
export declare const CompanionCreateActorTaskRequestSchema: z.ZodObject<{
|
|
1107
|
+
description: z.ZodString;
|
|
1107
1108
|
output: z.ZodOptional<z.ZodAny>;
|
|
1108
1109
|
status: z.ZodEnum<typeof FlowsActors_Status>;
|
|
1109
1110
|
errorStates: z.ZodOptional<z.ZodObject<{
|
|
@@ -1205,7 +1206,6 @@ export declare const CompanionCreateActorTaskRequestSchema: z.ZodObject<{
|
|
|
1205
1206
|
context: z.ZodOptional<z.ZodAny>;
|
|
1206
1207
|
}, z.core.$strip>>>;
|
|
1207
1208
|
}, z.core.$strip>>;
|
|
1208
|
-
description: z.ZodString;
|
|
1209
1209
|
topic: z.ZodEnum<typeof import("@wildo-ai/saas-models").Actor_Task_Topics>;
|
|
1210
1210
|
actors: z.ZodObject<{
|
|
1211
1211
|
actorRef: z.ZodString;
|
|
@@ -1434,8 +1434,59 @@ export declare const CompanionCreateActorTaskRequestSchema: z.ZodObject<{
|
|
|
1434
1434
|
workbenchBuildPlanTaskId: z.ZodOptional<z.ZodString>;
|
|
1435
1435
|
}, z.core.$strip>;
|
|
1436
1436
|
export declare const CompanionUpdateActorTaskRequestSchema: z.ZodObject<{
|
|
1437
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1437
1438
|
output: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
|
|
1438
1439
|
input: z.ZodOptional<z.ZodAny>;
|
|
1440
|
+
memory: z.ZodOptional<z.ZodObject<{
|
|
1441
|
+
shortTerm: z.ZodObject<{
|
|
1442
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
1443
|
+
key: z.ZodString;
|
|
1444
|
+
value: z.ZodAny;
|
|
1445
|
+
type: z.ZodEnum<{
|
|
1446
|
+
json: "json";
|
|
1447
|
+
text: "text";
|
|
1448
|
+
binary: "binary";
|
|
1449
|
+
}>;
|
|
1450
|
+
timestamp: z.ZodString;
|
|
1451
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
1452
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1453
|
+
}, z.core.$strip>>;
|
|
1454
|
+
maxSize: z.ZodOptional<z.ZodNumber>;
|
|
1455
|
+
ttl: z.ZodOptional<z.ZodNumber>;
|
|
1456
|
+
}, z.core.$strip>;
|
|
1457
|
+
longTerm: z.ZodObject<{
|
|
1458
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
1459
|
+
key: z.ZodString;
|
|
1460
|
+
value: z.ZodAny;
|
|
1461
|
+
type: z.ZodEnum<{
|
|
1462
|
+
json: "json";
|
|
1463
|
+
text: "text";
|
|
1464
|
+
binary: "binary";
|
|
1465
|
+
}>;
|
|
1466
|
+
timestamp: z.ZodString;
|
|
1467
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
1468
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1469
|
+
}, z.core.$strip>>;
|
|
1470
|
+
maxSize: z.ZodOptional<z.ZodNumber>;
|
|
1471
|
+
ttl: z.ZodOptional<z.ZodNumber>;
|
|
1472
|
+
}, z.core.$strip>;
|
|
1473
|
+
working: z.ZodObject<{
|
|
1474
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
1475
|
+
key: z.ZodString;
|
|
1476
|
+
value: z.ZodAny;
|
|
1477
|
+
type: z.ZodEnum<{
|
|
1478
|
+
json: "json";
|
|
1479
|
+
text: "text";
|
|
1480
|
+
binary: "binary";
|
|
1481
|
+
}>;
|
|
1482
|
+
timestamp: z.ZodString;
|
|
1483
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
1484
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1485
|
+
}, z.core.$strip>>;
|
|
1486
|
+
maxSize: z.ZodOptional<z.ZodNumber>;
|
|
1487
|
+
ttl: z.ZodOptional<z.ZodNumber>;
|
|
1488
|
+
}, z.core.$strip>;
|
|
1489
|
+
}, z.core.$strip>>;
|
|
1439
1490
|
status: z.ZodOptional<z.ZodEnum<typeof FlowsActors_Status>>;
|
|
1440
1491
|
initiator: z.ZodOptional<z.ZodObject<{
|
|
1441
1492
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
@@ -1548,8 +1599,6 @@ export declare const CompanionUpdateActorTaskRequestSchema: z.ZodObject<{
|
|
|
1548
1599
|
context: z.ZodOptional<z.ZodAny>;
|
|
1549
1600
|
}, z.core.$strip>>>;
|
|
1550
1601
|
}, z.core.$strip>>>;
|
|
1551
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1552
|
-
topic: z.ZodOptional<z.ZodEnum<typeof import("@wildo-ai/saas-models").Actor_Task_Topics>>;
|
|
1553
1602
|
relationships: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1554
1603
|
kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.FLOW>;
|
|
1555
1604
|
relation: z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
|
|
@@ -1585,59 +1634,10 @@ export declare const CompanionUpdateActorTaskRequestSchema: z.ZodObject<{
|
|
|
1585
1634
|
relation: z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
|
|
1586
1635
|
actorSystemId: z.ZodString;
|
|
1587
1636
|
}, z.core.$strip>], "kind">>>;
|
|
1637
|
+
topic: z.ZodOptional<z.ZodEnum<typeof import("@wildo-ai/saas-models").Actor_Task_Topics>>;
|
|
1588
1638
|
actors: z.ZodOptional<z.ZodObject<{
|
|
1589
1639
|
actorRef: z.ZodString;
|
|
1590
1640
|
}, z.core.$strip>>;
|
|
1591
|
-
memory: z.ZodOptional<z.ZodObject<{
|
|
1592
|
-
shortTerm: z.ZodObject<{
|
|
1593
|
-
entries: z.ZodArray<z.ZodObject<{
|
|
1594
|
-
key: z.ZodString;
|
|
1595
|
-
value: z.ZodAny;
|
|
1596
|
-
type: z.ZodEnum<{
|
|
1597
|
-
json: "json";
|
|
1598
|
-
text: "text";
|
|
1599
|
-
binary: "binary";
|
|
1600
|
-
}>;
|
|
1601
|
-
timestamp: z.ZodString;
|
|
1602
|
-
expiresAt: z.ZodOptional<z.ZodString>;
|
|
1603
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1604
|
-
}, z.core.$strip>>;
|
|
1605
|
-
maxSize: z.ZodOptional<z.ZodNumber>;
|
|
1606
|
-
ttl: z.ZodOptional<z.ZodNumber>;
|
|
1607
|
-
}, z.core.$strip>;
|
|
1608
|
-
longTerm: z.ZodObject<{
|
|
1609
|
-
entries: z.ZodArray<z.ZodObject<{
|
|
1610
|
-
key: z.ZodString;
|
|
1611
|
-
value: z.ZodAny;
|
|
1612
|
-
type: z.ZodEnum<{
|
|
1613
|
-
json: "json";
|
|
1614
|
-
text: "text";
|
|
1615
|
-
binary: "binary";
|
|
1616
|
-
}>;
|
|
1617
|
-
timestamp: z.ZodString;
|
|
1618
|
-
expiresAt: z.ZodOptional<z.ZodString>;
|
|
1619
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1620
|
-
}, z.core.$strip>>;
|
|
1621
|
-
maxSize: z.ZodOptional<z.ZodNumber>;
|
|
1622
|
-
ttl: z.ZodOptional<z.ZodNumber>;
|
|
1623
|
-
}, z.core.$strip>;
|
|
1624
|
-
working: z.ZodObject<{
|
|
1625
|
-
entries: z.ZodArray<z.ZodObject<{
|
|
1626
|
-
key: z.ZodString;
|
|
1627
|
-
value: z.ZodAny;
|
|
1628
|
-
type: z.ZodEnum<{
|
|
1629
|
-
json: "json";
|
|
1630
|
-
text: "text";
|
|
1631
|
-
binary: "binary";
|
|
1632
|
-
}>;
|
|
1633
|
-
timestamp: z.ZodString;
|
|
1634
|
-
expiresAt: z.ZodOptional<z.ZodString>;
|
|
1635
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1636
|
-
}, z.core.$strip>>;
|
|
1637
|
-
maxSize: z.ZodOptional<z.ZodNumber>;
|
|
1638
|
-
ttl: z.ZodOptional<z.ZodNumber>;
|
|
1639
|
-
}, z.core.$strip>;
|
|
1640
|
-
}, z.core.$strip>>;
|
|
1641
1641
|
artifacts: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1642
1642
|
ref: z.ZodString;
|
|
1643
1643
|
definitionRef: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companion-api.schemas.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"companion-api.schemas.d.ts","sourceRoot":"","sources":["../../../src/companion-api/companion-api.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAA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,MAAM,MAAM,+BAA+B,GACzC,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AACxD,MAAM,MAAM,+BAA+B,GACzC,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AACxD,MAAM,MAAM,kCAAkC,GAC5C,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companion-i18n-api-contract.utils.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"companion-i18n-api-contract.utils.d.ts","sourceRoot":"","sources":["../../../../src/companion-api/controllers/companion-i18n-api-contract.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAE7E,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,0BAA0B,GACvC,iBAAiB,CAWnB;AAED,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,OAAO,EACd,YAAY,EAAE,0BAA0B,GACvC,iBAAiB,EAAE,CASrB;AAED,wBAAgB,yBAAyB,CACvC,aAAa,EAAE,iBAAiB,EAAE,EAClC,aAAa,EAAE,iBAAiB,EAChC,YAAY,EAAE,0BAA0B,GACvC,IAAI,CAON;AAED,wBAAgB,oCAAoC,CAClD,MAAM,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,EAC7C,OAAO,EAAE;IACP,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;CACxB,EACD,YAAY,EAAE,0BAA0B,GACvC,IAAI,CAcN"}
|
|
@@ -0,0 +1,90 @@
|
|
|
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 declare const COMPANION_TOKEN_FLOOR_UNGATED_METHODS: ReadonlySet<string>;
|
|
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 declare const COMPANION_TOKEN_FLOOR_BROWSER_EXEMPT_PATHS: readonly string[];
|
|
62
|
+
/**
|
|
63
|
+
* Does this request have to present the local companion token?
|
|
64
|
+
*
|
|
65
|
+
* `path` is MOUNT-RELATIVE (`/playbooks/loop`, not `/api/companion/playbooks/loop`) and carries no
|
|
66
|
+
* query string — the same coordinate `req.path` gives inside the mounted router, and the same one
|
|
67
|
+
* `attachRequestTraceSession` already compares against.
|
|
68
|
+
*
|
|
69
|
+
* A path variant the exemption list does not match exactly — a trailing slash, a different case —
|
|
70
|
+
* requires the token. That is the safe direction, and it costs nothing: such a variant matches no
|
|
71
|
+
* route either.
|
|
72
|
+
*/
|
|
73
|
+
export declare function companionRequestRequiresLocalToken(method: string, path: string): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* The floor's complete verdict on one request: admit, or refuse.
|
|
76
|
+
*
|
|
77
|
+
* `isValidToken` is passed in rather than imported so this stays a pure function of its inputs — the
|
|
78
|
+
* validator is `CompanionAuthFloorCompanionService.isValidToken`, a constant-time digest comparison
|
|
79
|
+
* that already fails closed when the floor was never initialized.
|
|
80
|
+
*
|
|
81
|
+
* A repeated header arrives typed `string[]`. It is refused rather than searched: a caller that sends
|
|
82
|
+
* the token twice is either confused or probing, and "one of the values was right" is not a rule this
|
|
83
|
+
* floor wants to own.
|
|
84
|
+
*/
|
|
85
|
+
export declare function companionRequestIsAdmittedByTokenFloor(request: {
|
|
86
|
+
readonly method: string;
|
|
87
|
+
readonly path: string;
|
|
88
|
+
readonly presentedToken: string | string[] | undefined;
|
|
89
|
+
}, isValidToken: (presented: string | undefined) => boolean): boolean;
|
|
90
|
+
//# sourceMappingURL=companion-token-floor.policy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"companion-token-floor.policy.d.ts","sourceRoot":"","sources":["../../../../src/companion-api/controllers/companion-token-floor.policy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,qCAAqC,EAAE,WAAW,CAAC,MAAM,CAAuC,CAAC;AAE9G;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,0CAA0C,EAAE,SAAS,MAAM,EAIvE,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,kCAAkC,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAGxF;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,sCAAsC,CACpD,OAAO,EAAE;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAA;CAAE,EACnH,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,KAAK,OAAO,GACvD,OAAO,CAGT"}
|