@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companion-introspection.models.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/models/companion-introspection.models.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,gBAAgB,CAAU,CAAC;AAGzG,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,SAAS,EAAE,UAAU,CAAU,CAAC;AAGxF,MAAM,CAAC,MAAM,sCAAsC,GAAG;IACpD,oBAAoB;IACpB,+BAA+B;IAC/B,yBAAyB;IACzB,kCAAkC;IAClC,6BAA6B;IAC7B,mBAAmB;IACnB,6BAA6B;IAC7B,yBAAyB;IACzB,6BAA6B;IAC7B,uBAAuB;IACvB,4BAA4B;IAC5B,wBAAwB;IACxB,sBAAsB;IACtB;;;;;;;;;;;;;;;;OAgBG;IACH,0BAA0B;IAC1B;;;;;;;OAOG;IACH,yBAAyB;IACzB;;;;;;;;;;OAUG;IACH,4BAA4B;IAC5B;;;;;;;;;;;;;OAaG;IACH,6BAA6B;IAC7B;;;;;;;;;;;;;;;;OAgBG;IACH,iBAAiB;IACjB,oBAAoB;IACpB,sBAAsB;IACtB;;;;;;;;;;OAUG;IACH,2BAA2B;IAC3B;;;;;;;;OAQG;IACH,qBAAqB;IACrB;;;;;;;;;;OAUG;IACH,kCAAkC;IAClC;;;;;;OAMG;IACH,yBAAyB;IACzB;;;;;;;;;;;;;;OAcG;IACH,0BAA0B;IAC1B;;;;;;;;;;;;;;;;OAgBG;IACH,cAAc;IACd;;;;;;;;;;OAUG;IACH,0BAA0B;IAC1B;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,yBAAyB;IACzB,gBAAgB;IAChB;;;OAGG;IACH,wBAAwB;CAChB,CAAC;AAGX;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,yCAAyC,GAAG,mCAAmC,CAAC;AAE7F,4FAA4F;AAC5F,MAAM,OAAO,iCAAkC,SAAQ,KAAK;IAC1D,YAAmB,OAAe;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,yCAAyC,CAAC;IACxD,CAAC;CACF;AAED,MAAM,CAAC,MAAM,4CAA4C,GAAG;IAC1D,WAAW;IACX,aAAa;IACb,OAAO;IACP,wBAAwB;IACxB,QAAQ;IACR,gBAAgB;IAChB,QAAQ;IACR,OAAO;IACP,iBAAiB;IACjB,eAAe;IACf,QAAQ;IACR,YAAY;CACJ,CAAC;AAIX,MAAM,CAAC,MAAM,+CAA+C,GAAG;IAC7D,eAAe;IACf,eAAe;CACP,CAAC","sourcesContent":["export const CompanionIntrospectionRouteTargetValues = ['service', 'library', 'specifications'] as const;\nexport type CompanionIntrospectionRouteTargetId = typeof CompanionIntrospectionRouteTargetValues[number];\n\nexport const CompanionIntrospectionServiceKindValues = ['backend', 'frontend'] as const;\nexport type CompanionIntrospectionServiceKind = typeof CompanionIntrospectionServiceKindValues[number];\n\nexport const CompanionIntrospectionBehaviorIdValues = [\n 'resources-registry',\n 'email-template-placement-info',\n 'translation-needed-info',\n 'frontend-artifact-placement-info',\n 'design-system-source-config',\n 'design-tokens-css',\n 'frontend-labels-needed-info',\n 'resource-specifications',\n 'specification-context-parts',\n 'catalog-context-parts',\n 'market-context-for-feature',\n 'market-context-for-icp',\n 'market-render-prompt',\n /**\n * Technical-documentation OpenAPI generator input projection\n * (`saas-technical-doc.md` Step 3b). Walks the resolved\n * `ResourcesRegistry` in the backend subprocess, materializes every\n * resource configuration, runs the URL builder so per-operation\n * `initiatorInfos[].url` are populated, and projects each\n * `(operation × initiatorInfo)` row into the\n * `OpenApiGenerationInputSchema` shape declared in\n * `@wildo-ai/saas-technical-doc/companion`.\n *\n * Why subprocess-side: the projection runs `z.toJSONSchema(...)` on\n * each operation's `requestDto` / `responseDto`, which requires\n * loading `@wildo-ai/saas-models` (and its `initZodDecorators()`\n * boot). Doing this in the subprocess keeps the parent companion\n * bundle decorator-framework-free per `saas-models-public-runtime.md`\n * K-3.\n */\n 'openapi-generation-input',\n /**\n * Frontend chart-registration refs — every `chartViews[].chartDefinition.ref`\n * across the app's resources, materialized in the FRONTEND subprocess. The\n * parent composes these with the backend-registered chart refs to detect a\n * frontend chartView whose chart is not registered backend-side (a silent\n * runtime `chart_not_found` 404). Kept separate from `frontend-labels-needed-info`\n * so chart-registration data does not thread through the labelling pipeline.\n */\n 'chart-registration-refs',\n /**\n * The application's authored settings rail, verified against the engine destination\n * catalog in the FRONTEND subprocess (fresh working-tree import).\n *\n * Exists for a failure that is silent by construction: a placement naming a\n * `destinationRef` the catalog does not ship is not a type error —\n * `resolveSettingsHubConfig` DROPS it and the section simply never renders. So a\n * `SHELL_PLACEMENT` coding task can pass `check:app-typecheck`, report verified, and\n * leave the application missing a settings section nobody is told about. Same class\n * as the FK-resolution sweep, and answered the same way: ask the working tree.\n */\n 'settings-placement-content',\n /**\n * What the application's shell actually COMPOSES, per placement surface (sidebar, user\n * dropdown, command palette), read from the RESOLVED configuration in the frontend subprocess.\n *\n * Exists because a `SHELL_PLACEMENT` task's product cannot be witnessed by text. Its declared\n * products are PLACEMENT-PLAN refs, which nothing in the tree is obliged to spell and nothing\n * does; and the `wildo init` scaffold already writes every shell key and hosts the same\n * components, so a built application differs from a fresh one in the CONTENT of those\n * structures and never in which symbols appear. Only the resolved merge separates them.\n *\n * Reports one row per surface and no verdict: an application composes at least one surface and\n * deliberately not all, so which ones is a product decision the CALLER asserts against.\n * `SETTINGS_HUB`, the fourth placement surface, is answered by `settings-placement-content`.\n */\n 'app-shell-placement-content',\n /**\n * Assertion Surface behaviors (app-creation meta-workflows, master\n * plan S1). Serve the authored `AssertionSpecificationSnapshot` from\n * the specifications target:\n *\n * - `assertions-list` — authored entries, filtered by lane / kind\n * (pure projection; no live registry).\n * - `assertions-resolve` — entries plus live probe findings derived\n * at query time against the resources registry (requires the\n * `library` target); the parent composes LLM interpretation on top.\n * - `assertions-reconcile` — computes per-entry status\n * (assumed → landed → drifted / unverifiable) by diffing authored\n * assumptions against introspected reality (requires `library`).\n *\n * Kebab-case string-tuple ids (the introspection plane convention —\n * one behavior id per operation, no `input.op` discriminator).\n */\n 'assertions-list',\n 'assertions-resolve',\n 'assertions-reconcile',\n /**\n * Top-down **definition-specifications** projection (app-creation\n * meta-workflows, journey-buildout GAP-D1-9). Serves the presence +\n * structural validity + cross-family coherence of the authored C-4\n * definition set (`vision-brief` / `market-snapshot` / `requirements` /\n * `roadmap` / `business-model`) off the specifications target's companion\n * exports. Runs each family's `_core` validator (shared with the\n * journey-snapshot per-artifact validation seam) as a durable load-time\n * guard — an ERROR or an unresolved cross-family ref fails closed instead of\n * shipping silently. Pure/deterministic; no live registry, no LLM.\n */\n 'definition-specifications',\n /**\n * Brand logo-generation prompt assembly (app-creation meta-workflows —\n * brand-identity). Reads the authored `BrandSnapshot` off the specifications\n * target's companion exports, validates it (`validateBrandSnapshot`), and\n * assembles the text-to-image prompt (brand name + logo direction + visual\n * tone, optionally enriched by the market `tonesOfVoice`). Pure/deterministic\n * — no image call here; the parent `LogoGenerationCompanionService` invokes\n * the image agent with the returned prompt.\n */\n 'brand-render-prompt',\n /**\n * Expert-persona DERIVATION INPUTS projection (agentic deliberation\n * system, Step 2). Resolves the specification-tier snapshots a role's\n * charter derivation is shaped by (`shapingInputKinds` of the framework\n * `ExpertRoleTemplate`: vision / market / brand / requirements /\n * business-model / accepted-decisions), returning the resolved subset plus\n * the kinds that are missing (the parent derivation service fails closed\n * on missing kinds) and the kinds this target cannot resolve\n * (DESIGN_SYSTEM — the parent composes it from the frontend\n * `design-system-source-config` behavior). Pure/deterministic; no LLM.\n */\n 'expert-persona-derivation-inputs',\n /**\n * Committed expert-persona CHARTERS read-back (agentic deliberation\n * system). Serves the app's `expertPersonaCharters` companion export\n * (the accepted charters under `specifications/src/personas/`) — consumed\n * by the accept step's human-edit overwrite guard + validator run, and by\n * the deliberation system's startup agent factory. Pure/deterministic.\n */\n 'expert-persona-charters',\n /**\n * **compliance-primary-facts** — what a compliance document can say about this application,\n * derived from its resource configurations.\n *\n * Reads the five compliance-bearing declarations off every materialized resource\n * (`retentionPolicy.mode`, `dataSubjectPolicy.kind`, `systemAccessPolicy.exportSubject` and the\n * two retained see-through verbs) and reports them split by ORIGIN — engine-declared versus\n * application-declared. The split is the finding: the engine already answers most of a privacy\n * notice for every generated application, and what it cannot answer is the application's own\n * domain data about third parties, which is most of what such a notice exists to describe.\n *\n * Needs the `library` target (resource CONFIGS live in the app's shared-lib; the specifications\n * target carries SPECS, which do not hold these fields). Pure/deterministic, and modelless by\n * construction — every value is a lookup of a declaration already written down.\n */\n 'compliance-primary-facts',\n /**\n * **risk-signals** — the two DERIVED risk-signal families that need materialized resources: which\n * personal-data categories this application's OWN schemas declare, and how many operations are\n * reachable by an external agent over MCP (#1435).\n *\n * Returns INPUTS, never signals. The observation sentences live in the engine\n * (`application-risk-signals.derivations.ts`), so the assurance report and the `top_down.risk-register`\n * brief read one wording of one measurement rather than two that drift.\n *\n * The OTHER four application-time signals are deliberately NOT here: the capability surface, the\n * retention declarations and the provider hosting are pure functions of `wildo.saas.config.ts`,\n * which the companion already holds, so putting them behind a subprocess would spend a process to\n * read a value already in memory.\n *\n * Needs the `library` target, like `compliance-primary-facts` above and for the same reason:\n * resource CONFIGS live in the app's shared-lib. Pure/deterministic and modelless by construction.\n */\n 'risk-signals',\n /**\n * **application-domain-model** — the observed application's resources, the module that owns each,\n * the relationships they participate in, and the prose of their specifications, in ONE projection.\n *\n * Needs BOTH targets, which is the whole point: module ownership and the specification overlay live\n * on the `specifications` target, the relationship edges on the `library` one. Reading them through\n * the two behaviors that already answer half each (`resource-specifications`, `resources-registry`)\n * means two subprocess runs against a working tree an operator is editing, so the nodes may come\n * from one state of the application and the edges from the next — a picture of an application that\n * never existed, with nothing to detect it.\n */\n 'application-domain-model',\n /**\n * **specification-artifacts** — every application-specification family the journey produces,\n * projected for a HUMAN reviewer rather than for a language model.\n *\n * The companion already reads this content: `market-context-for-icp`, `market-render-prompt`,\n * `brand-render-prompt`, `specification-context-parts` and their siblings all resolve the same\n * authored snapshots — and every one of them renders PROSE FOR A MODEL. The loading and resolution\n * paths were proven; the projection whose consumer is an operator did not exist, so a creator could\n * not review what the journey had decided about their product without opening TypeScript files\n * (issue #162).\n *\n * Enumerates `APPLICATION_SPECIFICATION_SEMANTIC_SCHEMA_BINDINGS` — so the population cannot drift\n * from the authority — and, per family, reports whether it landed, whether its own `_core`\n * validator still passes, which playbooks produce it, and the artifact rendered as a document.\n *\n * ## Where it deliberately differs from `definition-specifications`\n *\n * That behavior THROWS on any ERROR-severity structural issue, which is correct for a load-time\n * guard and exactly wrong here: it would make an invalid artifact the one thing a reviewer cannot\n * look at, at the moment they most need to. This one REPORTS. Both run the same validators through\n * the same authority, so they cannot disagree about what is valid — only about what to do about it.\n *\n * Pure/deterministic and modelless. `specifications` target only: every family's accepted value is\n * a companion export of that package.\n */\n 'specification-artifacts',\n 'family-aspects',\n /**\n * **specification-elements** — MAP, GET and RELATED over the decided elements, parameterised (#1418).\n * The pull door for tool-bearing agents; `family-aspects` stays the workbench's full dump.\n */\n 'specification-elements',\n] as const;\nexport type CompanionIntrospectionBehaviorId = typeof CompanionIntrospectionBehaviorIdValues[number];\n\n/**\n * The error name a behavior throws when the CALLER's input is wrong — refused, not broken (#1418).\n *\n * The controller maps it to a 400 carrying the message, so the refusal a handler wrote (\"`get` takes\n * `refs` OR `aspectKeys`\") reaches the caller. Without it a bad input answered 500 INTERNAL, sanitized\n * to nothing, and the CLI then suggested the companion might be down — measured on the first live run of\n * `wildo context elements` (#1459). The name travels as a string across the subprocess boundary, which\n * is why the contract is a name rather than a class the parent must import.\n */\nexport const INTROSPECTION_INPUT_VALIDATION_ERROR_NAME = 'IntrospectionInputValidationError';\n\n/** Throw this from a behavior handler when the input cannot be read. See the name above. */\nexport class IntrospectionInputValidationError extends Error {\n public constructor(message: string) {\n super(message);\n this.name = INTROSPECTION_INPUT_VALIDATION_ERROR_NAME;\n }\n}\n\nexport const CompanionIntrospectionBehaviorCategoryValues = [\n 'resources',\n 'translation',\n 'email',\n 'frontend-design-system',\n 'labels',\n 'specifications',\n 'market',\n 'brand',\n 'expert-personas',\n 'technical-doc',\n 'charts',\n 'assertions',\n] as const;\nexport type CompanionIntrospectionBehaviorCategory =\n typeof CompanionIntrospectionBehaviorCategoryValues[number];\n\nexport const CompanionIntrospectionMaterializationKindValues = [\n 'json-snapshot',\n 'text-artifact',\n] as const;\nexport type CompanionIntrospectionMaterializationKind =\n typeof CompanionIntrospectionMaterializationKindValues[number];\n\nexport interface CompanionIntrospectionBehaviorRoutingDefinition {\n target: CompanionIntrospectionRouteTargetId;\n requiredTargets?: CompanionIntrospectionRouteTargetId[];\n}\n\nexport interface CompanionIntrospectionBehaviorExecutionDefinition {\n materializationBoundary: 'subprocess';\n compositionBoundary: 'parent';\n materializationKind: CompanionIntrospectionMaterializationKind;\n}\n\nexport interface CompanionIntrospectionBehaviorDefinition {\n behaviorId: CompanionIntrospectionBehaviorId;\n description: string;\n category: CompanionIntrospectionBehaviorCategory;\n supportedServiceKinds: CompanionIntrospectionServiceKind[];\n routingByServiceKind: Partial<\n Record<CompanionIntrospectionServiceKind, CompanionIntrospectionBehaviorRoutingDefinition>\n >;\n execution: CompanionIntrospectionBehaviorExecutionDefinition;\n /**\n * The input a PARAMETERISED behavior accepts, in one line — published by the catalog (#1418).\n *\n * An agent reaching the door through `wildo context list` could not learn a behavior's parameters\n * from it and had to guess; the `info` help example guessed wrong. Absent = the behavior takes no\n * input. Prose rather than a JSON schema on purpose: the reader is a person or an agent deciding\n * what to send, and the handler's own parser is what refuses a wrong shape.\n */\n inputSummary?: string;\n}\n\nexport interface CompanionIntrospectionResolvedBehaviorDefinition {\n behaviorId: CompanionIntrospectionBehaviorId;\n description: string;\n category: CompanionIntrospectionBehaviorCategory;\n serviceKind: CompanionIntrospectionServiceKind;\n route: CompanionIntrospectionBehaviorRoutingDefinition;\n execution: CompanionIntrospectionBehaviorExecutionDefinition;\n}\n\nexport interface CompanionIntrospectionResolvedPackageTarget {\n targetId: CompanionIntrospectionRouteTargetId;\n packageRoot: string;\n entryPath: string;\n declaredPath?: string;\n}\n\n/**\n * Minimal trusted homes snapshot passed from the parent companion process into\n * introspection children so subprocesses never need to rediscover app or\n * framework roots from cwd.\n */\nexport interface CompanionIntrospectionHomesSnapshot {\n appDeclarationRoot: string;\n appRuntimeHome: string;\n companionHome: string;\n frameworkRepositoryRoot: string | null;\n}\n\nexport interface CompanionIntrospectionRequest {\n serviceKey: string;\n behavior: CompanionIntrospectionBehaviorId;\n input?: unknown;\n}\n\nexport interface CompanionIntrospectionResolvedTarget {\n serviceKey: string;\n servicePath: string;\n serviceName: string;\n serviceKind: CompanionIntrospectionServiceKind;\n behavior: CompanionIntrospectionBehaviorId;\n behaviorCategory: CompanionIntrospectionBehaviorCategory;\n materializationKind: CompanionIntrospectionMaterializationKind;\n targetId: CompanionIntrospectionRouteTargetId;\n packageRoot: string;\n entryPath: string;\n resolvedTargets: Partial<Record<CompanionIntrospectionRouteTargetId, CompanionIntrospectionResolvedPackageTarget>>;\n resolvedBehavior: CompanionIntrospectionResolvedBehaviorDefinition;\n input?: unknown;\n}\n\nexport interface CompanionIntrospectionChildRequest {\n behavior: CompanionIntrospectionBehaviorId;\n serviceKind: CompanionIntrospectionServiceKind;\n behaviorCategory: CompanionIntrospectionBehaviorCategory;\n materializationKind: CompanionIntrospectionMaterializationKind;\n targetId: CompanionIntrospectionRouteTargetId;\n serviceKey: string;\n entryPath: string;\n packageRoot: string;\n homes: CompanionIntrospectionHomesSnapshot;\n resolvedTargets: Partial<Record<CompanionIntrospectionRouteTargetId, CompanionIntrospectionResolvedPackageTarget>>;\n input?: unknown;\n}\n\nexport interface CompanionIntrospectionErrorDetails {\n message: string;\n name?: string;\n stack?: string;\n}\n\nexport interface CompanionIntrospectionSuccessResult {\n success: true;\n behavior: CompanionIntrospectionBehaviorId;\n serviceKey: string;\n serviceKind: CompanionIntrospectionServiceKind;\n behaviorCategory: CompanionIntrospectionBehaviorCategory;\n materializationKind: CompanionIntrospectionMaterializationKind;\n targetId: CompanionIntrospectionRouteTargetId;\n data: unknown;\n durationMs: number;\n stdout?: string;\n stderr?: string;\n /**\n * Set when this exact derivation was memoized against a source-tree observation that still matches,\n * so no subprocess ran and no application module graph was re-imported.\n *\n * Provenance, not a control: `durationMs` stays the ORIGINAL derivation's cost, because that is the\n * number the acceptance measurement is about. Absent on a freshly derived result rather than\n * `false`, so a consumer reading it can tell \"not cached\" from \"an older companion that had no\n * cache\".\n */\n servedFromCache?: true;\n /**\n * How long ago the held derivation was COMPILED, in milliseconds (#1437).\n *\n * Present exactly when {@link servedFromCache} is, and absent otherwise for the same reason it is:\n * a consumer can tell \"freshly derived\" from \"an older companion that did not report an age\".\n *\n * The number already existed and was thrown away — the state service computed it to write one\n * debug line. A consumer reading a held answer cannot tell a derivation taken seconds ago from one\n * taken before the application changed underneath it, and on a shared working tree that difference\n * is the one it most needs: the registry once reported 15 resources as a held derivation while the\n * specification set and the compiled dist both had 16, because another session had just added one.\n */\n derivationAgeMs?: number;\n}\n\nexport interface CompanionIntrospectionFailureResult {\n success: false;\n behavior: CompanionIntrospectionBehaviorId;\n serviceKey: string;\n serviceKind: CompanionIntrospectionServiceKind;\n behaviorCategory: CompanionIntrospectionBehaviorCategory;\n materializationKind: CompanionIntrospectionMaterializationKind;\n targetId: CompanionIntrospectionRouteTargetId;\n durationMs: number;\n error: CompanionIntrospectionErrorDetails;\n stdout?: string;\n stderr?: string;\n}\n\nexport type CompanionIntrospectionResult =\n | CompanionIntrospectionSuccessResult\n | CompanionIntrospectionFailureResult;\n"]}
|
|
1
|
+
{"version":3,"file":"companion-introspection.models.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/models/companion-introspection.models.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,gBAAgB,CAAU,CAAC;AAGzG,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,SAAS,EAAE,UAAU,CAAU,CAAC;AAGxF,MAAM,CAAC,MAAM,sCAAsC,GAAG;IACpD,oBAAoB;IACpB,+BAA+B;IAC/B;;;;OAIG;IACH,kCAAkC;IAClC,yBAAyB;IACzB,kCAAkC;IAClC,6BAA6B;IAC7B,mBAAmB;IACnB,6BAA6B;IAC7B,yBAAyB;IACzB,6BAA6B;IAC7B,uBAAuB;IACvB,4BAA4B;IAC5B,wBAAwB;IACxB,sBAAsB;IACtB;;;;;;;;;;;;;;;;OAgBG;IACH,0BAA0B;IAC1B;;;;;;;OAOG;IACH,yBAAyB;IACzB;;;;;;;;;;OAUG;IACH,4BAA4B;IAC5B;;;;;;;;;;;;;OAaG;IACH,6BAA6B;IAC7B;;;;;;;;;;;;;;;;OAgBG;IACH,iBAAiB;IACjB,oBAAoB;IACpB,sBAAsB;IACtB;;;;;;;;;;OAUG;IACH,2BAA2B;IAC3B;;;;;;;;OAQG;IACH,qBAAqB;IACrB;;;;;;;;;;OAUG;IACH,kCAAkC;IAClC;;;;;;OAMG;IACH,yBAAyB;IACzB;;;;;;;;;;;;;;OAcG;IACH,0BAA0B;IAC1B;;;;;;;;;;;;;;;;OAgBG;IACH,cAAc;IACd;;;;;;;;;;OAUG;IACH,0BAA0B;IAC1B;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,yBAAyB;IACzB,gBAAgB;IAChB;;;OAGG;IACH,wBAAwB;CAChB,CAAC;AAGX;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,yCAAyC,GAAG,mCAAmC,CAAC;AAE7F,4FAA4F;AAC5F,MAAM,OAAO,iCAAkC,SAAQ,KAAK;IAC1D,YAAmB,OAAe;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,yCAAyC,CAAC;IACxD,CAAC;CACF;AAED,MAAM,CAAC,MAAM,4CAA4C,GAAG;IAC1D,WAAW;IACX,aAAa;IACb,OAAO;IACP,wBAAwB;IACxB,QAAQ;IACR,gBAAgB;IAChB,QAAQ;IACR,OAAO;IACP,iBAAiB;IACjB,eAAe;IACf,QAAQ;IACR,YAAY;CACJ,CAAC;AAIX,MAAM,CAAC,MAAM,+CAA+C,GAAG;IAC7D,eAAe;IACf,eAAe;CACP,CAAC","sourcesContent":["export const CompanionIntrospectionRouteTargetValues = ['service', 'library', 'specifications'] as const;\nexport type CompanionIntrospectionRouteTargetId = typeof CompanionIntrospectionRouteTargetValues[number];\n\nexport const CompanionIntrospectionServiceKindValues = ['backend', 'frontend'] as const;\nexport type CompanionIntrospectionServiceKind = typeof CompanionIntrospectionServiceKindValues[number];\n\nexport const CompanionIntrospectionBehaviorIdValues = [\n 'resources-registry',\n 'email-template-placement-info',\n /**\n * The pause states every approval gate declares (`humanApproval.deadlines.pauseStates` on a backend module's function\n * tools, #1864), read in the BACKEND subprocess. The labelling planner words each one under\n * `system_enums.HumanDecisionPauseState.<state>`; nothing else in the companion sees a function tool.\n */\n 'human-decision-gate-declarations',\n 'translation-needed-info',\n 'frontend-artifact-placement-info',\n 'design-system-source-config',\n 'design-tokens-css',\n 'frontend-labels-needed-info',\n 'resource-specifications',\n 'specification-context-parts',\n 'catalog-context-parts',\n 'market-context-for-feature',\n 'market-context-for-icp',\n 'market-render-prompt',\n /**\n * Technical-documentation OpenAPI generator input projection\n * (`saas-technical-doc.md` Step 3b). Walks the resolved\n * `ResourcesRegistry` in the backend subprocess, materializes every\n * resource configuration, runs the URL builder so per-operation\n * `initiatorInfos[].url` are populated, and projects each\n * `(operation × initiatorInfo)` row into the\n * `OpenApiGenerationInputSchema` shape declared in\n * `@wildo-ai/saas-technical-doc/companion`.\n *\n * Why subprocess-side: the projection runs `z.toJSONSchema(...)` on\n * each operation's `requestDto` / `responseDto`, which requires\n * loading `@wildo-ai/saas-models` (and its `initZodDecorators()`\n * boot). Doing this in the subprocess keeps the parent companion\n * bundle decorator-framework-free per `saas-models-public-runtime.md`\n * K-3.\n */\n 'openapi-generation-input',\n /**\n * Frontend chart-registration refs — every `chartViews[].chartDefinition.ref`\n * across the app's resources, materialized in the FRONTEND subprocess. The\n * parent composes these with the backend-registered chart refs to detect a\n * frontend chartView whose chart is not registered backend-side (a silent\n * runtime `chart_not_found` 404). Kept separate from `frontend-labels-needed-info`\n * so chart-registration data does not thread through the labelling pipeline.\n */\n 'chart-registration-refs',\n /**\n * The application's authored settings rail, verified against the engine destination\n * catalog in the FRONTEND subprocess (fresh working-tree import).\n *\n * Exists for a failure that is silent by construction: a placement naming a\n * `destinationRef` the catalog does not ship is not a type error —\n * `resolveSettingsHubConfig` DROPS it and the section simply never renders. So a\n * `SHELL_PLACEMENT` coding task can pass `check:app-typecheck`, report verified, and\n * leave the application missing a settings section nobody is told about. Same class\n * as the FK-resolution sweep, and answered the same way: ask the working tree.\n */\n 'settings-placement-content',\n /**\n * What the application's shell actually COMPOSES, per placement surface (sidebar, user\n * dropdown, command palette), read from the RESOLVED configuration in the frontend subprocess.\n *\n * Exists because a `SHELL_PLACEMENT` task's product cannot be witnessed by text. Its declared\n * products are PLACEMENT-PLAN refs, which nothing in the tree is obliged to spell and nothing\n * does; and the `wildo init` scaffold already writes every shell key and hosts the same\n * components, so a built application differs from a fresh one in the CONTENT of those\n * structures and never in which symbols appear. Only the resolved merge separates them.\n *\n * Reports one row per surface and no verdict: an application composes at least one surface and\n * deliberately not all, so which ones is a product decision the CALLER asserts against.\n * `SETTINGS_HUB`, the fourth placement surface, is answered by `settings-placement-content`.\n */\n 'app-shell-placement-content',\n /**\n * Assertion Surface behaviors (app-creation meta-workflows, master\n * plan S1). Serve the authored `AssertionSpecificationSnapshot` from\n * the specifications target:\n *\n * - `assertions-list` — authored entries, filtered by lane / kind\n * (pure projection; no live registry).\n * - `assertions-resolve` — entries plus live probe findings derived\n * at query time against the resources registry (requires the\n * `library` target); the parent composes LLM interpretation on top.\n * - `assertions-reconcile` — computes per-entry status\n * (assumed → landed → drifted / unverifiable) by diffing authored\n * assumptions against introspected reality (requires `library`).\n *\n * Kebab-case string-tuple ids (the introspection plane convention —\n * one behavior id per operation, no `input.op` discriminator).\n */\n 'assertions-list',\n 'assertions-resolve',\n 'assertions-reconcile',\n /**\n * Top-down **definition-specifications** projection (app-creation\n * meta-workflows, journey-buildout GAP-D1-9). Serves the presence +\n * structural validity + cross-family coherence of the authored C-4\n * definition set (`vision-brief` / `market-snapshot` / `requirements` /\n * `roadmap` / `business-model`) off the specifications target's companion\n * exports. Runs each family's `_core` validator (shared with the\n * journey-snapshot per-artifact validation seam) as a durable load-time\n * guard — an ERROR or an unresolved cross-family ref fails closed instead of\n * shipping silently. Pure/deterministic; no live registry, no LLM.\n */\n 'definition-specifications',\n /**\n * Brand logo-generation prompt assembly (app-creation meta-workflows —\n * brand-identity). Reads the authored `BrandSnapshot` off the specifications\n * target's companion exports, validates it (`validateBrandSnapshot`), and\n * assembles the text-to-image prompt (brand name + logo direction + visual\n * tone, optionally enriched by the market `tonesOfVoice`). Pure/deterministic\n * — no image call here; the parent `LogoGenerationCompanionService` invokes\n * the image agent with the returned prompt.\n */\n 'brand-render-prompt',\n /**\n * Expert-persona DERIVATION INPUTS projection (agentic deliberation\n * system, Step 2). Resolves the specification-tier snapshots a role's\n * charter derivation is shaped by (`shapingInputKinds` of the framework\n * `ExpertRoleTemplate`: vision / market / brand / requirements /\n * business-model / accepted-decisions), returning the resolved subset plus\n * the kinds that are missing (the parent derivation service fails closed\n * on missing kinds) and the kinds this target cannot resolve\n * (DESIGN_SYSTEM — the parent composes it from the frontend\n * `design-system-source-config` behavior). Pure/deterministic; no LLM.\n */\n 'expert-persona-derivation-inputs',\n /**\n * Committed expert-persona CHARTERS read-back (agentic deliberation\n * system). Serves the app's `expertPersonaCharters` companion export\n * (the accepted charters under `specifications/src/personas/`) — consumed\n * by the accept step's human-edit overwrite guard + validator run, and by\n * the deliberation system's startup agent factory. Pure/deterministic.\n */\n 'expert-persona-charters',\n /**\n * **compliance-primary-facts** — what a compliance document can say about this application,\n * derived from its resource configurations.\n *\n * Reads the five compliance-bearing declarations off every materialized resource\n * (`retentionPolicy.mode`, `dataSubjectPolicy.kind`, `systemAccessPolicy.exportSubject` and the\n * two retained see-through verbs) and reports them split by ORIGIN — engine-declared versus\n * application-declared. The split is the finding: the engine already answers most of a privacy\n * notice for every generated application, and what it cannot answer is the application's own\n * domain data about third parties, which is most of what such a notice exists to describe.\n *\n * Needs the `library` target (resource CONFIGS live in the app's shared-lib; the specifications\n * target carries SPECS, which do not hold these fields). Pure/deterministic, and modelless by\n * construction — every value is a lookup of a declaration already written down.\n */\n 'compliance-primary-facts',\n /**\n * **risk-signals** — the two DERIVED risk-signal families that need materialized resources: which\n * personal-data categories this application's OWN schemas declare, and how many operations are\n * reachable by an external agent over MCP (#1435).\n *\n * Returns INPUTS, never signals. The observation sentences live in the engine\n * (`application-risk-signals.derivations.ts`), so the assurance report and the `top_down.risk-register`\n * brief read one wording of one measurement rather than two that drift.\n *\n * The OTHER four application-time signals are deliberately NOT here: the capability surface, the\n * retention declarations and the provider hosting are pure functions of `wildo.saas.config.ts`,\n * which the companion already holds, so putting them behind a subprocess would spend a process to\n * read a value already in memory.\n *\n * Needs the `library` target, like `compliance-primary-facts` above and for the same reason:\n * resource CONFIGS live in the app's shared-lib. Pure/deterministic and modelless by construction.\n */\n 'risk-signals',\n /**\n * **application-domain-model** — the observed application's resources, the module that owns each,\n * the relationships they participate in, and the prose of their specifications, in ONE projection.\n *\n * Needs BOTH targets, which is the whole point: module ownership and the specification overlay live\n * on the `specifications` target, the relationship edges on the `library` one. Reading them through\n * the two behaviors that already answer half each (`resource-specifications`, `resources-registry`)\n * means two subprocess runs against a working tree an operator is editing, so the nodes may come\n * from one state of the application and the edges from the next — a picture of an application that\n * never existed, with nothing to detect it.\n */\n 'application-domain-model',\n /**\n * **specification-artifacts** — every application-specification family the journey produces,\n * projected for a HUMAN reviewer rather than for a language model.\n *\n * The companion already reads this content: `market-context-for-icp`, `market-render-prompt`,\n * `brand-render-prompt`, `specification-context-parts` and their siblings all resolve the same\n * authored snapshots — and every one of them renders PROSE FOR A MODEL. The loading and resolution\n * paths were proven; the projection whose consumer is an operator did not exist, so a creator could\n * not review what the journey had decided about their product without opening TypeScript files\n * (issue #162).\n *\n * Enumerates `APPLICATION_SPECIFICATION_SEMANTIC_SCHEMA_BINDINGS` — so the population cannot drift\n * from the authority — and, per family, reports whether it landed, whether its own `_core`\n * validator still passes, which playbooks produce it, and the artifact rendered as a document.\n *\n * ## Where it deliberately differs from `definition-specifications`\n *\n * That behavior THROWS on any ERROR-severity structural issue, which is correct for a load-time\n * guard and exactly wrong here: it would make an invalid artifact the one thing a reviewer cannot\n * look at, at the moment they most need to. This one REPORTS. Both run the same validators through\n * the same authority, so they cannot disagree about what is valid — only about what to do about it.\n *\n * Pure/deterministic and modelless. `specifications` target only: every family's accepted value is\n * a companion export of that package.\n */\n 'specification-artifacts',\n 'family-aspects',\n /**\n * **specification-elements** — MAP, GET and RELATED over the decided elements, parameterised (#1418).\n * The pull door for tool-bearing agents; `family-aspects` stays the workbench's full dump.\n */\n 'specification-elements',\n] as const;\nexport type CompanionIntrospectionBehaviorId = typeof CompanionIntrospectionBehaviorIdValues[number];\n\n/**\n * The error name a behavior throws when the CALLER's input is wrong — refused, not broken (#1418).\n *\n * The controller maps it to a 400 carrying the message, so the refusal a handler wrote (\"`get` takes\n * `refs` OR `aspectKeys`\") reaches the caller. Without it a bad input answered 500 INTERNAL, sanitized\n * to nothing, and the CLI then suggested the companion might be down — measured on the first live run of\n * `wildo context elements` (#1459). The name travels as a string across the subprocess boundary, which\n * is why the contract is a name rather than a class the parent must import.\n */\nexport const INTROSPECTION_INPUT_VALIDATION_ERROR_NAME = 'IntrospectionInputValidationError';\n\n/** Throw this from a behavior handler when the input cannot be read. See the name above. */\nexport class IntrospectionInputValidationError extends Error {\n public constructor(message: string) {\n super(message);\n this.name = INTROSPECTION_INPUT_VALIDATION_ERROR_NAME;\n }\n}\n\nexport const CompanionIntrospectionBehaviorCategoryValues = [\n 'resources',\n 'translation',\n 'email',\n 'frontend-design-system',\n 'labels',\n 'specifications',\n 'market',\n 'brand',\n 'expert-personas',\n 'technical-doc',\n 'charts',\n 'assertions',\n] as const;\nexport type CompanionIntrospectionBehaviorCategory =\n typeof CompanionIntrospectionBehaviorCategoryValues[number];\n\nexport const CompanionIntrospectionMaterializationKindValues = [\n 'json-snapshot',\n 'text-artifact',\n] as const;\nexport type CompanionIntrospectionMaterializationKind =\n typeof CompanionIntrospectionMaterializationKindValues[number];\n\nexport interface CompanionIntrospectionBehaviorRoutingDefinition {\n target: CompanionIntrospectionRouteTargetId;\n requiredTargets?: CompanionIntrospectionRouteTargetId[];\n}\n\nexport interface CompanionIntrospectionBehaviorExecutionDefinition {\n materializationBoundary: 'subprocess';\n compositionBoundary: 'parent';\n materializationKind: CompanionIntrospectionMaterializationKind;\n}\n\nexport interface CompanionIntrospectionBehaviorDefinition {\n behaviorId: CompanionIntrospectionBehaviorId;\n description: string;\n category: CompanionIntrospectionBehaviorCategory;\n supportedServiceKinds: CompanionIntrospectionServiceKind[];\n routingByServiceKind: Partial<\n Record<CompanionIntrospectionServiceKind, CompanionIntrospectionBehaviorRoutingDefinition>\n >;\n execution: CompanionIntrospectionBehaviorExecutionDefinition;\n /**\n * The input a PARAMETERISED behavior accepts, in one line — published by the catalog (#1418).\n *\n * An agent reaching the door through `wildo context list` could not learn a behavior's parameters\n * from it and had to guess; the `info` help example guessed wrong. Absent = the behavior takes no\n * input. Prose rather than a JSON schema on purpose: the reader is a person or an agent deciding\n * what to send, and the handler's own parser is what refuses a wrong shape.\n */\n inputSummary?: string;\n}\n\nexport interface CompanionIntrospectionResolvedBehaviorDefinition {\n behaviorId: CompanionIntrospectionBehaviorId;\n description: string;\n category: CompanionIntrospectionBehaviorCategory;\n serviceKind: CompanionIntrospectionServiceKind;\n route: CompanionIntrospectionBehaviorRoutingDefinition;\n execution: CompanionIntrospectionBehaviorExecutionDefinition;\n}\n\nexport interface CompanionIntrospectionResolvedPackageTarget {\n targetId: CompanionIntrospectionRouteTargetId;\n packageRoot: string;\n entryPath: string;\n declaredPath?: string;\n}\n\n/**\n * Minimal trusted homes snapshot passed from the parent companion process into\n * introspection children so subprocesses never need to rediscover app or\n * framework roots from cwd.\n */\nexport interface CompanionIntrospectionHomesSnapshot {\n appDeclarationRoot: string;\n appRuntimeHome: string;\n companionHome: string;\n frameworkRepositoryRoot: string | null;\n}\n\nexport interface CompanionIntrospectionRequest {\n serviceKey: string;\n behavior: CompanionIntrospectionBehaviorId;\n input?: unknown;\n}\n\nexport interface CompanionIntrospectionResolvedTarget {\n serviceKey: string;\n servicePath: string;\n serviceName: string;\n serviceKind: CompanionIntrospectionServiceKind;\n behavior: CompanionIntrospectionBehaviorId;\n behaviorCategory: CompanionIntrospectionBehaviorCategory;\n materializationKind: CompanionIntrospectionMaterializationKind;\n targetId: CompanionIntrospectionRouteTargetId;\n packageRoot: string;\n entryPath: string;\n resolvedTargets: Partial<Record<CompanionIntrospectionRouteTargetId, CompanionIntrospectionResolvedPackageTarget>>;\n resolvedBehavior: CompanionIntrospectionResolvedBehaviorDefinition;\n input?: unknown;\n}\n\nexport interface CompanionIntrospectionChildRequest {\n behavior: CompanionIntrospectionBehaviorId;\n serviceKind: CompanionIntrospectionServiceKind;\n behaviorCategory: CompanionIntrospectionBehaviorCategory;\n materializationKind: CompanionIntrospectionMaterializationKind;\n targetId: CompanionIntrospectionRouteTargetId;\n serviceKey: string;\n entryPath: string;\n packageRoot: string;\n homes: CompanionIntrospectionHomesSnapshot;\n resolvedTargets: Partial<Record<CompanionIntrospectionRouteTargetId, CompanionIntrospectionResolvedPackageTarget>>;\n input?: unknown;\n}\n\nexport interface CompanionIntrospectionErrorDetails {\n message: string;\n name?: string;\n stack?: string;\n}\n\nexport interface CompanionIntrospectionSuccessResult {\n success: true;\n behavior: CompanionIntrospectionBehaviorId;\n serviceKey: string;\n serviceKind: CompanionIntrospectionServiceKind;\n behaviorCategory: CompanionIntrospectionBehaviorCategory;\n materializationKind: CompanionIntrospectionMaterializationKind;\n targetId: CompanionIntrospectionRouteTargetId;\n data: unknown;\n durationMs: number;\n stdout?: string;\n stderr?: string;\n /**\n * Set when this exact derivation was memoized against a source-tree observation that still matches,\n * so no subprocess ran and no application module graph was re-imported.\n *\n * Provenance, not a control: `durationMs` stays the ORIGINAL derivation's cost, because that is the\n * number the acceptance measurement is about. Absent on a freshly derived result rather than\n * `false`, so a consumer reading it can tell \"not cached\" from \"an older companion that had no\n * cache\".\n */\n servedFromCache?: true;\n /**\n * How long ago the held derivation was COMPILED, in milliseconds (#1437).\n *\n * Present exactly when {@link servedFromCache} is, and absent otherwise for the same reason it is:\n * a consumer can tell \"freshly derived\" from \"an older companion that did not report an age\".\n *\n * The number already existed and was thrown away — the state service computed it to write one\n * debug line. A consumer reading a held answer cannot tell a derivation taken seconds ago from one\n * taken before the application changed underneath it, and on a shared working tree that difference\n * is the one it most needs: the registry once reported 15 resources as a held derivation while the\n * specification set and the compiled dist both had 16, because another session had just added one.\n */\n derivationAgeMs?: number;\n}\n\nexport interface CompanionIntrospectionFailureResult {\n success: false;\n behavior: CompanionIntrospectionBehaviorId;\n serviceKey: string;\n serviceKind: CompanionIntrospectionServiceKind;\n behaviorCategory: CompanionIntrospectionBehaviorCategory;\n materializationKind: CompanionIntrospectionMaterializationKind;\n targetId: CompanionIntrospectionRouteTargetId;\n durationMs: number;\n error: CompanionIntrospectionErrorDetails;\n stdout?: string;\n stderr?: string;\n}\n\nexport type CompanionIntrospectionResult =\n | CompanionIntrospectionSuccessResult\n | CompanionIntrospectionFailureResult;\n"]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type ApplicationSecretKind, type Workbench_ApplicationSecretChangeOutcome } from '@wildo-ai/platform-core-shared';
|
|
2
|
+
/**
|
|
3
|
+
* What a set/unset answered: the outcome the page is shown, and the environment's rows after the change
|
|
4
|
+
* (#1782). `environmentRows` is `null` when the CLI did not report them, and the caller then drops its
|
|
5
|
+
* listing instead of patching it.
|
|
6
|
+
*/
|
|
7
|
+
export interface ApplicationSecretChange {
|
|
8
|
+
readonly outcome: Workbench_ApplicationSecretChangeOutcome;
|
|
9
|
+
readonly environmentRows: Record<string, unknown>[] | null;
|
|
10
|
+
}
|
|
11
|
+
/** One environment the listing could not read, named so the section can say so rather than show nothing. */
|
|
12
|
+
export interface UnreadableSecretsEnvironment {
|
|
13
|
+
readonly envName: string;
|
|
14
|
+
readonly error: string;
|
|
15
|
+
}
|
|
16
|
+
/** One environment listed only in part, with what was left out and why. */
|
|
17
|
+
export interface IncompleteSecretsEnvironment {
|
|
18
|
+
readonly envName: string;
|
|
19
|
+
readonly incomplete: readonly string[];
|
|
20
|
+
}
|
|
21
|
+
/** The CLI's own sentence for a failure: its `{"error": …}` answer, else the last line it printed. */
|
|
22
|
+
export declare function describeSecretsCliFailure(error: unknown): string;
|
|
23
|
+
/**
|
|
24
|
+
* The JSON document a `--json` run printed: its LAST line that is one. The CLI prints its answer as
|
|
25
|
+
* one line precisely so it can be found among anything else a run writes to stdout (a notice, a warning).
|
|
26
|
+
*/
|
|
27
|
+
export declare function parseSecretsCliJson<T>(stdout: string): T;
|
|
28
|
+
/** Every (environment, secret) row, plus the environments that could not be read, or were read only in part. */
|
|
29
|
+
export declare function readApplicationSecrets(saasRoot: string): Promise<{
|
|
30
|
+
rows: Record<string, unknown>[];
|
|
31
|
+
unreadable: UnreadableSecretsEnvironment[];
|
|
32
|
+
incomplete: IncompleteSecretsEnvironment[];
|
|
33
|
+
}>;
|
|
34
|
+
/**
|
|
35
|
+
* Provide one secret's value — on the child's stdin, never in its arguments. `kind` names the `secrets.json`
|
|
36
|
+
* section, because a name alone can be in two (a key left in the wrong one by a migration).
|
|
37
|
+
*/
|
|
38
|
+
export declare function setApplicationSecret(saasRoot: string, envName: string, kind: ApplicationSecretKind, envVarName: string, value: string): Promise<ApplicationSecretChange>;
|
|
39
|
+
/** Remove one secret from one environment, in the section `kind` names. */
|
|
40
|
+
export declare function unsetApplicationSecret(saasRoot: string, envName: string, kind: ApplicationSecretKind, envVarName: string): Promise<ApplicationSecretChange>;
|
|
41
|
+
//# sourceMappingURL=application-secrets.companion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-secrets.companion.d.ts","sourceRoot":"","sources":["../../../../../../src/core/introspection/resources/application-secrets.companion.ts"],"names":[],"mappings":"AAcA,OAAO,EAEL,KAAK,qBAAqB,EAG1B,KAAK,wCAAwC,EAC9C,MAAM,gCAAgC,CAAC;AAmCxC;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,OAAO,EAAE,wCAAwC,CAAC;IAC3D,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,IAAI,CAAC;CAC5D;AAyBD,4GAA4G;AAC5G,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,2EAA2E;AAC3E,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;CACxC;AA4BD,sGAAsG;AACtG,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAqBhE;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC,CAIxD;AAED,gHAAgH;AAChH,wBAAsB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;IACtE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAChC,UAAU,EAAE,4BAA4B,EAAE,CAAC;IAC3C,UAAU,EAAE,4BAA4B,EAAE,CAAC;CAC5C,CAAC,CAkBD;AAED;;;GAGG;AACH,wBAAsB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAW9K;AAED,2EAA2E;AAC3E,wBAAsB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC,CASjK"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The workbench's secrets section, served by running `wildo secrets` (#1637).
|
|
3
|
+
*
|
|
4
|
+
* The companion never reads or writes a secret itself. `wildo secrets` is the one writer — it owns
|
|
5
|
+
* `secrets.json`'s schema and its single writer, the env-file regeneration, the restart of the
|
|
6
|
+
* runtimes that read a key, and the GitHub secrets of a remote environment — so the section goes
|
|
7
|
+
* through it, and a secret has one mutation path whether a person types it in a terminal or here.
|
|
8
|
+
* The companion's generic file routes refuse secret-bearing paths for the same reason
|
|
9
|
+
* (`companion-file-route-confinement.ts`).
|
|
10
|
+
*
|
|
11
|
+
* Values travel ONE way, on the child's stdin, and are never held, logged or returned: the listing
|
|
12
|
+
* carries names and standings only.
|
|
13
|
+
*/
|
|
14
|
+
import { BoundedSubprocessError, describeCaughtError, executeBoundedSubprocess } from '@wildo-ai/saas-backend-lib';
|
|
15
|
+
import { applicationSecretRowId, } from '@wildo-ai/platform-core-shared';
|
|
16
|
+
/**
|
|
17
|
+
* Listing loads the application once and asks GitHub per remote environment: 86 s was measured for one
|
|
18
|
+
* environment on a loaded machine (2026-09-26), against a 120 s bound that a second environment or a busier
|
|
19
|
+
* hour would pass. Re-measured 2026-09-27 with the system-of-record facets and the built backend's inbound
|
|
20
|
+
* endpoints also read: 74 s wall, 19.5 s CPU, for `local`. Only the first read waits on it (the board refreshes behind the rows it serves), so the
|
|
21
|
+
* bound is about not abandoning a slow listing, not about a person waiting.
|
|
22
|
+
*/
|
|
23
|
+
const LIST_TIMEOUT_MS = 300_000;
|
|
24
|
+
const CHANGE_TIMEOUT_MS = 300_000;
|
|
25
|
+
/** One environment's requirements as workbench rows — the ONE mapping a listing and a change both use. */
|
|
26
|
+
function toWorkbenchSecretRows(environment) {
|
|
27
|
+
return environment.requirements.map((requirement) => ({
|
|
28
|
+
workbenchApplicationSecretId: applicationSecretRowId(environment.envName, requirement.kind, requirement.envVarName),
|
|
29
|
+
environmentName: environment.envName,
|
|
30
|
+
envVarName: requirement.envVarName,
|
|
31
|
+
standing: requirement.standing,
|
|
32
|
+
kind: requirement.kind,
|
|
33
|
+
ownerRef: requirement.ownerRef,
|
|
34
|
+
description: requirement.description,
|
|
35
|
+
capabilities: [...requirement.capabilities],
|
|
36
|
+
runtimes: [...requirement.runtimes],
|
|
37
|
+
creationEssential: requirement.creationEssential,
|
|
38
|
+
remoteLevel: requirement.remoteLevel ?? null,
|
|
39
|
+
}));
|
|
40
|
+
}
|
|
41
|
+
/** Split the CLI's change answer: the report rides beside the outcome and never reaches the page. */
|
|
42
|
+
function toApplicationSecretChange(stdout) {
|
|
43
|
+
const { environmentAfterChange, ...outcome } = parseSecretsCliJson(stdout);
|
|
44
|
+
return { outcome, environmentRows: environmentAfterChange ? toWorkbenchSecretRows(environmentAfterChange) : null };
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* What the CLI child inherits from the companion's environment — named, never the whole of it, which
|
|
48
|
+
* carries platform secrets a child must not receive. Everything else is what a terminal would give the
|
|
49
|
+
* same command: identity and locale; temp dirs; the proxy and certificate variables a networked `gh`
|
|
50
|
+
* needs; `gh`'s own token and host variables (a remote environment's secrets are written through it);
|
|
51
|
+
* the Wildo selection variables; and the coding agents' config pointers, because `wildo secrets list`
|
|
52
|
+
* reports the selected agent's login and must read it where the agent does.
|
|
53
|
+
*/
|
|
54
|
+
const CLI_INHERITED_ENV_KEYS = [
|
|
55
|
+
'PATH', 'HOME', 'USER', 'LOGNAME', 'SHELL', 'TERM', 'LANG', 'LC_ALL', 'LC_CTYPE', 'TMPDIR', 'TMP', 'TEMP',
|
|
56
|
+
'XDG_CONFIG_HOME', 'XDG_CACHE_HOME', 'XDG_STATE_HOME', 'XDG_RUNTIME_DIR',
|
|
57
|
+
'SSL_CERT_FILE', 'SSL_CERT_DIR', 'NODE_EXTRA_CA_CERTS', 'HTTP_PROXY', 'HTTPS_PROXY', 'NO_PROXY', 'http_proxy', 'https_proxy', 'no_proxy',
|
|
58
|
+
'GH_TOKEN', 'GITHUB_TOKEN', 'GH_HOST', 'GH_ENTERPRISE_TOKEN', 'GH_CONFIG_DIR',
|
|
59
|
+
'WILDO_HOME', 'WILDO_CODING_AGENT',
|
|
60
|
+
'CLAUDE_CONFIG_DIR', 'CODEX_HOME',
|
|
61
|
+
];
|
|
62
|
+
function cliEnvironment() {
|
|
63
|
+
const env = {};
|
|
64
|
+
for (const key of CLI_INHERITED_ENV_KEYS) {
|
|
65
|
+
const value = process.env[key];
|
|
66
|
+
if (value !== undefined)
|
|
67
|
+
env[key] = value;
|
|
68
|
+
}
|
|
69
|
+
return env;
|
|
70
|
+
}
|
|
71
|
+
/** The CLI's own sentence for a failure: its `{"error": …}` answer, else the last line it printed. */
|
|
72
|
+
export function describeSecretsCliFailure(error) {
|
|
73
|
+
if (error instanceof BoundedSubprocessError) {
|
|
74
|
+
/*
|
|
75
|
+
* The refusal's own sentence, from the `{"error": …}` line a `--json` run prints on stdout. The text
|
|
76
|
+
* fallback below reads the LAST stderr line, which is the CLI's generic "secrets set failed" summary;
|
|
77
|
+
* it stays only for a run that died before it could answer (a crash, a timeout).
|
|
78
|
+
*/
|
|
79
|
+
const answered = String(error.details.stdout ?? '').split('\n').map((line) => line.trim()).filter((line) => line.startsWith('{')).at(-1);
|
|
80
|
+
if (answered !== undefined) {
|
|
81
|
+
try {
|
|
82
|
+
const { error: sentence } = JSON.parse(answered);
|
|
83
|
+
if (typeof sentence === 'string' && sentence.length > 0)
|
|
84
|
+
return sentence;
|
|
85
|
+
}
|
|
86
|
+
catch {
|
|
87
|
+
// Not the refusal document; fall through to the text.
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
const output = `${String(error.details.stderr ?? '')}\n${String(error.details.stdout ?? '')}`;
|
|
91
|
+
const lines = output.split('\n').map((line) => line.replace(/\u001b\[[0-9;]*m/g, '').trim()).filter((line) => line.length > 0);
|
|
92
|
+
return lines.at(-1)?.replace(/^✖\s*/, '') ?? error.message;
|
|
93
|
+
}
|
|
94
|
+
return describeCaughtError(error);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* The JSON document a `--json` run printed: its LAST line that is one. The CLI prints its answer as
|
|
98
|
+
* one line precisely so it can be found among anything else a run writes to stdout (a notice, a warning).
|
|
99
|
+
*/
|
|
100
|
+
export function parseSecretsCliJson(stdout) {
|
|
101
|
+
const line = stdout.split('\n').map((candidate) => candidate.trim()).filter((candidate) => candidate.startsWith('{')).at(-1);
|
|
102
|
+
if (line === undefined)
|
|
103
|
+
throw new Error('`wildo secrets` printed no JSON answer.');
|
|
104
|
+
return JSON.parse(line);
|
|
105
|
+
}
|
|
106
|
+
/** Every (environment, secret) row, plus the environments that could not be read, or were read only in part. */
|
|
107
|
+
export async function readApplicationSecrets(saasRoot) {
|
|
108
|
+
const result = await executeBoundedSubprocess({
|
|
109
|
+
command: 'wildo',
|
|
110
|
+
args: ['secrets', 'list', '--all', '--json'],
|
|
111
|
+
cwd: saasRoot,
|
|
112
|
+
env: cliEnvironment(),
|
|
113
|
+
timeoutMs: LIST_TIMEOUT_MS,
|
|
114
|
+
});
|
|
115
|
+
const listing = parseSecretsCliJson(result.stdout);
|
|
116
|
+
const rows = [];
|
|
117
|
+
const unreadable = [];
|
|
118
|
+
const incomplete = [];
|
|
119
|
+
for (const environment of listing.environments) {
|
|
120
|
+
if (environment.error)
|
|
121
|
+
unreadable.push({ envName: environment.envName, error: environment.error });
|
|
122
|
+
if ((environment.incomplete ?? []).length > 0)
|
|
123
|
+
incomplete.push({ envName: environment.envName, incomplete: environment.incomplete });
|
|
124
|
+
rows.push(...toWorkbenchSecretRows(environment));
|
|
125
|
+
}
|
|
126
|
+
return { rows, unreadable, incomplete };
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Provide one secret's value — on the child's stdin, never in its arguments. `kind` names the `secrets.json`
|
|
130
|
+
* section, because a name alone can be in two (a key left in the wrong one by a migration).
|
|
131
|
+
*/
|
|
132
|
+
export async function setApplicationSecret(saasRoot, envName, kind, envVarName, value) {
|
|
133
|
+
const result = await executeBoundedSubprocess({
|
|
134
|
+
command: 'wildo',
|
|
135
|
+
// `--skip-companion-restart`: this process serves the request; it applies the change itself instead.
|
|
136
|
+
args: ['secrets', 'set', envVarName, '--env', envName, '--kind', kind, '--value-stdin', '--skip-companion-restart', '--json'],
|
|
137
|
+
cwd: saasRoot,
|
|
138
|
+
env: cliEnvironment(),
|
|
139
|
+
stdinPayload: value,
|
|
140
|
+
timeoutMs: CHANGE_TIMEOUT_MS,
|
|
141
|
+
});
|
|
142
|
+
return toApplicationSecretChange(result.stdout);
|
|
143
|
+
}
|
|
144
|
+
/** Remove one secret from one environment, in the section `kind` names. */
|
|
145
|
+
export async function unsetApplicationSecret(saasRoot, envName, kind, envVarName) {
|
|
146
|
+
const result = await executeBoundedSubprocess({
|
|
147
|
+
command: 'wildo',
|
|
148
|
+
args: ['secrets', 'unset', envVarName, '--env', envName, '--kind', kind, '--skip-companion-restart', '--json'],
|
|
149
|
+
cwd: saasRoot,
|
|
150
|
+
env: cliEnvironment(),
|
|
151
|
+
timeoutMs: CHANGE_TIMEOUT_MS,
|
|
152
|
+
});
|
|
153
|
+
return toApplicationSecretChange(result.stdout);
|
|
154
|
+
}
|
|
155
|
+
//# sourceMappingURL=application-secrets.companion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-secrets.companion.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/resources/application-secrets.companion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACnH,OAAO,EACL,sBAAsB,GAKvB,MAAM,gCAAgC,CAAC;AAExC;;;;;;GAMG;AACH,MAAM,eAAe,GAAG,OAAO,CAAC;AAChC,MAAM,iBAAiB,GAAG,OAAO,CAAC;AAmClC,0GAA0G;AAC1G,SAAS,qBAAqB,CAAC,WAAsC;IACnE,OAAO,WAAW,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;QACpD,4BAA4B,EAAE,sBAAsB,CAAC,WAAW,CAAC,OAAO,EAAE,WAAW,CAAC,IAAI,EAAE,WAAW,CAAC,UAAU,CAAC;QACnH,eAAe,EAAE,WAAW,CAAC,OAAO;QACpC,UAAU,EAAE,WAAW,CAAC,UAAU;QAClC,QAAQ,EAAE,WAAW,CAAC,QAAQ;QAC9B,IAAI,EAAE,WAAW,CAAC,IAAI;QACtB,QAAQ,EAAE,WAAW,CAAC,QAAQ;QAC9B,WAAW,EAAE,WAAW,CAAC,WAAW;QACpC,YAAY,EAAE,CAAC,GAAG,WAAW,CAAC,YAAY,CAAC;QAC3C,QAAQ,EAAE,CAAC,GAAG,WAAW,CAAC,QAAQ,CAAC;QACnC,iBAAiB,EAAE,WAAW,CAAC,iBAAiB;QAChD,WAAW,EAAE,WAAW,CAAC,WAAW,IAAI,IAAI;KAC7C,CAAC,CAAC,CAAC;AACN,CAAC;AAED,qGAAqG;AACrG,SAAS,yBAAyB,CAAC,MAAc;IAC/C,MAAM,EAAE,sBAAsB,EAAE,GAAG,OAAO,EAAE,GAAG,mBAAmB,CAAoG,MAAM,CAAC,CAAC;IAC9K,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,sBAAsB,CAAC,CAAC,CAAC,qBAAqB,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;AACrH,CAAC;AAcD;;;;;;;GAOG;AACH,MAAM,sBAAsB,GAAG;IAC7B,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM;IACzG,iBAAiB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,iBAAiB;IACxE,eAAe,EAAE,cAAc,EAAE,qBAAqB,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU;IACxI,UAAU,EAAE,cAAc,EAAE,SAAS,EAAE,qBAAqB,EAAE,eAAe;IAC7E,YAAY,EAAE,oBAAoB;IAClC,mBAAmB,EAAE,YAAY;CACzB,CAAC;AAEX,SAAS,cAAc;IACrB,MAAM,GAAG,GAAsB,EAAE,CAAC;IAClC,KAAK,MAAM,GAAG,IAAI,sBAAsB,EAAE,CAAC;QACzC,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAC/B,IAAI,KAAK,KAAK,SAAS;YAAE,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IAC5C,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,sGAAsG;AACtG,MAAM,UAAU,yBAAyB,CAAC,KAAc;IACtD,IAAI,KAAK,YAAY,sBAAsB,EAAE,CAAC;QAC5C;;;;WAIG;QACH,MAAM,QAAQ,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QACzI,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,IAAI,CAAC;gBACH,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAwB,CAAC;gBACxE,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC;oBAAE,OAAO,QAAQ,CAAC;YAC3E,CAAC;YAAC,MAAM,CAAC;gBACP,sDAAsD;YACxD,CAAC;QACH,CAAC;QACD,MAAM,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,KAAK,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,CAAC;QAC9F,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAC/H,OAAO,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC;IAC7D,CAAC;IACD,OAAO,mBAAmB,CAAC,KAAK,CAAC,CAAC;AACpC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CAAI,MAAc;IACnD,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7H,IAAI,IAAI,KAAK,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;IACnF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAM,CAAC;AAC/B,CAAC;AAED,gHAAgH;AAChH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,QAAgB;IAK3D,MAAM,MAAM,GAAG,MAAM,wBAAwB,CAAC;QAC5C,OAAO,EAAE,OAAO;QAChB,IAAI,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC;QAC5C,GAAG,EAAE,QAAQ;QACb,GAAG,EAAE,cAAc,EAAE;QACrB,SAAS,EAAE,eAAe;KAC3B,CAAC,CAAC;IACH,MAAM,OAAO,GAAG,mBAAmB,CAAiB,MAAM,CAAC,MAAM,CAAC,CAAC;IACnE,MAAM,IAAI,GAA8B,EAAE,CAAC;IAC3C,MAAM,UAAU,GAAmC,EAAE,CAAC;IACtD,MAAM,UAAU,GAAmC,EAAE,CAAC;IACtD,KAAK,MAAM,WAAW,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;QAC/C,IAAI,WAAW,CAAC,KAAK;YAAE,UAAU,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,WAAW,CAAC,OAAO,EAAE,KAAK,EAAE,WAAW,CAAC,KAAK,EAAE,CAAC,CAAC;QACnG,IAAI,CAAC,WAAW,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC;YAAE,UAAU,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,WAAW,CAAC,OAAO,EAAE,UAAU,EAAE,WAAW,CAAC,UAAW,EAAE,CAAC,CAAC;QACtI,IAAI,CAAC,IAAI,CAAC,GAAG,qBAAqB,CAAC,WAAW,CAAC,CAAC,CAAC;IACnD,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;AAC1C,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,QAAgB,EAAE,OAAe,EAAE,IAA2B,EAAE,UAAkB,EAAE,KAAa;IAC1I,MAAM,MAAM,GAAG,MAAM,wBAAwB,CAAC;QAC5C,OAAO,EAAE,OAAO;QAChB,qGAAqG;QACrG,IAAI,EAAE,CAAC,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,eAAe,EAAE,0BAA0B,EAAE,QAAQ,CAAC;QAC7H,GAAG,EAAE,QAAQ;QACb,GAAG,EAAE,cAAc,EAAE;QACrB,YAAY,EAAE,KAAK;QACnB,SAAS,EAAE,iBAAiB;KAC7B,CAAC,CAAC;IACH,OAAO,yBAAyB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAClD,CAAC;AAED,2EAA2E;AAC3E,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,QAAgB,EAAE,OAAe,EAAE,IAA2B,EAAE,UAAkB;IAC7H,MAAM,MAAM,GAAG,MAAM,wBAAwB,CAAC;QAC5C,OAAO,EAAE,OAAO;QAChB,IAAI,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,0BAA0B,EAAE,QAAQ,CAAC;QAC9G,GAAG,EAAE,QAAQ;QACb,GAAG,EAAE,cAAc,EAAE;QACrB,SAAS,EAAE,iBAAiB;KAC7B,CAAC,CAAC;IACH,OAAO,yBAAyB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAClD,CAAC","sourcesContent":["/**\n * The workbench's secrets section, served by running `wildo secrets` (#1637).\n *\n * The companion never reads or writes a secret itself. `wildo secrets` is the one writer — it owns\n * `secrets.json`'s schema and its single writer, the env-file regeneration, the restart of the\n * runtimes that read a key, and the GitHub secrets of a remote environment — so the section goes\n * through it, and a secret has one mutation path whether a person types it in a terminal or here.\n * The companion's generic file routes refuse secret-bearing paths for the same reason\n * (`companion-file-route-confinement.ts`).\n *\n * Values travel ONE way, on the child's stdin, and are never held, logged or returned: the listing\n * carries names and standings only.\n */\nimport { BoundedSubprocessError, describeCaughtError, executeBoundedSubprocess } from '@wildo-ai/saas-backend-lib';\nimport {\n applicationSecretRowId,\n type ApplicationSecretKind,\n type ApplicationSecretRemoteLevel,\n type ApplicationSecretStanding,\n type Workbench_ApplicationSecretChangeOutcome,\n} from '@wildo-ai/platform-core-shared';\n\n/**\n * Listing loads the application once and asks GitHub per remote environment: 86 s was measured for one\n * environment on a loaded machine (2026-09-26), against a 120 s bound that a second environment or a busier\n * hour would pass. Re-measured 2026-09-27 with the system-of-record facets and the built backend's inbound\n * endpoints also read: 74 s wall, 19.5 s CPU, for `local`. Only the first read waits on it (the board refreshes behind the rows it serves), so the\n * bound is about not abandoning a slow listing, not about a person waiting.\n */\nconst LIST_TIMEOUT_MS = 300_000;\nconst CHANGE_TIMEOUT_MS = 300_000;\n\n/** What `wildo secrets list --all --json` prints (`commands/secrets/list.command.ts`). */\ninterface SecretsListingEnvironment {\n readonly envName: string;\n readonly error?: string | null;\n /** What the listing could not derive (a backend not built, a facet unreadable), each saying why. */\n readonly incomplete?: readonly string[];\n readonly requirements: ReadonlyArray<{\n readonly envVarName: string;\n readonly kind: ApplicationSecretKind;\n readonly ownerRef: string | null;\n readonly description: string | null;\n readonly capabilities: readonly string[];\n readonly runtimes: readonly string[];\n readonly standing: ApplicationSecretStanding;\n readonly creationEssential: boolean;\n readonly remoteLevel?: ApplicationSecretRemoteLevel;\n }>;\n}\n\ninterface SecretsListing {\n readonly environments: ReadonlyArray<SecretsListingEnvironment>;\n}\n\n/**\n * What a set/unset answered: the outcome the page is shown, and the environment's rows after the change\n * (#1782). `environmentRows` is `null` when the CLI did not report them, and the caller then drops its\n * listing instead of patching it.\n */\nexport interface ApplicationSecretChange {\n readonly outcome: Workbench_ApplicationSecretChangeOutcome;\n readonly environmentRows: Record<string, unknown>[] | null;\n}\n\n/** One environment's requirements as workbench rows — the ONE mapping a listing and a change both use. */\nfunction toWorkbenchSecretRows(environment: SecretsListingEnvironment): Record<string, unknown>[] {\n return environment.requirements.map((requirement) => ({\n workbenchApplicationSecretId: applicationSecretRowId(environment.envName, requirement.kind, requirement.envVarName),\n environmentName: environment.envName,\n envVarName: requirement.envVarName,\n standing: requirement.standing,\n kind: requirement.kind,\n ownerRef: requirement.ownerRef,\n description: requirement.description,\n capabilities: [...requirement.capabilities],\n runtimes: [...requirement.runtimes],\n creationEssential: requirement.creationEssential,\n remoteLevel: requirement.remoteLevel ?? null,\n }));\n}\n\n/** Split the CLI's change answer: the report rides beside the outcome and never reaches the page. */\nfunction toApplicationSecretChange(stdout: string): ApplicationSecretChange {\n const { environmentAfterChange, ...outcome } = parseSecretsCliJson<Workbench_ApplicationSecretChangeOutcome & { environmentAfterChange?: SecretsListingEnvironment }>(stdout);\n return { outcome, environmentRows: environmentAfterChange ? toWorkbenchSecretRows(environmentAfterChange) : null };\n}\n\n/** One environment the listing could not read, named so the section can say so rather than show nothing. */\nexport interface UnreadableSecretsEnvironment {\n readonly envName: string;\n readonly error: string;\n}\n\n/** One environment listed only in part, with what was left out and why. */\nexport interface IncompleteSecretsEnvironment {\n readonly envName: string;\n readonly incomplete: readonly string[];\n}\n\n/**\n * What the CLI child inherits from the companion's environment — named, never the whole of it, which\n * carries platform secrets a child must not receive. Everything else is what a terminal would give the\n * same command: identity and locale; temp dirs; the proxy and certificate variables a networked `gh`\n * needs; `gh`'s own token and host variables (a remote environment's secrets are written through it);\n * the Wildo selection variables; and the coding agents' config pointers, because `wildo secrets list`\n * reports the selected agent's login and must read it where the agent does.\n */\nconst CLI_INHERITED_ENV_KEYS = [\n 'PATH', 'HOME', 'USER', 'LOGNAME', 'SHELL', 'TERM', 'LANG', 'LC_ALL', 'LC_CTYPE', 'TMPDIR', 'TMP', 'TEMP',\n 'XDG_CONFIG_HOME', 'XDG_CACHE_HOME', 'XDG_STATE_HOME', 'XDG_RUNTIME_DIR',\n 'SSL_CERT_FILE', 'SSL_CERT_DIR', 'NODE_EXTRA_CA_CERTS', 'HTTP_PROXY', 'HTTPS_PROXY', 'NO_PROXY', 'http_proxy', 'https_proxy', 'no_proxy',\n 'GH_TOKEN', 'GITHUB_TOKEN', 'GH_HOST', 'GH_ENTERPRISE_TOKEN', 'GH_CONFIG_DIR',\n 'WILDO_HOME', 'WILDO_CODING_AGENT',\n 'CLAUDE_CONFIG_DIR', 'CODEX_HOME',\n] as const;\n\nfunction cliEnvironment(): NodeJS.ProcessEnv {\n const env: NodeJS.ProcessEnv = {};\n for (const key of CLI_INHERITED_ENV_KEYS) {\n const value = process.env[key];\n if (value !== undefined) env[key] = value;\n }\n return env;\n}\n\n/** The CLI's own sentence for a failure: its `{\"error\": …}` answer, else the last line it printed. */\nexport function describeSecretsCliFailure(error: unknown): string {\n if (error instanceof BoundedSubprocessError) {\n /*\n * The refusal's own sentence, from the `{\"error\": …}` line a `--json` run prints on stdout. The text\n * fallback below reads the LAST stderr line, which is the CLI's generic \"secrets set failed\" summary;\n * it stays only for a run that died before it could answer (a crash, a timeout).\n */\n const answered = String(error.details.stdout ?? '').split('\\n').map((line) => line.trim()).filter((line) => line.startsWith('{')).at(-1);\n if (answered !== undefined) {\n try {\n const { error: sentence } = JSON.parse(answered) as { error?: unknown };\n if (typeof sentence === 'string' && sentence.length > 0) return sentence;\n } catch {\n // Not the refusal document; fall through to the text.\n }\n }\n const output = `${String(error.details.stderr ?? '')}\\n${String(error.details.stdout ?? '')}`;\n const lines = output.split('\\n').map((line) => line.replace(/\\u001b\\[[0-9;]*m/g, '').trim()).filter((line) => line.length > 0);\n return lines.at(-1)?.replace(/^✖\\s*/, '') ?? error.message;\n }\n return describeCaughtError(error);\n}\n\n/**\n * The JSON document a `--json` run printed: its LAST line that is one. The CLI prints its answer as\n * one line precisely so it can be found among anything else a run writes to stdout (a notice, a warning).\n */\nexport function parseSecretsCliJson<T>(stdout: string): T {\n const line = stdout.split('\\n').map((candidate) => candidate.trim()).filter((candidate) => candidate.startsWith('{')).at(-1);\n if (line === undefined) throw new Error('`wildo secrets` printed no JSON answer.');\n return JSON.parse(line) as T;\n}\n\n/** Every (environment, secret) row, plus the environments that could not be read, or were read only in part. */\nexport async function readApplicationSecrets(saasRoot: string): Promise<{\n rows: Record<string, unknown>[];\n unreadable: UnreadableSecretsEnvironment[];\n incomplete: IncompleteSecretsEnvironment[];\n}> {\n const result = await executeBoundedSubprocess({\n command: 'wildo',\n args: ['secrets', 'list', '--all', '--json'],\n cwd: saasRoot,\n env: cliEnvironment(),\n timeoutMs: LIST_TIMEOUT_MS,\n });\n const listing = parseSecretsCliJson<SecretsListing>(result.stdout);\n const rows: Record<string, unknown>[] = [];\n const unreadable: UnreadableSecretsEnvironment[] = [];\n const incomplete: IncompleteSecretsEnvironment[] = [];\n for (const environment of listing.environments) {\n if (environment.error) unreadable.push({ envName: environment.envName, error: environment.error });\n if ((environment.incomplete ?? []).length > 0) incomplete.push({ envName: environment.envName, incomplete: environment.incomplete! });\n rows.push(...toWorkbenchSecretRows(environment));\n }\n return { rows, unreadable, incomplete };\n}\n\n/**\n * Provide one secret's value — on the child's stdin, never in its arguments. `kind` names the `secrets.json`\n * section, because a name alone can be in two (a key left in the wrong one by a migration).\n */\nexport async function setApplicationSecret(saasRoot: string, envName: string, kind: ApplicationSecretKind, envVarName: string, value: string): Promise<ApplicationSecretChange> {\n const result = await executeBoundedSubprocess({\n command: 'wildo',\n // `--skip-companion-restart`: this process serves the request; it applies the change itself instead.\n args: ['secrets', 'set', envVarName, '--env', envName, '--kind', kind, '--value-stdin', '--skip-companion-restart', '--json'],\n cwd: saasRoot,\n env: cliEnvironment(),\n stdinPayload: value,\n timeoutMs: CHANGE_TIMEOUT_MS,\n });\n return toApplicationSecretChange(result.stdout);\n}\n\n/** Remove one secret from one environment, in the section `kind` names. */\nexport async function unsetApplicationSecret(saasRoot: string, envName: string, kind: ApplicationSecretKind, envVarName: string): Promise<ApplicationSecretChange> {\n const result = await executeBoundedSubprocess({\n command: 'wildo',\n args: ['secrets', 'unset', envVarName, '--env', envName, '--kind', kind, '--skip-companion-restart', '--json'],\n cwd: saasRoot,\n env: cliEnvironment(),\n timeoutMs: CHANGE_TIMEOUT_MS,\n });\n return toApplicationSecretChange(result.stdout);\n}\n"]}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { CreationConsoleQuestionKind, WorkbenchCreationPlaneBehavior, type CreationConsole_AnswerOutcome, type CreationConsole_AnswerRequest, type CreationConsole_Question } from '@wildo-ai/platform-core-shared';
|
|
2
|
+
import { MetaWorkflow_ClarificationAction } from '@wildo-ai/saas-models/meta-workflows';
|
|
3
|
+
/**
|
|
4
|
+
* The CREATION CONSOLE's answer door — one entry for every question the companion asks, routed to the
|
|
5
|
+
* SAME service the matching workbench operation calls:
|
|
6
|
+
*
|
|
7
|
+
* | kind | service | workbench operation it mirrors |
|
|
8
|
+
* |---|---|---|
|
|
9
|
+
* | clarification | `PlaybookRunCompanionService.resumePlaybookRun` | `workbenchPlaybooks.resume_run` |
|
|
10
|
+
* | parked coding question | `CodingAgentDispatchCompanionService.respondToApplicationCodingTaskQuestion` / `cancelApplicationCodingTask` | `workbenchParkedCodingQuestions.answer` / `.cancel` |
|
|
11
|
+
* | interview | `DossierCompanionService.recordAnswer` | `workbenchDossierEntries.answer` |
|
|
12
|
+
*
|
|
13
|
+
* The services are reached through PORTS so this module is a pure function of its inputs and can be
|
|
14
|
+
* pinned without a container; the controller binds them.
|
|
15
|
+
*
|
|
16
|
+
* ## The item is resolved FRESH, and its revision must match
|
|
17
|
+
*
|
|
18
|
+
* The request names a question by the id the console read, and carries the REVISION it read (a
|
|
19
|
+
* clarification's round, a parked run's suspension ref). The queue is re-derived here and the item
|
|
20
|
+
* found by id; a revision that moved is refused as SUPERSEDED rather than applied — the hazard #1581
|
|
21
|
+
* and #1584 closed on the workbench's doors, where an answer typed for one question landed on the
|
|
22
|
+
* next one the run asked under the same id. The services check it again; this refusal is the one
|
|
23
|
+
* that names the console's own terms.
|
|
24
|
+
*/
|
|
25
|
+
/** Why an answer was refused before any service was reached — each maps to its own HTTP status. */
|
|
26
|
+
export declare enum CreationConsoleRefusalKind {
|
|
27
|
+
/** The request cannot be applied as written — 400. */
|
|
28
|
+
MALFORMED = "malformed",
|
|
29
|
+
/** Nothing waits under that id now: answered, cancelled or finished meanwhile — 409. */
|
|
30
|
+
NOT_WAITING = "not-waiting",
|
|
31
|
+
/** The question waiting under that id is not the one that was read — 409. */
|
|
32
|
+
SUPERSEDED = "superseded"
|
|
33
|
+
}
|
|
34
|
+
export declare class CreationConsoleRefusal extends Error {
|
|
35
|
+
readonly refusal: CreationConsoleRefusalKind;
|
|
36
|
+
constructor(refusal: CreationConsoleRefusalKind, message: string);
|
|
37
|
+
}
|
|
38
|
+
export interface CreationConsolePorts {
|
|
39
|
+
/** The creation plane's rows for one behavior, as the projection serves them. */
|
|
40
|
+
readonly deriveRows: (behavior: WorkbenchCreationPlaneBehavior) => Promise<readonly Record<string, unknown>[]>;
|
|
41
|
+
readonly resumePlaybookRun: (input: {
|
|
42
|
+
readonly runId: string;
|
|
43
|
+
readonly round: number;
|
|
44
|
+
readonly action: MetaWorkflow_ClarificationAction;
|
|
45
|
+
readonly answers?: readonly {
|
|
46
|
+
readonly ref: string;
|
|
47
|
+
readonly answer: string;
|
|
48
|
+
readonly answeredByRef?: string;
|
|
49
|
+
}[];
|
|
50
|
+
readonly answeredByRef?: string;
|
|
51
|
+
}) => Promise<unknown>;
|
|
52
|
+
readonly respondToParkedQuestion: (taskId: string, answer: string, suspensionRef: string, answeredByRef?: string) => Promise<unknown>;
|
|
53
|
+
readonly cancelCodingRun: (taskId: string) => Promise<{
|
|
54
|
+
readonly cancelled: boolean;
|
|
55
|
+
}>;
|
|
56
|
+
readonly recordInterviewAnswer: (input: {
|
|
57
|
+
readonly playbookRef: string;
|
|
58
|
+
readonly questionRef: string;
|
|
59
|
+
readonly value: string;
|
|
60
|
+
readonly answeredByRef: string;
|
|
61
|
+
}) => Promise<unknown>;
|
|
62
|
+
/** The boards move after an answer; the next read must not answer "as of before". */
|
|
63
|
+
readonly invalidate: () => void;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* The question queue, derived from the rows of the kinds asked for (every kind by default). Deriving
|
|
67
|
+
* only what an answer needs keeps the answer door from paying for boards it never reads.
|
|
68
|
+
*/
|
|
69
|
+
export declare function readCreationConsoleQuestions(ports: Pick<CreationConsolePorts, 'deriveRows'>, kinds?: readonly CreationConsoleQuestionKind[]): Promise<CreationConsole_Question[]>;
|
|
70
|
+
/**
|
|
71
|
+
* Apply one answer. Refusals the services raise (a validation of the answer's content, a run that
|
|
72
|
+
* moved between this read and theirs) propagate UNTOUCHED, for the caller to translate the way it
|
|
73
|
+
* translates them on every other door.
|
|
74
|
+
*/
|
|
75
|
+
export declare function answerCreationConsoleQuestion(ports: CreationConsolePorts, request: CreationConsole_AnswerRequest): Promise<CreationConsole_AnswerOutcome>;
|
|
76
|
+
//# sourceMappingURL=creation-console-answer.companion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"creation-console-answer.companion.d.ts","sourceRoot":"","sources":["../../../../../../src/core/introspection/resources/creation-console-answer.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,2BAA2B,EAC3B,8BAA8B,EAE9B,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAK9B,MAAM,gCAAgC,CAAC;AAGxC,OAAO,EAAE,gCAAgC,EAAE,MAAM,sCAAsC,CAAC;AAExF;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,mGAAmG;AACnG,oBAAY,0BAA0B;IACpC,sDAAsD;IACtD,SAAS,cAAc;IACvB,wFAAwF;IACxF,WAAW,gBAAgB;IAC3B,6EAA6E;IAC7E,UAAU,eAAe;CAC1B;AAED,qBAAa,sBAAuB,SAAQ,KAAK;aACZ,OAAO,EAAE,0BAA0B;gBAAnC,OAAO,EAAE,0BAA0B,EAAE,OAAO,EAAE,MAAM;CAIxF;AAED,MAAM,WAAW,oBAAoB;IACnC,iFAAiF;IACjF,QAAQ,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,8BAA8B,KAAK,OAAO,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;IAC/G,QAAQ,CAAC,iBAAiB,EAAE,CAAC,KAAK,EAAE;QAClC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,MAAM,EAAE,gCAAgC,CAAC;QAClD,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS;YAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;QACjH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;KACjC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACvB,QAAQ,CAAC,uBAAuB,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACtI,QAAQ,CAAC,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IACvF,QAAQ,CAAC,qBAAqB,EAAE,CAAC,KAAK,EAAE;QACtC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;QAC7B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;QAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;KAChC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACvB,qFAAqF;IACrF,QAAQ,CAAC,UAAU,EAAE,MAAM,IAAI,CAAC;CACjC;AAUD;;;GAGG;AACH,wBAAsB,4BAA4B,CAChD,KAAK,EAAE,IAAI,CAAC,oBAAoB,EAAE,YAAY,CAAC,EAC/C,KAAK,GAAE,SAAS,2BAA2B,EAA+C,GACzF,OAAO,CAAC,wBAAwB,EAAE,CAAC,CAUrC;AA4DD;;;;GAIG;AACH,wBAAsB,6BAA6B,CACjD,KAAK,EAAE,oBAAoB,EAC3B,OAAO,EAAE,6BAA6B,GACrC,OAAO,CAAC,6BAA6B,CAAC,CA2ExC"}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { CreationConsoleAnswerAction, CreationConsoleQuestionKind, WorkbenchCreationPlaneBehavior, parseCreationConsoleQuestionId, } from '@wildo-ai/platform-core-shared';
|
|
2
|
+
import { buildCreationConsoleQuestions } from './creation-console-projection.companion.js';
|
|
3
|
+
import { MetaWorkflow_ClarificationAction } from '@wildo-ai/saas-models/meta-workflows';
|
|
4
|
+
/**
|
|
5
|
+
* The CREATION CONSOLE's answer door — one entry for every question the companion asks, routed to the
|
|
6
|
+
* SAME service the matching workbench operation calls:
|
|
7
|
+
*
|
|
8
|
+
* | kind | service | workbench operation it mirrors |
|
|
9
|
+
* |---|---|---|
|
|
10
|
+
* | clarification | `PlaybookRunCompanionService.resumePlaybookRun` | `workbenchPlaybooks.resume_run` |
|
|
11
|
+
* | parked coding question | `CodingAgentDispatchCompanionService.respondToApplicationCodingTaskQuestion` / `cancelApplicationCodingTask` | `workbenchParkedCodingQuestions.answer` / `.cancel` |
|
|
12
|
+
* | interview | `DossierCompanionService.recordAnswer` | `workbenchDossierEntries.answer` |
|
|
13
|
+
*
|
|
14
|
+
* The services are reached through PORTS so this module is a pure function of its inputs and can be
|
|
15
|
+
* pinned without a container; the controller binds them.
|
|
16
|
+
*
|
|
17
|
+
* ## The item is resolved FRESH, and its revision must match
|
|
18
|
+
*
|
|
19
|
+
* The request names a question by the id the console read, and carries the REVISION it read (a
|
|
20
|
+
* clarification's round, a parked run's suspension ref). The queue is re-derived here and the item
|
|
21
|
+
* found by id; a revision that moved is refused as SUPERSEDED rather than applied — the hazard #1581
|
|
22
|
+
* and #1584 closed on the workbench's doors, where an answer typed for one question landed on the
|
|
23
|
+
* next one the run asked under the same id. The services check it again; this refusal is the one
|
|
24
|
+
* that names the console's own terms.
|
|
25
|
+
*/
|
|
26
|
+
/** Why an answer was refused before any service was reached — each maps to its own HTTP status. */
|
|
27
|
+
export var CreationConsoleRefusalKind;
|
|
28
|
+
(function (CreationConsoleRefusalKind) {
|
|
29
|
+
/** The request cannot be applied as written — 400. */
|
|
30
|
+
CreationConsoleRefusalKind["MALFORMED"] = "malformed";
|
|
31
|
+
/** Nothing waits under that id now: answered, cancelled or finished meanwhile — 409. */
|
|
32
|
+
CreationConsoleRefusalKind["NOT_WAITING"] = "not-waiting";
|
|
33
|
+
/** The question waiting under that id is not the one that was read — 409. */
|
|
34
|
+
CreationConsoleRefusalKind["SUPERSEDED"] = "superseded";
|
|
35
|
+
})(CreationConsoleRefusalKind || (CreationConsoleRefusalKind = {}));
|
|
36
|
+
export class CreationConsoleRefusal extends Error {
|
|
37
|
+
refusal;
|
|
38
|
+
constructor(refusal, message) {
|
|
39
|
+
super(message);
|
|
40
|
+
this.refusal = refusal;
|
|
41
|
+
this.name = 'CreationConsoleRefusal';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/** The behavior each question kind is derived from — TOTAL, so a new kind is a compile error until placed. */
|
|
45
|
+
const SOURCE_BEHAVIOR_BY_KIND = {
|
|
46
|
+
[CreationConsoleQuestionKind.CLARIFICATION]: WorkbenchCreationPlaneBehavior.WAITING_PLAYBOOK_RUNS,
|
|
47
|
+
[CreationConsoleQuestionKind.PARKED_CODING_QUESTION]: WorkbenchCreationPlaneBehavior.PARKED_CODING_QUESTIONS,
|
|
48
|
+
[CreationConsoleQuestionKind.INTERVIEW]: WorkbenchCreationPlaneBehavior.DOSSIER_ENTRIES,
|
|
49
|
+
[CreationConsoleQuestionKind.GOVERNANCE_FACT]: WorkbenchCreationPlaneBehavior.GOVERNANCE_QUESTIONS,
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* The question queue, derived from the rows of the kinds asked for (every kind by default). Deriving
|
|
53
|
+
* only what an answer needs keeps the answer door from paying for boards it never reads.
|
|
54
|
+
*/
|
|
55
|
+
export async function readCreationConsoleQuestions(ports, kinds = Object.values(CreationConsoleQuestionKind)) {
|
|
56
|
+
const rowsOf = async (kind) => kinds.includes(kind) ? (await ports.deriveRows(SOURCE_BEHAVIOR_BY_KIND[kind])) : [];
|
|
57
|
+
const [waiting, parked, dossier, governance] = await Promise.all([
|
|
58
|
+
rowsOf(CreationConsoleQuestionKind.CLARIFICATION),
|
|
59
|
+
rowsOf(CreationConsoleQuestionKind.PARKED_CODING_QUESTION),
|
|
60
|
+
rowsOf(CreationConsoleQuestionKind.INTERVIEW),
|
|
61
|
+
rowsOf(CreationConsoleQuestionKind.GOVERNANCE_FACT),
|
|
62
|
+
]);
|
|
63
|
+
return buildCreationConsoleQuestions({ waiting, parked, dossier, governance });
|
|
64
|
+
}
|
|
65
|
+
function refuse(kind, message) {
|
|
66
|
+
throw new CreationConsoleRefusal(kind, message);
|
|
67
|
+
}
|
|
68
|
+
/** Check the request against the item as it stands now, before any service is reached. */
|
|
69
|
+
function admit(question, request) {
|
|
70
|
+
if (question.actions.length === 0) {
|
|
71
|
+
refuse(CreationConsoleRefusalKind.MALFORMED, question.kind === CreationConsoleQuestionKind.GOVERNANCE_FACT
|
|
72
|
+
? `"${question.questionId}" is a governed-document fact. Facts are landed as a whole-document sitting that also names the `
|
|
73
|
+
+ 'governance scope and who decided, which the console does not carry — answer it in the workbench\'s governance panel.'
|
|
74
|
+
: question.routedToUserId
|
|
75
|
+
? `"${question.questionId}" was asked of the person who started its run, and only they may answer it. `
|
|
76
|
+
+ 'The console carries no signed-in person — answer it in the workbench, signed in as them.'
|
|
77
|
+
: `"${question.questionId}" cannot be answered from the console.`);
|
|
78
|
+
}
|
|
79
|
+
if (!question.actions.includes(request.action)) {
|
|
80
|
+
refuse(CreationConsoleRefusalKind.MALFORMED, `"${question.questionId}" admits ${question.actions.join(', ')} — not ${request.action}.`);
|
|
81
|
+
}
|
|
82
|
+
if (question.revision !== null) {
|
|
83
|
+
if (!request.revision) {
|
|
84
|
+
refuse(CreationConsoleRefusalKind.MALFORMED, `"${question.questionId}" carries a revision (${question.revision}); send the one you read, so an answer never lands on a later question.`);
|
|
85
|
+
}
|
|
86
|
+
if (request.revision !== question.revision) {
|
|
87
|
+
refuse(CreationConsoleRefusalKind.SUPERSEDED, `"${question.questionId}" has moved on: it now waits on revision ${question.revision}, and this answer was written for ${request.revision}. `
|
|
88
|
+
+ 'Read the queue again and answer what it asks now.');
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
const answers = request.answers ?? [];
|
|
92
|
+
/*
|
|
93
|
+
* A DECLINE may carry the answers the person DID give (#1658) — "these I answered, decide the rest" —
|
|
94
|
+
* so they are checked like an answer's. A CANCEL withdraws the run and carries none.
|
|
95
|
+
*/
|
|
96
|
+
if (request.action === CreationConsoleAnswerAction.CANCEL) {
|
|
97
|
+
if (answers.length > 0)
|
|
98
|
+
refuse(CreationConsoleRefusalKind.MALFORMED, '`cancel` carries no answers; send `answer` to answer, or `decline` with the answers you did give.');
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
if (request.action === CreationConsoleAnswerAction.ANSWER && answers.length === 0) {
|
|
102
|
+
refuse(CreationConsoleRefusalKind.MALFORMED, '`answer` needs at least one `{ ref, value }`.');
|
|
103
|
+
}
|
|
104
|
+
const known = new Set(question.fields.map((field) => field.ref));
|
|
105
|
+
const unknown = answers.filter((answer) => !known.has(answer.ref)).map((answer) => answer.ref);
|
|
106
|
+
if (unknown.length > 0) {
|
|
107
|
+
refuse(CreationConsoleRefusalKind.MALFORMED, `"${question.questionId}" asks ${[...known].map((ref) => `"${ref}"`).join(', ')} — not ${unknown.map((ref) => `"${ref}"`).join(', ')}.`);
|
|
108
|
+
}
|
|
109
|
+
if (new Set(answers.map((answer) => answer.ref)).size !== answers.length) {
|
|
110
|
+
refuse(CreationConsoleRefusalKind.MALFORMED, 'Each question is answered once per request.');
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
const CLARIFICATION_ACTION_BY_CONSOLE_ACTION = {
|
|
114
|
+
[CreationConsoleAnswerAction.ANSWER]: MetaWorkflow_ClarificationAction.ACCEPT,
|
|
115
|
+
[CreationConsoleAnswerAction.DECLINE]: MetaWorkflow_ClarificationAction.DECLINE,
|
|
116
|
+
[CreationConsoleAnswerAction.CANCEL]: MetaWorkflow_ClarificationAction.CANCEL,
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* Apply one answer. Refusals the services raise (a validation of the answer's content, a run that
|
|
120
|
+
* moved between this read and theirs) propagate UNTOUCHED, for the caller to translate the way it
|
|
121
|
+
* translates them on every other door.
|
|
122
|
+
*/
|
|
123
|
+
export async function answerCreationConsoleQuestion(ports, request) {
|
|
124
|
+
const parsed = parseCreationConsoleQuestionId(request.questionId);
|
|
125
|
+
if (!parsed) {
|
|
126
|
+
refuse(CreationConsoleRefusalKind.MALFORMED, `"${request.questionId}" is not a question id. Ids look like "<kind>:<row>", as \`wildo creation questions\` prints them; `
|
|
127
|
+
+ `the kinds are ${Object.values(CreationConsoleQuestionKind).join(', ')}.`);
|
|
128
|
+
}
|
|
129
|
+
const question = (await readCreationConsoleQuestions(ports, [parsed.kind]))
|
|
130
|
+
.find((candidate) => candidate.questionId === request.questionId);
|
|
131
|
+
if (!question) {
|
|
132
|
+
refuse(CreationConsoleRefusalKind.NOT_WAITING, `Nothing waits under "${request.questionId}" now — it was answered, cancelled or finished meanwhile. Read the queue again.`);
|
|
133
|
+
}
|
|
134
|
+
admit(question, request);
|
|
135
|
+
const answers = request.answers ?? [];
|
|
136
|
+
const settle = (outcome) => ({
|
|
137
|
+
questionId: question.questionId,
|
|
138
|
+
kind: question.kind,
|
|
139
|
+
action: request.action,
|
|
140
|
+
outcome,
|
|
141
|
+
});
|
|
142
|
+
try {
|
|
143
|
+
switch (question.kind) {
|
|
144
|
+
case CreationConsoleQuestionKind.CLARIFICATION: {
|
|
145
|
+
const waiting = (await ports.deriveRows(WorkbenchCreationPlaneBehavior.WAITING_PLAYBOOK_RUNS))
|
|
146
|
+
.find((row) => row.workbenchWaitingPlaybookRunId === parsed.rowId);
|
|
147
|
+
if (!waiting)
|
|
148
|
+
refuse(CreationConsoleRefusalKind.NOT_WAITING, `The run behind "${request.questionId}" stopped waiting meanwhile.`);
|
|
149
|
+
return settle(await ports.resumePlaybookRun({
|
|
150
|
+
runId: waiting.runId,
|
|
151
|
+
round: Number(question.revision),
|
|
152
|
+
action: CLARIFICATION_ACTION_BY_CONSOLE_ACTION[request.action],
|
|
153
|
+
/* Each answer keeps its own author, so a round an agent and the person answered together records both (#1658). */
|
|
154
|
+
...(answers.length > 0
|
|
155
|
+
? { answers: answers.map((answer) => ({ ref: answer.ref, answer: answer.value, ...(answer.answeredByRef ? { answeredByRef: answer.answeredByRef } : {}) })) }
|
|
156
|
+
: {}),
|
|
157
|
+
/* Who answered reaches the committed DECISIONS.md, for every kind, not only the dossier (#1658). */
|
|
158
|
+
...(request.answeredByRef ? { answeredByRef: request.answeredByRef } : {}),
|
|
159
|
+
}));
|
|
160
|
+
}
|
|
161
|
+
case CreationConsoleQuestionKind.PARKED_CODING_QUESTION: {
|
|
162
|
+
const parked = (await ports.deriveRows(WorkbenchCreationPlaneBehavior.PARKED_CODING_QUESTIONS))
|
|
163
|
+
.find((row) => row.workbenchParkedCodingQuestionId === parsed.rowId);
|
|
164
|
+
if (!parked)
|
|
165
|
+
refuse(CreationConsoleRefusalKind.NOT_WAITING, `The coding run behind "${request.questionId}" stopped waiting meanwhile.`);
|
|
166
|
+
if (request.action === CreationConsoleAnswerAction.CANCEL) {
|
|
167
|
+
const outcome = await ports.cancelCodingRun(parked.taskId);
|
|
168
|
+
/* The row existed a moment ago: "nothing to cancel" means the run moved on, which is a refusal, never a success. */
|
|
169
|
+
if (!outcome.cancelled) {
|
|
170
|
+
refuse(CreationConsoleRefusalKind.NOT_WAITING, 'This coding run is no longer waiting: it was answered, cancelled or finished meanwhile.');
|
|
171
|
+
}
|
|
172
|
+
return settle(outcome);
|
|
173
|
+
}
|
|
174
|
+
return settle(await ports.respondToParkedQuestion(parked.taskId, answers[0].value, String(question.revision), answers[0].answeredByRef ?? request.answeredByRef));
|
|
175
|
+
}
|
|
176
|
+
case CreationConsoleQuestionKind.INTERVIEW: {
|
|
177
|
+
const answeredByRef = answers[0].answeredByRef ?? request.answeredByRef;
|
|
178
|
+
if (!answeredByRef) {
|
|
179
|
+
refuse(CreationConsoleRefusalKind.MALFORMED, 'An interview answer records who gave it: send `answeredByRef` (`wildo` sends your git identity; an agent answering on its own sends its own ref).');
|
|
180
|
+
}
|
|
181
|
+
return settle(await ports.recordInterviewAnswer({
|
|
182
|
+
playbookRef: String(question.playbookRef),
|
|
183
|
+
questionRef: answers[0].ref,
|
|
184
|
+
value: answers[0].value,
|
|
185
|
+
answeredByRef,
|
|
186
|
+
}));
|
|
187
|
+
}
|
|
188
|
+
case CreationConsoleQuestionKind.GOVERNANCE_FACT:
|
|
189
|
+
/* `admit` refuses first — an item with no actions is never answered here. */
|
|
190
|
+
return refuse(CreationConsoleRefusalKind.MALFORMED, `"${question.questionId}" cannot be answered from the console.`);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
finally {
|
|
194
|
+
ports.invalidate();
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
//# sourceMappingURL=creation-console-answer.companion.js.map
|