@wildo-ai/dev-companion 1.1.5 → 1.1.6
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/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.js +0 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.js.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 +0 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts +8 -0
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.js +6 -0
- package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
- package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts +21 -0
- package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts.map +1 -0
- package/dist/esm/brand/services/brand-propagation.companion.utils.js +33 -0
- package/dist/esm/brand/services/brand-propagation.companion.utils.js.map +1 -0
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +69 -1
- 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 +84 -3
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +8 -4
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js +9 -5
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js +1 -1
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -1
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts +4 -0
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js +25 -3
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +1 -1
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +159 -11
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +424 -41
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +333 -60
- 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 +1029 -185
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts +8 -2
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js +8 -2
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts +20 -0
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts.map +1 -0
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js +29 -0
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js.map +1 -0
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts +11 -0
- 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 +60 -7
- 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 +5 -4
- 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 +13 -4
- package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.d.ts +193 -2
- package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.js +20 -1
- package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
- package/dist/esm/companion-api/companion-error-guidance.models.d.ts +25 -0
- package/dist/esm/companion-api/companion-error-guidance.models.d.ts.map +1 -0
- package/dist/esm/companion-api/companion-error-guidance.models.js +26 -0
- package/dist/esm/companion-api/companion-error-guidance.models.js.map +1 -0
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts +44 -0
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts.map +1 -0
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.js +111 -0
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.js.map +1 -0
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts +6 -14
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.js +6 -14
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts +12 -0
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts.map +1 -0
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.js +20 -0
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.js.map +1 -0
- package/dist/esm/companion-api/controllers/companion.controller.d.ts +104 -14
- package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.js +516 -122
- package/dist/esm/companion-api/controllers/companion.controller.js.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 +6 -38
- 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 +13 -0
- package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/config/primary-language.companion.utils.js +19 -0
- package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
- package/dist/esm/core/context/companion-package-loaders.companion.js +1 -39
- package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
- package/dist/esm/core/inject/models/container.d.ts.map +1 -1
- package/dist/esm/core/inject/models/container.js +4 -0
- package/dist/esm/core/inject/models/container.js.map +1 -1
- package/dist/esm/core/inject/models/service-types.d.ts +4 -0
- package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
- package/dist/esm/core/inject/models/service-types.js +4 -0
- 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/behaviors/companion-introspection-behavior-definitions.js +16 -0
- package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
- package/dist/esm/core/introspection/models/companion-introspection.models.d.ts +1 -1
- package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
- package/dist/esm/core/introspection/models/companion-introspection.models.js +6 -0
- package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
- package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts +41 -0
- package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/resources/application-secrets.companion.js +155 -0
- package/dist/esm/core/introspection/resources/application-secrets.companion.js.map +1 -0
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts +76 -0
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.js +197 -0
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -0
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts +47 -0
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.js +199 -0
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.js.map +1 -0
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts +42 -0
- 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 +173 -22
- 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 +78 -90
- 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 +288 -25
- 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 +22 -36
- package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js +49 -13
- package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js +10 -15
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts +2 -0
- 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/asset-noop-hooks.d.ts +4 -0
- package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-hooks.js.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 +77 -9
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts +45 -3
- 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 +8 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts +3 -2
- package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js +8 -3
- package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts +30 -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 +128 -20
- 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 +13 -0
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +21 -17
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
- package/dist/esm/core/runtime/companion-endpoint-record.d.ts +8 -0
- package/dist/esm/core/runtime/companion-endpoint-record.d.ts.map +1 -0
- package/dist/esm/core/runtime/companion-endpoint-record.js +23 -0
- package/dist/esm/core/runtime/companion-endpoint-record.js.map +1 -0
- package/dist/esm/core/runtime/companion-env-file.d.ts +30 -0
- package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -0
- package/dist/esm/core/runtime/companion-env-file.js +53 -0
- package/dist/esm/core/runtime/companion-env-file.js.map +1 -0
- package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts +5 -0
- package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.js +11 -0
- package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts +56 -0
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts.map +1 -0
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js +97 -0
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js.map +1 -0
- package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +43 -3
- 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 +127 -22
- package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts +11 -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 +42 -19
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
- package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/resource-specification-context.factory.js +10 -1
- package/dist/esm/core/specifications/resource-specification-context.factory.js.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.models.d.ts +1 -7
- package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.models.js +3 -5
- package/dist/esm/core/traceability/companion-traceability.models.js.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js +15 -14
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts +0 -23
- package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.function-tools.js +251 -50
- package/dist/esm/creation-conversation/creation-conversation.function-tools.js.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 +0 -2
- 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 +3 -2
- package/dist/esm/deliberations/services/deliberation.companion.service.js.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 +0 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.d.ts +5 -3
- package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.js +53 -255
- 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 +12 -0
- package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-labels-file-source.utils.js +62 -3
- package/dist/esm/email/utils/email-labels-file-source.utils.js.map +1 -1
- package/dist/esm/email/utils/email-labels-tree.utils.d.ts +52 -0
- package/dist/esm/email/utils/email-labels-tree.utils.d.ts.map +1 -0
- package/dist/esm/email/utils/email-labels-tree.utils.js +261 -0
- package/dist/esm/email/utils/email-labels-tree.utils.js.map +1 -0
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts +2 -0
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js +21 -1
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.d.ts +18 -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 +187 -46
- 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 +0 -1
- 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 +0 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
- 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 +10 -0
- package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts +1 -8
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js +2 -9
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts +2 -0
- package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js +3 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts +32 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js +32 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js.map +1 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts +0 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js +0 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts +0 -7
- package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js +0 -7
- package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts +30 -4
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js +31 -5
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts +0 -2
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js +0 -2
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts +4 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js +5 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts +1 -15
- package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js +1 -15
- package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts +0 -3
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js +0 -3
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts +49 -16
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js +49 -16
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts +0 -5
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js +0 -5
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts +3 -0
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js +4 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts +7 -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_PRICING_TABLE.en.js +8 -2
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js +2 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts +1 -0
- 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.en.js +2 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts +12 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js +12 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js +2 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts +10 -0
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js +11 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts +8 -0
- 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_FILE.en.js +9 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts +3 -0
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js +4 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts +2 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js +3 -2
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts +6 -0
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js +7 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts +1 -0
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js +2 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js.map +1 -1
- package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts +0 -2
- package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_milestone_tracker.en.js +0 -2
- package/dist/esm/i18n/components/progression_milestone_tracker.en.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts +1 -0
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.js +123 -19
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.js +12 -0
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -1
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts +25 -0
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts.map +1 -0
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.js +26 -0
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.js.map +1 -0
- package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts +26 -3
- package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -1
- package/dist/esm/i18n/errors_messages/errors-messages.en.js +25 -3
- package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -1
- package/dist/esm/i18n/index.d.ts +10 -8
- package/dist/esm/i18n/index.d.ts.map +1 -1
- package/dist/esm/i18n/index.js +10 -8
- package/dist/esm/i18n/index.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts +10 -0
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js +2 -0
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts +97 -0
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js +60 -0
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js.map +1 -0
- package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchAspects.en.js +6 -0
- package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts +5 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js +1 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts +24 -0
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js +8 -0
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts +30 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +9 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts +17 -4
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js +32 -4
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts +8 -2
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js +6 -2
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts +18 -7
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js +17 -7
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts +28 -3
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.js +13 -3
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts +3 -2
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js +8 -2
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +118 -8
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +42 -16
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts +12 -2
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js +16 -2
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/application-creation.en.d.ts +10 -0
- package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/application-creation.en.js +11 -0
- package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/processor-register.en.d.ts +6 -0
- package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/processor-register.en.js +6 -0
- package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts +4 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.js +5 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts +46 -0
- package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-secrets.en.js +46 -0
- package/dist/esm/i18n/system_enums/workbench-secrets.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts +8 -0
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js +13 -0
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -1
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts +61 -0
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js +22 -0
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js.map +1 -0
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +105 -24
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-unit.models.js +55 -24
- 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 +0 -2
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts +48 -0
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js +145 -0
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -0
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +70 -18
- 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 +330 -113
- 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 +45 -0
- 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 +208 -6
- 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 +11 -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 +101 -18
- 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 +64 -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 +393 -70
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts +9 -5
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts +54 -0
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js +74 -0
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts +3 -3
- package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts +24 -0
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js +34 -0
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js +5 -1
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts +76 -0
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js +110 -0
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts +17 -0
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js +23 -0
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts +36 -3
- 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 +77 -5
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts +38 -0
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js +66 -0
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js.map +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +9 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js +0 -1
- package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.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 +1 -3
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts +11 -0
- package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/application-line-catalog.models.js +17 -0
- package/dist/esm/meta-workflows/models/application-line-catalog.models.js.map +1 -0
- 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 +0 -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.js +1 -1
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts +14 -0
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js +18 -0
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts +14 -0
- package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/human-decision-settler.models.js +18 -0
- package/dist/esm/meta-workflows/models/human-decision-settler.models.js.map +1 -0
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts +31 -23
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js +36 -5
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.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 +1 -3
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts +19 -0
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js +38 -6
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts +48 -3
- package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-record.models.js +61 -8
- package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts +15 -1
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js +50 -5
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +52 -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 +131 -59
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts +19 -0
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js +36 -0
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +9 -0
- 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 +41 -17
- 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 +42 -2
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +121 -4
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts +32 -0
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js +161 -0
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts +2 -0
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js +1 -0
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts +3 -2
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js +12 -3
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +74 -1
- package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/dossier.companion.service.js +227 -30
- package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts +29 -2
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +68 -5
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts +40 -0
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.js +91 -0
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.js.map +1 -0
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts +25 -0
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js +40 -0
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js.map +1 -0
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts +90 -0
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js +307 -0
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +29 -0
- 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-write-register.companion.service.js +44 -4
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +360 -47
- 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 +1424 -246
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
- package/package.json +17 -17
- package/dist/esm/__time-gov.probe.d.mts +0 -0
- package/dist/esm/__time-gov.probe.d.mts.map +0 -0
- package/dist/esm/__time-gov.probe.mjs.map +0 -0
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts +0 -0
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts.map +0 -0
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.js.map +0 -0
- package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts +0 -0
- package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts.map +0 -0
- package/dist/esm/i18n/composite_views/app.creation-board.en.js.map +0 -0
- package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts +0 -0
- package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts.map +0 -0
- package/dist/esm/meta-workflows/services/creator-inputs.companion.service.js.map +0 -0
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { WorkbenchSpecificationArtifactConcern, WorkbenchSpecificationArtifactState } from '@wildo-ai/platform-core-shared';
|
|
2
|
+
/** The companion records a landing writes beside a family's own `index.ts`. */
|
|
3
|
+
/**
|
|
4
|
+
* The question a family answers — its CONCERN — for a family named by id, as the workbench groups
|
|
5
|
+
* by it. A family this table does not know answers `UNCLASSIFIED`, the visible bucket, never a
|
|
6
|
+
* plausible guess. Exported so the dossier groups its questions on the same axis the artifact list
|
|
7
|
+
* groups its families (#1454, gap 4): one vocabulary for "what is this about".
|
|
8
|
+
*/
|
|
9
|
+
export declare function specificationFamilyConcern(family: string): WorkbenchSpecificationArtifactConcern;
|
|
2
10
|
/** One family row, JSON-safe, matching `Workbench_SpecificationArtifact_Schema`. */
|
|
3
11
|
export interface SpecificationArtifactRow {
|
|
4
12
|
readonly family: string;
|
|
@@ -23,6 +31,11 @@ export interface SpecificationArtifactRow {
|
|
|
23
31
|
readonly content: Record<string, unknown> | null;
|
|
24
32
|
readonly document: string | null;
|
|
25
33
|
readonly issues: string | null;
|
|
34
|
+
/** The validator's warnings, structured — see `Workbench_SpecificationArtifact_Schema.warnings`. */
|
|
35
|
+
readonly warnings: {
|
|
36
|
+
readonly path: string;
|
|
37
|
+
readonly message: string;
|
|
38
|
+
}[];
|
|
26
39
|
readonly decisionRecord: string | null;
|
|
27
40
|
readonly diagram: string | null;
|
|
28
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"specification-artifacts.behavior.d.ts","sourceRoot":"","sources":["../../../../../../src/core/introspection/subprocess/specification-artifacts.behavior.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,qCAAqC,EACrC,mCAAmC,EACpC,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"specification-artifacts.behavior.d.ts","sourceRoot":"","sources":["../../../../../../src/core/introspection/subprocess/specification-artifacts.behavior.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,qCAAqC,EACrC,mCAAmC,EACpC,MAAM,gCAAgC,CAAC;AA4XxC,+EAA+E;AAC/E;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,MAAM,GAAG,qCAAqC,CAEhG;AAKD,oFAAoF;AACpF,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,oEAAoE;IACpE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,wGAAwG;IACxG,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,QAAQ,CAAC,OAAO,EAAE,qCAAqC,CAAC;IACxD,QAAQ,CAAC,KAAK,EAAE,mCAAmC,CAAC;IACpD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,sBAAsB,EAAE,MAAM,EAAE,CAAC;IAC1C;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACjD,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,oGAAoG;IACpG,QAAQ,CAAC,QAAQ,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACzE,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,SAAS,EAAE,wBAAwB,EAAE,CAAC;IAC/C,QAAQ,CAAC,KAAK,EAAE;QACd,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;QAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;KAC9B,CAAC;CACH;AA2LD;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE;IACnD,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,wBAAwB,EAAE,MAAM,CAAC;IAC1C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B,GAAG,8BAA8B,CA+BjC"}
|
|
@@ -270,6 +270,15 @@ const FAMILY_EDITORIAL = {
|
|
|
270
270
|
},
|
|
271
271
|
};
|
|
272
272
|
/** The companion records a landing writes beside a family's own `index.ts`. */
|
|
273
|
+
/**
|
|
274
|
+
* The question a family answers — its CONCERN — for a family named by id, as the workbench groups
|
|
275
|
+
* by it. A family this table does not know answers `UNCLASSIFIED`, the visible bucket, never a
|
|
276
|
+
* plausible guess. Exported so the dossier groups its questions on the same axis the artifact list
|
|
277
|
+
* groups its families (#1454, gap 4): one vocabulary for "what is this about".
|
|
278
|
+
*/
|
|
279
|
+
export function specificationFamilyConcern(family) {
|
|
280
|
+
return FAMILY_EDITORIAL[family]?.concern ?? WorkbenchSpecificationArtifactConcern.UNCLASSIFIED;
|
|
281
|
+
}
|
|
273
282
|
const DECISION_RECORD_FILE_NAME = 'DECISIONS.md';
|
|
274
283
|
const DIAGRAM_FILE_NAME = 'DIAGRAM.md';
|
|
275
284
|
/**
|
|
@@ -327,25 +336,18 @@ function readCommittedRecord(packageRoot, familyRelativePath, fileName) {
|
|
|
327
336
|
}
|
|
328
337
|
}
|
|
329
338
|
/**
|
|
330
|
-
* The validator's
|
|
339
|
+
* The validator's ERRORS, rendered for a reader, or `null` when there are none.
|
|
331
340
|
*
|
|
332
|
-
*
|
|
333
|
-
*
|
|
334
|
-
* the list
|
|
341
|
+
* An error says this artifact no longer satisfies its own contract, and a reviewer must meet it
|
|
342
|
+
* before the prose — the page leads with this block. WARNINGS are not rendered here: they travel as
|
|
343
|
+
* the structured `warnings` list, which the page shows in its own authored words at the foot.
|
|
335
344
|
*/
|
|
336
|
-
function renderIssues(errorDetails
|
|
337
|
-
if (errorDetails.length === 0
|
|
345
|
+
function renderIssues(errorDetails) {
|
|
346
|
+
if (errorDetails.length === 0)
|
|
338
347
|
return null;
|
|
339
|
-
const lines = [];
|
|
340
|
-
|
|
341
|
-
lines.push(
|
|
342
|
-
for (const detail of errorDetails)
|
|
343
|
-
lines.push(`- ${detail}`);
|
|
344
|
-
lines.push('');
|
|
345
|
-
}
|
|
346
|
-
if (warnCount > 0) {
|
|
347
|
-
lines.push(`**${warnCount} warning${warnCount === 1 ? '' : 's'}** — authoring drift the validator reports without invalidating the artifact.`, '', 'Warning detail is not carried here: the family validators return warnings alongside errors and', 'only the errors are projected as text today. Open the file to read them.');
|
|
348
|
-
}
|
|
348
|
+
const lines = [`**${errorDetails.length} error${errorDetails.length === 1 ? '' : 's'}** — the artifact does not satisfy its own contract.`, ''];
|
|
349
|
+
for (const detail of errorDetails)
|
|
350
|
+
lines.push(`- ${detail}`);
|
|
349
351
|
return lines.join('\n').trim();
|
|
350
352
|
}
|
|
351
353
|
/**
|
|
@@ -416,6 +418,7 @@ function projectFamily(input) {
|
|
|
416
418
|
content: null,
|
|
417
419
|
document: null,
|
|
418
420
|
issues: null,
|
|
421
|
+
warnings: [],
|
|
419
422
|
decisionRecord: null,
|
|
420
423
|
diagram: null,
|
|
421
424
|
};
|
|
@@ -446,7 +449,8 @@ function projectFamily(input) {
|
|
|
446
449
|
*/
|
|
447
450
|
content: typeof snapshot === 'object' && !Array.isArray(snapshot) ? snapshot : null,
|
|
448
451
|
document: renderSpecificationFamilyReviewDocument({ title: editorial.title, value: snapshot }),
|
|
449
|
-
issues: renderIssues(validation.errorDetails
|
|
452
|
+
issues: renderIssues(validation.errorDetails),
|
|
453
|
+
warnings: validation.warnings.map(({ path, message }) => ({ path, message })),
|
|
450
454
|
decisionRecord: familyRelativePath
|
|
451
455
|
? readCommittedRecord(packageRoot, familyRelativePath, DECISION_RECORD_FILE_NAME)
|
|
452
456
|
: null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"specification-artifacts.behavior.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/subprocess/specification-artifacts.behavior.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EACL,kDAAkD,EAClD,4BAA4B,EAC5B,uCAAuC,GAExC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,6BAA6B,EAAE,+BAA+B,EAAE,MAAM,+BAA+B,CAAC;AAC/G,OAAO,EACL,qCAAqC,EACrC,mCAAmC,GACpC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,8BAA8B,EAC9B,8BAA8B,GAC/B,MAAM,oDAAoD,CAAC;AAE5D,OAAO,EAAE,qCAAqC,EAAE,MAAM,gDAAgD,CAAC;AA8GvG,MAAM,gBAAgB,GAAmF;IACvG,CAAC,8BA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M,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,KAAK,mCAAmC,CAAC,cAAc,CAAC,CAAC,MAAM;YACrH,WAAW,EAAE,KAAK,CAAC,WAAW;SAC/B;KACF,CAAC;AACJ,CAAC","sourcesContent":["import { existsSync, readFileSync } from 'node:fs';\nimport { dirname, join } from 'node:path';\n\nimport {\n APPLICATION_SPECIFICATION_SEMANTIC_SCHEMA_BINDINGS,\n getFamilyPackageRelativePath,\n renderSpecificationFamilyReviewDocument,\n type ApplicationSpecificationSemanticSchemaBinding,\n} from '@wildo-ai/application-creation-runtime';\nimport { getFrameworkKnowledgePlaybook, listFrameworkKnowledgePlaybooks } from '@wildo-ai/framework-knowledge';\nimport {\n WorkbenchSpecificationArtifactConcern,\n WorkbenchSpecificationArtifactState,\n} from '@wildo-ai/platform-core-shared';\nimport {\n ApplicationSpecificationFamily,\n JourneyArtifactValidationState,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nimport { resolveSpecificationsCompanionExports } from './companion-introspection-module-exports.utils';\n\n/**\n * The operator-facing projection of the application's specification families (issue #162).\n *\n * ## What was missing, and what was already there\n *\n * Nine companion behaviors already READ this content — `market-context-for-icp`,\n * `market-render-prompt`, `brand-render-prompt`, `compliance-primary-facts`,\n * `definition-specifications`, `specification-context-parts` and their siblings — and every one of\n * them renders PROSE FOR A LANGUAGE MODEL. The loading and resolution paths were proven; what did\n * not exist was a projection whose consumer is a human. So a creator could not review, compare or\n * revise anything the journey had decided about their product without opening TypeScript files in an\n * editor.\n *\n * Reusing one of those renderers to fill a UI would ship an LLM context block into a human surface.\n * This behavior therefore renders through `renderSpecificationFamilyReviewDocument`, whose only\n * reader is a person.\n *\n * ## Why it REPORTS where `definition-specifications` REFUSES\n *\n * That behavior runs the same validators through the same authority and THROWS on any ERROR-severity\n * issue — correct for a durable load-time guard, and exactly wrong for a review surface: it would\n * make an invalid artifact the one thing a reviewer cannot look at, precisely when they most need to\n * see it. The two cannot disagree about what is VALID, because the validator is the same object; they\n * differ only in what to do about an invalid answer.\n *\n * ## Pure, deterministic, and read-only by construction\n *\n * Reads the authored snapshots off the specifications companion exports, the two committed markdown\n * records beside each family, and the compiled playbook catalog. No LLM, no network, no write, and no\n * state: acceptance of a specification is a human git commit (`.claude/rules/one-source-of-truth.md`\n * rule 2), so there is nowhere here for an acceptance state to accumulate.\n */\n\n/**\n * ONE AUTHORED DECLARATION PER FAMILY — the family's whole editorial identity, in one place.\n *\n * ## What this replaced, and why four places was three too many\n *\n * A family's row-facing decisions were spread over THREE hand-kept maps keyed by slug\n * (`FAMILY_TITLES`, `FAMILY_DESCRIPTIONS`, `FAMILY_CONCERNS`) and an eighteen-arm `switch` inside\n * `deriveContentPulse` — four independent lists over one population, none of them typed, each free\n * to gain a family the others did not. Adding a family meant four edits in four shapes, and\n * forgetting one produced a card titled by its own slug, or unclassified, or with no pulse at all,\n * every one of them silently.\n *\n * A RESOURCE does not work that way: `resourceUIBehavior` is ONE call carrying the icon, the layout,\n * the label rule and the surfaces together, because they are one set of decisions about one thing.\n * This is that shape for a family.\n *\n * ## TOTAL over the vocabulary, so the compiler is the checker\n *\n * `Record<ApplicationSpecificationFamily, …>` with no index signature: a family with no entry is a\n * COMPILE ERROR, and so is a key naming no family. The companion test that asserted the same thing\n * stays and now proves the half a type cannot — that the ENUM still matches the semantic authority's\n * bindings, which are declared in another package.\n *\n * ## Why these four belong together, and NOT beside the schema\n *\n * They are what a reader MEETS: a name, a sentence, the question the family answers, and a one-line\n * pulse of what landed. None of them is semantics — the schema, the validator and the generation\n * contract stay on the authority's binding, which is the resources-config half of this split.\n * Merging the two would put display words in the package that decides whether content is VALID.\n */\ninterface SpecificationFamilyEditorial {\n /**\n * The creator-facing NAME, authored rather than derived from the slug.\n *\n * The two diverge exactly where it matters: `vision-brief` names a product VISION,\n * `compliance-program` an assurance PROGRAMME. Humanizing the slug gives \"Vision brief\" and\n * \"Compliance program\" — accurate about the id, and a worse answer to \"what am I looking at\".\n */\n readonly title: string;\n /**\n * What the family IS, in one sentence a creator recognizes — the card's subtitle.\n *\n * Present whether or not anything landed: on a NOT_LANDED card it is the whole answer to \"why\n * would I care\", and on a landed one it frames the pulse beside it. Written in the creator's\n * vocabulary, never the framework's.\n */\n readonly description: string;\n /** Which question this family answers — the axis the workbench groups its list by. */\n readonly concern: WorkbenchSpecificationArtifactConcern;\n /**\n * This family's own one-line reading of what landed — the card's pulse.\n *\n * REQUIRED, which is the change worth noticing: as a `switch` it had a `default: return null`, so\n * two families (the two governed-document SETS) fell through it and rendered a landed card with\n * nothing on it — indistinguishable from a family whose rule nobody had written. Both have one\n * now, and a twenty-first family cannot be added without one.\n */\n readonly pulse: (read: FamilyPulseReader) => string | null;\n}\n\n/** What a family's pulse rule may ask of its landed snapshot. */\ninterface FamilyPulseReader {\n /** How many entries a top-level collection holds — 0 when absent or not an array. */\n readonly count: (key: string) => number;\n /** How many entries the landed value ITSELF holds when it is a collection (the persona charter set) — 0 otherwise. */\n readonly length: () => number;\n /** A non-empty trimmed string at a path, else null. */\n readonly text: (path: readonly string[]) => string | null;\n /**\n * Counted parts, joined — each entry names its SINGULAR, and the plural defaults to `+s` and is\n * spelled out where English disagrees. \"1 ICPs\" on a live card is what bought that parameter.\n */\n readonly parts: (entries: ReadonlyArray<readonly [number, string, string?]>) => string | null;\n}\n\nconst FAMILY_EDITORIAL: Readonly<Record<ApplicationSpecificationFamily, SpecificationFamilyEditorial>> = {\n [ApplicationSpecificationFamily.VISION_BRIEF]: {\n title: 'Vision',\n description: 'The founding intent — the idea, the problem it answers, and what success looks like.',\n concern: WorkbenchSpecificationArtifactConcern.INTENT,\n /* The one-liner IS the vision; a count of criteria would say nothing about what was decided. */\n pulse: ({ text }) => text(['idea', 'oneLiner']),\n },\n [ApplicationSpecificationFamily.MARKET_SNAPSHOT]: {\n title: 'Market',\n description: 'Who this product is for and how it is positioned — category, ICPs, personas, messaging.',\n concern: WorkbenchSpecificationArtifactConcern.INTENT,\n pulse: ({ count, parts }) => parts([\n [count('icps'), 'ICP'],\n [count('personas'), 'persona'],\n [count('positionings'), 'positioning'],\n [count('tonesOfVoice'), 'tone of voice', 'tones of voice'],\n ]),\n },\n [ApplicationSpecificationFamily.REQUIREMENTS]: {\n title: 'Requirements',\n description: 'What the product must do, functionally and non-functionally, with acceptance criteria.',\n concern: WorkbenchSpecificationArtifactConcern.SCOPE,\n /* Both singulars are their own plurals — \"3 functional\", never \"3 functionals\". */\n pulse: ({ count, parts }) => parts([\n [count('functional'), 'functional', 'functional'],\n [count('nonFunctional'), 'non-functional', 'non-functional'],\n ]),\n },\n [ApplicationSpecificationFamily.FEATURE_DRAFTS]: {\n title: 'Feature drafts',\n description: 'Accepted feature intent — spec-first drafts awaiting their runtime definitions.',\n concern: WorkbenchSpecificationArtifactConcern.SCOPE,\n pulse: ({ count, parts }) => parts([[count('drafts'), 'feature draft']]),\n },\n [ApplicationSpecificationFamily.BUSINESS_MODEL]: {\n title: 'Business model',\n description: 'How the product earns — the revenue model and its pricing plans.',\n concern: WorkbenchSpecificationArtifactConcern.SCOPE,\n /*\n * The revenue model leads because it is the DECISION; the plan count is its consequence. Either\n * half may be absent, so each is allowed to carry the line alone.\n *\n * ## The value is read RAW, and that is a correction\n *\n * This read `revenueModel.toLowerCase().replace(/_/g, ' ')` — inventing a word from a member of\n * `RevenueModelKind`, a real closed enum. That is the defect\n * `.claude/rules/display-text-comes-from-i18n.md` exists for, and it was carried in that check's\n * shrink-only baseline as `specification-artifacts.behavior.ts::separator-to-words`.\n *\n * A pulse is composed SERVER-SIDE into one string on the row; there is no label loop here to ask,\n * so the honest answer is the raw value, which looks unlabelled because it is. The remedy, if the\n * word matters, is to carry the member and let the workbench word it — not to humanize the token\n * where nobody can translate or reword it.\n */\n pulse: ({ count, parts, text }) => {\n const model = text(['revenueModel']);\n const plans = parts([[count('plans'), 'plan']]);\n return model && plans ? `${model} · ${plans}` : model ?? plans;\n },\n },\n [ApplicationSpecificationFamily.ROADMAP]: {\n title: 'Roadmap',\n description: 'The build order — phases, their objectives, and what each one delivers.',\n concern: WorkbenchSpecificationArtifactConcern.DELIVERY,\n pulse: ({ count, parts }) => parts([[count('phases'), 'phase']]),\n },\n [ApplicationSpecificationFamily.DOMAIN_PLAN]: {\n title: 'Domain plan',\n description: 'The domain model as planned — modules, their purposes, and the relationships between resources.',\n concern: WorkbenchSpecificationArtifactConcern.DELIVERY,\n pulse: ({ count, parts }) => parts([[count('modules'), 'module'], [count('relationships'), 'relationship']]),\n },\n [ApplicationSpecificationFamily.BUILD_PLAN]: {\n title: 'Build plan',\n description: 'The task graph the coding lane executes — objectives, targets and prerequisites.',\n concern: WorkbenchSpecificationArtifactConcern.DELIVERY,\n pulse: ({ count, parts }) => parts([[count('tasks'), 'task']]),\n },\n [ApplicationSpecificationFamily.PLACEMENT_PLAN]: {\n title: 'Placement plan',\n description: 'Where every destination sits in the application shell, and why.',\n concern: WorkbenchSpecificationArtifactConcern.DELIVERY,\n pulse: ({ count, parts }) => parts([[count('groups'), 'group'], [count('decisions'), 'decision']]),\n },\n [ApplicationSpecificationFamily.CAPABILITY_COMPOSITION]: {\n title: 'Composition',\n description: 'Which optional packages this application needs — website, documentation portal, workers — and the declaration each decision was read from.',\n /*\n * DELIVERY: the composition decides what the foundation composes, not what the product is — a\n * website follows from a market channel or a brand, never the other way round (#1491).\n */\n concern: WorkbenchSpecificationArtifactConcern.DELIVERY,\n pulse: ({ count, parts }) => parts([[count('scenarioDecisions'), 'decision']]),\n },\n [ApplicationSpecificationFamily.EXPERIENCE_PLAN]: {\n title: 'Experience',\n description: 'The surfaces this application carries beyond its generated screens, how its shell, navigation and palette are composed, and the milestones and guidance that carry a new person through it.',\n concern: WorkbenchSpecificationArtifactConcern.DELIVERY,\n pulse: ({ count, parts }) => parts([\n [count('views'), 'view'],\n [count('configurations'), 'configured surface'],\n [count('milestones'), 'milestone'],\n // \"guidance\" is uncountable; the entries are pieces of it.\n [count('guidance'), 'piece of guidance', 'pieces of guidance'],\n ]),\n },\n [ApplicationSpecificationFamily.APPLICATION_MATURITY]: {\n title: 'Where we stand',\n description: 'One row per requirement this application set itself, the evidence that exists for it, and the stage that follows. A measurement, never a verdict.',\n /*\n * DELIVERY: the reading is about what has been BUILT against what was asked, not about what the\n * product is. It is also the one artifact nobody authors — it is derived and re-derived.\n */\n concern: WorkbenchSpecificationArtifactConcern.DELIVERY,\n /* The STAGE first — it is the reading — with the population that produced it behind it. */\n pulse: ({ count, parts, text }) => {\n const stage = text(['stage']);\n const measured = parts([[count('requirements'), 'requirement']]);\n if (stage === null) return measured;\n return measured === null ? stage : `${stage} · ${measured}`;\n },\n },\n [ApplicationSpecificationFamily.INTEGRATION_PLAN]: {\n title: 'Background & integrations',\n description: 'What this application runs beside its backend — workers it delegates to, schedules that wake on their own — and the outside services it binds.',\n /* DELIVERY: a worker or a minion is part of what the product DOES, not of how it presents itself. */\n concern: WorkbenchSpecificationArtifactConcern.DELIVERY,\n pulse: ({ count, parts }) => parts([[count('workers'), 'worker'], [count('minions'), 'minion'], [count('providerBindings'), 'binding']]),\n },\n [ApplicationSpecificationFamily.DOCUMENTATION_PLAN]: {\n title: 'Documentation',\n description: 'The chapters the documentation portal carries, what each documents in this product, and who it is written for.',\n concern: WorkbenchSpecificationArtifactConcern.IDENTITY,\n pulse: ({ count, parts }) => parts([[count('chapters'), 'chapter']]),\n },\n [ApplicationSpecificationFamily.WEBSITE_PLAN]: {\n title: 'Website',\n description: 'What the marketing site says — its pages, the sections that carry each argument, and the market entries they draw on.',\n /* IDENTITY: the site is how the product presents itself, the same axis as the brand beside it. */\n concern: WorkbenchSpecificationArtifactConcern.IDENTITY,\n pulse: ({ count, parts }) => parts([[count('pages'), 'page']]),\n },\n [ApplicationSpecificationFamily.BRAND_BRIEF]: {\n title: 'Brand',\n description: 'How the product presents itself — name, logo direction and visual tone.',\n concern: WorkbenchSpecificationArtifactConcern.IDENTITY,\n /* The name, and the tagline only if there is a name to attach it to. */\n pulse: ({ text }) => {\n const name = text(['name', 'brandName']);\n const tagline = text(['name', 'tagline']);\n return name ? (tagline ? `${name} — ${tagline}` : name) : null;\n },\n },\n [ApplicationSpecificationFamily.COMPLIANCE_PROGRAM]: {\n title: 'Assurance programme',\n description: 'The controls this product commits to, and the authorities they answer.',\n concern: WorkbenchSpecificationArtifactConcern.OBLIGATIONS,\n pulse: ({ count, parts }) => parts([\n [count('roleAuthorities'), 'role authority', 'role authorities'],\n [count('capabilityAuthorities'), 'capability authority', 'capability authorities'],\n [count('implementationStatements'), 'implementation statement'],\n ]),\n },\n [ApplicationSpecificationFamily.COMPLIANCE_DOCUMENT_CANDIDATE]: {\n title: 'Governed-document drafts',\n description: 'Drafts of the public governed documents this product must publish.',\n concern: WorkbenchSpecificationArtifactConcern.OBLIGATIONS,\n pulse: ({ count, parts, text }) => {\n const title = text(['title']);\n const sections = parts([[count('sections'), 'section']]);\n return title ? (sections ? `${title} · ${sections}` : title) : sections;\n },\n },\n [ApplicationSpecificationFamily.COMPLIANCE_DOCUMENT_CANDIDATE_SET]: {\n title: 'Draft document collection',\n description: 'All the governed documents your application has drafted, kept together as each document evolves.',\n concern: WorkbenchSpecificationArtifactConcern.OBLIGATIONS,\n /*\n * AUTHORED 2026-09-19. This family had no arm in the switch and took its `default: return null`,\n * so a landed set rendered a card with nothing on it — the same card a family whose rule nobody\n * had written would render. How many documents are drafted is what a reader wants.\n */\n pulse: ({ count, parts }) => parts([[count('candidates'), 'drafted document']]),\n },\n [ApplicationSpecificationFamily.DOCUMENT_PUBLICATION]: {\n title: 'Document publication',\n description: 'Which locales and jurisdictions each governed document publishes in.',\n concern: WorkbenchSpecificationArtifactConcern.OBLIGATIONS,\n pulse: ({ count, parts }) => parts([[count('variants'), 'publication variant']]),\n },\n [ApplicationSpecificationFamily.DOCUMENT_RELEASE_POLICY]: {\n title: 'Document release policy',\n description: 'How each required document may be released — draft, attested, or reviewed.',\n concern: WorkbenchSpecificationArtifactConcern.OBLIGATIONS,\n pulse: ({ count, parts }) => parts([[count('selections'), 'selection']]),\n },\n [ApplicationSpecificationFamily.DOCUMENT_RELEASE_SET]: {\n title: 'Document releases',\n description: 'The document releases composed from your drafts, document definitions and release policies.',\n concern: WorkbenchSpecificationArtifactConcern.OBLIGATIONS,\n /* AUTHORED 2026-09-19 — the second family that fell through the switch's default. */\n pulse: ({ count, parts }) => parts([[count('releases'), 'release']]),\n },\n [ApplicationSpecificationFamily.DOCUMENT_FACTS]: {\n title: 'Document facts',\n description: 'The accepted raw facts governed documents are built from.',\n concern: WorkbenchSpecificationArtifactConcern.OBLIGATIONS,\n pulse: ({ count, parts }) => parts([[count('declarations'), 'declaration']]),\n },\n [ApplicationSpecificationFamily.DOCUMENT_FACTS_AUTHORED]: {\n title: 'Document facts you decide',\n description: 'The facts nobody can derive for you — the ones you decide or have reviewed.',\n concern: WorkbenchSpecificationArtifactConcern.OBLIGATIONS,\n /*\n * The same shape as the derived half, and deliberately its OWN rule rather than a shared switch\n * arm: the two families are separate precisely so a regeneration cannot reach the human's half,\n * and a shared line would be the first place they quietly became one thing again.\n */\n pulse: ({ count, parts }) => parts([[count('declarations'), 'declaration']]),\n },\n [ApplicationSpecificationFamily.PROCESSOR_REGISTER]: {\n title: 'Who else processes your data',\n description: 'Every vendor that handles your users\\' personal data, who they legally are, and where.',\n concern: WorkbenchSpecificationArtifactConcern.OBLIGATIONS,\n pulse: ({ count, parts }) => parts([[count('processors'), 'processor']]),\n },\n [ApplicationSpecificationFamily.RISK_REGISTER]: {\n title: 'What could go wrong',\n description: 'The risks this application carries, how bad each would be, and what you have decided to do about them.',\n /*\n * OBLIGATIONS, beside the programme rather than under it. A programme states which control\n * objectives the application CLAIMS; a register states which exposures it CARRIES. They inform\n * each other and answer different questions — the family schema argues the same split — so the\n * register belongs in the same concern and is not folded into the programme.\n */\n concern: WorkbenchSpecificationArtifactConcern.OBLIGATIONS,\n pulse: ({ count, parts }) => parts([[count('entries'), 'risk']]),\n },\n [ApplicationSpecificationFamily.CREATOR_INPUTS]: {\n title: 'What you told us',\n description: 'Your answers to the questions the creation steps asked — kept, so nothing asks twice.',\n /*\n * INTENT: the dossier is the creator's own words about the product, the same axis as the vision\n * they feed. It is the only family here that nobody PRODUCES, and its pulse counts answers rather\n * than an artifact's parts.\n */\n concern: WorkbenchSpecificationArtifactConcern.INTENT,\n pulse: ({ count, parts }) => parts([[count('answers'), 'answer']]),\n },\n [ApplicationSpecificationFamily.EXPERT_PERSONAS]: {\n title: 'Who reviews the work',\n description: 'The expert reviewers derived for this application — the panels that decide placement and judge the logo.',\n /*\n * DELIVERY: a charter is part of HOW the application gets built — the panels convene at placement and at\n * the logo step — not a statement about the product's intent, scope, identity or obligations (#572).\n * The landed value is the charter ARRAY, so the pulse counts the array itself: the aggregator exports\n * `ExpertPersonaCharter[]`, and a reader keyed on a top-level collection name would count nothing.\n */\n concern: WorkbenchSpecificationArtifactConcern.DELIVERY,\n pulse: ({ length, parts }) => parts([[length(), 'expert reviewer']]),\n },\n};\n\n/** The companion records a landing writes beside a family's own `index.ts`. */\nconst DECISION_RECORD_FILE_NAME = 'DECISIONS.md';\nconst DIAGRAM_FILE_NAME = 'DIAGRAM.md';\n\n/** One family row, JSON-safe, matching `Workbench_SpecificationArtifact_Schema`. */\nexport interface SpecificationArtifactRow {\n readonly family: string;\n readonly title: string;\n /** Static per-family subtitle — see {@link FAMILY_DESCRIPTIONS}. */\n readonly description: string;\n /** One-line pulse of the landed content, `null` when nothing landed. See {@link deriveContentPulse}. */\n readonly contentSummary: string | null;\n readonly concern: WorkbenchSpecificationArtifactConcern;\n readonly state: WorkbenchSpecificationArtifactState;\n readonly schemaRef: string;\n readonly sourcePath: string | null;\n readonly errorCount: number;\n readonly warnCount: number;\n readonly producedByPlaybookRefs: string[];\n /**\n * The landed family value, RAW — exactly what the specifications package exports, never the\n * validator's parsed output (whose schema `.default()`s would inject content the author never\n * wrote). The workbench's per-family templates render from this; the markdown `document` beside\n * it is their structural fallback. `null` when the family has not landed.\n */\n readonly content: Record<string, unknown> | null;\n readonly document: string | null;\n readonly issues: string | null;\n readonly decisionRecord: string | null;\n readonly diagram: string | null;\n}\n\nexport interface SpecificationArtifactsResponse {\n readonly artifacts: SpecificationArtifactRow[];\n readonly trace: {\n readonly families: number;\n readonly landed: number;\n readonly invalid: number;\n readonly evaluatedAt: string;\n };\n}\n\n/**\n * Every playbook whose declared `outputs[].family` is `family`.\n *\n * The durable half of \"what produced this\": a fact about the compiled catalog, carried in git, true\n * whether or not any run's state still exists. A link to the RUN that produced a particular value was\n * deliberately not built — runs, traces and the write register are a per-run cache under\n * `one-source-of-truth.md` rule 5, so a durable artifact pointing into deletable state is dangling by\n * design. The link runs the other way: a run may name what it wrote.\n *\n * Built ONCE per derivation rather than per family: the catalog read is the same 21 files either way,\n * and looping it fifteen times would multiply the only file I/O in this behavior by fifteen.\n */\nfunction buildPlaybookRefsByFamily(): ReadonlyMap<string, string[]> {\n const byFamily = new Map<string, string[]>();\n for (const entry of listFrameworkKnowledgePlaybooks()) {\n const hydrated = getFrameworkKnowledgePlaybook(entry.ref);\n const outputs = (hydrated?.playbook as { outputs?: readonly { family?: unknown }[] } | undefined)?.outputs ?? [];\n for (const output of outputs) {\n if (typeof output?.family !== 'string' || output.family.length === 0) continue;\n const refs = byFamily.get(output.family) ?? [];\n if (!refs.includes(entry.ref)) refs.push(entry.ref);\n byFamily.set(output.family, refs);\n }\n }\n return byFamily;\n}\n\n/**\n * Read a markdown record committed beside a family, or `null`.\n *\n * `null` for an absent file is a FACT with a precise meaning, and the two files mean different things\n * by their absence: no `DIAGRAM.md` means this family has no diagram renderer, while no\n * `DECISIONS.md` means the run that produced it asked the creator nothing — never that no\n * clarification happened. The row's JSDoc carries that distinction to the reader; here both are just\n * a missing file.\n */\nfunction readCommittedRecord(packageRoot: string, familyRelativePath: string, fileName: string): string | null {\n const path = join(packageRoot, dirname(familyRelativePath), fileName);\n if (!existsSync(path)) return null;\n try {\n const content = readFileSync(path, 'utf8').trim();\n return content.length > 0 ? content : null;\n } catch {\n /*\n * A record that cannot be READ is reported as absent rather than failing the derivation. It is\n * supporting provenance beside the artifact, not the artifact — refusing the whole page because\n * one sibling file is unreadable would deny a reviewer the fifteen rows that are fine.\n */\n return null;\n }\n}\n\n/**\n * The validator's findings, rendered for a reader.\n *\n * Errors before warnings, because the two are different instructions: an error says this artifact no\n * longer satisfies its own contract, a warning says its authoring has drifted. Only the counts reach\n * the list; this is what a reviewer opens the row to read.\n */\nfunction renderIssues(errorDetails: readonly string[], warnCount: number): string | null {\n if (errorDetails.length === 0 && warnCount === 0) return null;\n const lines: string[] = [];\n if (errorDetails.length > 0) {\n lines.push(`**${errorDetails.length} error${errorDetails.length === 1 ? '' : 's'}** — the artifact does not satisfy its own contract.`, '');\n for (const detail of errorDetails) lines.push(`- ${detail}`);\n lines.push('');\n }\n if (warnCount > 0) {\n lines.push(\n `**${warnCount} warning${warnCount === 1 ? '' : 's'}** — authoring drift the validator reports without invalidating the artifact.`,\n '',\n 'Warning detail is not carried here: the family validators return warnings alongside errors and',\n 'only the errors are projected as text today. Open the file to read them.',\n );\n }\n return lines.join('\\n').trim();\n}\n\n/**\n * A one-line PULSE of what actually landed — the card's third line, beside the title and subtitle.\n *\n * Each family answers this for itself, in its own `pulse` rule beside its title and concern, because\n * what is worth saying about a landed value is a decision about THAT family: the vision's is its\n * one-liner, the market's is how many ICPs and personas, the brand's is the name and tagline. A\n * generic \"N keys\" would be true of all of them and useful for none.\n *\n * This used to be an eighteen-arm `switch` here, three declarations away from the titles and\n * concerns it belongs with. It is now one field of {@link SpecificationFamilyEditorial}; this\n * function is only the reader those rules are handed.\n *\n * It runs on the RAW landed value, never the validator's parsed output — a schema `.default()` would\n * otherwise inject content the author never wrote and the card would report it as landed. And it\n * runs for an INVALID family too, deliberately: a reader shown \"3 ICPs\" beside a red badge knows\n * more than one shown nothing.\n */\nfunction deriveContentPulse(family: ApplicationSpecificationFamily, snapshot: Record<string, unknown> | readonly unknown[]): string | null {\n const member = (key: string): unknown => (Array.isArray(snapshot) ? undefined : (snapshot as Record<string, unknown>)[key]);\n const read: FamilyPulseReader = {\n count: (key) => (Array.isArray(member(key)) ? (member(key) as unknown[]).length : 0),\n length: () => (Array.isArray(snapshot) ? snapshot.length : 0),\n text: (path) => {\n let value: unknown = snapshot;\n for (const key of path) {\n if (!value || typeof value !== 'object') return null;\n value = (value as Record<string, unknown>)[key];\n }\n return typeof value === 'string' && value.trim().length > 0 ? value.trim() : null;\n },\n parts: (entries) => {\n const present = entries\n .filter(([n]) => n > 0)\n .map(([n, singular, plural]) => `${n} ${n === 1 ? singular : plural ?? `${singular}s`}`);\n return present.length > 0 ? present.join(' · ') : null;\n },\n };\n return FAMILY_EDITORIAL[family].pulse(read);\n}\n\nfunction projectFamily(input: {\n readonly binding: ApplicationSpecificationSemanticSchemaBinding;\n readonly snapshot: unknown;\n readonly packageRoot: string;\n readonly appRelativePackagePrefix: string;\n readonly playbookRefsByFamily: ReadonlyMap<string, string[]>;\n}): SpecificationArtifactRow {\n const { binding, snapshot, packageRoot, appRelativePackagePrefix, playbookRefsByFamily } = input;\n const familyRelativePath = getFamilyPackageRelativePath(binding.family);\n /*\n * ONE lookup, and no fallback — `binding.family` is typed by the vocabulary and `FAMILY_EDITORIAL`\n * is total over it, so the three `?? binding.family` slug fallbacks this replaced are unreachable\n * by construction rather than guarded at runtime. A family with nothing authored cannot compile.\n */\n const editorial = FAMILY_EDITORIAL[binding.family];\n\n const base = {\n family: binding.family,\n title: editorial.title,\n description: editorial.description,\n concern: editorial.concern,\n schemaRef: binding.schemaRef,\n sourcePath: familyRelativePath ? `${appRelativePackagePrefix}/${familyRelativePath}` : null,\n producedByPlaybookRefs: [...(playbookRefsByFamily.get(binding.family) ?? [])],\n };\n\n if (snapshot === undefined || snapshot === null) {\n return {\n ...base,\n state: WorkbenchSpecificationArtifactState.NOT_LANDED,\n errorCount: 0,\n warnCount: 0,\n contentSummary: null,\n content: null,\n document: null,\n issues: null,\n decisionRecord: null,\n diagram: null,\n };\n }\n\n const validation = binding.validate(snapshot);\n return {\n ...base,\n state: validation.validation === JourneyArtifactValidationState.VALID\n ? WorkbenchSpecificationArtifactState.LANDED_VALID\n : WorkbenchSpecificationArtifactState.LANDED_INVALID,\n errorCount: validation.errorCount,\n warnCount: validation.warnCount,\n // An ARRAY landed value has a pulse too (the charter set: \"5 expert reviewers\"); only a non-object has none.\n contentSummary: typeof snapshot === 'object' && snapshot !== null\n ? deriveContentPulse(binding.family, snapshot as Record<string, unknown> | readonly unknown[])\n : null,\n /*\n * Both carried from the RAW snapshot, not from the validator's parsed output. The validator\n * parses with the family schema, whose `.default()` members would inject values the author never\n * wrote — a reviewer would then be shown, and could accept, content nobody authored. Mutation-\n * proven on the `document` half (parsed-value render reddens the raw-value pin); `content`\n * follows the same rule for the same reason.\n *\n * Every family binding's `snapshotSchema` is an object EXCEPT `expert-personas`, whose landed value\n * is the charter ARRAY (#572). The row schema types `content` as a record, so an array family carries\n * `content: null` deliberately and is read through its pulse and the review document; anything else\n * non-object is reported rather than smuggled through as a shape the row schema would refuse.\n */\n content: typeof snapshot === 'object' && !Array.isArray(snapshot) ? snapshot as Record<string, unknown> : null,\n document: renderSpecificationFamilyReviewDocument({ title: editorial.title, value: snapshot }),\n issues: renderIssues(validation.errorDetails, validation.warnCount),\n decisionRecord: familyRelativePath\n ? readCommittedRecord(packageRoot, familyRelativePath, DECISION_RECORD_FILE_NAME)\n : null,\n diagram: familyRelativePath\n ? readCommittedRecord(packageRoot, familyRelativePath, DIAGRAM_FILE_NAME)\n : null,\n };\n}\n\n/**\n * Project every application-specification family for a human reviewer.\n *\n * `packageRoot` is the specifications package's absolute root, and `appRelativePackagePrefix` its\n * directory name relative to the application — so a row can name a path a reader recognizes\n * (`specifications/src/vision/index.ts`) rather than one that only makes sense inside the package.\n */\nexport function projectSpecificationArtifacts(input: {\n readonly moduleExports: Record<string, unknown>;\n readonly packageRoot: string;\n readonly appRelativePackagePrefix: string;\n readonly evaluatedAt: string;\n}): SpecificationArtifactsResponse {\n const companionExports = resolveSpecificationsCompanionExports(input.moduleExports) as unknown as Record<string, unknown>;\n const playbookRefsByFamily = buildPlaybookRefsByFamily();\n\n const artifacts = APPLICATION_SPECIFICATION_SEMANTIC_SCHEMA_BINDINGS.map((binding) =>\n projectFamily({\n binding,\n /*\n * A family with no `companionExportsField` is a DRAFT — it is not accepted application truth\n * and has no slot to read (`compliance-document-candidate`). It is reported as NOT_LANDED\n * rather than skipped, for the same reason absent families are rows at all: an omitted row and\n * a family that does not exist look identical to a reader.\n */\n snapshot: binding.companionExportsField === undefined\n ? undefined\n : companionExports[binding.companionExportsField],\n packageRoot: input.packageRoot,\n appRelativePackagePrefix: input.appRelativePackagePrefix,\n playbookRefsByFamily,\n }),\n );\n\n return {\n artifacts,\n trace: {\n families: artifacts.length,\n landed: artifacts.filter((artifact) => artifact.state !== WorkbenchSpecificationArtifactState.NOT_LANDED).length,\n invalid: artifacts.filter((artifact) => artifact.state === WorkbenchSpecificationArtifactState.LANDED_INVALID).length,\n evaluatedAt: input.evaluatedAt,\n },\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"specification-artifacts.behavior.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/subprocess/specification-artifacts.behavior.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EACL,kDAAkD,EAClD,4BAA4B,EAC5B,uCAAuC,GAExC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,6BAA6B,EAAE,+BAA+B,EAAE,MAAM,+BAA+B,CAAC;AAC/G,OAAO,EACL,qCAAqC,EACrC,mCAAmC,GACpC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,8BAA8B,EAC9B,8BAA8B,GAC/B,MAAM,oDAAoD,CAAC;AAE5D,OAAO,EAAE,qCAAqC,EAAE,MAAM,gDAAgD,CAAC;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KAAK,mCAAmC,CAAC,cAAc,CAAC,CAAC,MAAM;YACrH,WAAW,EAAE,KAAK,CAAC,WAAW;SAC/B;KACF,CAAC;AACJ,CAAC","sourcesContent":["import { existsSync, readFileSync } from 'node:fs';\nimport { dirname, join } from 'node:path';\n\nimport {\n APPLICATION_SPECIFICATION_SEMANTIC_SCHEMA_BINDINGS,\n getFamilyPackageRelativePath,\n renderSpecificationFamilyReviewDocument,\n type ApplicationSpecificationSemanticSchemaBinding,\n} from '@wildo-ai/application-creation-runtime';\nimport { getFrameworkKnowledgePlaybook, listFrameworkKnowledgePlaybooks } from '@wildo-ai/framework-knowledge';\nimport {\n WorkbenchSpecificationArtifactConcern,\n WorkbenchSpecificationArtifactState,\n} from '@wildo-ai/platform-core-shared';\nimport {\n ApplicationSpecificationFamily,\n JourneyArtifactValidationState,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nimport { resolveSpecificationsCompanionExports } from './companion-introspection-module-exports.utils';\n\n/**\n * The operator-facing projection of the application's specification families (issue #162).\n *\n * ## What was missing, and what was already there\n *\n * Nine companion behaviors already READ this content — `market-context-for-icp`,\n * `market-render-prompt`, `brand-render-prompt`, `compliance-primary-facts`,\n * `definition-specifications`, `specification-context-parts` and their siblings — and every one of\n * them renders PROSE FOR A LANGUAGE MODEL. The loading and resolution paths were proven; what did\n * not exist was a projection whose consumer is a human. So a creator could not review, compare or\n * revise anything the journey had decided about their product without opening TypeScript files in an\n * editor.\n *\n * Reusing one of those renderers to fill a UI would ship an LLM context block into a human surface.\n * This behavior therefore renders through `renderSpecificationFamilyReviewDocument`, whose only\n * reader is a person.\n *\n * ## Why it REPORTS where `definition-specifications` REFUSES\n *\n * That behavior runs the same validators through the same authority and THROWS on any ERROR-severity\n * issue — correct for a durable load-time guard, and exactly wrong for a review surface: it would\n * make an invalid artifact the one thing a reviewer cannot look at, precisely when they most need to\n * see it. The two cannot disagree about what is VALID, because the validator is the same object; they\n * differ only in what to do about an invalid answer.\n *\n * ## Pure, deterministic, and read-only by construction\n *\n * Reads the authored snapshots off the specifications companion exports, the two committed markdown\n * records beside each family, and the compiled playbook catalog. No LLM, no network, no write, and no\n * state: acceptance of a specification is a human git commit (`.claude/rules/one-source-of-truth.md`\n * rule 2), so there is nowhere here for an acceptance state to accumulate.\n */\n\n/**\n * ONE AUTHORED DECLARATION PER FAMILY — the family's whole editorial identity, in one place.\n *\n * ## What this replaced, and why four places was three too many\n *\n * A family's row-facing decisions were spread over THREE hand-kept maps keyed by slug\n * (`FAMILY_TITLES`, `FAMILY_DESCRIPTIONS`, `FAMILY_CONCERNS`) and an eighteen-arm `switch` inside\n * `deriveContentPulse` — four independent lists over one population, none of them typed, each free\n * to gain a family the others did not. Adding a family meant four edits in four shapes, and\n * forgetting one produced a card titled by its own slug, or unclassified, or with no pulse at all,\n * every one of them silently.\n *\n * A RESOURCE does not work that way: `resourceUIBehavior` is ONE call carrying the icon, the layout,\n * the label rule and the surfaces together, because they are one set of decisions about one thing.\n * This is that shape for a family.\n *\n * ## TOTAL over the vocabulary, so the compiler is the checker\n *\n * `Record<ApplicationSpecificationFamily, …>` with no index signature: a family with no entry is a\n * COMPILE ERROR, and so is a key naming no family. The companion test that asserted the same thing\n * stays and now proves the half a type cannot — that the ENUM still matches the semantic authority's\n * bindings, which are declared in another package.\n *\n * ## Why these four belong together, and NOT beside the schema\n *\n * They are what a reader MEETS: a name, a sentence, the question the family answers, and a one-line\n * pulse of what landed. None of them is semantics — the schema, the validator and the generation\n * contract stay on the authority's binding, which is the resources-config half of this split.\n * Merging the two would put display words in the package that decides whether content is VALID.\n */\ninterface SpecificationFamilyEditorial {\n /**\n * The creator-facing NAME, authored rather than derived from the slug.\n *\n * The two diverge exactly where it matters: `vision-brief` names a product VISION,\n * `compliance-program` an assurance PROGRAMME. Humanizing the slug gives \"Vision brief\" and\n * \"Compliance program\" — accurate about the id, and a worse answer to \"what am I looking at\".\n */\n readonly title: string;\n /**\n * What the family IS, in one sentence a creator recognizes — the card's subtitle.\n *\n * Present whether or not anything landed: on a NOT_LANDED card it is the whole answer to \"why\n * would I care\", and on a landed one it frames the pulse beside it. Written in the creator's\n * vocabulary, never the framework's.\n */\n readonly description: string;\n /** Which question this family answers — the axis the workbench groups its list by. */\n readonly concern: WorkbenchSpecificationArtifactConcern;\n /**\n * This family's own one-line reading of what landed — the card's pulse.\n *\n * REQUIRED, which is the change worth noticing: as a `switch` it had a `default: return null`, so\n * two families (the two governed-document SETS) fell through it and rendered a landed card with\n * nothing on it — indistinguishable from a family whose rule nobody had written. Both have one\n * now, and a twenty-first family cannot be added without one.\n */\n readonly pulse: (read: FamilyPulseReader) => string | null;\n}\n\n/** What a family's pulse rule may ask of its landed snapshot. */\ninterface FamilyPulseReader {\n /** How many entries a top-level collection holds — 0 when absent or not an array. */\n readonly count: (key: string) => number;\n /** How many entries the landed value ITSELF holds when it is a collection (the persona charter set) — 0 otherwise. */\n readonly length: () => number;\n /** A non-empty trimmed string at a path, else null. */\n readonly text: (path: readonly string[]) => string | null;\n /**\n * Counted parts, joined — each entry names its SINGULAR, and the plural defaults to `+s` and is\n * spelled out where English disagrees. \"1 ICPs\" on a live card is what bought that parameter.\n */\n readonly parts: (entries: ReadonlyArray<readonly [number, string, string?]>) => string | null;\n}\n\nconst FAMILY_EDITORIAL: Readonly<Record<ApplicationSpecificationFamily, SpecificationFamilyEditorial>> = {\n [ApplicationSpecificationFamily.VISION_BRIEF]: {\n title: 'Vision',\n description: 'The founding intent — the idea, the problem it answers, and what success looks like.',\n concern: WorkbenchSpecificationArtifactConcern.INTENT,\n /* The one-liner IS the vision; a count of criteria would say nothing about what was decided. */\n pulse: ({ text }) => text(['idea', 'oneLiner']),\n },\n [ApplicationSpecificationFamily.MARKET_SNAPSHOT]: {\n title: 'Market',\n description: 'Who this product is for and how it is positioned — category, ICPs, personas, messaging.',\n concern: WorkbenchSpecificationArtifactConcern.INTENT,\n pulse: ({ count, parts }) => parts([\n [count('icps'), 'ICP'],\n [count('personas'), 'persona'],\n [count('positionings'), 'positioning'],\n [count('tonesOfVoice'), 'tone of voice', 'tones of voice'],\n ]),\n },\n [ApplicationSpecificationFamily.REQUIREMENTS]: {\n title: 'Requirements',\n description: 'What the product must do, functionally and non-functionally, with acceptance criteria.',\n concern: WorkbenchSpecificationArtifactConcern.SCOPE,\n /* Both singulars are their own plurals — \"3 functional\", never \"3 functionals\". */\n pulse: ({ count, parts }) => parts([\n [count('functional'), 'functional', 'functional'],\n [count('nonFunctional'), 'non-functional', 'non-functional'],\n ]),\n },\n [ApplicationSpecificationFamily.FEATURE_DRAFTS]: {\n title: 'Feature drafts',\n description: 'Accepted feature intent — spec-first drafts awaiting their runtime definitions.',\n concern: WorkbenchSpecificationArtifactConcern.SCOPE,\n pulse: ({ count, parts }) => parts([[count('drafts'), 'feature draft']]),\n },\n [ApplicationSpecificationFamily.BUSINESS_MODEL]: {\n title: 'Business model',\n description: 'How the product earns — the revenue model and its pricing plans.',\n concern: WorkbenchSpecificationArtifactConcern.SCOPE,\n /*\n * The revenue model leads because it is the DECISION; the plan count is its consequence. Either\n * half may be absent, so each is allowed to carry the line alone.\n *\n * ## The value is read RAW, and that is a correction\n *\n * This read `revenueModel.toLowerCase().replace(/_/g, ' ')` — inventing a word from a member of\n * `RevenueModelKind`, a real closed enum. That is the defect\n * `.claude/rules/display-text-comes-from-i18n.md` exists for, and it was carried in that check's\n * shrink-only baseline as `specification-artifacts.behavior.ts::separator-to-words`.\n *\n * A pulse is composed SERVER-SIDE into one string on the row; there is no label loop here to ask,\n * so the honest answer is the raw value, which looks unlabelled because it is. The remedy, if the\n * word matters, is to carry the member and let the workbench word it — not to humanize the token\n * where nobody can translate or reword it.\n */\n pulse: ({ count, parts, text }) => {\n const model = text(['revenueModel']);\n const plans = parts([[count('plans'), 'plan']]);\n return model && plans ? `${model} · ${plans}` : model ?? plans;\n },\n },\n [ApplicationSpecificationFamily.ROADMAP]: {\n title: 'Roadmap',\n description: 'The build order — phases, their objectives, and what each one delivers.',\n concern: WorkbenchSpecificationArtifactConcern.DELIVERY,\n pulse: ({ count, parts }) => parts([[count('phases'), 'phase']]),\n },\n [ApplicationSpecificationFamily.DOMAIN_PLAN]: {\n title: 'Domain plan',\n description: 'The domain model as planned — modules, their purposes, and the relationships between resources.',\n concern: WorkbenchSpecificationArtifactConcern.DELIVERY,\n pulse: ({ count, parts }) => parts([[count('modules'), 'module'], [count('relationships'), 'relationship']]),\n },\n [ApplicationSpecificationFamily.BUILD_PLAN]: {\n title: 'Build plan',\n description: 'The task graph the coding lane executes — objectives, targets and prerequisites.',\n concern: WorkbenchSpecificationArtifactConcern.DELIVERY,\n pulse: ({ count, parts }) => parts([[count('tasks'), 'task']]),\n },\n [ApplicationSpecificationFamily.PLACEMENT_PLAN]: {\n title: 'Placement plan',\n description: 'Where every destination sits in the application shell, and why.',\n concern: WorkbenchSpecificationArtifactConcern.DELIVERY,\n pulse: ({ count, parts }) => parts([[count('groups'), 'group'], [count('decisions'), 'decision']]),\n },\n [ApplicationSpecificationFamily.CAPABILITY_COMPOSITION]: {\n title: 'Composition',\n description: 'Which optional packages this application needs — website, documentation portal, workers — and the declaration each decision was read from.',\n /*\n * DELIVERY: the composition decides what the foundation composes, not what the product is — a\n * website follows from a market channel or a brand, never the other way round (#1491).\n */\n concern: WorkbenchSpecificationArtifactConcern.DELIVERY,\n pulse: ({ count, parts }) => parts([[count('scenarioDecisions'), 'decision']]),\n },\n [ApplicationSpecificationFamily.EXPERIENCE_PLAN]: {\n title: 'Experience',\n description: 'The surfaces this application carries beyond its generated screens, how its shell, navigation and palette are composed, and the milestones and guidance that carry a new person through it.',\n concern: WorkbenchSpecificationArtifactConcern.DELIVERY,\n pulse: ({ count, parts }) => parts([\n [count('views'), 'view'],\n [count('configurations'), 'configured surface'],\n [count('milestones'), 'milestone'],\n // \"guidance\" is uncountable; the entries are pieces of it.\n [count('guidance'), 'piece of guidance', 'pieces of guidance'],\n ]),\n },\n [ApplicationSpecificationFamily.APPLICATION_MATURITY]: {\n title: 'Where we stand',\n description: 'One row per requirement this application set itself, the evidence that exists for it, and the stage that follows. A measurement, never a verdict.',\n /*\n * DELIVERY: the reading is about what has been BUILT against what was asked, not about what the\n * product is. It is also the one artifact nobody authors — it is derived and re-derived.\n */\n concern: WorkbenchSpecificationArtifactConcern.DELIVERY,\n /* The STAGE first — it is the reading — with the population that produced it behind it. */\n pulse: ({ count, parts, text }) => {\n const stage = text(['stage']);\n const measured = parts([[count('requirements'), 'requirement']]);\n if (stage === null) return measured;\n return measured === null ? stage : `${stage} · ${measured}`;\n },\n },\n [ApplicationSpecificationFamily.INTEGRATION_PLAN]: {\n title: 'Background & integrations',\n description: 'What this application runs beside its backend — workers it delegates to, schedules that wake on their own — and the outside services it binds.',\n /* DELIVERY: a worker or a minion is part of what the product DOES, not of how it presents itself. */\n concern: WorkbenchSpecificationArtifactConcern.DELIVERY,\n pulse: ({ count, parts }) => parts([[count('workers'), 'worker'], [count('minions'), 'minion'], [count('providerBindings'), 'binding']]),\n },\n [ApplicationSpecificationFamily.DOCUMENTATION_PLAN]: {\n title: 'Documentation',\n description: 'The chapters the documentation portal carries, what each documents in this product, and who it is written for.',\n concern: WorkbenchSpecificationArtifactConcern.IDENTITY,\n pulse: ({ count, parts }) => parts([[count('chapters'), 'chapter']]),\n },\n [ApplicationSpecificationFamily.WEBSITE_PLAN]: {\n title: 'Website',\n description: 'What the marketing site says — its pages, the sections that carry each argument, and the market entries they draw on.',\n /* IDENTITY: the site is how the product presents itself, the same axis as the brand beside it. */\n concern: WorkbenchSpecificationArtifactConcern.IDENTITY,\n pulse: ({ count, parts }) => parts([[count('pages'), 'page']]),\n },\n [ApplicationSpecificationFamily.BRAND_BRIEF]: {\n title: 'Brand',\n description: 'How the product presents itself — name, logo direction and visual tone.',\n concern: WorkbenchSpecificationArtifactConcern.IDENTITY,\n /* The name, and the tagline only if there is a name to attach it to. */\n pulse: ({ text }) => {\n const name = text(['name', 'brandName']);\n const tagline = text(['name', 'tagline']);\n return name ? (tagline ? `${name} — ${tagline}` : name) : null;\n },\n },\n [ApplicationSpecificationFamily.COMPLIANCE_PROGRAM]: {\n title: 'Assurance programme',\n description: 'The controls this product commits to, and the authorities they answer.',\n concern: WorkbenchSpecificationArtifactConcern.OBLIGATIONS,\n pulse: ({ count, parts }) => parts([\n [count('roleAuthorities'), 'role authority', 'role authorities'],\n [count('capabilityAuthorities'), 'capability authority', 'capability authorities'],\n [count('implementationStatements'), 'implementation statement'],\n ]),\n },\n [ApplicationSpecificationFamily.COMPLIANCE_DOCUMENT_CANDIDATE]: {\n title: 'Governed-document drafts',\n description: 'Drafts of the public governed documents this product must publish.',\n concern: WorkbenchSpecificationArtifactConcern.OBLIGATIONS,\n pulse: ({ count, parts, text }) => {\n const title = text(['title']);\n const sections = parts([[count('sections'), 'section']]);\n return title ? (sections ? `${title} · ${sections}` : title) : sections;\n },\n },\n [ApplicationSpecificationFamily.COMPLIANCE_DOCUMENT_CANDIDATE_SET]: {\n title: 'Draft document collection',\n description: 'All the governed documents your application has drafted, kept together as each document evolves.',\n concern: WorkbenchSpecificationArtifactConcern.OBLIGATIONS,\n /*\n * AUTHORED 2026-09-19. This family had no arm in the switch and took its `default: return null`,\n * so a landed set rendered a card with nothing on it — the same card a family whose rule nobody\n * had written would render. How many documents are drafted is what a reader wants.\n */\n pulse: ({ count, parts }) => parts([[count('candidates'), 'drafted document']]),\n },\n [ApplicationSpecificationFamily.DOCUMENT_PUBLICATION]: {\n title: 'Document publication',\n description: 'Which locales and jurisdictions each governed document publishes in.',\n concern: WorkbenchSpecificationArtifactConcern.OBLIGATIONS,\n pulse: ({ count, parts }) => parts([[count('variants'), 'publication variant']]),\n },\n [ApplicationSpecificationFamily.DOCUMENT_RELEASE_POLICY]: {\n title: 'Document release policy',\n description: 'How each required document may be released — draft, attested, or reviewed.',\n concern: WorkbenchSpecificationArtifactConcern.OBLIGATIONS,\n pulse: ({ count, parts }) => parts([[count('selections'), 'selection']]),\n },\n [ApplicationSpecificationFamily.DOCUMENT_RELEASE_SET]: {\n title: 'Document releases',\n description: 'The document releases composed from your drafts, document definitions and release policies.',\n concern: WorkbenchSpecificationArtifactConcern.OBLIGATIONS,\n /* AUTHORED 2026-09-19 — the second family that fell through the switch's default. */\n pulse: ({ count, parts }) => parts([[count('releases'), 'release']]),\n },\n [ApplicationSpecificationFamily.DOCUMENT_FACTS]: {\n title: 'Document facts',\n description: 'The accepted raw facts governed documents are built from.',\n concern: WorkbenchSpecificationArtifactConcern.OBLIGATIONS,\n pulse: ({ count, parts }) => parts([[count('declarations'), 'declaration']]),\n },\n [ApplicationSpecificationFamily.DOCUMENT_FACTS_AUTHORED]: {\n title: 'Document facts you decide',\n description: 'The facts nobody can derive for you — the ones you decide or have reviewed.',\n concern: WorkbenchSpecificationArtifactConcern.OBLIGATIONS,\n /*\n * The same shape as the derived half, and deliberately its OWN rule rather than a shared switch\n * arm: the two families are separate precisely so a regeneration cannot reach the human's half,\n * and a shared line would be the first place they quietly became one thing again.\n */\n pulse: ({ count, parts }) => parts([[count('declarations'), 'declaration']]),\n },\n [ApplicationSpecificationFamily.PROCESSOR_REGISTER]: {\n title: 'Who else processes your data',\n description: 'Every vendor that handles your users\\' personal data, who they legally are, and where.',\n concern: WorkbenchSpecificationArtifactConcern.OBLIGATIONS,\n pulse: ({ count, parts }) => parts([[count('processors'), 'processor']]),\n },\n [ApplicationSpecificationFamily.RISK_REGISTER]: {\n title: 'What could go wrong',\n description: 'The risks this application carries, how bad each would be, and what you have decided to do about them.',\n /*\n * OBLIGATIONS, beside the programme rather than under it. A programme states which control\n * objectives the application CLAIMS; a register states which exposures it CARRIES. They inform\n * each other and answer different questions — the family schema argues the same split — so the\n * register belongs in the same concern and is not folded into the programme.\n */\n concern: WorkbenchSpecificationArtifactConcern.OBLIGATIONS,\n pulse: ({ count, parts }) => parts([[count('entries'), 'risk']]),\n },\n [ApplicationSpecificationFamily.CREATOR_INPUTS]: {\n title: 'What you told us',\n description: 'Your answers to the questions the creation steps asked — kept, so nothing asks twice.',\n /*\n * INTENT: the dossier is the creator's own words about the product, the same axis as the vision\n * they feed. It is the only family here that nobody PRODUCES, and its pulse counts answers rather\n * than an artifact's parts.\n */\n concern: WorkbenchSpecificationArtifactConcern.INTENT,\n pulse: ({ count, parts }) => parts([[count('answers'), 'answer']]),\n },\n [ApplicationSpecificationFamily.EXPERT_PERSONAS]: {\n title: 'Who reviews the work',\n description: 'The expert reviewers derived for this application — the panels that decide placement and judge the logo.',\n /*\n * DELIVERY: a charter is part of HOW the application gets built — the panels convene at placement and at\n * the logo step — not a statement about the product's intent, scope, identity or obligations (#572).\n * The landed value is the charter ARRAY, so the pulse counts the array itself: the aggregator exports\n * `ExpertPersonaCharter[]`, and a reader keyed on a top-level collection name would count nothing.\n */\n concern: WorkbenchSpecificationArtifactConcern.DELIVERY,\n pulse: ({ length, parts }) => parts([[length(), 'expert reviewer']]),\n },\n};\n\n/** The companion records a landing writes beside a family's own `index.ts`. */\n/**\n * The question a family answers — its CONCERN — for a family named by id, as the workbench groups\n * by it. A family this table does not know answers `UNCLASSIFIED`, the visible bucket, never a\n * plausible guess. Exported so the dossier groups its questions on the same axis the artifact list\n * groups its families (#1454, gap 4): one vocabulary for \"what is this about\".\n */\nexport function specificationFamilyConcern(family: string): WorkbenchSpecificationArtifactConcern {\n return (FAMILY_EDITORIAL as Readonly<Record<string, SpecificationFamilyEditorial | undefined>>)[family]?.concern ?? WorkbenchSpecificationArtifactConcern.UNCLASSIFIED;\n}\n\nconst DECISION_RECORD_FILE_NAME = 'DECISIONS.md';\nconst DIAGRAM_FILE_NAME = 'DIAGRAM.md';\n\n/** One family row, JSON-safe, matching `Workbench_SpecificationArtifact_Schema`. */\nexport interface SpecificationArtifactRow {\n readonly family: string;\n readonly title: string;\n /** Static per-family subtitle — see {@link FAMILY_DESCRIPTIONS}. */\n readonly description: string;\n /** One-line pulse of the landed content, `null` when nothing landed. See {@link deriveContentPulse}. */\n readonly contentSummary: string | null;\n readonly concern: WorkbenchSpecificationArtifactConcern;\n readonly state: WorkbenchSpecificationArtifactState;\n readonly schemaRef: string;\n readonly sourcePath: string | null;\n readonly errorCount: number;\n readonly warnCount: number;\n readonly producedByPlaybookRefs: string[];\n /**\n * The landed family value, RAW — exactly what the specifications package exports, never the\n * validator's parsed output (whose schema `.default()`s would inject content the author never\n * wrote). The workbench's per-family templates render from this; the markdown `document` beside\n * it is their structural fallback. `null` when the family has not landed.\n */\n readonly content: Record<string, unknown> | null;\n readonly document: string | null;\n readonly issues: string | null;\n /** The validator's warnings, structured — see `Workbench_SpecificationArtifact_Schema.warnings`. */\n readonly warnings: { readonly path: string; readonly message: string }[];\n readonly decisionRecord: string | null;\n readonly diagram: string | null;\n}\n\nexport interface SpecificationArtifactsResponse {\n readonly artifacts: SpecificationArtifactRow[];\n readonly trace: {\n readonly families: number;\n readonly landed: number;\n readonly invalid: number;\n readonly evaluatedAt: string;\n };\n}\n\n/**\n * Every playbook whose declared `outputs[].family` is `family`.\n *\n * The durable half of \"what produced this\": a fact about the compiled catalog, carried in git, true\n * whether or not any run's state still exists. A link to the RUN that produced a particular value was\n * deliberately not built — runs, traces and the write register are a per-run cache under\n * `one-source-of-truth.md` rule 5, so a durable artifact pointing into deletable state is dangling by\n * design. The link runs the other way: a run may name what it wrote.\n *\n * Built ONCE per derivation rather than per family: the catalog read is the same 21 files either way,\n * and looping it fifteen times would multiply the only file I/O in this behavior by fifteen.\n */\nfunction buildPlaybookRefsByFamily(): ReadonlyMap<string, string[]> {\n const byFamily = new Map<string, string[]>();\n for (const entry of listFrameworkKnowledgePlaybooks()) {\n const hydrated = getFrameworkKnowledgePlaybook(entry.ref);\n const outputs = (hydrated?.playbook as { outputs?: readonly { family?: unknown }[] } | undefined)?.outputs ?? [];\n for (const output of outputs) {\n if (typeof output?.family !== 'string' || output.family.length === 0) continue;\n const refs = byFamily.get(output.family) ?? [];\n if (!refs.includes(entry.ref)) refs.push(entry.ref);\n byFamily.set(output.family, refs);\n }\n }\n return byFamily;\n}\n\n/**\n * Read a markdown record committed beside a family, or `null`.\n *\n * `null` for an absent file is a FACT with a precise meaning, and the two files mean different things\n * by their absence: no `DIAGRAM.md` means this family has no diagram renderer, while no\n * `DECISIONS.md` means the run that produced it asked the creator nothing — never that no\n * clarification happened. The row's JSDoc carries that distinction to the reader; here both are just\n * a missing file.\n */\nfunction readCommittedRecord(packageRoot: string, familyRelativePath: string, fileName: string): string | null {\n const path = join(packageRoot, dirname(familyRelativePath), fileName);\n if (!existsSync(path)) return null;\n try {\n const content = readFileSync(path, 'utf8').trim();\n return content.length > 0 ? content : null;\n } catch {\n /*\n * A record that cannot be READ is reported as absent rather than failing the derivation. It is\n * supporting provenance beside the artifact, not the artifact — refusing the whole page because\n * one sibling file is unreadable would deny a reviewer the fifteen rows that are fine.\n */\n return null;\n }\n}\n\n/**\n * The validator's ERRORS, rendered for a reader, or `null` when there are none.\n *\n * An error says this artifact no longer satisfies its own contract, and a reviewer must meet it\n * before the prose — the page leads with this block. WARNINGS are not rendered here: they travel as\n * the structured `warnings` list, which the page shows in its own authored words at the foot.\n */\nfunction renderIssues(errorDetails: readonly string[]): string | null {\n if (errorDetails.length === 0) return null;\n const lines = [`**${errorDetails.length} error${errorDetails.length === 1 ? '' : 's'}** — the artifact does not satisfy its own contract.`, ''];\n for (const detail of errorDetails) lines.push(`- ${detail}`);\n return lines.join('\\n').trim();\n}\n\n/**\n * A one-line PULSE of what actually landed — the card's third line, beside the title and subtitle.\n *\n * Each family answers this for itself, in its own `pulse` rule beside its title and concern, because\n * what is worth saying about a landed value is a decision about THAT family: the vision's is its\n * one-liner, the market's is how many ICPs and personas, the brand's is the name and tagline. A\n * generic \"N keys\" would be true of all of them and useful for none.\n *\n * This used to be an eighteen-arm `switch` here, three declarations away from the titles and\n * concerns it belongs with. It is now one field of {@link SpecificationFamilyEditorial}; this\n * function is only the reader those rules are handed.\n *\n * It runs on the RAW landed value, never the validator's parsed output — a schema `.default()` would\n * otherwise inject content the author never wrote and the card would report it as landed. And it\n * runs for an INVALID family too, deliberately: a reader shown \"3 ICPs\" beside a red badge knows\n * more than one shown nothing.\n */\nfunction deriveContentPulse(family: ApplicationSpecificationFamily, snapshot: Record<string, unknown> | readonly unknown[]): string | null {\n const member = (key: string): unknown => (Array.isArray(snapshot) ? undefined : (snapshot as Record<string, unknown>)[key]);\n const read: FamilyPulseReader = {\n count: (key) => (Array.isArray(member(key)) ? (member(key) as unknown[]).length : 0),\n length: () => (Array.isArray(snapshot) ? snapshot.length : 0),\n text: (path) => {\n let value: unknown = snapshot;\n for (const key of path) {\n if (!value || typeof value !== 'object') return null;\n value = (value as Record<string, unknown>)[key];\n }\n return typeof value === 'string' && value.trim().length > 0 ? value.trim() : null;\n },\n parts: (entries) => {\n const present = entries\n .filter(([n]) => n > 0)\n .map(([n, singular, plural]) => `${n} ${n === 1 ? singular : plural ?? `${singular}s`}`);\n return present.length > 0 ? present.join(' · ') : null;\n },\n };\n return FAMILY_EDITORIAL[family].pulse(read);\n}\n\nfunction projectFamily(input: {\n readonly binding: ApplicationSpecificationSemanticSchemaBinding;\n readonly snapshot: unknown;\n readonly packageRoot: string;\n readonly appRelativePackagePrefix: string;\n readonly playbookRefsByFamily: ReadonlyMap<string, string[]>;\n}): SpecificationArtifactRow {\n const { binding, snapshot, packageRoot, appRelativePackagePrefix, playbookRefsByFamily } = input;\n const familyRelativePath = getFamilyPackageRelativePath(binding.family);\n /*\n * ONE lookup, and no fallback — `binding.family` is typed by the vocabulary and `FAMILY_EDITORIAL`\n * is total over it, so the three `?? binding.family` slug fallbacks this replaced are unreachable\n * by construction rather than guarded at runtime. A family with nothing authored cannot compile.\n */\n const editorial = FAMILY_EDITORIAL[binding.family];\n\n const base = {\n family: binding.family,\n title: editorial.title,\n description: editorial.description,\n concern: editorial.concern,\n schemaRef: binding.schemaRef,\n sourcePath: familyRelativePath ? `${appRelativePackagePrefix}/${familyRelativePath}` : null,\n producedByPlaybookRefs: [...(playbookRefsByFamily.get(binding.family) ?? [])],\n };\n\n if (snapshot === undefined || snapshot === null) {\n return {\n ...base,\n state: WorkbenchSpecificationArtifactState.NOT_LANDED,\n errorCount: 0,\n warnCount: 0,\n contentSummary: null,\n content: null,\n document: null,\n issues: null,\n warnings: [],\n decisionRecord: null,\n diagram: null,\n };\n }\n\n const validation = binding.validate(snapshot);\n return {\n ...base,\n state: validation.validation === JourneyArtifactValidationState.VALID\n ? WorkbenchSpecificationArtifactState.LANDED_VALID\n : WorkbenchSpecificationArtifactState.LANDED_INVALID,\n errorCount: validation.errorCount,\n warnCount: validation.warnCount,\n // An ARRAY landed value has a pulse too (the charter set: \"5 expert reviewers\"); only a non-object has none.\n contentSummary: typeof snapshot === 'object' && snapshot !== null\n ? deriveContentPulse(binding.family, snapshot as Record<string, unknown> | readonly unknown[])\n : null,\n /*\n * Both carried from the RAW snapshot, not from the validator's parsed output. The validator\n * parses with the family schema, whose `.default()` members would inject values the author never\n * wrote — a reviewer would then be shown, and could accept, content nobody authored. Mutation-\n * proven on the `document` half (parsed-value render reddens the raw-value pin); `content`\n * follows the same rule for the same reason.\n *\n * Every family binding's `snapshotSchema` is an object EXCEPT `expert-personas`, whose landed value\n * is the charter ARRAY (#572). The row schema types `content` as a record, so an array family carries\n * `content: null` deliberately and is read through its pulse and the review document; anything else\n * non-object is reported rather than smuggled through as a shape the row schema would refuse.\n */\n content: typeof snapshot === 'object' && !Array.isArray(snapshot) ? snapshot as Record<string, unknown> : null,\n document: renderSpecificationFamilyReviewDocument({ title: editorial.title, value: snapshot }),\n issues: renderIssues(validation.errorDetails),\n warnings: validation.warnings.map(({ path, message }) => ({ path, message })),\n decisionRecord: familyRelativePath\n ? readCommittedRecord(packageRoot, familyRelativePath, DECISION_RECORD_FILE_NAME)\n : null,\n diagram: familyRelativePath\n ? readCommittedRecord(packageRoot, familyRelativePath, DIAGRAM_FILE_NAME)\n : null,\n };\n}\n\n/**\n * Project every application-specification family for a human reviewer.\n *\n * `packageRoot` is the specifications package's absolute root, and `appRelativePackagePrefix` its\n * directory name relative to the application — so a row can name a path a reader recognizes\n * (`specifications/src/vision/index.ts`) rather than one that only makes sense inside the package.\n */\nexport function projectSpecificationArtifacts(input: {\n readonly moduleExports: Record<string, unknown>;\n readonly packageRoot: string;\n readonly appRelativePackagePrefix: string;\n readonly evaluatedAt: string;\n}): SpecificationArtifactsResponse {\n const companionExports = resolveSpecificationsCompanionExports(input.moduleExports) as unknown as Record<string, unknown>;\n const playbookRefsByFamily = buildPlaybookRefsByFamily();\n\n const artifacts = APPLICATION_SPECIFICATION_SEMANTIC_SCHEMA_BINDINGS.map((binding) =>\n projectFamily({\n binding,\n /*\n * A family with no `companionExportsField` is a DRAFT — it is not accepted application truth\n * and has no slot to read (`compliance-document-candidate`). It is reported as NOT_LANDED\n * rather than skipped, for the same reason absent families are rows at all: an omitted row and\n * a family that does not exist look identical to a reader.\n */\n snapshot: binding.companionExportsField === undefined\n ? undefined\n : companionExports[binding.companionExportsField],\n packageRoot: input.packageRoot,\n appRelativePackagePrefix: input.appRelativePackagePrefix,\n playbookRefsByFamily,\n }),\n );\n\n return {\n artifacts,\n trace: {\n families: artifacts.length,\n landed: artifacts.filter((artifact) => artifact.state !== WorkbenchSpecificationArtifactState.NOT_LANDED).length,\n invalid: artifacts.filter((artifact) => artifact.state === WorkbenchSpecificationArtifactState.LANDED_INVALID).length,\n evaluatedAt: input.evaluatedAt,\n },\n };\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Record where this companion listens, for the console's fast readers (#1657).
|
|
3
|
+
*
|
|
4
|
+
* Best-effort BY DESIGN: the record is a convenience for a hook and a status line, and a companion that
|
|
5
|
+
* cannot write it still serves every request. A failure is returned for the caller to log, never thrown.
|
|
6
|
+
*/
|
|
7
|
+
export declare function recordCompanionEndpoint(saasRoot: string, origin: string): string | null;
|
|
8
|
+
//# sourceMappingURL=companion-endpoint-record.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"companion-endpoint-record.d.ts","sourceRoot":"","sources":["../../../../../src/core/runtime/companion-endpoint-record.ts"],"names":[],"mappings":"AAMA;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAUvF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { mkdirSync, writeFileSync } from 'node:fs';
|
|
2
|
+
import { join } from 'node:path';
|
|
3
|
+
import { resolveAppLayout } from '@wildo-ai/platform-config-lib';
|
|
4
|
+
import { COMPANION_ENDPOINT_FILE_NAME } from '@wildo-ai/platform-core-shared';
|
|
5
|
+
/**
|
|
6
|
+
* Record where this companion listens, for the console's fast readers (#1657).
|
|
7
|
+
*
|
|
8
|
+
* Best-effort BY DESIGN: the record is a convenience for a hook and a status line, and a companion that
|
|
9
|
+
* cannot write it still serves every request. A failure is returned for the caller to log, never thrown.
|
|
10
|
+
*/
|
|
11
|
+
export function recordCompanionEndpoint(saasRoot, origin) {
|
|
12
|
+
try {
|
|
13
|
+
const stateHome = resolveAppLayout(saasRoot).stateHome;
|
|
14
|
+
mkdirSync(stateHome, { recursive: true });
|
|
15
|
+
const record = { origin, pid: process.pid, startedAt: new Date().toISOString() };
|
|
16
|
+
writeFileSync(join(stateHome, COMPANION_ENDPOINT_FILE_NAME), `${JSON.stringify(record, null, 2)}\n`);
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
catch (error) {
|
|
20
|
+
return error instanceof Error ? error.message : String(error);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=companion-endpoint-record.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"companion-endpoint-record.js","sourceRoot":"","sources":["../../../../../src/core/runtime/companion-endpoint-record.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,4BAA4B,EAAgC,MAAM,gCAAgC,CAAC;AAE5G;;;;;GAKG;AACH,MAAM,UAAU,uBAAuB,CAAC,QAAgB,EAAE,MAAc;IACtE,IAAI,CAAC;QACH,MAAM,SAAS,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC;QACvD,SAAS,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAC1C,MAAM,MAAM,GAA4B,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC;QAC1G,aAAa,CAAC,IAAI,CAAC,SAAS,EAAE,4BAA4B,CAAC,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;QACrG,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAChE,CAAC;AACH,CAAC","sourcesContent":["import { mkdirSync, writeFileSync } from 'node:fs';\nimport { join } from 'node:path';\n\nimport { resolveAppLayout } from '@wildo-ai/platform-config-lib';\nimport { COMPANION_ENDPOINT_FILE_NAME, type CompanionEndpointRecord } from '@wildo-ai/platform-core-shared';\n\n/**\n * Record where this companion listens, for the console's fast readers (#1657).\n *\n * Best-effort BY DESIGN: the record is a convenience for a hook and a status line, and a companion that\n * cannot write it still serves every request. A failure is returned for the caller to log, never thrown.\n */\nexport function recordCompanionEndpoint(saasRoot: string, origin: string): string | null {\n try {\n const stateHome = resolveAppLayout(saasRoot).stateHome;\n mkdirSync(stateHome, { recursive: true });\n const record: CompanionEndpointRecord = { origin, pid: process.pid, startedAt: new Date().toISOString() };\n writeFileSync(join(stateHome, COMPANION_ENDPOINT_FILE_NAME), `${JSON.stringify(record, null, 2)}\\n`);\n return null;\n } catch (error) {\n return error instanceof Error ? error.message : String(error);\n }\n}\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The companion's package root: the nearest directory above `fromDirectory` holding a `package.json`.
|
|
3
|
+
*
|
|
4
|
+
* Anchored on the manifest rather than on a relative hop, because the hop differs by layout: this module is
|
|
5
|
+
* `src/core/runtime/` in the source tree and `dist/esm/core/runtime/` in the delivered companion, so a fixed
|
|
6
|
+
* `../../../.env` named the package root in one and `dist/.env` in the other. The #1637 review found the
|
|
7
|
+
* delivered companion resolving that `dist/.env`, which does not exist — while the file `config sync` writes,
|
|
8
|
+
* and the one the supervisor starts the companion beside (`--cwd <package root>`), is `<package root>/.env`.
|
|
9
|
+
*/
|
|
10
|
+
export declare function resolveCompanionPackageRoot(fromDirectory?: string): string;
|
|
11
|
+
/**
|
|
12
|
+
* The environment file the companion loads at start: `<package root>/.env`, written by
|
|
13
|
+
* `wildo config sync --domain env-files`. ONE definition, read by the entry point and by the in-process
|
|
14
|
+
* secret apply below, so the two cannot disagree about which file a restart would load.
|
|
15
|
+
*/
|
|
16
|
+
export declare const COMPANION_ENV_FILE_PATH: string;
|
|
17
|
+
/**
|
|
18
|
+
* Apply one variable of the companion's REGENERATED `.env` to this process, as a restart would (#1637).
|
|
19
|
+
*
|
|
20
|
+
* The workbench changes a secret through a request this process serves, so restarting the companion
|
|
21
|
+
* would end that request and any coding or playbook run in flight. Provider secrets are read from
|
|
22
|
+
* `process.env` at call time (`ExternalProvidersRegistryBackendService.getProviderSecret`), so setting the
|
|
23
|
+
* variable is enough for the next call to use it. The value is read back from the file `config sync`
|
|
24
|
+
* just wrote — the exact bytes a restart would load — rather than from the request, so a key the
|
|
25
|
+
* companion's scope does not receive (the env builder confines it) is removed here too, never injected.
|
|
26
|
+
*
|
|
27
|
+
* Returns whether the variable is now present.
|
|
28
|
+
*/
|
|
29
|
+
export declare function applyCompanionEnvVariable(envVarName: string, envFilePath?: string): boolean;
|
|
30
|
+
//# sourceMappingURL=companion-env-file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"companion-env-file.d.ts","sourceRoot":"","sources":["../../../../../src/core/runtime/companion-env-file.ts"],"names":[],"mappings":"AAMA;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,CAAC,aAAa,GAAE,MAAqD,GAAG,MAAM,CAQxH;AAED;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,QAAmD,CAAC;AAExF;;;;;;;;;;;GAWG;AACH,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,GAAE,MAAgC,GAAG,OAAO,CASpH"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
4
|
+
import dotenv from 'dotenv';
|
|
5
|
+
/**
|
|
6
|
+
* The companion's package root: the nearest directory above `fromDirectory` holding a `package.json`.
|
|
7
|
+
*
|
|
8
|
+
* Anchored on the manifest rather than on a relative hop, because the hop differs by layout: this module is
|
|
9
|
+
* `src/core/runtime/` in the source tree and `dist/esm/core/runtime/` in the delivered companion, so a fixed
|
|
10
|
+
* `../../../.env` named the package root in one and `dist/.env` in the other. The #1637 review found the
|
|
11
|
+
* delivered companion resolving that `dist/.env`, which does not exist — while the file `config sync` writes,
|
|
12
|
+
* and the one the supervisor starts the companion beside (`--cwd <package root>`), is `<package root>/.env`.
|
|
13
|
+
*/
|
|
14
|
+
export function resolveCompanionPackageRoot(fromDirectory = path.dirname(fileURLToPath(import.meta.url))) {
|
|
15
|
+
let directory = fromDirectory;
|
|
16
|
+
for (;;) {
|
|
17
|
+
if (existsSync(path.join(directory, 'package.json')))
|
|
18
|
+
return directory;
|
|
19
|
+
const parent = path.dirname(directory);
|
|
20
|
+
if (parent === directory)
|
|
21
|
+
throw new Error(`No package.json above ${fromDirectory}: the companion's package root cannot be found.`);
|
|
22
|
+
directory = parent;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The environment file the companion loads at start: `<package root>/.env`, written by
|
|
27
|
+
* `wildo config sync --domain env-files`. ONE definition, read by the entry point and by the in-process
|
|
28
|
+
* secret apply below, so the two cannot disagree about which file a restart would load.
|
|
29
|
+
*/
|
|
30
|
+
export const COMPANION_ENV_FILE_PATH = path.join(resolveCompanionPackageRoot(), '.env');
|
|
31
|
+
/**
|
|
32
|
+
* Apply one variable of the companion's REGENERATED `.env` to this process, as a restart would (#1637).
|
|
33
|
+
*
|
|
34
|
+
* The workbench changes a secret through a request this process serves, so restarting the companion
|
|
35
|
+
* would end that request and any coding or playbook run in flight. Provider secrets are read from
|
|
36
|
+
* `process.env` at call time (`ExternalProvidersRegistryBackendService.getProviderSecret`), so setting the
|
|
37
|
+
* variable is enough for the next call to use it. The value is read back from the file `config sync`
|
|
38
|
+
* just wrote — the exact bytes a restart would load — rather than from the request, so a key the
|
|
39
|
+
* companion's scope does not receive (the env builder confines it) is removed here too, never injected.
|
|
40
|
+
*
|
|
41
|
+
* Returns whether the variable is now present.
|
|
42
|
+
*/
|
|
43
|
+
export function applyCompanionEnvVariable(envVarName, envFilePath = COMPANION_ENV_FILE_PATH) {
|
|
44
|
+
const parsed = dotenv.parse(readFileSync(envFilePath, 'utf8'));
|
|
45
|
+
const value = parsed[envVarName];
|
|
46
|
+
if (value === undefined || value.length === 0) {
|
|
47
|
+
delete process.env[envVarName];
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
process.env[envVarName] = value;
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=companion-env-file.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"companion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,CAAC,CAAC;QAC/B,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC;IAChC,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["import { existsSync, readFileSync } from 'node:fs';\nimport path from 'node:path';\nimport { fileURLToPath } from 'node:url';\n\nimport dotenv from 'dotenv';\n\n/**\n * The companion's package root: the nearest directory above `fromDirectory` holding a `package.json`.\n *\n * Anchored on the manifest rather than on a relative hop, because the hop differs by layout: this module is\n * `src/core/runtime/` in the source tree and `dist/esm/core/runtime/` in the delivered companion, so a fixed\n * `../../../.env` named the package root in one and `dist/.env` in the other. The #1637 review found the\n * delivered companion resolving that `dist/.env`, which does not exist — while the file `config sync` writes,\n * and the one the supervisor starts the companion beside (`--cwd <package root>`), is `<package root>/.env`.\n */\nexport function resolveCompanionPackageRoot(fromDirectory: string = path.dirname(fileURLToPath(import.meta.url))): string {\n let directory = fromDirectory;\n for (;;) {\n if (existsSync(path.join(directory, 'package.json'))) return directory;\n const parent = path.dirname(directory);\n if (parent === directory) throw new Error(`No package.json above ${fromDirectory}: the companion's package root cannot be found.`);\n directory = parent;\n }\n}\n\n/**\n * The environment file the companion loads at start: `<package root>/.env`, written by\n * `wildo config sync --domain env-files`. ONE definition, read by the entry point and by the in-process\n * secret apply below, so the two cannot disagree about which file a restart would load.\n */\nexport const COMPANION_ENV_FILE_PATH = path.join(resolveCompanionPackageRoot(), '.env');\n\n/**\n * Apply one variable of the companion's REGENERATED `.env` to this process, as a restart would (#1637).\n *\n * The workbench changes a secret through a request this process serves, so restarting the companion\n * would end that request and any coding or playbook run in flight. Provider secrets are read from\n * `process.env` at call time (`ExternalProvidersRegistryBackendService.getProviderSecret`), so setting the\n * variable is enough for the next call to use it. The value is read back from the file `config sync`\n * just wrote — the exact bytes a restart would load — rather than from the request, so a key the\n * companion's scope does not receive (the env builder confines it) is removed here too, never injected.\n *\n * Returns whether the variable is now present.\n */\nexport function applyCompanionEnvVariable(envVarName: string, envFilePath: string = COMPANION_ENV_FILE_PATH): boolean {\n const parsed = dotenv.parse(readFileSync(envFilePath, 'utf8'));\n const value = parsed[envVarName];\n if (value === undefined || value.length === 0) {\n delete process.env[envVarName];\n return false;\n }\n process.env[envVarName] = value;\n return true;\n}\n"]}
|
|
@@ -76,6 +76,11 @@ export declare function isInfrastructureShapedAgentFailure(message: string): boo
|
|
|
76
76
|
* - `ACP agent error -32603: Internal error: Failed to authenticate: OAuth session expired and
|
|
77
77
|
* could not be refreshed` (2026-09-04, first iteration of the relaunch — the interactive shell
|
|
78
78
|
* refreshed the same login fine minutes later; the minimal-env child could not)
|
|
79
|
+
* - `ACP agent error -32000: Authentication required` — adapter 0.81.1 with NO login at all. Reproduced
|
|
80
|
+
* 2026-09-25 against an empty `CLAUDE_CONFIG_DIR`: `initialize` and `session/new` succeed (the adapter
|
|
81
|
+
* advertises no `authMethods`), and the first `session/prompt` answers JSON-RPC `-32000`. Until this
|
|
82
|
+
* line, that failure was charged to the TASK and spent its attempt budget (#1637 R7). The code is
|
|
83
|
+
* pinned together with the words because `-32000` alone is the generic server-error code.
|
|
79
84
|
*/
|
|
80
85
|
export declare function isProviderAccountAgentFailure(message: string): boolean;
|
|
81
86
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-compile-quiet.companion.d.ts","sourceRoot":"","sources":["../../../../../src/core/runtime/dev-compile-quiet.companion.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dev-compile-quiet.companion.d.ts","sourceRoot":"","sources":["../../../../../src/core/runtime/dev-compile-quiet.companion.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,WAAW,eAAe;IAC9B,oFAAoF;IACpF,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,mFAAmF;IACnF,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;CAC1C;AAID,wB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
2
3
|
import { join } from 'node:path';
|
|
3
4
|
const DEV_COMPILE_STATUS_RELATIVE_PATH = '.wildo-runtime-signals/dev-compile-status.json';
|
|
@@ -88,14 +89,24 @@ export function isInfrastructureShapedAgentFailure(message) {
|
|
|
88
89
|
* - `ACP agent error -32603: Internal error: Failed to authenticate: OAuth session expired and
|
|
89
90
|
* could not be refreshed` (2026-09-04, first iteration of the relaunch — the interactive shell
|
|
90
91
|
* refreshed the same login fine minutes later; the minimal-env child could not)
|
|
92
|
+
* - `ACP agent error -32000: Authentication required` — adapter 0.81.1 with NO login at all. Reproduced
|
|
93
|
+
* 2026-09-25 against an empty `CLAUDE_CONFIG_DIR`: `initialize` and `session/new` succeed (the adapter
|
|
94
|
+
* advertises no `authMethods`), and the first `session/prompt` answers JSON-RPC `-32000`. Until this
|
|
95
|
+
* line, that failure was charged to the TASK and spent its attempt budget (#1637 R7). The code is
|
|
96
|
+
* pinned together with the words because `-32000` alone is the generic server-error code.
|
|
91
97
|
*/
|
|
92
98
|
export function isProviderAccountAgentFailure(message) {
|
|
99
|
+
// Refused BEFORE a session opened: the engine read the agent's own login status and found none.
|
|
100
|
+
if (message.startsWith(CODING_AGENT_NOT_SIGNED_IN_MESSAGE_PREFIX))
|
|
101
|
+
return true;
|
|
93
102
|
if (!/ACP agent error/.test(message))
|
|
94
103
|
return false;
|
|
95
104
|
if (/(session limit|usage limit|hit your \S* ?limit)/i.test(message))
|
|
96
105
|
return true;
|
|
97
106
|
if (/Failed to authenticate|OAuth session expired/i.test(message))
|
|
98
107
|
return true;
|
|
108
|
+
if (/-32000/.test(message) && /Authentication required/i.test(message))
|
|
109
|
+
return true;
|
|
99
110
|
return false;
|
|
100
111
|
}
|
|
101
112
|
/**
|