@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-actor-execution-persistence.adapter.js","sourceRoot":"","sources":["../../../../../src/executions/services/companion-actor-execution-persistence.adapter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAa/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAEjF,OAAO,EACL,0CAA0C,EAC1C,qCAAqC,EACrC,kCAAkC,EAClC,0CAA0C,EAC1C,qCAAqC,GACtC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,mCAAmC,EAAE,MAAM,0CAA0C,CAAC;AAE/F;;;;;;;;;;;;;;;;;GAiBG;AAEI,IAAM,yCAAyC,GAA/C,MAAM,yCAAyC;IAEkB;IADtE,YACsE,UAA+C;QAA/C,eAAU,GAAV,UAAU,CAAqC;IAClH,CAAC;IAEG,KAAK,CAAC,eAAe,CAC1B,KAAqD,EACrD,KAAwC;QAExC,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAC1D,0CAA0C,CAAC,KAAK,CAAC;YAC/C,SAAS,EAAE,KAAK,CAAC,SAAS;YAC1B,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC1D,mGAAmG;YACnG,GAAG,CAAC,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AAC,SAAkD;QAC9D,OAAO;YACL,GAAG,EAAE,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC;YAC1B,SAAS,EAAE,SAAS,CAAC,SAAS;YAC9B,MAAM,EAAE,SAAS,CAAC,MAAM;YACxB,uFAAuF;YACvF,KAAK,EAAE,SAAS,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC3G,GAAG,CAAC,SAAS,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACnF,GAAG,CAAC,SAAS,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACnF,GAAG,CAAC,SAAS,CAAC,gBAAgB,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,SAAS,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACrG,SAAS,EAAE,SAAS,CAAC,SAAS;SAC/B,CAAC;IACJ,CAAC;CACF,CAAA;AAjIY,yCAAyC;IADrD,UAAU,EAAE;IAGR,WAAA,MAAM,CAAC,uBAAuB,CAAC,iBAAiB,CAAC,CAAA;qCAA8B,mCAAmC;GAF1G,yCAAyC,CAiIrD","sourcesContent":["import 'reflect-metadata';\nimport { inject, injectable } from 'inversify';\nimport type {\n ActorExecutionPersistencePort,\n ActorExecutionPersistence_CreateExecutionInput,\n ActorExecutionPersistence_CreateTaskInput,\n ActorExecutionPersistence_Created,\n ActorExecutionPersistence_ExecutionPatch,\n ActorExecutionPersistence_ExecutionRow,\n ActorExecutionPersistence_ListQuery,\n ActorExecutionPersistence_TaskPatch,\n} from '@wildo-ai/saas-backend-lib';\nimport type { Wildo_Application_ActorSystem_Execution } from '@wildo-ai/platform-core-shared';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionExecutionSessionContext } from '../../core/traceability/companion-traceability.models';\nimport {\n CompanionCreateActorExecutionRequestSchema,\n CompanionCreateActorTaskRequestSchema,\n CompanionExecutionsListQuerySchema,\n CompanionUpdateActorExecutionRequestSchema,\n CompanionUpdateActorTaskRequestSchema,\n} from '../../companion-api/companion-api.schemas';\nimport { CompanionExecutionsCompanionService } from './companion-executions.companion.service';\n\n/**\n * The platform's implementation of the engine's actor-plane persistence port (#1358).\n *\n * The engine's `ActorsSystemBackendService` owns the LIFECYCLE of an execution — open, execute,\n * settle, in that order — and asks this port to write the rows. The rows are the platform's\n * `wildoApplicationActorSystemExecutions` and `wildoApplicationActorTasks`, owned by an organization\n * and an application the engine knows nothing about, and `CompanionExecutionsCompanionService` already\n * writes them repository-direct under a unit of work with ownership resolved from the session. This\n * adapter is the translation and nothing more: the engine's port shapes into that service's request\n * DTOs, parsed through the same schemas the companion's own HTTP route parses.\n *\n * The scope the engine carries is the companion's trace session, so every row write is traced beside\n * the run it belongs to exactly as before the lifecycle moved into the engine.\n *\n * Bound under the ENGINE's token (`SAAS_SERVICE_TYPES.ActorExecutionPersistencePort`) in the companion\n * container — the same shape as `SAAS_SERVICE_TYPES.IntrospectionResourceSource`. A host that binds\n * nothing gets a runtime that refuses to open an execution, which is the point.\n */\n@injectable()\nexport class CompanionActorExecutionPersistenceAdapter implements ActorExecutionPersistencePort<CompanionExecutionSessionContext> {\n public constructor(\n @inject(COMPANION_SERVICE_TYPES.ExecutionsService) private readonly executions: CompanionExecutionsCompanionService,\n ) {}\n\n public async createExecution(\n input: ActorExecutionPersistence_CreateExecutionInput,\n scope?: CompanionExecutionSessionContext,\n ): Promise<ActorExecutionPersistence_Created> {\n const execution = await this.executions.createActorExecution(\n CompanionCreateActorExecutionRequestSchema.parse({\n systemRef: input.systemRef,\n status: input.status,\n ...(input.initiator ? { initiator: input.initiator } : {}),\n // The single-flight subject lives ON the row (#1361): it is the lease, read back by every process.\n ...(input.exclusiveSubject !== undefined ? { exclusiveSubject: input.exclusiveSubject } : {}),\n }),\n scope,\n );\n return { _id: String(execution._id) };\n }\n\n public async createTask(\n input: ActorExecutionPersistence_CreateTaskInput,\n scope?: CompanionExecutionSessionContext,\n ): Promise<ActorExecutionPersistence_Created> {\n const task = await this.executions.createActorTask(\n CompanionCreateActorTaskRequestSchema.parse({\n title: input.title,\n description: input.description,\n topic: input.topic,\n status: input.status,\n actors: { actorRef: input.actorRef },\n wildoApplicationActorSystemExecutionId: input.executionId,\n input: input.input,\n context: input.context,\n ...(input.startedAt !== undefined ? { startedAt: input.startedAt } : {}),\n ...(input.initiator ? { initiator: input.initiator } : {}),\n }),\n scope,\n );\n return { _id: String(task._id) };\n }\n\n public async updateTask(\n taskId: string,\n patch: ActorExecutionPersistence_TaskPatch,\n scope?: CompanionExecutionSessionContext,\n ): Promise<void> {\n await this.executions.updateActorTask(\n taskId,\n CompanionUpdateActorTaskRequestSchema.parse({\n status: patch.status,\n ...(patch.startedAt !== undefined ? { startedAt: patch.startedAt } : {}),\n ...(patch.input !== undefined ? { input: patch.input } : {}),\n ...(patch.completedAt !== undefined ? { completedAt: patch.completedAt } : {}),\n ...(patch.output !== undefined ? { output: patch.output } : {}),\n ...(patch.artifacts !== undefined ? { artifacts: patch.artifacts } : {}),\n }),\n scope,\n );\n }\n\n public async updateExecution(\n executionId: string,\n patch: ActorExecutionPersistence_ExecutionPatch,\n scope?: CompanionExecutionSessionContext,\n ): Promise<void> {\n /*\n * A checkpoint-only write carries no status, and the update contract requires one: it is the\n * row's CURRENT status, read here rather than guessed, and the service appends no status change\n * for a write that moves nothing.\n */\n const status = patch.status ?? (await this.executions.getActorExecution(executionId, scope)).status;\n await this.executions.updateActorExecution(\n executionId,\n CompanionUpdateActorExecutionRequestSchema.parse({\n status,\n ...(patch.finishedAt !== undefined ? { finishedAt: patch.finishedAt } : {}),\n ...(patch.suspension !== undefined ? { suspension: patch.suspension } : {}),\n ...(patch.checkpoint !== undefined ? { checkpoint: patch.checkpoint } : {}),\n }),\n scope,\n );\n }\n\n public async readExecution(\n executionId: string,\n scope?: CompanionExecutionSessionContext,\n ): Promise<ActorExecutionPersistence_ExecutionRow | null> {\n try {\n return this.toRow(await this.executions.getActorExecution(executionId, scope));\n } catch {\n // `getActorExecution` throws a NOT_FOUND for an id this application holds no row for; the\n // port's contract for that is `null`, and the engine names the refusal.\n return null;\n }\n }\n\n public async listExecutions(\n query: ActorExecutionPersistence_ListQuery,\n scope?: CompanionExecutionSessionContext,\n ): Promise<readonly ActorExecutionPersistence_ExecutionRow[]> {\n const rows: ActorExecutionPersistence_ExecutionRow[] = [];\n // One listing per status: the service's list filters on a single status, and the engine asks for\n // at most two at a time.\n for (const status of query.statuses) {\n const listed = await this.executions.listActorExecutions(\n CompanionExecutionsListQuerySchema.parse({ systemRef: query.systemRef, status, limit: 200 }),\n scope,\n );\n rows.push(...listed.map((execution) => this.toRow(execution)));\n }\n return rows;\n }\n\n private toRow(execution: Wildo_Application_ActorSystem_Execution): ActorExecutionPersistence_ExecutionRow {\n return {\n _id: String(execution._id),\n systemRef: execution.systemRef,\n status: execution.status,\n // The execution carries a snapshot of its linked tasks, maintained by the task writes.\n tasks: execution.standaloneTasks.map((task) => ({ _id: String(task._id), actorRef: task.actors.actorRef })),\n ...(execution.suspension !== undefined ? { suspension: execution.suspension } : {}),\n ...(execution.checkpoint !== undefined ? { checkpoint: execution.checkpoint } : {}),\n ...(execution.exclusiveSubject !== undefined ? { exclusiveSubject: execution.exclusiveSubject } : {}),\n createdAt: execution.createdAt,\n };\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"companion-actor-execution-persistence.adapter.js","sourceRoot":"","sources":["../../../../../src/executions/services/companion-actor-execution-persistence.adapter.ts"],"names":[],"m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nF,GAAG,CAAC,SAAS,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACnF,GAAG,CAAC,SAAS,CAAC,gBAAgB,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,SAAS,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACrG,SAAS,EAAE,SAAS,CAAC,SAAS;SAC/B,CAAC;IACJ,CAAC;CACF,CAAA;AAhKY,yCAAyC;IADrD,UAAU,EAAE;IAGR,WAAA,MAAM,CAAC,uBAAuB,CAAC,iBAAiB,CAAC,CAAA;qCAA8B,mCAAmC;GAF1G,yCAAyC,CAgKrD","sourcesContent":["import 'reflect-metadata';\nimport { inject, injectable } from 'inversify';\nimport type {\n ActorExecutionPersistencePort,\n ActorExecutionPersistence_CreateExecutionInput,\n ActorExecutionPersistence_CreateTaskInput,\n ActorExecutionPersistence_Created,\n ActorExecutionPersistence_ExecutionPatch,\n ActorExecutionPersistence_ExecutionRow,\n ActorExecutionPersistence_ListQuery,\n ActorExecutionPersistence_TaskPatch,\n} from '@wildo-ai/saas-backend-lib';\nimport type { Wildo_Application_ActorSystem_Execution } from '@wildo-ai/platform-core-shared';\nimport type { ActorExecution_Suspension } from '@wildo-ai/saas-models';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionExecutionSessionContext } from '../../core/traceability/companion-traceability.models';\nimport {\n CompanionCreateActorExecutionRequestSchema,\n CompanionCreateActorTaskRequestSchema,\n CompanionExecutionsListQuerySchema,\n CompanionUpdateActorExecutionRequestSchema,\n CompanionUpdateActorTaskRequestSchema,\n} from '../../companion-api/companion-api.schemas';\nimport { CompanionExecutionsCompanionService } from './companion-executions.companion.service';\n\n/**\n * The platform's implementation of the engine's actor-plane persistence port (#1358).\n *\n * The engine's `ActorsSystemBackendService` owns the LIFECYCLE of an execution — open, execute,\n * settle, in that order — and asks this port to write the rows. The rows are the platform's\n * `wildoApplicationActorSystemExecutions` and `wildoApplicationActorTasks`, owned by an organization\n * and an application the engine knows nothing about, and `CompanionExecutionsCompanionService` already\n * writes them repository-direct under a unit of work with ownership resolved from the session. This\n * adapter is the translation and nothing more: the engine's port shapes into that service's request\n * DTOs, parsed through the same schemas the companion's own HTTP route parses.\n *\n * The scope the engine carries is the companion's trace session, so every row write is traced beside\n * the run it belongs to exactly as before the lifecycle moved into the engine.\n *\n * Bound under the ENGINE's token (`SAAS_SERVICE_TYPES.ActorExecutionPersistencePort`) in the companion\n * container — the same shape as `SAAS_SERVICE_TYPES.IntrospectionResourceSource`. A host that binds\n * nothing gets a runtime that refuses to open an execution, which is the point.\n */\n@injectable()\nexport class CompanionActorExecutionPersistenceAdapter implements ActorExecutionPersistencePort<CompanionExecutionSessionContext> {\n public constructor(\n @inject(COMPANION_SERVICE_TYPES.ExecutionsService) private readonly executions: CompanionExecutionsCompanionService,\n ) {}\n\n public async createExecution(\n input: ActorExecutionPersistence_CreateExecutionInput,\n scope?: CompanionExecutionSessionContext,\n ): Promise<ActorExecutionPersistence_Created> {\n const execution = await this.executions.createActorExecution(\n CompanionCreateActorExecutionRequestSchema.parse({\n systemRef: input.systemRef,\n status: input.status,\n ...(input.initiator ? { initiator: input.initiator } : {}),\n // The single-flight subject lives ON the row (#1361): it is the lease, read back by every process.\n ...(input.exclusiveSubject !== undefined ? { exclusiveSubject: input.exclusiveSubject } : {}),\n // `input.caseRef` (#1598) is deliberately NOT carried: a case is a row of an APPLICATION's work-unit\n // resource, and these rows are the platform's record of building that application, not work done for one\n // of its clients. The companion opens no run on a case, and its model calls are UNATTRIBUTED by design.\n }),\n scope,\n );\n return { _id: String(execution._id) };\n }\n\n public async createTask(\n input: ActorExecutionPersistence_CreateTaskInput,\n scope?: CompanionExecutionSessionContext,\n ): Promise<ActorExecutionPersistence_Created> {\n const task = await this.executions.createActorTask(\n CompanionCreateActorTaskRequestSchema.parse({\n title: input.title,\n description: input.description,\n topic: input.topic,\n status: input.status,\n actors: { actorRef: input.actorRef },\n wildoApplicationActorSystemExecutionId: input.executionId,\n input: input.input,\n context: input.context,\n ...(input.startedAt !== undefined ? { startedAt: input.startedAt } : {}),\n ...(input.initiator ? { initiator: input.initiator } : {}),\n }),\n scope,\n );\n return { _id: String(task._id) };\n }\n\n public async updateTask(\n taskId: string,\n patch: ActorExecutionPersistence_TaskPatch,\n scope?: CompanionExecutionSessionContext,\n ): Promise<void> {\n await this.executions.updateActorTask(\n taskId,\n CompanionUpdateActorTaskRequestSchema.parse({\n status: patch.status,\n ...(patch.startedAt !== undefined ? { startedAt: patch.startedAt } : {}),\n ...(patch.input !== undefined ? { input: patch.input } : {}),\n ...(patch.completedAt !== undefined ? { completedAt: patch.completedAt } : {}),\n ...(patch.output !== undefined ? { output: patch.output } : {}),\n ...(patch.artifacts !== undefined ? { artifacts: patch.artifacts } : {}),\n }),\n scope,\n );\n }\n\n public async updateExecution(\n executionId: string,\n patch: ActorExecutionPersistence_ExecutionPatch,\n scope?: CompanionExecutionSessionContext,\n ): Promise<void> {\n /*\n * A checkpoint-only write carries no status, and the update contract requires one: it is the\n * row's CURRENT status, read here rather than guessed, and the service appends no status change\n * for a write that moves nothing.\n */\n const status = patch.status ?? (await this.executions.getActorExecution(executionId, scope)).status;\n await this.executions.updateActorExecution(\n executionId,\n CompanionUpdateActorExecutionRequestSchema.parse({\n status,\n // `null` is not sent: a non-terminal move clears the finish instant in the service itself.\n ...(patch.finishedAt ? { finishedAt: patch.finishedAt } : {}),\n ...(patch.suspension !== undefined ? { suspension: patch.suspension } : {}),\n ...(patch.checkpoint !== undefined ? { checkpoint: patch.checkpoint } : {}),\n }),\n scope,\n );\n }\n\n public async updateSuspendedExecution(\n executionId: string,\n expected: ActorExecution_Suspension,\n patch: ActorExecutionPersistence_ExecutionPatch,\n scope?: CompanionExecutionSessionContext,\n ): Promise<boolean> {\n // A move OUT of waiting always names where it goes, so there is no current status to read — and\n // reading one would reopen the window this write exists to close (#1586).\n if (patch.status === undefined) {\n throw new Error(`A move out of waiting must name its status (execution '${executionId}').`);\n }\n const moved = await this.executions.updateSuspendedActorExecution(\n executionId,\n expected,\n CompanionUpdateActorExecutionRequestSchema.parse({\n status: patch.status,\n // `null` is not sent: a non-terminal move clears the finish instant in the service itself.\n ...(patch.finishedAt ? { finishedAt: patch.finishedAt } : {}),\n ...(patch.suspension !== undefined ? { suspension: patch.suspension } : {}),\n ...(patch.checkpoint !== undefined ? { checkpoint: patch.checkpoint } : {}),\n ...(patch.resolution !== undefined ? { resolution: patch.resolution } : {}),\n }),\n scope,\n );\n return moved !== null;\n }\n\n public async readExecution(\n executionId: string,\n scope?: CompanionExecutionSessionContext,\n ): Promise<ActorExecutionPersistence_ExecutionRow | null> {\n try {\n return this.toRow(await this.executions.getActorExecution(executionId, scope));\n } catch {\n // `getActorExecution` throws a NOT_FOUND for an id this application holds no row for; the\n // port's contract for that is `null`, and the engine names the refusal.\n return null;\n }\n }\n\n public async listExecutions(\n query: ActorExecutionPersistence_ListQuery,\n scope?: CompanionExecutionSessionContext,\n ): Promise<readonly ActorExecutionPersistence_ExecutionRow[]> {\n const rows: ActorExecutionPersistence_ExecutionRow[] = [];\n // One listing per status: the service's list filters on a single status, and the engine asks for\n // at most two at a time.\n for (const status of query.statuses) {\n const listed = await this.executions.listActorExecutions(\n CompanionExecutionsListQuerySchema.parse({ systemRef: query.systemRef, status, limit: 200 }),\n scope,\n );\n rows.push(...listed.map((execution) => this.toRow(execution)));\n }\n return rows;\n }\n\n private toRow(execution: Wildo_Application_ActorSystem_Execution): ActorExecutionPersistence_ExecutionRow {\n return {\n _id: String(execution._id),\n systemRef: execution.systemRef,\n status: execution.status,\n // The execution carries a snapshot of its linked tasks, maintained by the task writes.\n tasks: execution.standaloneTasks.map((task) => ({ _id: String(task._id), actorRef: task.actors.actorRef })),\n ...(execution.suspension !== undefined ? { suspension: execution.suspension } : {}),\n ...(execution.checkpoint !== undefined ? { checkpoint: execution.checkpoint } : {}),\n ...(execution.exclusiveSubject !== undefined ? { exclusiveSubject: execution.exclusiveSubject } : {}),\n createdAt: execution.createdAt,\n };\n }\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { ErrorBuilderBackendService, ExecutionContextCreatorBackendService, LoggerService, RepositoriesRegistryHandlerBackendService, ResourcePersistenceUnitOfWorkBackendService, ResourcesRegistryBackendService, WebSocketService } from "@wildo-ai/saas-backend-lib";
|
|
3
|
-
import { Actors_Task_Schema, ActorSystem_ExecutionSchema, CoreResourceOperation, CoreWebSocketEvent, FlowSystem_Execution_Schema, ResourceAction, ResourceScopeRoomKey } from '@wildo-ai/saas-models';
|
|
3
|
+
import { type ActorExecution_Suspension, Actors_Task_Schema, ActorSystem_ExecutionSchema, CoreResourceOperation, CoreWebSocketEvent, FlowSystem_Execution_Schema, ResourceAction, ResourceScopeRoomKey } from '@wildo-ai/saas-models';
|
|
4
4
|
import type { CompanionActorTasksListQuery, CompanionCreateActorTaskRequest, CompanionCreateActorExecutionRequest, CompanionCreateFlowExecutionRequest, CompanionExecutionsListQuery, CompanionUpdateActorExecutionRequest, CompanionUpdateActorTaskRequest } from "../../companion-api/companion-api.schemas";
|
|
5
5
|
import type { CompanionContext } from "../../core/context/companion-context";
|
|
6
6
|
import { CompanionTraceabilityService } from "../../core/traceability/companion-traceability.service";
|
|
@@ -116,6 +116,23 @@ export declare class CompanionExecutionsCompanionService {
|
|
|
116
116
|
* write a list missing the other's entry.
|
|
117
117
|
*/
|
|
118
118
|
updateActorExecution(executionId: string, payload: CompanionUpdateActorExecutionRequest, sessionContext?: CompanionExecutionSessionContext): Promise<Wildo_Application_ActorSystem_Execution>;
|
|
119
|
+
/**
|
|
120
|
+
* Move a WAITING actor execution out of waiting — the compare-and-swap behind the engine port's
|
|
121
|
+
* `updateSuspendedExecution` (#1586). Answers the moved row, or `null` when the row is no longer
|
|
122
|
+
* waiting on `expected`, in which case NOTHING was written.
|
|
123
|
+
*
|
|
124
|
+
* ONE guarded statement: the predicate (this application, `AWAITING_APPROVAL`, and the suspension
|
|
125
|
+
* `expected` names) travels in the filter of `atomicGuardedMutation`, which compiles to a
|
|
126
|
+
* `findOneAndUpdate` on MongoDB and an `UPDATE … WHERE` on PostgreSQL. `updateActorExecution` is not
|
|
127
|
+
* reused: it reads the row and then writes it, which is exactly the window two decisions raced
|
|
128
|
+
* through. For the same reason the history entry is APPENDED in the statement rather than rebuilt
|
|
129
|
+
* from a read, and the two cleared fields use `clear`, the one spelling both adapters agree on.
|
|
130
|
+
*
|
|
131
|
+
* The suspension is matched by the field its reference was taken from — `suspensionId`, or
|
|
132
|
+
* `suspendedAt` for a row written before ids existed — which is `actorExecutionSuspensionRef`'s own
|
|
133
|
+
* rule, so a decision that names a suspension and the write that honours it cannot disagree.
|
|
134
|
+
*/
|
|
135
|
+
updateSuspendedActorExecution(executionId: string, expected: ActorExecution_Suspension, payload: CompanionUpdateActorExecutionRequest, sessionContext?: CompanionExecutionSessionContext): Promise<Wildo_Application_ActorSystem_Execution | null>;
|
|
119
136
|
createFlowExecution(payload: CompanionCreateFlowExecutionRequest, sessionContext?: CompanionExecutionSessionContext): Promise<Wildo_Application_FlowSystem_Execution>;
|
|
120
137
|
getActorExecution(executionId: string, _sessionContext?: CompanionExecutionSessionContext): Promise<Wildo_Application_ActorSystem_Execution>;
|
|
121
138
|
getFlowExecution(executionId: string, _sessionContext?: CompanionExecutionSessionContext): Promise<Wildo_Application_FlowSystem_Execution>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companion-executions.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/executions/services/companion-executions.companion.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,0BAA0B,EAE1B,qCAAqC,EACrC,aAAa,EACb,yCAAyC,EACzC,2CAA2C,
|
|
1
|
+
{"version":3,"file":"companion-executions.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/executions/services/companion-executions.companion.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,0BAA0B,EAE1B,qCAAqC,EACrC,aAAa,EACb,yCAAyC,EACzC,2CAA2C,EAE3C,+BAA+B,EAE/B,gBAAgB,EAIjB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,KAAK,yBAAyB,EAC9B,kBAAkB,EAClB,2BAA2B,EAC3B,qBAAqB,EACrB,kBAAkB,EAGlB,2BAA2B,EAG3B,cAAc,EACd,oBAAoB,EAKrB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EACV,4BAA4B,EAC5B,+BAA+B,EAC/B,oCAAoC,EACpC,mCAAmC,EACnC,4BAA4B,EAC5B,oCAAoC,EACpC,+BAA+B,EAChC,MAAM,2CAA2C,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAE7E,OAAO,EAAE,4BAA4B,EAAE,MAAM,wDAAwD,CAAC;AACtG,OAAO,EAAuD,KAAK,gCAAgC,EAAE,MAAM,uDAAuD,CAAC;AAEnK;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,SAAS;IAAE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;QAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,EACnI,KAAK,EAAE,SAAS,KAAK,EAAE,EACvB,KAAK,EAAE;IAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACxE,KAAK,EAAE,CAKT;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,qCAAqC,C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C,oCAAoC;IA8B5C,OAAO,CAAC,0BAA0B;IAuClC,OAAO,CAAC,kCAAkC;IA0B1C;;;;;;;;;;;;;;;;;OAiBG;IACH,OAAO,CAAC,mBAAmB;IAK3B,OAAO,CAAC,yBAAyB;IAwBjC,OAAO,CAAC,UAAU;IASlB,OAAO,CAAC,uBAAuB;IAiB/B,OAAO,CAAC,gBAAgB;IAIxB;;;;OAIG;IACH,OAAO,CAAC,2BAA2B;IAWnC,OAAO,CAAC,sBAAsB;CAU/B"}
|
|
@@ -11,7 +11,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
11
11
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
12
|
};
|
|
13
13
|
import { inject, injectable } from "inversify";
|
|
14
|
-
import { ErrorBuilderBackendService, ExecutionContextCreatorBackendService, LoggerService, RepositoriesRegistryHandlerBackendService, ResourcePersistenceUnitOfWorkBackendService, ResourcesRegistryBackendService, SAAS_SERVICE_TYPES, WebSocketService, buildScopeRoomNotificationPayload, registerTransactionPostCommitEffect, } from "@wildo-ai/saas-backend-lib";
|
|
14
|
+
import { ErrorBuilderBackendService, ExecutionContextCreatorBackendService, LoggerService, RepositoriesRegistryHandlerBackendService, ResourcePersistenceUnitOfWorkBackendService, RepositoryArrayAdditionPlacement, ResourcesRegistryBackendService, SAAS_SERVICE_TYPES, WebSocketService, buildScopeRoomNotificationPayload, registerTransactionPostCommitEffect, } from "@wildo-ai/saas-backend-lib";
|
|
15
15
|
import { CoreResourceOperation, CoreWebSocketEvent, ErrorCustomMessageReference, ErrorType, FlowsActors_ElementKind, FlowsActors_Status, ResourceAction, ResourceScopeRoomKey, ResourceSerializationUtils, deriveTrustedSystemWritePreservedFields, isWildoBackendError, } from '@wildo-ai/saas-models';
|
|
16
16
|
import { CustomShared_ResourceType } from "@wildo-ai/platform-core-shared";
|
|
17
17
|
import { COMPANION_SERVICE_TYPES } from "../../core/inject/models/service-types.js";
|
|
@@ -91,6 +91,8 @@ const COMPANION_EXECUTION_PERSISTENCE_PARTICIPANTS = Object.freeze({
|
|
|
91
91
|
actorExecution: WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS_RESOURCE_TYPE,
|
|
92
92
|
actorTask: WILDO_APPLICATION_ACTOR_TASKS_RESOURCE_TYPE,
|
|
93
93
|
});
|
|
94
|
+
/** How many times a status-less task write re-reads a row whose status moved under it (#1586 review F6). */
|
|
95
|
+
const TASK_STATUS_GUARD_ATTEMPTS = 3;
|
|
94
96
|
let CompanionExecutionsCompanionService = class CompanionExecutionsCompanionService {
|
|
95
97
|
logger;
|
|
96
98
|
errorBuilder;
|
|
@@ -255,8 +257,21 @@ let CompanionExecutionsCompanionService = class CompanionExecutionsCompanionServ
|
|
|
255
257
|
throw new Error(`Actor-system execution '${executionId}' could not be updated: no row matches that id under `
|
|
256
258
|
+ `application '${ownership.wildoApplicationId}'. It was removed concurrently, or it belongs to another application.`);
|
|
257
259
|
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
+
/*
|
|
261
|
+
* A NON-terminal row has no finish instant — whatever wrote one before. The ordinary update can
|
|
262
|
+
* only set, so a run moved back to waiting after a withdraw was undone kept the withdraw's
|
|
263
|
+
* `finishedAt`, and the run record and the workbench then read a waiting run as finished at
|
|
264
|
+
* that instant (#1586 review N1). Cleared in the same transaction, only when there is one — and
|
|
265
|
+
* announced like every other write: this is the one that tells a watcher the run waits again.
|
|
266
|
+
*/
|
|
267
|
+
let written = updated;
|
|
268
|
+
if (!isTerminal && updated.finishedAt !== undefined) {
|
|
269
|
+
await this.repositoriesRegistry.atomicConditionalSet(WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS_RESOURCE_TYPE, { _id: executionId, wildoApplicationId: ownership.wildoApplicationId }, { clear: ['finishedAt'] }, undefined, this.buildRepositoryOptions(transaction));
|
|
270
|
+
const { finishedAt: _cleared, ...unfinished } = updated;
|
|
271
|
+
written = unfinished;
|
|
272
|
+
}
|
|
273
|
+
this.publishControlPlaneMutation(transaction, WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS_RESOURCE_TYPE, ownership, String(written._id), ResourceAction.UPDATED);
|
|
274
|
+
return written;
|
|
260
275
|
});
|
|
261
276
|
await this.traceOperationSuccess({
|
|
262
277
|
sessionContext,
|
|
@@ -281,6 +296,104 @@ let CompanionExecutionsCompanionService = class CompanionExecutionsCompanionServ
|
|
|
281
296
|
throw error;
|
|
282
297
|
}
|
|
283
298
|
}
|
|
299
|
+
/**
|
|
300
|
+
* Move a WAITING actor execution out of waiting — the compare-and-swap behind the engine port's
|
|
301
|
+
* `updateSuspendedExecution` (#1586). Answers the moved row, or `null` when the row is no longer
|
|
302
|
+
* waiting on `expected`, in which case NOTHING was written.
|
|
303
|
+
*
|
|
304
|
+
* ONE guarded statement: the predicate (this application, `AWAITING_APPROVAL`, and the suspension
|
|
305
|
+
* `expected` names) travels in the filter of `atomicGuardedMutation`, which compiles to a
|
|
306
|
+
* `findOneAndUpdate` on MongoDB and an `UPDATE … WHERE` on PostgreSQL. `updateActorExecution` is not
|
|
307
|
+
* reused: it reads the row and then writes it, which is exactly the window two decisions raced
|
|
308
|
+
* through. For the same reason the history entry is APPENDED in the statement rather than rebuilt
|
|
309
|
+
* from a read, and the two cleared fields use `clear`, the one spelling both adapters agree on.
|
|
310
|
+
*
|
|
311
|
+
* The suspension is matched by the field its reference was taken from — `suspensionId`, or
|
|
312
|
+
* `suspendedAt` for a row written before ids existed — which is `actorExecutionSuspensionRef`'s own
|
|
313
|
+
* rule, so a decision that names a suspension and the write that honours it cannot disagree.
|
|
314
|
+
*/
|
|
315
|
+
async updateSuspendedActorExecution(executionId, expected, payload, sessionContext) {
|
|
316
|
+
const traceStep = this.createOperationTraceStep(sessionContext, "update-suspended-actor-execution");
|
|
317
|
+
await this.traceOperationStart({
|
|
318
|
+
sessionContext,
|
|
319
|
+
step: traceStep,
|
|
320
|
+
type: "actor-execution-update-start",
|
|
321
|
+
summary: `Move waiting actor execution ${executionId} out of waiting`,
|
|
322
|
+
payload: { executionId, status: payload.status },
|
|
323
|
+
artifactFileName: "actor-execution-swap-request.json",
|
|
324
|
+
artifactContent: { executionId, expected, payload },
|
|
325
|
+
});
|
|
326
|
+
try {
|
|
327
|
+
const moved = await this.resourcePersistenceUnitOfWork.executeTransaction({
|
|
328
|
+
boundary: 'companion-executions.update-suspended-actor-execution',
|
|
329
|
+
participants: COMPANION_EXECUTION_PERSISTENCE_PARTICIPANTS,
|
|
330
|
+
}, async ({ transaction }) => {
|
|
331
|
+
const ownership = await this.resolveOwnership(sessionContext);
|
|
332
|
+
const executionContext = await this.createInternalExecutionContext(WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS_RESOURCE_TYPE, CoreResourceOperation.UPDATE, sessionContext);
|
|
333
|
+
const updatedAt = new Date().toISOString();
|
|
334
|
+
const cleared = [
|
|
335
|
+
...(payload.suspension === null ? ['suspension'] : []),
|
|
336
|
+
...(payload.checkpoint === null ? ['checkpoint'] : []),
|
|
337
|
+
// A non-terminal move leaves no finish instant, as `updateActorExecution` guarantees (#1586 review N1).
|
|
338
|
+
...(this.isTerminalStatus(payload.status) ? [] : ['finishedAt']),
|
|
339
|
+
];
|
|
340
|
+
const updated = await this.repositoriesRegistry.atomicGuardedMutation(WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS_RESOURCE_TYPE, {
|
|
341
|
+
_id: executionId,
|
|
342
|
+
wildoApplicationId: ownership.wildoApplicationId,
|
|
343
|
+
status: FlowsActors_Status.AWAITING_APPROVAL,
|
|
344
|
+
...(expected.suspensionId !== undefined
|
|
345
|
+
? { 'suspension.suspensionId': expected.suspensionId }
|
|
346
|
+
: { 'suspension.suspendedAt': expected.suspendedAt }),
|
|
347
|
+
// A route moved since the read makes this match nothing (#1594 I5). A suspension written
|
|
348
|
+
// before routes existed carries no version and is matched by its identity alone.
|
|
349
|
+
...(expected.routeVersion !== undefined ? { 'suspension.routeVersion': expected.routeVersion } : {}),
|
|
350
|
+
}, {
|
|
351
|
+
set: {
|
|
352
|
+
status: payload.status,
|
|
353
|
+
updatedAt,
|
|
354
|
+
...(payload.suspension ? { suspension: payload.suspension } : {}),
|
|
355
|
+
...(payload.checkpoint ? { checkpoint: payload.checkpoint } : {}),
|
|
356
|
+
...(this.isTerminalStatus(payload.status) ? { finishedAt: payload.finishedAt ?? updatedAt } : {}),
|
|
357
|
+
},
|
|
358
|
+
...(cleared.length > 0 ? { clear: cleared } : {}),
|
|
359
|
+
arrayAdditions: [{
|
|
360
|
+
path: 'statusChanges',
|
|
361
|
+
// How the wait ended rides on the change that ended it, in this statement (#1594 I4).
|
|
362
|
+
values: [{ status: payload.status, timestamp: updatedAt, ...(payload.resolution ? { resolution: payload.resolution } : {}) }],
|
|
363
|
+
placement: RepositoryArrayAdditionPlacement.TAIL,
|
|
364
|
+
distinctOnly: false,
|
|
365
|
+
}],
|
|
366
|
+
}, executionContext, this.buildRepositoryOptions(transaction));
|
|
367
|
+
if (updated !== null) {
|
|
368
|
+
this.publishControlPlaneMutation(transaction, WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS_RESOURCE_TYPE, ownership, String(updated._id), ResourceAction.UPDATED);
|
|
369
|
+
}
|
|
370
|
+
return updated;
|
|
371
|
+
});
|
|
372
|
+
await this.traceOperationSuccess({
|
|
373
|
+
sessionContext,
|
|
374
|
+
step: traceStep,
|
|
375
|
+
type: "actor-execution-update-success",
|
|
376
|
+
summary: moved
|
|
377
|
+
? `Moved waiting actor execution ${executionId} to ${payload.status}`
|
|
378
|
+
: `Actor execution ${executionId} was no longer waiting on that question; nothing was written`,
|
|
379
|
+
payload: { executionId, status: payload.status, moved: moved !== null },
|
|
380
|
+
artifactFileName: "actor-execution-swap-result.json",
|
|
381
|
+
artifactContent: moved ?? { moved: false },
|
|
382
|
+
});
|
|
383
|
+
return moved;
|
|
384
|
+
}
|
|
385
|
+
catch (error) {
|
|
386
|
+
await this.traceOperationFailure({
|
|
387
|
+
sessionContext,
|
|
388
|
+
step: traceStep,
|
|
389
|
+
type: "actor-execution-update-failure",
|
|
390
|
+
summary: `Failed to move waiting actor execution ${executionId}`,
|
|
391
|
+
error,
|
|
392
|
+
payload: { executionId, status: payload.status },
|
|
393
|
+
});
|
|
394
|
+
throw error;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
284
397
|
async createFlowExecution(payload, sessionContext) {
|
|
285
398
|
const traceStep = this.createOperationTraceStep(sessionContext, "create-flow-execution");
|
|
286
399
|
await this.traceOperationStart({
|
|
@@ -719,50 +832,78 @@ let CompanionExecutionsCompanionService = class CompanionExecutionsCompanionServ
|
|
|
719
832
|
participants: COMPANION_EXECUTION_PERSISTENCE_PARTICIPANTS,
|
|
720
833
|
}, async ({ transaction }) => {
|
|
721
834
|
const ownership = await this.resolveOwnership(sessionContext);
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
status
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
await
|
|
754
|
-
...(
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
835
|
+
/*
|
|
836
|
+
* A write that names NO status still writes one — the one it read — because the row is written
|
|
837
|
+
* whole. Read, then written unconditionally, that re-asserted a stale status: a memory note
|
|
838
|
+
* landing just after a concurrent cancel put the task back to waiting and cleared its completion
|
|
839
|
+
* instant (#1586 review F6). So such a write is conditional on the status it read, and a lost
|
|
840
|
+
* race reads again and re-applies the payload to what is there now. A write that NAMES a status
|
|
841
|
+
* is a move and stays unconditional: moves out of waiting are the execution's swap (#1586).
|
|
842
|
+
*/
|
|
843
|
+
for (let attempt = 1;; attempt += 1) {
|
|
844
|
+
const existingTask = await this.readActorTaskOrThrow(taskId, transaction, sessionContext);
|
|
845
|
+
if (payload.wildoApplicationActorSystemExecutionId &&
|
|
846
|
+
payload.wildoApplicationActorSystemExecutionId !== existingTask.wildoApplicationActorSystemExecutionId) {
|
|
847
|
+
await this.readActorExecutionOrThrow(payload.wildoApplicationActorSystemExecutionId, ownership.wildoApplicationId, transaction, sessionContext);
|
|
848
|
+
}
|
|
849
|
+
const repository = this.repositoriesRegistry.getRepositoryOrThrow(WILDO_APPLICATION_ACTOR_TASKS_RESOURCE_TYPE);
|
|
850
|
+
const executionContext = await this.createInternalExecutionContext(WILDO_APPLICATION_ACTOR_TASKS_RESOURCE_TYPE, CoreResourceOperation.UPDATE, sessionContext);
|
|
851
|
+
const updatedAt = payload.updatedAt ?? new Date().toISOString();
|
|
852
|
+
const status = payload.status ?? existingTask.status;
|
|
853
|
+
const shouldClearExecutionLink = payload.clearExecutionLink === true;
|
|
854
|
+
const { clearExecutionLink: _clearExecutionLink, completedAt: payloadCompletedAt, ...payloadWithoutClearFlag } = payload;
|
|
855
|
+
const shouldClearCompletedAt = !this.isTerminalStatus(status);
|
|
856
|
+
const completedAt = shouldClearCompletedAt ? undefined : (payloadCompletedAt ?? existingTask.completedAt ?? updatedAt);
|
|
857
|
+
const actorStates = payload.actorStates ?? existingTask.actorStates;
|
|
858
|
+
const updateData = {
|
|
859
|
+
...payloadWithoutClearFlag,
|
|
860
|
+
actorStates,
|
|
861
|
+
status,
|
|
862
|
+
updatedAt,
|
|
863
|
+
...(completedAt ? { completedAt } : {}),
|
|
864
|
+
};
|
|
865
|
+
const statusGuard = payload.status === undefined ? { status: existingTask.status } : {};
|
|
866
|
+
const written = await repository.update(executionContext, { _id: taskId, wildoApplicationId: ownership.wildoApplicationId, ...statusGuard }, updateData, {
|
|
867
|
+
...this.buildRepositoryOptions(transaction),
|
|
868
|
+
// Derived allowlist (typically empty on UPDATE): the only fields the
|
|
869
|
+
// update request DTO strips are the scope/audit FKs, and those are
|
|
870
|
+
// never in this payload (`wildoApplicationId` is in the filter, not
|
|
871
|
+
// the data). A re-linked `wildoApplicationActorSystemExecutionId` is
|
|
872
|
+
// an ordinary relationship FK the DTO keeps, so it is not stripped.
|
|
873
|
+
preserveServerInjectedFields: this.deriveServerInjectedPreserveFields(WILDO_APPLICATION_ACTOR_TASKS_RESOURCE_TYPE, updateData, CoreResourceOperation.UPDATE),
|
|
874
|
+
});
|
|
875
|
+
if (written === null) {
|
|
876
|
+
if (payload.status === undefined && attempt < TASK_STATUS_GUARD_ATTEMPTS)
|
|
877
|
+
continue;
|
|
878
|
+
// A row removed under the write answers the typed NOT_FOUND the read raises, as it always did (review N3)…
|
|
879
|
+
await this.readActorTaskOrThrow(taskId, transaction, sessionContext);
|
|
880
|
+
// …and one that is there but kept moving is a conflict, not a server fault.
|
|
881
|
+
throw this.errorBuilder.buildError(ErrorType.CONFLICT, undefined, {
|
|
882
|
+
customMessageReference: ErrorCustomMessageReference.CONFLICT,
|
|
883
|
+
context: {
|
|
884
|
+
// diagnostic (log-only)
|
|
885
|
+
taskId,
|
|
886
|
+
reason: payload.status === undefined
|
|
887
|
+
? `its status kept moving across ${TASK_STATUS_GUARD_ATTEMPTS} attempts`
|
|
888
|
+
: 'the update matched no row under this application',
|
|
889
|
+
},
|
|
890
|
+
});
|
|
891
|
+
}
|
|
892
|
+
if (shouldClearExecutionLink || shouldClearCompletedAt) {
|
|
893
|
+
await this.unsetActorTaskFields(taskId, ownership.wildoApplicationId, {
|
|
894
|
+
...(shouldClearExecutionLink ? { wildoApplicationActorSystemExecutionId: 1 } : {}),
|
|
895
|
+
...(shouldClearCompletedAt ? { completedAt: 1 } : {}),
|
|
896
|
+
}, transaction);
|
|
897
|
+
}
|
|
898
|
+
const updatedTask = await this.readActorTaskOrThrow(taskId, transaction, sessionContext);
|
|
899
|
+
if (existingTask.wildoApplicationActorSystemExecutionId &&
|
|
900
|
+
existingTask.wildoApplicationActorSystemExecutionId !== updatedTask.wildoApplicationActorSystemExecutionId) {
|
|
901
|
+
await this.removeTaskFromExecutionSnapshot(existingTask, transaction, sessionContext);
|
|
902
|
+
}
|
|
903
|
+
await this.syncTaskIntoExecutionSnapshot(updatedTask, transaction, sessionContext);
|
|
904
|
+
this.publishControlPlaneMutation(transaction, WILDO_APPLICATION_ACTOR_TASKS_RESOURCE_TYPE, ownership, String(updatedTask._id), ResourceAction.UPDATED);
|
|
905
|
+
return updatedTask;
|
|
762
906
|
}
|
|
763
|
-
await this.syncTaskIntoExecutionSnapshot(updatedTask, transaction, sessionContext);
|
|
764
|
-
this.publishControlPlaneMutation(transaction, WILDO_APPLICATION_ACTOR_TASKS_RESOURCE_TYPE, ownership, String(updatedTask._id), ResourceAction.UPDATED);
|
|
765
|
-
return updatedTask;
|
|
766
907
|
});
|
|
767
908
|
if (sessionContext) {
|
|
768
909
|
await this.traceabilityService.registerAlias(sessionContext, CompanionTraceAliasKind.ACTOR_TASK, task._id);
|