@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
package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"introspection-resource-source.companion.service.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/resources/introspection-resource-source.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EACL,kBAAkB,GAKnB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAqC,MAAM,uBAAuB,CAAC;AAEhG,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAG5E,OAAO,EAAE,uCAAuC,EAAE,MAAM,+CAA+C,CAAC;AAExG;;;;;;;;;;;;;;;;;;;;GAoBG;AACH;;;;;;GAMG;AACH,MAAM,2BAA2B,GAAG,IAAI,CAAC;AAEzC;;;;;;;;;GASG;AACH,MAAM,4BAA4B,GAAG,kBAAkB,CAAC;AAExD,uDAAuD;AACvD,MAAM,mCAAmC,GAAG,GAAG,CAAC;AAIzC,IAAM,2CAA2C,GAAjD,MAAM,2CAA2C;IAGnC;IAEA;IAEA;IAEA;IARnB,YAEmB,oBAAmD,EAEnD,gBAAkC,EAElC,iBAAkD,EAElD,aAAsD;QANtD,yBAAoB,GAApB,oBAAoB,CAA+B;QAEnD,qBAAgB,GAAhB,gBAAgB,CAAkB;QAElC,sBAAiB,GAAjB,iBAAiB,CAAiC;QAElD,kBAAa,GAAb,aAAa,CAAyC;IACtE,CAAC;IAEG,QAAQ,CAAC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,CAAC,GAAG,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAChE,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,KAAK,CACb,0BAA0B,YAAY,2BAA2B,KAAK,4BAA4B;kBAChG,wGAAwG;kBACxG,uEAAuE,CAC1E,CAAC;QACJ,CAAC;IACH,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC","sourcesContent":["import { inject, injectable } from 'inversify';\nimport {\n SAAS_SERVICE_TYPES,\n type IntrospectionResourceQuery,\n type IntrospectionResourceRows,\n type IntrospectionResourceSourceBackendPort,\n type ResourcesRegistryBackendService,\n} from '@wildo-ai/saas-backend-lib';\nimport { ResourcePrimaryScope, type IntrospectionResourceBinding } from '@wildo-ai/saas-models';\n\nimport { COMPANION_SERVICE_TYPES } from '../../inject/models/service-types';\nimport type { CompanionContext } from '../../context/companion-context';\nimport type { CompanionIntrospectionService } from '../services/companion-introspection.companion.service';\nimport { CreationPlaneProjectionCompanionService } from './creation-plane-projection.companion.service';\n\n/**\n * The companion's implementation of the engine's `PersistenceAdapter.INTROSPECTION` port.\n *\n * The engine declares the contract and cannot implement it: deriving a row means running a named\n * introspection behavior, which spawns a subprocess importing the TARGET application's built\n * modules. Only this process knows where that application is and which behaviors exist.\n *\n * ## No mapping table lives here, deliberately\n *\n * Which behavior a resource projects is declared on the RESOURCE\n * (`introspectionBinding`), not in a lookup table keyed by resource type. A table here would be a\n * second enumeration of a population the resource configurations already define, and the two would\n * agree only until one side gained an entry.\n *\n * ## Failures are reported, not flattened\n *\n * `requestInfo` answers a discriminated result; a failed behavior becomes a thrown error carrying\n * the behavior id and the underlying message. The repository above turns that into a refusal rather\n * than an empty row set — \"no rows\" and \"could not look\" are different answers, and the most common\n * cause here is an application whose `dist` has not been built.\n */\n/**\n * Separator joining the identity fields before hashing.\n *\n * Only has to be a character the joined values cannot contain, so the composition is unambiguous:\n * `['a', 'b__c']` and `['a__b', 'c']` must not hash to the same id. Resource types and field\n * identifiers are camelCase and carry no underscores, so a doubled one is safe.\n */\nconst COMPOSED_IDENTITY_SEPARATOR = '__';\n\n/**\n * The charset an INTROSPECTION-backed id must satisfy.\n *\n * The INTERSECTION of the two gates a READ passes through, which are not the same rule:\n * `ResourceIdFormat.INTROSPECTION_SYNTHESIZED` admits `[A-Za-z0-9._~-]`, while\n * `validateParameterFormat` admits only `[a-zA-Z0-9_-]` for a parameter whose field name ends in\n * `id`. A key using `.` or `~` would pass the id validator and be refused as a path parameter — so\n * the narrower rule is the real one, and stating it here keeps the failure at composition time\n * rather than on someone's first READ.\n */\nconst ADDRESSABLE_IDENTITY_PATTERN = /^[a-zA-Z0-9_-]+$/;\n\n/** The framework's own path-parameter length limit. */\nconst MAXIMUM_ADDRESSABLE_IDENTITY_LENGTH = 255;\n\n\n@injectable()\nexport class IntrospectionResourceSourceCompanionService implements IntrospectionResourceSourceBackendPort {\n constructor(\n @inject(COMPANION_SERVICE_TYPES.IntrospectionService)\n private readonly introspectionService: CompanionIntrospectionService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext)\n private readonly companionContext: CompanionContext,\n @inject(SAAS_SERVICE_TYPES.ResourceRegistryService)\n private readonly resourcesRegistry: ResourcesRegistryBackendService,\n @inject(COMPANION_SERVICE_TYPES.CreationPlaneProjectionService)\n private readonly creationPlane: CreationPlaneProjectionCompanionService,\n ) {}\n\n public supports(resourceType: string): boolean {\n return this.resolveBinding(resourceType) !== undefined;\n }\n\n public async deriveRows(query: IntrospectionResourceQuery): Promise<IntrospectionResourceRows> {\n const binding = this.resolveBinding(query.resourceType);\n if (!binding) {\n throw new Error(\n `Resource '${query.resourceType}' is INTROSPECTION-backed but declares no 'introspectionBinding'. `\n + 'The binding names the companion behavior whose output becomes its rows.',\n );\n }\n\n /*\n * TWO materialization lanes behind one binding vocabulary (Phase 2 of\n * `workbench-creation-board-resources.md`): a creation-plane behavior id is served IN-PROCESS\n * from the companion's own runtime services — no subprocess, no app-dist import, and the rows\n * arrive with their identity fields already emitted (their business keys carry characters the\n * composed-identity charset refuses). Everything else flows to the subprocess lane below,\n * untouched. The membership test is owned by the same package that writes the ids into the\n * bindings, so the two ends cannot drift.\n */\n if (this.creationPlane.supports(binding.behavior)) {\n /*\n * An ADDRESSED read asks the projection for the one row first: a behavior whose list is a\n * bounded window answers it directly, and every other behavior says `undefined` and is served\n * from its list exactly as before.\n */\n const requestedId = this.extractRequestedId(query.filter, query.resourceType);\n if (requestedId !== undefined) {\n const row = await this.creationPlane.deriveRowByIdentity(binding.behavior, requestedId);\n if (row !== undefined) return { rows: row === null ? [] : [row] };\n }\n const rows = await this.creationPlane.deriveRows(binding.behavior);\n return { rows: this.selectRows(rows, query) };\n }\n\n const serviceKey = this.resolveServiceKey();\n const result = await this.introspectionService.requestInfo({\n serviceKey,\n behavior: binding.behavior as never,\n });\n\n if (!result.success) {\n const message = 'error' in result ? result.error.message : 'unknown error';\n throw new Error(\n `Introspection behavior '${binding.behavior}' failed for resource '${query.resourceType}': ${message}`,\n );\n }\n\n const rows = this.projectRows(result.data, binding, query.resourceType);\n return { rows: this.selectRows(rows, query) };\n }\n\n /**\n * Compile every introspection behavior the registry declares, before anyone reads one.\n *\n * A supervised restart empties the compiled state, and restarts are frequent — 26 self-sent\n * SIGTERMs were logged in one wonder-crm session on 2026-09-02. Without this, the first operator\n * to open the workbench after any restart pays a full cold derivation, measured at 8.8 s.\n *\n * One request per BEHAVIOR rather than per resource: two resources projecting one behavior are one\n * derivation, so asking once keeps the count honest about how much work was actually done.\n * Creation-plane behaviors are skipped — they are served in-process from the companion's own\n * runtime state, carry their own cache, and have no subprocess to warm.\n *\n * Never throws. Warming is a latency improvement over a path that already works, and the caller\n * treats a failure as a warning: a companion that refused to finish booting because an\n * application's `dist` was mid-build would need the companion this failure just prevented from\n * starting in order to be repaired.\n */\n public async warmDeclaredDerivations(): Promise<{\n readonly attempted: number;\n readonly failed: number;\n }> {\n const behaviors = [...this.resolveResourceTypesByBehavior().keys()]\n .filter((behavior) => !this.creationPlane.supports(behavior));\n if (behaviors.length === 0) return { attempted: 0, failed: 0 };\n\n const serviceKey = this.resolveServiceKey();\n const outcomes = await Promise.allSettled(behaviors.map(\n (behavior) => this.introspectionService.requestInfo({ serviceKey, behavior: behavior as never }),\n ));\n\n const failed = outcomes.filter(\n (outcome) => outcome.status === 'rejected'\n || (outcome.status === 'fulfilled' && !outcome.value.success),\n ).length;\n return { attempted: behaviors.length, failed };\n }\n\n /**\n * Every INTROSPECTION-backed resource in the registry, grouped by the behavior it projects.\n *\n * The notifier needs the reverse of what a read needs: a read has a resource and wants its\n * behavior, while a recompilation has a behavior and wants every resource whose rows just moved.\n * Derived from the SAME registry declarations rather than from a table, for the reason the class\n * docstring already gives — a second enumeration of a population the resource configurations\n * define would agree only until one side gained an entry.\n */\n public resolveResourceTypesByBehavior(): ReadonlyMap<string, readonly string[]> {\n const configurations = this.resourcesRegistry.getResourcesRegistry().resourceConfigurations as Record<\n string,\n { introspectionBinding?: IntrospectionResourceBinding } | undefined\n >;\n const byBehavior = new Map<string, string[]>();\n for (const [resourceType, configuration] of Object.entries(configurations)) {\n const behavior = configuration?.introspectionBinding?.behavior;\n if (!behavior) continue;\n const existing = byBehavior.get(behavior);\n if (existing) existing.push(resourceType);\n else byBehavior.set(behavior, [resourceType]);\n }\n return byBehavior;\n }\n\n /**\n * Project a raw behavior payload into this resource's rows, exactly as a read would.\n *\n * Public because a recompilation has to produce the same rows a read would have produced, and\n * projecting them a second way is how a pushed row and a fetched row come to disagree about the\n * same source.\n */\n public projectRowsForResource(\n resourceType: string,\n data: unknown,\n ): readonly Record<string, unknown>[] | undefined {\n const binding = this.resolveBinding(resourceType);\n if (!binding) return undefined;\n return this.projectRows(data, binding, resourceType);\n }\n\n /** The resource's primary-key field name, for a caller keying rows it did not read. */\n public resolveRowIdentityField(resourceType: string): string {\n return this.resolveFieldIdentifier(resourceType);\n }\n\n /**\n * Whether this resource's rows belong to the APPLICATION rather than to a tenant.\n *\n * Asked by the notifier before it addresses a collection event to the application room. Every\n * introspection resource is APPLICATION-anchored today — all four `isPrimaryScope: true` anchors\n * in the workbench resolve to `CoreResourceType.APPLICATION` — but that set is OPEN, and the day\n * a tenant-scoped one is added, an application-room broadcast would carry one tenant's row ids to\n * every user of the application. Asking the registry keeps the answer with the declaration\n * instead of with a comment that has to stay true.\n */\n public isApplicationScoped(resourceType: string): boolean {\n const configuration = this.resourcesRegistry\n .getResourcesRegistry()\n .resourceConfigurations[resourceType as never] as { resourcePrimaryScope?: string } | undefined;\n return configuration?.resourcePrimaryScope === ResourcePrimaryScope.APPLICATION;\n }\n\n private resolveBinding(resourceType: string): IntrospectionResourceBinding | undefined {\n const configuration = this.resourcesRegistry\n .getResourcesRegistry()\n .resourceConfigurations[resourceType as never] as { introspectionBinding?: IntrospectionResourceBinding } | undefined;\n return configuration?.introspectionBinding;\n }\n\n /**\n * The resource's OWN primary-key field name, which composed identity is written to.\n *\n * Read from the registry rather than taken from the binding: the field identifier is already\n * declared once on the resource configuration, and a second copy on the binding could disagree\n * with the schema the response DTO validates against.\n */\n private resolveFieldIdentifier(resourceType: string): string {\n const configuration = this.resourcesRegistry\n .getResourcesRegistry()\n .resourceConfigurations[resourceType as never] as { resourceFieldIdentifier?: string } | undefined;\n const fieldIdentifier = configuration?.resourceFieldIdentifier;\n if (!fieldIdentifier) {\n throw new Error(\n `Resource '${resourceType}' declares identityFields but the registry reports no `\n + 'resourceFieldIdentifier to write the composed key to.',\n );\n }\n return fieldIdentifier;\n }\n\n /**\n * Which service the behavior is run against.\n *\n * One target for now — the application this companion serves. A behavior declares its own\n * `supportedServiceKinds`, and routing a resource at a specific service is a later refinement\n * that belongs on the binding rather than here.\n */\n private resolveServiceKey(): string {\n const [firstServiceKey] = Object.keys(this.companionContext.servicesByKey);\n if (!firstServiceKey) {\n throw new Error('No service is registered with this companion, so no introspection behavior can be run.');\n }\n return firstServiceKey;\n }\n\n /**\n * Pull the row collection out of the behavior's own result shape.\n *\n * Behaviors answer what is natural to them (`{ frontendChartRegistrationRefs: [...] }`), and the\n * binding says where to look. Teaching 23 working behaviors to answer a uniform envelope to suit\n * a consumer that arrived later would be the wrong direction.\n *\n * A path that resolves to a non-array is an authoring error and says so, rather than yielding one\n * row shaped like an object or an empty list that reads as \"nothing there\".\n */\n private projectRows(data: unknown, binding: IntrospectionResourceBinding, resourceType: string): readonly Record<string, unknown>[] {\n const resolved = binding.rowsPath\n ? binding.rowsPath.split('.').reduce<unknown>((value, key) => (value as Record<string, unknown>)?.[key], data)\n : data;\n\n if (!Array.isArray(resolved)) {\n throw new Error(\n `Introspection behavior '${binding.behavior}' did not yield an array at `\n + `${binding.rowsPath ? `'${binding.rowsPath}'` : 'its result root'}; got ${typeof resolved}. `\n + \"Set 'rowsPath' on the resource's introspectionBinding to the property holding the rows.\",\n );\n }\n const rows = resolved as readonly Record<string, unknown>[];\n return binding.identityFields ? this.stampComposedIdentity(rows, binding, resourceType) : rows;\n }\n\n /**\n * Give each row the primary key its behavior does not carry, composed from the binding's declared\n * `identityFields`.\n *\n * ## Why this refuses instead of de-duplicating\n *\n * Two rows composing the same key is an authoring error — the declared fields are not jointly\n * unique for this behavior — and every quiet response to it is worse than a refusal. Dropping the\n * second row loses data silently; keeping both makes READ return an arbitrary one; appending an\n * index makes the key unstable across derivations, so a link to a row would resolve to a different\n * row after an unrelated edit. Refusing names the resource, the key and the fields, and is fixed\n * by declaring a field that discriminates.\n *\n * The check runs on EVERY derivation rather than once, because these rows are derived from the\n * application's live source: a pair that is unique today stops being unique the moment an author\n * adds a second edge between the same two resources, and that is exactly when someone needs to be\n * told.\n */\n private stampComposedIdentity(\n rows: readonly Record<string, unknown>[],\n binding: IntrospectionResourceBinding,\n resourceType: string,\n ): readonly Record<string, unknown>[] {\n const identityFields = binding.identityFields ?? [];\n const fieldIdentifier = this.resolveFieldIdentifier(resourceType);\n const seen = new Map<string, number>();\n\n return rows.map((row, index) => {\n const parts = identityFields.map((field) => {\n const value = row[field];\n if (value === undefined || value === null) {\n throw new Error(\n `Introspection behavior '${binding.behavior}' produced a row missing identity field '${field}' `\n + `(row ${index}). Every field named in the binding's identityFields must be present on every row.`,\n );\n }\n return String(value);\n });\n const composed = parts.join(COMPOSED_IDENTITY_SEPARATOR);\n this.assertAddressable(composed, binding, identityFields, index);\n\n const firstIndex = seen.get(composed);\n if (firstIndex !== undefined) {\n throw new Error(\n `Introspection behavior '${binding.behavior}' produced two rows (${firstIndex} and ${index}) with the same `\n + `composed identity '${composed}' from identityFields [${identityFields.join(', ')}]. `\n + 'Those fields are not jointly unique for this behavior, so one row would be unreachable by READ. '\n + 'Add a field that discriminates them to the binding\\'s identityFields.',\n );\n }\n seen.set(composed, index);\n\n return { ...row, [fieldIdentifier]: composed };\n });\n }\n\n /**\n * Apply the READ/LIST filter to the derived rows.\n *\n * ## Why this exists, stated plainly\n *\n * The repository's `read()` derives rows and returns `rows[0]`. Without this, a READ for ANY id\n * returned the FIRST row — a resource that answered every request with the same record. It was\n * invisible while only LIST was exercised, and it is what actually blocked READ; the id-format\n * refusal in front of it merely hid it.\n *\n * Filtering here rather than in the repository is deliberate: the repository is engine code with\n * no idea which field carries a given resource's identity, while the source resolved that field\n * to stamp it. An introspection behavior computes its whole answer in one subprocess run, so\n * there is nothing cheaper to push down — filtering after derivation costs one pass over an\n * already-materialized array.\n */\n private selectRows(\n rows: readonly Record<string, unknown>[],\n query: IntrospectionResourceQuery,\n ): readonly Record<string, unknown>[] {\n const requestedId = this.extractRequestedId(query.filter, query.resourceType);\n if (requestedId !== undefined) {\n const fieldIdentifier = this.resolveFieldIdentifier(query.resourceType);\n return rows.filter((row) => row[fieldIdentifier] === requestedId);\n }\n return applyScalarRowFilters(rows, query.filter, query.resourceType);\n }\n\n /**\n * The id a READ is asking for, from either shape the repository passes.\n *\n * `read(executionContext, id_or_filter)` genuinely carries both: a bare string for an addressed\n * read, or an object keyed by the resource's identity field. Anything else — a rich query filter —\n * returns `undefined` and the whole set is served, which is the honest answer for a LIST.\n */\n private extractRequestedId(filter: unknown, resourceType: string): string | undefined {\n if (typeof filter === 'string') return filter;\n if (filter && typeof filter === 'object') {\n const candidate = (filter as Record<string, unknown>)[this.resolveFieldIdentifier(resourceType)];\n if (typeof candidate === 'string') return candidate;\n }\n return undefined;\n }\n\n /**\n * Refuse a composed key the framework cannot carry in a URL.\n *\n * A key violating {@link ADDRESSABLE_IDENTITY_PATTERN} LISTS perfectly and is refused on every\n * READ — the same shows-but-cannot-be-reached failure the duplicate check exists to prevent,\n * arriving by a different route. Measured: `'::'` as a separator produced exactly that, a 200 list\n * of 16 rows and `api_call_initiator_parameter_unsupported` on each one.\n *\n * Checked per row rather than trusted, because the offending character usually comes from the\n * DATA — a resource type or field name in the observed application — not from the separator an\n * author chose, so it can appear long after the binding was written.\n */\n private assertAddressable(\n composed: string,\n binding: IntrospectionResourceBinding,\n identityFields: readonly string[],\n index: number,\n ): void {\n if (!ADDRESSABLE_IDENTITY_PATTERN.test(composed)) {\n throw new Error(\n `Introspection behavior '${binding.behavior}' composed the identity '${composed}' (row ${index}) from `\n + `identityFields [${identityFields.join(', ')}], which cannot be used as a URL path parameter: the `\n + `framework requires ${ADDRESSABLE_IDENTITY_PATTERN.source}. The row would be listable and unreadable. `\n + 'Choose identity fields whose values are alphanumeric.',\n );\n }\n if (composed.length > MAXIMUM_ADDRESSABLE_IDENTITY_LENGTH) {\n throw new Error(\n `Introspection behavior '${binding.behavior}' composed a ${composed.length}-character identity (row ${index}), `\n + `over the ${MAXIMUM_ADDRESSABLE_IDENTITY_LENGTH}-character limit the framework enforces on path parameters. `\n + 'Compose the key from fewer or shorter fields.',\n );\n }\n }\n}\n\n/**\n * Honor the filters a LIST actually carried — or REFUSE the ones this source cannot apply.\n *\n * Filters reach an introspection LIST only when the operation DECLARES `filterFields` (the\n * controller's `extractCollectionFilters` allow-lists on those keys), so until the first workbench\n * resource declared any, this function's absence was coherent. The moment one is declared, silence\n * stops being an option: a declared filter that is quietly dropped returns the UNFILTERED set\n * wearing a filtered label — the caller's quick-filter tab selects `intent` and the page shows all\n * fifteen rows, with nothing anywhere reporting the lie. That is the `--state ready` defect class,\n * and it is worse than a refusal.\n *\n * What is honored is deliberately NARROW: scalar equality, and an array of scalars as IN — the two\n * shapes an enum quick-filter and a filters panel emit. A shape outside that (a range object, a\n * nested operator) throws naming the field, because \"I cannot apply your filter\" must never be\n * indistinguishable from \"your filter matched everything\".\n *\n * `createdAt`/`updatedAt` are allow-listed by the controller UNIVERSALLY, but these derived rows\n * carry no timestamps — the same refusal covers them the day something sends one.\n *\n * A pure exported function rather than a private method, so the refusal and both honored shapes are\n * pinnable without constructing the service's three-injection DI surface.\n */\nexport function applyScalarRowFilters(\n rows: readonly Record<string, unknown>[],\n filter: unknown,\n resourceType: string,\n): readonly Record<string, unknown>[] {\n if (!filter || typeof filter !== 'object' || Array.isArray(filter)) return rows;\n\n const isScalar = (value: unknown): value is string | number | boolean =>\n typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean';\n\n let selected = rows;\n for (const [field, expected] of Object.entries(filter as Record<string, unknown>)) {\n if (expected === undefined) continue;\n if (isScalar(expected)) {\n selected = selected.filter((row) => row[field] === expected);\n } else if (Array.isArray(expected) && expected.every(isScalar)) {\n const admitted = new Set<unknown>(expected);\n selected = selected.filter((row) => admitted.has(row[field]));\n } else {\n throw new Error(\n `Introspected resource '${resourceType}' received a filter on '${field}' whose shape this source `\n + 'cannot apply (only scalar equality and arrays-of-scalars are supported). Refused rather than ignored: '\n + 'a dropped filter returns the unfiltered set wearing a filtered label.',\n );\n }\n }\n return selected;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"introspection-resource-source.companion.service.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/resources/introspection-resource-source.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EACL,kBAAkB,GAKnB,MA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OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,SAAS,CAAC;IAEvF,IAAI,QAAQ,GAAG,IAAI,CAAC;IACpB,KAAK,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAiC,CAAC,EAAE,CAAC;QAClF,IAAI,QAAQ,KAAK,SAAS;YAAE,SAAS;QACrC,IAAI,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;YACvB,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,QAAQ,CAAC,CAAC;QAC/D,CAAC;aAAM,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC/D,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAU,QAAQ,CAAC,CAAC;YAC5C,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAChE,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,KAAK,CACb,0BAA0B,YAAY,2BAA2B,KAAK,4BAA4B;kBAChG,wGAAwG;kBACxG,uEAAuE,CAC1E,CAAC;QACJ,CAAC;IACH,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC","sourcesContent":["import { inject, injectable } from 'inversify';\nimport {\n SAAS_SERVICE_TYPES,\n type IntrospectionResourceQuery,\n type IntrospectionResourceRows,\n type IntrospectionResourceSourceBackendPort,\n type ResourcesRegistryBackendService,\n} from '@wildo-ai/saas-backend-lib';\nimport { INTROSPECTION_RESOURCE_ID_CHARSET, ResourcePrimaryScope, Resources_SharedUtils, type IntrospectionResourceBinding } from '@wildo-ai/saas-models';\n\nimport { COMPANION_SERVICE_TYPES } from '../../inject/models/service-types';\nimport type { CompanionContext } from '../../context/companion-context';\nimport type { CompanionIntrospectionService } from '../services/companion-introspection.companion.service';\nimport { CreationPlaneProjectionCompanionService } from './creation-plane-projection.companion.service';\n\n/**\n * The companion's implementation of the engine's `PersistenceAdapter.INTROSPECTION` port.\n *\n * The engine declares the contract and cannot implement it: deriving a row means running a named\n * introspection behavior, which spawns a subprocess importing the TARGET application's built\n * modules. Only this process knows where that application is and which behaviors exist.\n *\n * ## No mapping table lives here, deliberately\n *\n * Which behavior a resource projects is declared on the RESOURCE\n * (`introspectionBinding`), not in a lookup table keyed by resource type. A table here would be a\n * second enumeration of a population the resource configurations already define, and the two would\n * agree only until one side gained an entry.\n *\n * ## Failures are reported, not flattened\n *\n * `requestInfo` answers a discriminated result; a failed behavior becomes a thrown error carrying\n * the behavior id and the underlying message. The repository above turns that into a refusal rather\n * than an empty row set — \"no rows\" and \"could not look\" are different answers, and the most common\n * cause here is an application whose `dist` has not been built.\n */\n/**\n * Separator joining the identity fields before hashing.\n *\n * Only has to be a character the joined values cannot contain, so the composition is unambiguous:\n * `['a', 'b__c']` and `['a__b', 'c']` must not hash to the same id. Resource types and field\n * identifiers are camelCase and carry no underscores, so a doubled one is safe.\n */\nconst COMPOSED_IDENTITY_SEPARATOR = '__';\n\n/*\n * The charset an INTROSPECTION-backed id must satisfy is the format's own\n * (`Resources_SharedUtils.isIntrospectionSynthesizedId`). This file used to keep the INTERSECTION of two gates that\n * disagreed: the format admitted `[A-Za-z0-9._~-]` while the path-parameter check admitted only `[a-zA-Z0-9_-]`.\n * Since #2048 the path-parameter check asks the resource's format, so there is one rule and it is read here.\n */\n\n/** The framework's own path-parameter length limit. */\nconst MAXIMUM_ADDRESSABLE_IDENTITY_LENGTH = 255;\n\n\n@injectable()\nexport class IntrospectionResourceSourceCompanionService implements IntrospectionResourceSourceBackendPort {\n constructor(\n @inject(COMPANION_SERVICE_TYPES.IntrospectionService)\n private readonly introspectionService: CompanionIntrospectionService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext)\n private readonly companionContext: CompanionContext,\n @inject(SAAS_SERVICE_TYPES.ResourceRegistryService)\n private readonly resourcesRegistry: ResourcesRegistryBackendService,\n @inject(COMPANION_SERVICE_TYPES.CreationPlaneProjectionService)\n private readonly creationPlane: CreationPlaneProjectionCompanionService,\n ) {}\n\n public supports(resourceType: string): boolean {\n return this.resolveBinding(resourceType) !== undefined;\n }\n\n public async deriveRows(query: IntrospectionResourceQuery): Promise<IntrospectionResourceRows> {\n const binding = this.resolveBinding(query.resourceType);\n if (!binding) {\n throw new Error(\n `Resource '${query.resourceType}' is INTROSPECTION-backed but declares no 'introspectionBinding'. `\n + 'The binding names the companion behavior whose output becomes its rows.',\n );\n }\n\n /*\n * TWO materialization lanes behind one binding vocabulary (Phase 2 of\n * `workbench-creation-board-resources.md`): a creation-plane behavior id is served IN-PROCESS\n * from the companion's own runtime services — no subprocess, no app-dist import, and the rows\n * arrive with their identity fields already emitted (their business keys carry characters the\n * composed-identity charset refuses). Everything else flows to the subprocess lane below,\n * untouched. The membership test is owned by the same package that writes the ids into the\n * bindings, so the two ends cannot drift.\n */\n if (this.creationPlane.supports(binding.behavior)) {\n /*\n * An ADDRESSED read asks the projection for the one row first: a behavior whose list is a\n * bounded window answers it directly, and every other behavior says `undefined` and is served\n * from its list exactly as before.\n */\n const requestedId = this.extractRequestedId(query.filter, query.resourceType);\n if (requestedId !== undefined) {\n const row = await this.creationPlane.deriveRowByIdentity(binding.behavior, requestedId);\n if (row !== undefined) return { rows: row === null ? [] : [row] };\n }\n const rows = await this.creationPlane.deriveRows(binding.behavior);\n return { rows: this.selectRows(rows, query) };\n }\n\n const serviceKey = this.resolveServiceKey();\n const result = await this.introspectionService.requestInfo({\n serviceKey,\n behavior: binding.behavior as never,\n });\n\n if (!result.success) {\n const message = 'error' in result ? result.error.message : 'unknown error';\n throw new Error(\n `Introspection behavior '${binding.behavior}' failed for resource '${query.resourceType}': ${message}`,\n );\n }\n\n const rows = this.projectRows(result.data, binding, query.resourceType);\n return { rows: this.selectRows(rows, query) };\n }\n\n /**\n * Compile every introspection behavior the registry declares, before anyone reads one.\n *\n * A supervised restart empties the compiled state, and restarts are frequent — 26 self-sent\n * SIGTERMs were logged in one wonder-crm session on 2026-09-02. Without this, the first operator\n * to open the workbench after any restart pays a full cold derivation, measured at 8.8 s.\n *\n * One request per BEHAVIOR rather than per resource: two resources projecting one behavior are one\n * derivation, so asking once keeps the count honest about how much work was actually done.\n * Creation-plane behaviors are skipped — they are served in-process from the companion's own\n * runtime state, carry their own cache, and have no subprocess to warm.\n *\n * Never throws. Warming is a latency improvement over a path that already works, and the caller\n * treats a failure as a warning: a companion that refused to finish booting because an\n * application's `dist` was mid-build would need the companion this failure just prevented from\n * starting in order to be repaired.\n */\n public async warmDeclaredDerivations(): Promise<{\n readonly attempted: number;\n readonly failed: number;\n }> {\n const behaviors = [...this.resolveResourceTypesByBehavior().keys()]\n .filter((behavior) => !this.creationPlane.supports(behavior));\n if (behaviors.length === 0) return { attempted: 0, failed: 0 };\n\n const serviceKey = this.resolveServiceKey();\n const outcomes = await Promise.allSettled(behaviors.map(\n (behavior) => this.introspectionService.requestInfo({ serviceKey, behavior: behavior as never }),\n ));\n\n const failed = outcomes.filter(\n (outcome) => outcome.status === 'rejected'\n || (outcome.status === 'fulfilled' && !outcome.value.success),\n ).length;\n return { attempted: behaviors.length, failed };\n }\n\n /**\n * Every INTROSPECTION-backed resource in the registry, grouped by the behavior it projects.\n *\n * The notifier needs the reverse of what a read needs: a read has a resource and wants its\n * behavior, while a recompilation has a behavior and wants every resource whose rows just moved.\n * Derived from the SAME registry declarations rather than from a table, for the reason the class\n * docstring already gives — a second enumeration of a population the resource configurations\n * define would agree only until one side gained an entry.\n */\n public resolveResourceTypesByBehavior(): ReadonlyMap<string, readonly string[]> {\n const configurations = this.resourcesRegistry.getResourcesRegistry().resourceConfigurations as Record<\n string,\n { introspectionBinding?: IntrospectionResourceBinding } | undefined\n >;\n const byBehavior = new Map<string, string[]>();\n for (const [resourceType, configuration] of Object.entries(configurations)) {\n const behavior = configuration?.introspectionBinding?.behavior;\n if (!behavior) continue;\n const existing = byBehavior.get(behavior);\n if (existing) existing.push(resourceType);\n else byBehavior.set(behavior, [resourceType]);\n }\n return byBehavior;\n }\n\n /**\n * Project a raw behavior payload into this resource's rows, exactly as a read would.\n *\n * Public because a recompilation has to produce the same rows a read would have produced, and\n * projecting them a second way is how a pushed row and a fetched row come to disagree about the\n * same source.\n */\n public projectRowsForResource(\n resourceType: string,\n data: unknown,\n ): readonly Record<string, unknown>[] | undefined {\n const binding = this.resolveBinding(resourceType);\n if (!binding) return undefined;\n return this.projectRows(data, binding, resourceType);\n }\n\n /** The resource's primary-key field name, for a caller keying rows it did not read. */\n public resolveRowIdentityField(resourceType: string): string {\n return this.resolveFieldIdentifier(resourceType);\n }\n\n /**\n * Whether this resource's rows belong to the APPLICATION rather than to a tenant.\n *\n * Asked by the notifier before it addresses a collection event to the application room. Every\n * introspection resource is APPLICATION-anchored today — all four `isPrimaryScope: true` anchors\n * in the workbench resolve to `CoreResourceType.APPLICATION` — but that set is OPEN, and the day\n * a tenant-scoped one is added, an application-room broadcast would carry one tenant's row ids to\n * every user of the application. Asking the registry keeps the answer with the declaration\n * instead of with a comment that has to stay true.\n */\n public isApplicationScoped(resourceType: string): boolean {\n const configuration = this.resourcesRegistry\n .getResourcesRegistry()\n .resourceConfigurations[resourceType as never] as { resourcePrimaryScope?: string } | undefined;\n return configuration?.resourcePrimaryScope === ResourcePrimaryScope.APPLICATION;\n }\n\n private resolveBinding(resourceType: string): IntrospectionResourceBinding | undefined {\n const configuration = this.resourcesRegistry\n .getResourcesRegistry()\n .resourceConfigurations[resourceType as never] as { introspectionBinding?: IntrospectionResourceBinding } | undefined;\n return configuration?.introspectionBinding;\n }\n\n /**\n * The resource's OWN primary-key field name, which composed identity is written to.\n *\n * Read from the registry rather than taken from the binding: the field identifier is already\n * declared once on the resource configuration, and a second copy on the binding could disagree\n * with the schema the response DTO validates against.\n */\n private resolveFieldIdentifier(resourceType: string): string {\n const configuration = this.resourcesRegistry\n .getResourcesRegistry()\n .resourceConfigurations[resourceType as never] as { resourceFieldIdentifier?: string } | undefined;\n const fieldIdentifier = configuration?.resourceFieldIdentifier;\n if (!fieldIdentifier) {\n throw new Error(\n `Resource '${resourceType}' declares identityFields but the registry reports no `\n + 'resourceFieldIdentifier to write the composed key to.',\n );\n }\n return fieldIdentifier;\n }\n\n /**\n * Which service the behavior is run against.\n *\n * One target for now — the application this companion serves. A behavior declares its own\n * `supportedServiceKinds`, and routing a resource at a specific service is a later refinement\n * that belongs on the binding rather than here.\n */\n private resolveServiceKey(): string {\n const [firstServiceKey] = Object.keys(this.companionContext.servicesByKey);\n if (!firstServiceKey) {\n throw new Error('No service is registered with this companion, so no introspection behavior can be run.');\n }\n return firstServiceKey;\n }\n\n /**\n * Pull the row collection out of the behavior's own result shape.\n *\n * Behaviors answer what is natural to them (`{ frontendChartRegistrationRefs: [...] }`), and the\n * binding says where to look. Teaching 23 working behaviors to answer a uniform envelope to suit\n * a consumer that arrived later would be the wrong direction.\n *\n * A path that resolves to a non-array is an authoring error and says so, rather than yielding one\n * row shaped like an object or an empty list that reads as \"nothing there\".\n */\n private projectRows(data: unknown, binding: IntrospectionResourceBinding, resourceType: string): readonly Record<string, unknown>[] {\n const resolved = binding.rowsPath\n ? binding.rowsPath.split('.').reduce<unknown>((value, key) => (value as Record<string, unknown>)?.[key], data)\n : data;\n\n if (!Array.isArray(resolved)) {\n throw new Error(\n `Introspection behavior '${binding.behavior}' did not yield an array at `\n + `${binding.rowsPath ? `'${binding.rowsPath}'` : 'its result root'}; got ${typeof resolved}. `\n + \"Set 'rowsPath' on the resource's introspectionBinding to the property holding the rows.\",\n );\n }\n const rows = resolved as readonly Record<string, unknown>[];\n return binding.identityFields ? this.stampComposedIdentity(rows, binding, resourceType) : rows;\n }\n\n /**\n * Give each row the primary key its behavior does not carry, composed from the binding's declared\n * `identityFields`.\n *\n * ## Why this refuses instead of de-duplicating\n *\n * Two rows composing the same key is an authoring error — the declared fields are not jointly\n * unique for this behavior — and every quiet response to it is worse than a refusal. Dropping the\n * second row loses data silently; keeping both makes READ return an arbitrary one; appending an\n * index makes the key unstable across derivations, so a link to a row would resolve to a different\n * row after an unrelated edit. Refusing names the resource, the key and the fields, and is fixed\n * by declaring a field that discriminates.\n *\n * The check runs on EVERY derivation rather than once, because these rows are derived from the\n * application's live source: a pair that is unique today stops being unique the moment an author\n * adds a second edge between the same two resources, and that is exactly when someone needs to be\n * told.\n */\n private stampComposedIdentity(\n rows: readonly Record<string, unknown>[],\n binding: IntrospectionResourceBinding,\n resourceType: string,\n ): readonly Record<string, unknown>[] {\n const identityFields = binding.identityFields ?? [];\n const fieldIdentifier = this.resolveFieldIdentifier(resourceType);\n const seen = new Map<string, number>();\n\n return rows.map((row, index) => {\n const parts = identityFields.map((field) => {\n const value = row[field];\n if (value === undefined || value === null) {\n throw new Error(\n `Introspection behavior '${binding.behavior}' produced a row missing identity field '${field}' `\n + `(row ${index}). Every field named in the binding's identityFields must be present on every row.`,\n );\n }\n return String(value);\n });\n const composed = parts.join(COMPOSED_IDENTITY_SEPARATOR);\n this.assertAddressable(composed, binding, identityFields, index);\n\n const firstIndex = seen.get(composed);\n if (firstIndex !== undefined) {\n throw new Error(\n `Introspection behavior '${binding.behavior}' produced two rows (${firstIndex} and ${index}) with the same `\n + `composed identity '${composed}' from identityFields [${identityFields.join(', ')}]. `\n + 'Those fields are not jointly unique for this behavior, so one row would be unreachable by READ. '\n + 'Add a field that discriminates them to the binding\\'s identityFields.',\n );\n }\n seen.set(composed, index);\n\n return { ...row, [fieldIdentifier]: composed };\n });\n }\n\n /**\n * Apply the READ/LIST filter to the derived rows.\n *\n * ## Why this exists, stated plainly\n *\n * The repository's `read()` derives rows and returns `rows[0]`. Without this, a READ for ANY id\n * returned the FIRST row — a resource that answered every request with the same record. It was\n * invisible while only LIST was exercised, and it is what actually blocked READ; the id-format\n * refusal in front of it merely hid it.\n *\n * Filtering here rather than in the repository is deliberate: the repository is engine code with\n * no idea which field carries a given resource's identity, while the source resolved that field\n * to stamp it. An introspection behavior computes its whole answer in one subprocess run, so\n * there is nothing cheaper to push down — filtering after derivation costs one pass over an\n * already-materialized array.\n */\n private selectRows(\n rows: readonly Record<string, unknown>[],\n query: IntrospectionResourceQuery,\n ): readonly Record<string, unknown>[] {\n const requestedId = this.extractRequestedId(query.filter, query.resourceType);\n if (requestedId !== undefined) {\n const fieldIdentifier = this.resolveFieldIdentifier(query.resourceType);\n return rows.filter((row) => row[fieldIdentifier] === requestedId);\n }\n return applyScalarRowFilters(rows, query.filter, query.resourceType);\n }\n\n /**\n * The id a READ is asking for, from either shape the repository passes.\n *\n * `read(executionContext, id_or_filter)` genuinely carries both: a bare string for an addressed\n * read, or an object keyed by the resource's identity field. Anything else — a rich query filter —\n * returns `undefined` and the whole set is served, which is the honest answer for a LIST.\n */\n private extractRequestedId(filter: unknown, resourceType: string): string | undefined {\n if (typeof filter === 'string') return filter;\n if (filter && typeof filter === 'object') {\n const candidate = (filter as Record<string, unknown>)[this.resolveFieldIdentifier(resourceType)];\n if (typeof candidate === 'string') return candidate;\n }\n return undefined;\n }\n\n /**\n * Refuse a composed key the framework cannot carry in a URL.\n *\n * A key the introspection id format refuses LISTS perfectly and is refused on every\n * READ — the same shows-but-cannot-be-reached failure the duplicate check exists to prevent,\n * arriving by a different route. Measured: `'::'` as a separator produced exactly that, a 200 list\n * of 16 rows and `api_call_initiator_parameter_unsupported` on each one.\n *\n * Checked per row rather than trusted, because the offending character usually comes from the\n * DATA — a resource type or field name in the observed application — not from the separator an\n * author chose, so it can appear long after the binding was written.\n */\n private assertAddressable(\n composed: string,\n binding: IntrospectionResourceBinding,\n identityFields: readonly string[],\n index: number,\n ): void {\n if (!Resources_SharedUtils.isIntrospectionSynthesizedId(composed)) {\n throw new Error(\n `Introspection behavior '${binding.behavior}' composed the identity '${composed}' (row ${index}) from `\n + `identityFields [${identityFields.join(', ')}], which cannot be used as a URL path parameter: the `\n + `framework requires ${INTROSPECTION_RESOURCE_ID_CHARSET.source}. The row would be listable and unreadable. `\n + 'Choose identity fields whose values stay within it.',\n );\n }\n if (composed.length > MAXIMUM_ADDRESSABLE_IDENTITY_LENGTH) {\n throw new Error(\n `Introspection behavior '${binding.behavior}' composed a ${composed.length}-character identity (row ${index}), `\n + `over the ${MAXIMUM_ADDRESSABLE_IDENTITY_LENGTH}-character limit the framework enforces on path parameters. `\n + 'Compose the key from fewer or shorter fields.',\n );\n }\n }\n}\n\n/**\n * Honor the filters a LIST actually carried — or REFUSE the ones this source cannot apply.\n *\n * Filters reach an introspection LIST only when the operation DECLARES `filterFields` (the\n * controller's `extractCollectionFilters` allow-lists on those keys), so until the first workbench\n * resource declared any, this function's absence was coherent. The moment one is declared, silence\n * stops being an option: a declared filter that is quietly dropped returns the UNFILTERED set\n * wearing a filtered label — the caller's quick-filter tab selects `intent` and the page shows all\n * fifteen rows, with nothing anywhere reporting the lie. That is the `--state ready` defect class,\n * and it is worse than a refusal.\n *\n * What is honored is deliberately NARROW: scalar equality, and an array of scalars as IN — the two\n * shapes an enum quick-filter and a filters panel emit. A shape outside that (a range object, a\n * nested operator) throws naming the field, because \"I cannot apply your filter\" must never be\n * indistinguishable from \"your filter matched everything\".\n *\n * `createdAt`/`updatedAt` are allow-listed by the controller UNIVERSALLY, but these derived rows\n * carry no timestamps — the same refusal covers them the day something sends one.\n *\n * A pure exported function rather than a private method, so the refusal and both honored shapes are\n * pinnable without constructing the service's three-injection DI surface.\n */\nexport function applyScalarRowFilters(\n rows: readonly Record<string, unknown>[],\n filter: unknown,\n resourceType: string,\n): readonly Record<string, unknown>[] {\n if (!filter || typeof filter !== 'object' || Array.isArray(filter)) return rows;\n\n const isScalar = (value: unknown): value is string | number | boolean =>\n typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean';\n\n let selected = rows;\n for (const [field, expected] of Object.entries(filter as Record<string, unknown>)) {\n if (expected === undefined) continue;\n if (isScalar(expected)) {\n selected = selected.filter((row) => row[field] === expected);\n } else if (Array.isArray(expected) && expected.every(isScalar)) {\n const admitted = new Set<unknown>(expected);\n selected = selected.filter((row) => admitted.has(row[field]));\n } else {\n throw new Error(\n `Introspected resource '${resourceType}' received a filter on '${field}' whose shape this source `\n + 'cannot apply (only scalar equality and arrays-of-scalars are supported). Refused rather than ignored: '\n + 'a dropped filter returns the unfiltered set wearing a filtered label.',\n );\n }\n }\n return selected;\n}\n"]}
|
|
@@ -143,6 +143,8 @@ export interface DomainModelOperationRow {
|
|
|
143
143
|
requiresStepUpAuthentication: boolean;
|
|
144
144
|
/** `accepted` / `required` when the variant takes an `Idempotency-Key` (#535), else null. */
|
|
145
145
|
idempotencyKey: string | null;
|
|
146
|
+
/** The action a caller who is not signed in answers a submission challenge for (#1985), else null. */
|
|
147
|
+
submissionChallengeAction: string | null;
|
|
146
148
|
admitsCrossTenantPlatformAdministration: boolean;
|
|
147
149
|
/** Whether the operation emits an auditable event, and which. */
|
|
148
150
|
auditableEventType: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-domain-model.behavior.d.ts","sourceRoot":"","sources":["../../../../../../src/core/introspection/subprocess/application-domain-model.behavior.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAEpF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH;;;;;;;;GAQG;AACH,MAAM,WAAW,4BAA4B;IAC3C,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE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C9B;;;;;;;;OAQG;IACH,UAAU,EAAE,uBAAuB,EAAE,CAAC;IACtC;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB;;;;;;;;;;;OAWG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC;;;;;;;;;;;OAWG;IACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,oFAAoF;IACpF,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,sGAAsG;IACtG,6FAA6F;IAC7F,aAAa,EAAE,2BAA2B,GAAG,IAAI,CAAC;IAClD,wEAAwE;IACxE,aAAa,EAAE,0BAA0B,EAAE,CAAC;CAC7C;AAED,MAAM,WAAW,qBAAqB;IACpC,eAAe,EAAE,sBAAsB,EAAE,CAAC;CAC3C;AAkED;;;;;;;;;;GAUG;AACH,wBAAgB,6BAA6B,CAC3C,KAAK,EAAE,0BAA0B,GAChC,qBAAqB,CAmGvB"}
|
|
1
|
+
{"version":3,"file":"application-domain-model.behavior.d.ts","sourceRoot":"","sources":["../../../../../../src/core/introspection/subprocess/application-domain-model.behavior.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAEpF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH;;;;;;;;GAQG;AACH,MAAM,WAAW,4BAA4B;IAC3C,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACn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uBAAuB,EAAE,CAAC;IACtC;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB;;;;;;;;;;;OAWG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC;;;;;;;;;;;OAWG;IACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,oFAAoF;IACpF,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,sGAAsG;IACtG,6FAA6F;IAC7F,aAAa,EAAE,2BAA2B,GAAG,IAAI,CAAC;IAClD,wEAAwE;IACxE,aAAa,EAAE,0BAA0B,EAAE,CAAC;CAC7C;AAED,MAAM,WAAW,qBAAqB;IACpC,eAAe,EAAE,sBAAsB,EAAE,CAAC;CAC3C;AAkED;;;;;;;;;;GAUG;AACH,wBAAgB,6BAA6B,CAC3C,KAAK,EAAE,0BAA0B,GAChC,qBAAqB,CAmGvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-domain-model.behavior.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/subprocess/application-domain-model.behavior.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAqB,MAAM,uBAAuB,CAAC;AA+WjF,MAAM,+BAA+B,GAAG,GAAG,CAAC;AAE5C,SAAS,oBAAoB,CAAC,YAA0C;IACtE,MAAM,4BAA4B,GAAG,qBAAqB,CAAC,mCAAmC,CAAC;QAC7F,aAAa,EAAE,YAAY,CAAC,aAA6B;QACzD,aAAa,EAAE,YAAY,CAAC,aAA6B;QACzD,YAAY,EAAE,YAAY,CAAC,YAAqB;QAChD,YAAY,EAAE,YAAY,CAAC,YAAqB;KACjD,CAAC,CAAC;IAEH,OAAO;QACL,cAAc,EAAE;YACd,YAAY,CAAC,aAAa;YAC1B,YAAY,CAAC,aAAa;YAC1B,YAAY,CAAC,YAAY;YACzB,YAAY,CAAC,YAAY;YACzB,YAAY,CAAC,MAAM;YACnB,YAAY,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ildo-ai/saas-models';\nimport type { AnyResourceSpecificationConfig } from '@wildo-ai/saas-specifications';\n\n/**\n * **application-domain-model** — the observed application's domain model as ONE projection:\n * every resource, the module that owns it, the relationships it participates in, and the prose of\n * its specification.\n *\n * ## Why this exists beside two behaviors that already answer half of it each\n *\n * The workbench used to draw its structure from two behaviors — `resource-specifications` for\n * module→resource ownership merged with the specification overlay, and `resources-registry` for the\n * compiled relationship edges. Each spawns its own subprocess importing the application's module\n * graph from TypeScript SOURCE, so a graph assembled from both is assembled from **two reads of a\n * mutating working tree**: the nodes can come from one state of the application and the edges from\n * the next. Nothing detects that, and the result is a picture of an application that never existed.\n *\n * So this is not a convenience wrapper over the other two. It is the only shape in which \"resources,\n * their relationships and their module membership\" is internally consistent. It also happens to cost\n * one derivation instead of two, which is the smaller of the two reasons.\n *\n * The two existing behaviors are untouched: they answer different questions (a full field-spec\n * projection, a full registry snapshot with the FK-resolution sweep) for consumers that are not this\n * one.\n *\n * ## What is projected, and what deliberately is not\n *\n * Resource specification prose, extracted field details and metadata, projected operation details,\n * advanced resource configuration and frontend view references. The handler merges engine and\n * application declarations before passing one assembled input to this projection.\n *\n * Operation DTO schemas and executable function bodies are not carried in the operation projection.\n * A consumer that needs those contracts must use the corresponding detailed introspection surface;\n * their absence here is a view boundary, not evidence that the application declares none.\n */\n\n/**\n * The relationship shape this projection reads.\n *\n * Structural rather than `ResourceRelationship`, because the rows cross a subprocess boundary from\n * the OBSERVED application's registry, which may have been built against a different engine revision\n * than the companion. Binding the engine type here would make a relationship the observed\n * application can legitimately declare unreadable — the same reasoning\n * the workbench's own relationship schema gives for keeping its vocabularies as plain strings.\n */\nexport interface DomainModelRelationshipInput {\n resourceType1: string;\n resourceType2: string;\n cardinality1: string;\n cardinality2: string;\n nature: string;\n foreignKeyField?: string;\n jointResourceType?: string;\n isPrimaryScope?: boolean;\n accessScopeStrategy?: string;\n parentResourceRequirement?: string;\n primaryScope?: string;\n allowCycle?: boolean;\n isDisabled?: boolean;\n}\n\n/** One of the observed application's shared modules, as `loadSharedModules()` answers it. */\nexport interface DomainModelModuleInput {\n moduleId: string;\n kind?: string;\n resourceConfigurations?: Record<string, unknown>;\n}\n\nexport interface DomainModelProjectionInput {\n /** The application's own shared modules, in registration order. */\n sharedModules: readonly DomainModelModuleInput[];\n /** The application's compiled relationship edges. */\n resourceRelationships: readonly DomainModelRelationshipInput[];\n /** The merged specification overlay, keyed by resource type. Absent when the app exports none. */\n specificationOverlay: Record<string, AnyResourceSpecificationConfig> | undefined;\n /** Everything the framework knows about each resource's fields, keyed by resource type. */\n resourceFieldsByResourceType: Record<string, readonly DomainModelFieldRow[]>;\n /** Every declared operation, projected for a reader, keyed by resource type. */\n resourceOperationsByResourceType: Record<string, readonly DomainModelOperationRow[]>;\n /** The behavioural configuration of each resource, keyed by resource type. */\n resourceAdvancedByResourceType: Record<string, Record<string, unknown>>;\n /** The `frontend.views` operation refs the resource specification declares, keyed by resource type. */\n resourceViewRefsByResourceType: Record<string, readonly string[]>;\n}\n\n/**\n * ONE FIELD, as the extractor answers it.\n *\n * A structural mirror of `ExtractedFieldSpec` rather than the imported type, for the reason the\n * relationship rows are structural: these cross a subprocess boundary as JSON, and a type whose\n * shape is owned elsewhere would let a change there alter this contract silently.\n */\nexport interface DomainModelFieldRow {\n fieldName: string;\n /** Which `{primitive}Spec()` decorator carried the authored prose, when one did. */\n specDecorator: string | null;\n /** The authored spec params — `meaning`, `whyItMatters`, `importance`, enum values, … */\n params: Record<string, unknown> | null;\n /**\n * The field's DECORATOR metadata, exactly as the schema declares it.\n *\n * `derived` is the extractor's INTERPRETATION — kind, primitive, foreign-key target. This is the\n * raw record beside it, and it carries what the interpretation does not: `isSummaryField`,\n * `isHidden`, `excludeFromCreate` / `excludeFromUpdate`, `dataCategories`, `isDBIndexed`,\n * `isUnique`, `isPrimaryKey`, and whatever a decorator adds tomorrow.\n *\n * OPAQUE for the reason `advanced` is: the set is open, and a projection that picked keys out of it\n * would report the subset its author knew about.\n *\n * What it does NOT contain, measured rather than assumed: anything from a `*.ui-behavior.tsx`. Those\n * decorators are applied by a FRONTEND module the companion never loads — the subprocess resolves\n * `library`, `specifications` and `service` targets and there is no frontend one — so on engine\n * resources this record holds structural decorators only. That is a reachability limit, not an\n * omission here.\n */\n metadata: Record<string, unknown> | null;\n /** What the framework DERIVED about the field: kind, primitive, optionality, FK target, … */\n derived: Record<string, unknown> | null;\n /** Base schema, or a variant of it — and which variant. */\n origin: Record<string, unknown> | null;\n}\n\n/** ONE OPERATION, projected to what changes its behaviour — never its DTOs. */\nexport interface DomainModelOperationRow {\n /** The operation's own identifier — a core verb or a custom one. */\n operationIdentifier: string;\n /** The operation's TRANSPORT kind: `api_call`, `internal_call`, `repository_only`, … */\n variantType: string | null;\n /**\n * WHICH variant of that transport this row is — `admin`, `summary`, `context`, … — or `null` for\n * the unnamed default.\n *\n * The missing half of an operation's identity, and its absence was a real defect rather than\n * missing detail. `organizations` declares FOUR operations that are all `read` × `api_call`,\n * separated only by this key; measured across the engine's core map, 133 of 794 operations collided\n * on the pair without it. The panel keyed its rows on the colliding pair, so React saw duplicate\n * keys and one accordion row stood for several distinct operations.\n */\n variantKey: string | null;\n /** For a CUSTOM operation, the core verb it behaves like. `null` for a core operation. */\n resourceOperationLike: string | null;\n /** Whether this variant is the one an unqualified call resolves to. */\n isDefault: boolean;\n /** The roles admitted. An EMPTY array is a real answer: no role gate on this variant. */\n roles: string[];\n riskLevel: string | null;\n /** Declared but not implemented — the operation answers, and says it is a placeholder. */\n isUnimplemented: boolean;\n isDisabled: boolean;\n requiresStepUpAuthentication: boolean;\n /** `accepted` / `required` when the variant takes an `Idempotency-Key` (#535), else null. */\n idempotencyKey: string | null;\n admitsCrossTenantPlatformAdministration: boolean;\n /** Whether the operation emits an auditable event, and which. */\n auditableEventType: string | null;\n /** Whether the operation is exposed over MCP. */\n isMcpExposed: boolean;\n /** Feature flags that must be on for the operation to exist at all. */\n requiredFeatures: string[];\n /**\n * Everything ELSE the materialized operation declares — the HTTP verb, the runtime mode, bulk and\n * API-key posture, notification fan-out, custom-implementation modes, authoritative fields.\n *\n * A deny list over the operation's own keys, for the third time in this projection and for the same\n * reason each time: an allow list reports the subset its author knew about, and this one proved it\n * — a hand-picked set of twelve fields was shipped and `variantKey`, `httpVerb`, `isBulkOperation`\n * and `serviceRuntimeMode` were all absent from it, which is what \"there are lots of information\n * missing\" was.\n *\n * The six DTO schemas are excluded by name. Each serializes to tens of kilobytes, and together they\n * would put megabytes on the wire to say which verbs exist.\n */\n attributes: Record<string, unknown>;\n /**\n * The authored SPECIFICATION for this operation, when the resource's spec describes it.\n *\n * Keyed by `operationIdentifier`, so every variant of one verb carries the same entry — the spec\n * describes the operation, and its per-variant prose lives inside that entry rather than beside it.\n * `null` means the specification does not mention this operation, which is a gap a reader can act\n * on rather than an absence of data.\n */\n specification: Record<string, unknown> | null;\n /** The authored FRONTEND view overlay for this operation (`frontend.views`), when there is one. */\n view: Record<string, unknown> | null;\n}\n\n/** One relationship, as it rides on BOTH resources it joins. */\nexport interface DomainModelRelationshipRow {\n /**\n * Stable identity for ONE edge, composed from every field this projection carries about it.\n *\n * Composed from the whole tuple rather than from `resourceType1 + resourceType2 +\n * foreignKeyField` — the triple the retired `workbenchResourceRelationships` resource addressed a\n * row by — because the discriminating field is not always present: a MANY-to-MANY edge carries\n * `jointResourceType` and no `foreignKeyField`, so that triple is not total here.\n *\n * The consequence is deliberate and worth stating: two edges that agree on every one of these\n * fields are indistinguishable to a graph, so merging them loses nothing a reader could have seen.\n * Two that differ anywhere get distinct ids and both are drawn. This id is internal to the\n * projection and its consumer — it never becomes a URL path parameter — so it is not held to the\n * URL-safe charset an addressable introspection key must satisfy.\n */\n relationshipId: string;\n resourceType1: string;\n resourceType2: string;\n cardinality1: string;\n cardinality2: string;\n /**\n * `composition`, `reference` or `association` — the observed application's vocabulary, and a plain\n * string precisely so a FOURTH value it may legitimately declare is projected rather than refused.\n *\n * Those three are all `RelationshipNature` declares today. Naming a value that does not exist would\n * be worse than naming none: a reader would conclude such an edge falls into the consumer's\n * unrecognised-nature bucket and hunt a defect that cannot occur.\n */\n nature: string;\n foreignKeyField: string | null;\n /**\n * Which side's rows CARRY the foreign key — the direction an arrow must point.\n *\n * Resolved by {@link Resources_SharedUtils.resolveForeignKeyHolderResourceType}, never from\n * declaration order. `resourceType1` is not reliably the referenced side: a child-first\n * declaration such as `(TODOS, USERS, MANY, ONE, { foreignKeyField: 'assignedToUserId' })` is\n * valid and puts the referenced resource in `resourceType2`. Reading position instead of\n * cardinality is the defect that once materialized required FK columns onto the wrong collection.\n */\n foreignKeyHolderResourceType: string;\n /** The junction resource of a MANY-to-MANY, which the framework requires such an edge to name. */\n jointResourceType: string | null;\n /** Whether this edge is the structural ownership anchor that gives `resourceType2` its scope. */\n isPrimaryScope: boolean;\n /**\n * Whether the edge is DECLARED BUT INACTIVE.\n *\n * Load-bearing rather than completeness: an edge the application has disabled does not constrain\n * anything at runtime, and a graph that draws it identically to a live one tells its reader the\n * application has a relationship it does not have. That is the one field here whose absence made\n * the picture WRONG rather than merely thinner, which is why it travels even though the dogfood\n * application currently disables none (measured 2026-08-31: 0 of 16).\n */\n isDisabled: boolean;\n /**\n * How a caller reaches rows on the far side — `requires_context`, `standalone`, and whatever else\n * the observed application's engine revision declares.\n *\n * A plain string for the same reason `nature` is one: this projection describes an application\n * that may have been built against a different engine revision than the companion reading it.\n */\n accessScopeStrategy: string | null;\n /** Whether the parent endpoint is `mandatory` or `optional` for the child's addressing. */\n parentResourceRequirement: string | null;\n /**\n * The resource this edge anchors scope to, when it is a primary-scope edge.\n *\n * Distinct from {@link isPrimaryScope}, which says only THAT it anchors: this names WHICH resource\n * the scope resolves to, and the two are not derivable from one another on an edge whose endpoints\n * are both scoped.\n */\n primaryScope: string | null;\n /** Whether a cycle through this edge is permitted — a graph-shape fact a graph should be able to show. */\n allowCycle: boolean;\n}\n\n/** The specification's prose, for the panel a selected node opens. */\nexport interface DomainModelSpecificationRow {\n purpose: string;\n businessRole: string;\n lifecycleRole: string | null;\n businessConstraints: string[];\n}\n\n/** One resource node. */\nexport interface DomainModelResourceRow {\n resourceType: string;\n /**\n * The module that registers this resource, or `null`.\n *\n * `null` is not a gap — it is the fact that no module of the OBSERVED APPLICATION owns this\n * resource, which is true of every ENGINE resource. All of them are emitted, because an application\n * does not merge two of them: `initializeResources` applies the engine's core factory map\n * unconditionally, so `files`, `apiKeys` and the rest are as registered in the running application\n * as the ones it declares itself.\n *\n * Two SHAPES of engine row arrive, and the consumer separates them without help: one whose\n * relationships reach a resource that HAS a module (`organizations`, `users` — the scope anchors,\n * the most load-bearing edges in the graph), and one whose relationships reach only other engine\n * resources. That distinction is derivable from the rows, so no field states it.\n *\n * No `origin` vocabulary is introduced for this. The absence of a module IS the distinction, and a\n * second field restating it is a second thing that can disagree.\n */\n moduleId: string | null;\n /**\n * Every field of the materialized `mainSchema`, with everything the framework knows about it.\n *\n * This replaced a bare `fieldNames: string[]`, and the replacement is the point rather than an\n * enrichment: a name answers \"does this field exist\", which the node already implies by counting\n * them, and nothing else. A reader opening a resource wants what the field IS — its type, whether\n * it is optional, whether it is a key, an index, a foreign key and to what, what personal-data\n * category it carries, and whatever the resource specification says it MEANS.\n *\n * The entries are `ExtractedFieldSpec` from `@wildo-ai/saas-specifications`, produced by the same\n * extractor the `resource-specifications` behavior uses — not a second reading of the same\n * decorators. `params` carries the authored spec prose, `derived` the structural facts the\n * framework computed, `origin` whether the field comes from the base schema or a variant.\n *\n * Structural rather than the imported type, for the reason the relationship rows are: these cross a\n * subprocess boundary as JSON.\n */\n fields: DomainModelFieldRow[];\n /**\n * Every operation the resource configuration declares, projected to what a READER needs.\n *\n * A materialized operation carries its full request, response, summary, context, internal and\n * repository DTOs — six Zod schemas, each of which serializes to tens of kilobytes. Projecting the\n * operation objects wholesale would put megabytes on the wire to say which verbs exist; this\n * carries the identity, the variant, the authorization and the flags that change what the operation\n * DOES, and nothing that is a schema.\n */\n operations: DomainModelOperationRow[];\n /**\n * The per-operation FRONTEND overlay refs the resource specification declares — `frontend.views`.\n *\n * Keys only. The entries themselves are authoring prose about how an operation surfaces, which\n * belongs to the specification reader rather than to a domain-model panel; what this answers is\n * \"which of this resource's operations have an authored view\", which is a gap a reader can act on.\n */\n viewRefs: string[];\n /**\n * The configuration facts that are neither prose nor structure — persistence, policy, bindings.\n *\n * Everything on a `ResourceConfiguration` that decides how the resource BEHAVES rather than what it\n * holds: which database it lives in, whether it is a system resource, its retention, transposition,\n * portability and data-subject policies, its HTTP and introspection bindings.\n *\n * Carried as an OPAQUE record rather than a typed shape, and that is deliberate. The set is open —\n * `ResourceConfiguration` has grown four of these fields in as many months — and a hand-written\n * projection reports the subset its author knew about, so a policy added tomorrow would be\n * invisible here with nothing to say so. Reading the keys means it appears by itself.\n */\n advanced: Record<string, unknown>;\n /**\n * Which part of its owner this resource belongs to — the SECOND grouping axis, under the module.\n *\n * `null` means the resource specification declares none, which is what an application's own resources\n * normally look like today and what an engine resource with no spec at all looks like (one, at the\n * time of writing: `consumableTokens`). A consumer grouping by this must carry an \"unclassified\"\n * bucket and say so; folding those rows into a real group is how a grouping starts lying.\n *\n * Carried on the ROW rather than inside `specification`, because that object is authoring PROSE a\n * reader reads and this is a key a consumer groups by. Nesting it there would make every grouped\n * surface reach through a nullable prose block to find its grouping key.\n */\n subDomain: string | null;\n /** `domain` / `engine` — the kind the owning module declares, when there is one. */\n moduleKind: string | null;\n /** Field names of the materialized `mainSchema`. Empty when the factory could not be materialized. */\n /** The specification's prose, or `null` when this resource has no authored specification. */\n specification: DomainModelSpecificationRow | null;\n /** Every relationship this resource participates in, on either side. */\n relationships: DomainModelRelationshipRow[];\n}\n\nexport interface DomainModelProjection {\n domainResources: DomainModelResourceRow[];\n}\n\nconst RELATIONSHIP_IDENTITY_SEPARATOR = '|';\n\nfunction buildRelationshipRow(relationship: DomainModelRelationshipInput): DomainModelRelationshipRow {\n const foreignKeyHolderResourceType = Resources_SharedUtils.resolveForeignKeyHolderResourceType({\n resourceType1: relationship.resourceType1 as ResourceType,\n resourceType2: relationship.resourceType2 as ResourceType,\n cardinality1: relationship.cardinality1 as never,\n cardinality2: relationship.cardinality2 as never,\n });\n\n return {\n relationshipId: [\n relationship.resourceType1,\n relationship.resourceType2,\n relationship.cardinality1,\n relationship.cardinality2,\n relationship.nature,\n relationship.foreignKeyField ?? '',\n relationship.jointResourceType ?? '',\n /*\n * The five fields added 2026-08-31 are in the identity for the reason the doc above gives:\n * two edges that differ ANYWHERE a reader can see must get distinct ids and both be drawn.\n * `isDisabled` is the one that makes this more than bookkeeping — an active and a disabled\n * edge between the same two resources render differently, so collapsing them to one id would\n * silently drop whichever came second.\n */\n relationship.accessScopeStrategy ?? '',\n relationship.parentResourceRequirement ?? '',\n relationship.primaryScope ?? '',\n relationship.allowCycle === true ? 'cycle' : '',\n relationship.isDisabled === true ? 'disabled' : '',\n ].join(RELATIONSHIP_IDENTITY_SEPARATOR),\n resourceType1: relationship.resourceType1,\n resourceType2: relationship.resourceType2,\n cardinality1: relationship.cardinality1,\n cardinality2: relationship.cardinality2,\n nature: relationship.nature,\n foreignKeyField: relationship.foreignKeyField ?? null,\n foreignKeyHolderResourceType: String(foreignKeyHolderResourceType),\n jointResourceType: relationship.jointResourceType ?? null,\n isPrimaryScope: relationship.isPrimaryScope === true,\n isDisabled: relationship.isDisabled === true,\n accessScopeStrategy: relationship.accessScopeStrategy ?? null,\n parentResourceRequirement: relationship.parentResourceRequirement ?? null,\n primaryScope: relationship.primaryScope ?? null,\n allowCycle: relationship.allowCycle === true,\n };\n}\n\nfunction projectSpecification(\n specification: AnyResourceSpecificationConfig | undefined,\n): DomainModelSpecificationRow | null {\n if (!specification) {\n return null;\n }\n\n return {\n purpose: specification.purpose,\n businessRole: specification.businessRole,\n lifecycleRole: specification.lifecycleRole ?? null,\n businessConstraints: [...(specification.businessConstraints ?? [])],\n };\n}\n\n/**\n * Project the observed application's domain model.\n *\n * Pure and synchronous: every input is already resolved by the handler, which is what makes the\n * projection testable without a subprocess, a companion or an application on disk.\n *\n * Rows are emitted in a STABLE order — modules in registration order with their resources\n * alphabetical, then the boundary nodes alphabetical — because the consumer lays a graph out from\n * them, and a layout that moves between two reads of an unchanged application reads as a change to\n * the application.\n */\nexport function projectApplicationDomainModel(\n input: DomainModelProjectionInput,\n): DomainModelProjection {\n const moduleByResourceType = new Map<string, DomainModelModuleInput>();\n for (const sharedModule of input.sharedModules) {\n for (const resourceType of Object.keys(sharedModule.resourceConfigurations ?? {})) {\n /*\n * LAST module wins, matching `buildSharedSaaSModulesRegistry`'s own `Object.assign` merge.\n * A resource registered by two modules is answered by the later one at runtime, so a graph\n * that credited the earlier one would disagree with the application it is describing.\n */\n moduleByResourceType.set(resourceType, sharedModule);\n }\n }\n\n const relationshipRows = input.resourceRelationships.map(buildRelationshipRow);\n const relationshipsByResourceType = new Map<string, DomainModelRelationshipRow[]>();\n const addRelationship = (resourceType: string, row: DomainModelRelationshipRow): void => {\n const existing = relationshipsByResourceType.get(resourceType);\n if (existing) {\n existing.push(row);\n return;\n }\n relationshipsByResourceType.set(resourceType, [row]);\n };\n for (const row of relationshipRows) {\n addRelationship(row.resourceType1, row);\n /*\n * A self-relationship joins one resource to itself, and listing it twice on the same row would\n * duplicate an edge the graph draws once.\n */\n if (row.resourceType2 !== row.resourceType1) {\n addRelationship(row.resourceType2, row);\n }\n }\n\n /*\n * Every resource NO MODULE of the observed application owns — from TWO sources, and both are\n * needed.\n *\n * - the ENDPOINTS of the relationship rows. A node must exist for every end of every edge, or the\n * edge cannot be drawn at all and vanishes silently. This source alone is what the projection\n * had, and it is why it answered only the handful of engine types the application points at.\n * - the keys of `resourceFieldsByResourceType`. The handler supplies one entry per resource\n * the application RUNS, which is its own plus the engine's whole merged vocabulary. An engine\n * resource that relates to nothing is in no edge, so the first source drops it — and \"the engine\n * resources that happen to have a relationship\" is not a set anyone asked about.\n *\n * The union is therefore \"what this application runs and no module of it declares\", which is the\n * question the consumer's engine boxes answer.\n */\n const ownedResourceTypes = new Set(moduleByResourceType.keys());\n const boundaryResourceTypes = new Set<string>();\n for (const row of relationshipRows) {\n for (const endpoint of [row.resourceType1, row.resourceType2]) {\n if (!ownedResourceTypes.has(endpoint)) {\n boundaryResourceTypes.add(endpoint);\n }\n }\n }\n for (const resourceType of Object.keys(input.resourceFieldsByResourceType)) {\n if (!ownedResourceTypes.has(resourceType)) {\n boundaryResourceTypes.add(resourceType);\n }\n }\n\n const buildRow = (resourceType: string): DomainModelResourceRow => {\n const owningModule = moduleByResourceType.get(resourceType);\n return {\n resourceType,\n moduleId: owningModule?.moduleId ?? null,\n moduleKind: owningModule?.kind ?? null,\n subDomain: input.specificationOverlay?.[resourceType]?.subDomain ?? null,\n fields: [...(input.resourceFieldsByResourceType[resourceType] ?? [])],\n operations: [...(input.resourceOperationsByResourceType[resourceType] ?? [])],\n viewRefs: [...(input.resourceViewRefsByResourceType[resourceType] ?? [])],\n advanced: input.resourceAdvancedByResourceType[resourceType] ?? {},\n specification: projectSpecification(input.specificationOverlay?.[resourceType]),\n relationships: relationshipsByResourceType.get(resourceType) ?? [],\n };\n };\n\n const orderedOwnedResourceTypes: string[] = [];\n const alreadyEmitted = new Set<string>();\n for (const sharedModule of input.sharedModules) {\n for (const resourceType of Object.keys(sharedModule.resourceConfigurations ?? {}).sort()) {\n // Guard against a resource registered by two modules being emitted twice; the map above\n // already decided which module owns it.\n if (alreadyEmitted.has(resourceType)) continue;\n if (moduleByResourceType.get(resourceType)?.moduleId !== sharedModule.moduleId) continue;\n alreadyEmitted.add(resourceType);\n orderedOwnedResourceTypes.push(resourceType);\n }\n }\n\n return {\n domainResources: [\n ...orderedOwnedResourceTypes.map(buildRow),\n ...[...boundaryResourceTypes].sort().map(buildRow),\n ],\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"application-domain-model.behavior.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/subprocess/application-domain-model.behavior.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAqB,MAA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AAC;gBAAE,SAAS;YAC/C,IAAI,oBAAoB,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,QAAQ,KAAK,YAAY,CAAC,QAAQ;gBAAE,SAAS;YACzF,cAAc,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;YACjC,yBAAyB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC/C,CAAC;IACH,CAAC;IAED,OAAO;QACL,eAAe,EAAE;YACf,GAAG,yBAAyB,CAAC,GAAG,CAAC,QAAQ,CAAC;YAC1C,GAAG,CAAC,GAAG,qBAAqB,CAAC,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC;SACnD;KACF,CAAC;AACJ,CAAC","sourcesContent":["import { Resources_SharedUtils, type ResourceType } from '@wildo-ai/saas-models';\nimport type { AnyResourceSpecificationConfig } from '@wildo-ai/saas-specifications';\n\n/**\n * **application-domain-model** — the observed application's domain model as ONE projection:\n * every resource, the module that owns it, the relationships it participates in, and the prose of\n * its specification.\n *\n * ## Why this exists beside two behaviors that already answer half of it each\n *\n * The workbench used to draw its structure from two behaviors — `resource-specifications` for\n * module→resource ownership merged with the specification overlay, and `resources-registry` for the\n * compiled relationship edges. Each spawns its own subprocess importing the application's module\n * graph from TypeScript SOURCE, so a graph assembled from both is assembled from **two reads of a\n * mutating working tree**: the nodes can come from one state of the application and the edges from\n * the next. Nothing detects that, and the result is a picture of an application that never existed.\n *\n * So this is not a convenience wrapper over the other two. It is the only shape in which \"resources,\n * their relationships and their module membership\" is internally consistent. It also happens to cost\n * one derivation instead of two, which is the smaller of the two reasons.\n *\n * The two existing behaviors are untouched: they answer different questions (a full field-spec\n * projection, a full registry snapshot with the FK-resolution sweep) for consumers that are not this\n * one.\n *\n * ## What is projected, and what deliberately is not\n *\n * Resource specification prose, extracted field details and metadata, projected operation details,\n * advanced resource configuration and frontend view references. The handler merges engine and\n * application declarations before passing one assembled input to this projection.\n *\n * Operation DTO schemas and executable function bodies are not carried in the operation projection.\n * A consumer that needs those contracts must use the corresponding detailed introspection surface;\n * their absence here is a view boundary, not evidence that the application declares none.\n */\n\n/**\n * The relationship shape this projection reads.\n *\n * Structural rather than `ResourceRelationship`, because the rows cross a subprocess boundary from\n * the OBSERVED application's registry, which may have been built against a different engine revision\n * than the companion. Binding the engine type here would make a relationship the observed\n * application can legitimately declare unreadable — the same reasoning\n * the workbench's own relationship schema gives for keeping its vocabularies as plain strings.\n */\nexport interface DomainModelRelationshipInput {\n resourceType1: string;\n resourceType2: string;\n cardinality1: string;\n cardinality2: string;\n nature: string;\n foreignKeyField?: string;\n jointResourceType?: string;\n isPrimaryScope?: boolean;\n accessScopeStrategy?: string;\n parentResourceRequirement?: string;\n primaryScope?: string;\n allowCycle?: boolean;\n isDisabled?: boolean;\n}\n\n/** One of the observed application's shared modules, as `loadSharedModules()` answers it. */\nexport interface DomainModelModuleInput {\n moduleId: string;\n kind?: string;\n resourceConfigurations?: Record<string, unknown>;\n}\n\nexport interface DomainModelProjectionInput {\n /** The application's own shared modules, in registration order. */\n sharedModules: readonly DomainModelModuleInput[];\n /** The application's compiled relationship edges. */\n resourceRelationships: readonly DomainModelRelationshipInput[];\n /** The merged specification overlay, keyed by resource type. Absent when the app exports none. */\n specificationOverlay: Record<string, AnyResourceSpecificationConfig> | undefined;\n /** Everything the framework knows about each resource's fields, keyed by resource type. */\n resourceFieldsByResourceType: Record<string, readonly DomainModelFieldRow[]>;\n /** Every declared operation, projected for a reader, keyed by resource type. */\n resourceOperationsByResourceType: Record<string, readonly DomainModelOperationRow[]>;\n /** The behavioural configuration of each resource, keyed by resource type. */\n resourceAdvancedByResourceType: Record<string, Record<string, unknown>>;\n /** The `frontend.views` operation refs the resource specification declares, keyed by resource type. */\n resourceViewRefsByResourceType: Record<string, readonly string[]>;\n}\n\n/**\n * ONE FIELD, as the extractor answers it.\n *\n * A structural mirror of `ExtractedFieldSpec` rather than the imported type, for the reason the\n * relationship rows are structural: these cross a subprocess boundary as JSON, and a type whose\n * shape is owned elsewhere would let a change there alter this contract silently.\n */\nexport interface DomainModelFieldRow {\n fieldName: string;\n /** Which `{primitive}Spec()` decorator carried the authored prose, when one did. */\n specDecorator: string | null;\n /** The authored spec params — `meaning`, `whyItMatters`, `importance`, enum values, … */\n params: Record<string, unknown> | null;\n /**\n * The field's DECORATOR metadata, exactly as the schema declares it.\n *\n * `derived` is the extractor's INTERPRETATION — kind, primitive, foreign-key target. This is the\n * raw record beside it, and it carries what the interpretation does not: `isSummaryField`,\n * `isHidden`, `excludeFromCreate` / `excludeFromUpdate`, `dataCategories`, `isDBIndexed`,\n * `isUnique`, `isPrimaryKey`, and whatever a decorator adds tomorrow.\n *\n * OPAQUE for the reason `advanced` is: the set is open, and a projection that picked keys out of it\n * would report the subset its author knew about.\n *\n * What it does NOT contain, measured rather than assumed: anything from a `*.ui-behavior.tsx`. Those\n * decorators are applied by a FRONTEND module the companion never loads — the subprocess resolves\n * `library`, `specifications` and `service` targets and there is no frontend one — so on engine\n * resources this record holds structural decorators only. That is a reachability limit, not an\n * omission here.\n */\n metadata: Record<string, unknown> | null;\n /** What the framework DERIVED about the field: kind, primitive, optionality, FK target, … */\n derived: Record<string, unknown> | null;\n /** Base schema, or a variant of it — and which variant. */\n origin: Record<string, unknown> | null;\n}\n\n/** ONE OPERATION, projected to what changes its behaviour — never its DTOs. */\nexport interface DomainModelOperationRow {\n /** The operation's own identifier — a core verb or a custom one. */\n operationIdentifier: string;\n /** The operation's TRANSPORT kind: `api_call`, `internal_call`, `repository_only`, … */\n variantType: string | null;\n /**\n * WHICH variant of that transport this row is — `admin`, `summary`, `context`, … — or `null` for\n * the unnamed default.\n *\n * The missing half of an operation's identity, and its absence was a real defect rather than\n * missing detail. `organizations` declares FOUR operations that are all `read` × `api_call`,\n * separated only by this key; measured across the engine's core map, 133 of 794 operations collided\n * on the pair without it. The panel keyed its rows on the colliding pair, so React saw duplicate\n * keys and one accordion row stood for several distinct operations.\n */\n variantKey: string | null;\n /** For a CUSTOM operation, the core verb it behaves like. `null` for a core operation. */\n resourceOperationLike: string | null;\n /** Whether this variant is the one an unqualified call resolves to. */\n isDefault: boolean;\n /** The roles admitted. An EMPTY array is a real answer: no role gate on this variant. */\n roles: string[];\n riskLevel: string | null;\n /** Declared but not implemented — the operation answers, and says it is a placeholder. */\n isUnimplemented: boolean;\n isDisabled: boolean;\n requiresStepUpAuthentication: boolean;\n /** `accepted` / `required` when the variant takes an `Idempotency-Key` (#535), else null. */\n idempotencyKey: string | null;\n /** The action a caller who is not signed in answers a submission challenge for (#1985), else null. */\n submissionChallengeAction: string | null;\n admitsCrossTenantPlatformAdministration: boolean;\n /** Whether the operation emits an auditable event, and which. */\n auditableEventType: string | null;\n /** Whether the operation is exposed over MCP. */\n isMcpExposed: boolean;\n /** Feature flags that must be on for the operation to exist at all. */\n requiredFeatures: string[];\n /**\n * Everything ELSE the materialized operation declares — the HTTP verb, the runtime mode, bulk and\n * API-key posture, notification fan-out, custom-implementation modes, authoritative fields.\n *\n * A deny list over the operation's own keys, for the third time in this projection and for the same\n * reason each time: an allow list reports the subset its author knew about, and this one proved it\n * — a hand-picked set of twelve fields was shipped and `variantKey`, `httpVerb`, `isBulkOperation`\n * and `serviceRuntimeMode` were all absent from it, which is what \"there are lots of information\n * missing\" was.\n *\n * The six DTO schemas are excluded by name. Each serializes to tens of kilobytes, and together they\n * would put megabytes on the wire to say which verbs exist.\n */\n attributes: Record<string, unknown>;\n /**\n * The authored SPECIFICATION for this operation, when the resource's spec describes it.\n *\n * Keyed by `operationIdentifier`, so every variant of one verb carries the same entry — the spec\n * describes the operation, and its per-variant prose lives inside that entry rather than beside it.\n * `null` means the specification does not mention this operation, which is a gap a reader can act\n * on rather than an absence of data.\n */\n specification: Record<string, unknown> | null;\n /** The authored FRONTEND view overlay for this operation (`frontend.views`), when there is one. */\n view: Record<string, unknown> | null;\n}\n\n/** One relationship, as it rides on BOTH resources it joins. */\nexport interface DomainModelRelationshipRow {\n /**\n * Stable identity for ONE edge, composed from every field this projection carries about it.\n *\n * Composed from the whole tuple rather than from `resourceType1 + resourceType2 +\n * foreignKeyField` — the triple the retired `workbenchResourceRelationships` resource addressed a\n * row by — because the discriminating field is not always present: a MANY-to-MANY edge carries\n * `jointResourceType` and no `foreignKeyField`, so that triple is not total here.\n *\n * The consequence is deliberate and worth stating: two edges that agree on every one of these\n * fields are indistinguishable to a graph, so merging them loses nothing a reader could have seen.\n * Two that differ anywhere get distinct ids and both are drawn. This id is internal to the\n * projection and its consumer — it never becomes a URL path parameter — so it is not held to the\n * URL-safe charset an addressable introspection key must satisfy.\n */\n relationshipId: string;\n resourceType1: string;\n resourceType2: string;\n cardinality1: string;\n cardinality2: string;\n /**\n * `composition`, `reference` or `association` — the observed application's vocabulary, and a plain\n * string precisely so a FOURTH value it may legitimately declare is projected rather than refused.\n *\n * Those three are all `RelationshipNature` declares today. Naming a value that does not exist would\n * be worse than naming none: a reader would conclude such an edge falls into the consumer's\n * unrecognised-nature bucket and hunt a defect that cannot occur.\n */\n nature: string;\n foreignKeyField: string | null;\n /**\n * Which side's rows CARRY the foreign key — the direction an arrow must point.\n *\n * Resolved by {@link Resources_SharedUtils.resolveForeignKeyHolderResourceType}, never from\n * declaration order. `resourceType1` is not reliably the referenced side: a child-first\n * declaration such as `(TODOS, USERS, MANY, ONE, { foreignKeyField: 'assignedToUserId' })` is\n * valid and puts the referenced resource in `resourceType2`. Reading position instead of\n * cardinality is the defect that once materialized required FK columns onto the wrong collection.\n */\n foreignKeyHolderResourceType: string;\n /** The junction resource of a MANY-to-MANY, which the framework requires such an edge to name. */\n jointResourceType: string | null;\n /** Whether this edge is the structural ownership anchor that gives `resourceType2` its scope. */\n isPrimaryScope: boolean;\n /**\n * Whether the edge is DECLARED BUT INACTIVE.\n *\n * Load-bearing rather than completeness: an edge the application has disabled does not constrain\n * anything at runtime, and a graph that draws it identically to a live one tells its reader the\n * application has a relationship it does not have. That is the one field here whose absence made\n * the picture WRONG rather than merely thinner, which is why it travels even though the dogfood\n * application currently disables none (measured 2026-08-31: 0 of 16).\n */\n isDisabled: boolean;\n /**\n * How a caller reaches rows on the far side — `requires_context`, `standalone`, and whatever else\n * the observed application's engine revision declares.\n *\n * A plain string for the same reason `nature` is one: this projection describes an application\n * that may have been built against a different engine revision than the companion reading it.\n */\n accessScopeStrategy: string | null;\n /** Whether the parent endpoint is `mandatory` or `optional` for the child's addressing. */\n parentResourceRequirement: string | null;\n /**\n * The resource this edge anchors scope to, when it is a primary-scope edge.\n *\n * Distinct from {@link isPrimaryScope}, which says only THAT it anchors: this names WHICH resource\n * the scope resolves to, and the two are not derivable from one another on an edge whose endpoints\n * are both scoped.\n */\n primaryScope: string | null;\n /** Whether a cycle through this edge is permitted — a graph-shape fact a graph should be able to show. */\n allowCycle: boolean;\n}\n\n/** The specification's prose, for the panel a selected node opens. */\nexport interface DomainModelSpecificationRow {\n purpose: string;\n businessRole: string;\n lifecycleRole: string | null;\n businessConstraints: string[];\n}\n\n/** One resource node. */\nexport interface DomainModelResourceRow {\n resourceType: string;\n /**\n * The module that registers this resource, or `null`.\n *\n * `null` is not a gap — it is the fact that no module of the OBSERVED APPLICATION owns this\n * resource, which is true of every ENGINE resource. All of them are emitted, because an application\n * does not merge two of them: `initializeResources` applies the engine's core factory map\n * unconditionally, so `files`, `apiKeys` and the rest are as registered in the running application\n * as the ones it declares itself.\n *\n * Two SHAPES of engine row arrive, and the consumer separates them without help: one whose\n * relationships reach a resource that HAS a module (`organizations`, `users` — the scope anchors,\n * the most load-bearing edges in the graph), and one whose relationships reach only other engine\n * resources. That distinction is derivable from the rows, so no field states it.\n *\n * No `origin` vocabulary is introduced for this. The absence of a module IS the distinction, and a\n * second field restating it is a second thing that can disagree.\n */\n moduleId: string | null;\n /**\n * Every field of the materialized `mainSchema`, with everything the framework knows about it.\n *\n * This replaced a bare `fieldNames: string[]`, and the replacement is the point rather than an\n * enrichment: a name answers \"does this field exist\", which the node already implies by counting\n * them, and nothing else. A reader opening a resource wants what the field IS — its type, whether\n * it is optional, whether it is a key, an index, a foreign key and to what, what personal-data\n * category it carries, and whatever the resource specification says it MEANS.\n *\n * The entries are `ExtractedFieldSpec` from `@wildo-ai/saas-specifications`, produced by the same\n * extractor the `resource-specifications` behavior uses — not a second reading of the same\n * decorators. `params` carries the authored spec prose, `derived` the structural facts the\n * framework computed, `origin` whether the field comes from the base schema or a variant.\n *\n * Structural rather than the imported type, for the reason the relationship rows are: these cross a\n * subprocess boundary as JSON.\n */\n fields: DomainModelFieldRow[];\n /**\n * Every operation the resource configuration declares, projected to what a READER needs.\n *\n * A materialized operation carries its full request, response, summary, context, internal and\n * repository DTOs — six Zod schemas, each of which serializes to tens of kilobytes. Projecting the\n * operation objects wholesale would put megabytes on the wire to say which verbs exist; this\n * carries the identity, the variant, the authorization and the flags that change what the operation\n * DOES, and nothing that is a schema.\n */\n operations: DomainModelOperationRow[];\n /**\n * The per-operation FRONTEND overlay refs the resource specification declares — `frontend.views`.\n *\n * Keys only. The entries themselves are authoring prose about how an operation surfaces, which\n * belongs to the specification reader rather than to a domain-model panel; what this answers is\n * \"which of this resource's operations have an authored view\", which is a gap a reader can act on.\n */\n viewRefs: string[];\n /**\n * The configuration facts that are neither prose nor structure — persistence, policy, bindings.\n *\n * Everything on a `ResourceConfiguration` that decides how the resource BEHAVES rather than what it\n * holds: which database it lives in, whether it is a system resource, its retention, transposition,\n * portability and data-subject policies, its HTTP and introspection bindings.\n *\n * Carried as an OPAQUE record rather than a typed shape, and that is deliberate. The set is open —\n * `ResourceConfiguration` has grown four of these fields in as many months — and a hand-written\n * projection reports the subset its author knew about, so a policy added tomorrow would be\n * invisible here with nothing to say so. Reading the keys means it appears by itself.\n */\n advanced: Record<string, unknown>;\n /**\n * Which part of its owner this resource belongs to — the SECOND grouping axis, under the module.\n *\n * `null` means the resource specification declares none, which is what an application's own resources\n * normally look like today and what an engine resource with no spec at all looks like (one, at the\n * time of writing: `consumableTokens`). A consumer grouping by this must carry an \"unclassified\"\n * bucket and say so; folding those rows into a real group is how a grouping starts lying.\n *\n * Carried on the ROW rather than inside `specification`, because that object is authoring PROSE a\n * reader reads and this is a key a consumer groups by. Nesting it there would make every grouped\n * surface reach through a nullable prose block to find its grouping key.\n */\n subDomain: string | null;\n /** `domain` / `engine` — the kind the owning module declares, when there is one. */\n moduleKind: string | null;\n /** Field names of the materialized `mainSchema`. Empty when the factory could not be materialized. */\n /** The specification's prose, or `null` when this resource has no authored specification. */\n specification: DomainModelSpecificationRow | null;\n /** Every relationship this resource participates in, on either side. */\n relationships: DomainModelRelationshipRow[];\n}\n\nexport interface DomainModelProjection {\n domainResources: DomainModelResourceRow[];\n}\n\nconst RELATIONSHIP_IDENTITY_SEPARATOR = '|';\n\nfunction buildRelationshipRow(relationship: DomainModelRelationshipInput): DomainModelRelationshipRow {\n const foreignKeyHolderResourceType = Resources_SharedUtils.resolveForeignKeyHolderResourceType({\n resourceType1: relationship.resourceType1 as ResourceType,\n resourceType2: relationship.resourceType2 as ResourceType,\n cardinality1: relationship.cardinality1 as never,\n cardinality2: relationship.cardinality2 as never,\n });\n\n return {\n relationshipId: [\n relationship.resourceType1,\n relationship.resourceType2,\n relationship.cardinality1,\n relationship.cardinality2,\n relationship.nature,\n relationship.foreignKeyField ?? '',\n relationship.jointResourceType ?? '',\n /*\n * The five fields added 2026-08-31 are in the identity for the reason the doc above gives:\n * two edges that differ ANYWHERE a reader can see must get distinct ids and both be drawn.\n * `isDisabled` is the one that makes this more than bookkeeping — an active and a disabled\n * edge between the same two resources render differently, so collapsing them to one id would\n * silently drop whichever came second.\n */\n relationship.accessScopeStrategy ?? '',\n relationship.parentResourceRequirement ?? '',\n relationship.primaryScope ?? '',\n relationship.allowCycle === true ? 'cycle' : '',\n relationship.isDisabled === true ? 'disabled' : '',\n ].join(RELATIONSHIP_IDENTITY_SEPARATOR),\n resourceType1: relationship.resourceType1,\n resourceType2: relationship.resourceType2,\n cardinality1: relationship.cardinality1,\n cardinality2: relationship.cardinality2,\n nature: relationship.nature,\n foreignKeyField: relationship.foreignKeyField ?? null,\n foreignKeyHolderResourceType: String(foreignKeyHolderResourceType),\n jointResourceType: relationship.jointResourceType ?? null,\n isPrimaryScope: relationship.isPrimaryScope === true,\n isDisabled: relationship.isDisabled === true,\n accessScopeStrategy: relationship.accessScopeStrategy ?? null,\n parentResourceRequirement: relationship.parentResourceRequirement ?? null,\n primaryScope: relationship.primaryScope ?? null,\n allowCycle: relationship.allowCycle === true,\n };\n}\n\nfunction projectSpecification(\n specification: AnyResourceSpecificationConfig | undefined,\n): DomainModelSpecificationRow | null {\n if (!specification) {\n return null;\n }\n\n return {\n purpose: specification.purpose,\n businessRole: specification.businessRole,\n lifecycleRole: specification.lifecycleRole ?? null,\n businessConstraints: [...(specification.businessConstraints ?? [])],\n };\n}\n\n/**\n * Project the observed application's domain model.\n *\n * Pure and synchronous: every input is already resolved by the handler, which is what makes the\n * projection testable without a subprocess, a companion or an application on disk.\n *\n * Rows are emitted in a STABLE order — modules in registration order with their resources\n * alphabetical, then the boundary nodes alphabetical — because the consumer lays a graph out from\n * them, and a layout that moves between two reads of an unchanged application reads as a change to\n * the application.\n */\nexport function projectApplicationDomainModel(\n input: DomainModelProjectionInput,\n): DomainModelProjection {\n const moduleByResourceType = new Map<string, DomainModelModuleInput>();\n for (const sharedModule of input.sharedModules) {\n for (const resourceType of Object.keys(sharedModule.resourceConfigurations ?? {})) {\n /*\n * LAST module wins, matching `buildSharedSaaSModulesRegistry`'s own `Object.assign` merge.\n * A resource registered by two modules is answered by the later one at runtime, so a graph\n * that credited the earlier one would disagree with the application it is describing.\n */\n moduleByResourceType.set(resourceType, sharedModule);\n }\n }\n\n const relationshipRows = input.resourceRelationships.map(buildRelationshipRow);\n const relationshipsByResourceType = new Map<string, DomainModelRelationshipRow[]>();\n const addRelationship = (resourceType: string, row: DomainModelRelationshipRow): void => {\n const existing = relationshipsByResourceType.get(resourceType);\n if (existing) {\n existing.push(row);\n return;\n }\n relationshipsByResourceType.set(resourceType, [row]);\n };\n for (const row of relationshipRows) {\n addRelationship(row.resourceType1, row);\n /*\n * A self-relationship joins one resource to itself, and listing it twice on the same row would\n * duplicate an edge the graph draws once.\n */\n if (row.resourceType2 !== row.resourceType1) {\n addRelationship(row.resourceType2, row);\n }\n }\n\n /*\n * Every resource NO MODULE of the observed application owns — from TWO sources, and both are\n * needed.\n *\n * - the ENDPOINTS of the relationship rows. A node must exist for every end of every edge, or the\n * edge cannot be drawn at all and vanishes silently. This source alone is what the projection\n * had, and it is why it answered only the handful of engine types the application points at.\n * - the keys of `resourceFieldsByResourceType`. The handler supplies one entry per resource\n * the application RUNS, which is its own plus the engine's whole merged vocabulary. An engine\n * resource that relates to nothing is in no edge, so the first source drops it — and \"the engine\n * resources that happen to have a relationship\" is not a set anyone asked about.\n *\n * The union is therefore \"what this application runs and no module of it declares\", which is the\n * question the consumer's engine boxes answer.\n */\n const ownedResourceTypes = new Set(moduleByResourceType.keys());\n const boundaryResourceTypes = new Set<string>();\n for (const row of relationshipRows) {\n for (const endpoint of [row.resourceType1, row.resourceType2]) {\n if (!ownedResourceTypes.has(endpoint)) {\n boundaryResourceTypes.add(endpoint);\n }\n }\n }\n for (const resourceType of Object.keys(input.resourceFieldsByResourceType)) {\n if (!ownedResourceTypes.has(resourceType)) {\n boundaryResourceTypes.add(resourceType);\n }\n }\n\n const buildRow = (resourceType: string): DomainModelResourceRow => {\n const owningModule = moduleByResourceType.get(resourceType);\n return {\n resourceType,\n moduleId: owningModule?.moduleId ?? null,\n moduleKind: owningModule?.kind ?? null,\n subDomain: input.specificationOverlay?.[resourceType]?.subDomain ?? null,\n fields: [...(input.resourceFieldsByResourceType[resourceType] ?? [])],\n operations: [...(input.resourceOperationsByResourceType[resourceType] ?? [])],\n viewRefs: [...(input.resourceViewRefsByResourceType[resourceType] ?? [])],\n advanced: input.resourceAdvancedByResourceType[resourceType] ?? {},\n specification: projectSpecification(input.specificationOverlay?.[resourceType]),\n relationships: relationshipsByResourceType.get(resourceType) ?? [],\n };\n };\n\n const orderedOwnedResourceTypes: string[] = [];\n const alreadyEmitted = new Set<string>();\n for (const sharedModule of input.sharedModules) {\n for (const resourceType of Object.keys(sharedModule.resourceConfigurations ?? {}).sort()) {\n // Guard against a resource registered by two modules being emitted twice; the map above\n // already decided which module owns it.\n if (alreadyEmitted.has(resourceType)) continue;\n if (moduleByResourceType.get(resourceType)?.moduleId !== sharedModule.moduleId) continue;\n alreadyEmitted.add(resourceType);\n orderedOwnedResourceTypes.push(resourceType);\n }\n }\n\n return {\n domainResources: [\n ...orderedOwnedResourceTypes.map(buildRow),\n ...[...boundaryResourceTypes].sort().map(buildRow),\n ],\n };\n}\n"]}
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
* Node.js module loader hooks that no-op static asset imports (CSS, images,
|
|
3
3
|
* fonts). Registered via `asset-noop-register.ts` (compiled, loaded by path) so the
|
|
4
4
|
* companion subprocess can import real frontend code without a bundler.
|
|
5
|
+
*
|
|
6
|
+
* The pattern duplicates `STATIC_ASSET_IMPORT_PATTERN_SOURCE` from platform-config-lib ON PURPOSE:
|
|
7
|
+
* loader hooks run on their own thread, so this module imports nothing. A parity test holds the two
|
|
8
|
+
* equal (`static-asset-pattern-parity.test.ts`).
|
|
5
9
|
*/
|
|
6
10
|
import type { LoadHook, ResolveHook } from 'node:module';
|
|
7
11
|
export declare const resolve: ResolveHook;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset-noop-hooks.d.ts","sourceRoot":"","sources":["../../../../../../src/core/introspection/subprocess/asset-noop-hooks.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"asset-noop-hooks.d.ts","sourceRoot":"","sources":["../../../../../../src/core/introspection/subprocess/asset-noop-hooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAIzD,eAAO,MAAM,OAAO,EAAE,WASrB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,QAUlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset-noop-hooks.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/subprocess/asset-noop-hooks.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"asset-noop-hooks.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/subprocess/asset-noop-hooks.ts"],"names":[],"mappings":"AAWA,MAAM,QAAQ,GAAG,mFAAmF,CAAC;AAErG,MAAM,CAAC,MAAM,OAAO,GAAgB,CAAC,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE;IACtE,IAAI,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;QAC7B,OAAO;YACL,YAAY,EAAE,IAAI;YAClB,GAAG,EAAE,IAAI,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,SAAS,IAAI,UAAU,CAAC,CAAC,IAAI;SAC9D,CAAC;IACJ,CAAC;IAED,OAAO,WAAW,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AACzC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAa,CAAC,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE;IACvD,IAAI,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;QACvB,OAAO;YACL,YAAY,EAAE,IAAI;YAClB,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,sBAAsB;SAC/B,CAAC;IACJ,CAAC;IAED,OAAO,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AAChC,CAAC,CAAC","sourcesContent":["/**\n * Node.js module loader hooks that no-op static asset imports (CSS, images,\n * fonts). Registered via `asset-noop-register.ts` (compiled, loaded by path) so the\n * companion subprocess can import real frontend code without a bundler.\n *\n * The pattern duplicates `STATIC_ASSET_IMPORT_PATTERN_SOURCE` from platform-config-lib ON PURPOSE:\n * loader hooks run on their own thread, so this module imports nothing. A parity test holds the two\n * equal (`static-asset-pattern-parity.test.ts`).\n */\nimport type { LoadHook, ResolveHook } from 'node:module';\n\nconst ASSET_RE = /\\.(css|scss|less|sass|svg|png|jpe?g|gif|webp|ico|avif|woff2?|eot|ttf|otf)(\\?.*)?$/;\n\nexport const resolve: ResolveHook = (specifier, context, nextResolve) => {\n if (ASSET_RE.test(specifier)) {\n return {\n shortCircuit: true,\n url: new URL(specifier, context.parentURL ?? 'file:///').href,\n };\n }\n\n return nextResolve(specifier, context);\n};\n\nexport const load: LoadHook = (url, context, nextLoad) => {\n if (ASSET_RE.test(url)) {\n return {\n shortCircuit: true,\n format: 'module',\n source: 'export default \"\";\\n',\n };\n }\n\n return nextLoad(url, context);\n};\n"]}
|
package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companion-introspection-behavior-handlers.d.ts","sourceRoot":"","sources":["../../../../../../src/core/introspection/subprocess/companion-introspection-behavior-handlers.ts"],"names":[],"mappings":"AAIA,OAAO,EAGL,gBAAgB,EAIjB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"companion-introspection-behavior-handlers.d.ts","sourceRoot":"","sources":["../../../../../../src/core/introspection/subprocess/companion-introspection-behavior-handlers.ts"],"names":[],"mappings":"AAIA,OAAO,EAGL,gBAAgB,EAIjB,MAAM,uBAAuB,CAAC;AA0E/B,OAAO,KAAK,EACV,gCAAgC,EAChC,kCAAkC,EAClC,gDAAgD,EACjD,MAAM,0CAA0C,CAAC;AAGlD,MAAM,WAAW,4CAA4C;IAC3D,OAAO,EAAE,kCAAkC,CAAC;IAC5C,QAAQ,EAAE,gDAAgD,CAAC;IAC3D,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACxC;AAED,MAAM,MAAM,qCAAqC,GAAG,CAClD,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,4CAA4C,KAClD,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAiDhC,eAAO,MAAM,iDAAiD,EAAE,OAAO,CACrE,MAAM,CAAC,gCAAgC,EAAE,qCAAqC,CAAC,CA8tChF,CAAC;AAwWF;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,OAAO,GAAG;IAC3D,mBAAmB,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,KAAK,CAAC;IAChD,yBAAyB,CAAC,EAAE,SAAS,gBAAgB,EAAE,CAAC;CACzD,CAqCA"}
|
|
@@ -3,8 +3,9 @@ import { pathToFileURL } from 'node:url';
|
|
|
3
3
|
import { generateDesignTokensCssFromSourceConfig } from '@wildo-ai/presets-components-models';
|
|
4
4
|
import { buildSharedSaaSModulesRegistry, coreResourceShared_FieldIdentifierPriority, CoreResourceType, Resources_SharedUtils, } from '@wildo-ai/saas-models';
|
|
5
5
|
import { CompanionArtifactClass } from '@wildo-ai/saas-models/companion';
|
|
6
|
+
import { describeExternalDataPipeline } from '@wildo-ai/saas-models/external-data';
|
|
6
7
|
import { getCustomFieldMetadata, getZodObjectShape } from '@wildo-ai/zod-decorators';
|
|
7
|
-
import { assertResourceSpecificationsAlignWithRegistry, ExpertShapingInputKind, extractFieldSpecsFromFieldMap, extractResourceFieldSpecs, engineResourceSpecificationsByType, validateBrandSnapshot, validateMarketSnapshot, } from '@wildo-ai/saas-specifications';
|
|
8
|
+
import { assertResourceSpecificationsAlignWithRegistry, ExpertShapingInputKind, extractFieldSpecsFromFieldMap, extractResourceFieldSpecs, engineResourceSpecificationsByType, resolveApplicationSchemaOrgCatalog, EXPERT_SHAPING_INPUT_FAMILY_BINDINGS, resolveNotApplicableFamilies, validateBrandSnapshot, validateMarketSnapshot, } from '@wildo-ai/saas-specifications';
|
|
8
9
|
import { parseSpecificationContextFactoryRequest, renderSpecificationContextPart, } from '../../specifications/specification-context-factory.js';
|
|
9
10
|
import { renderCatalogEntryContextPart } from '../../catalogs/catalog-context.factory.js';
|
|
10
11
|
import { parseSchemaOrgCatalogEntries } from '../../catalogs/schema-org/schema-org-catalog-boundary.shared.js';
|
|
@@ -29,7 +30,25 @@ import { parseSpecificationElementsRequest, projectSpecificationElements } from
|
|
|
29
30
|
import { projectApplicationDomainModel, } from './application-domain-model.behavior.js';
|
|
30
31
|
import { asComplianceRelevantConfiguration, CompliancePrimaryFactOrigin, projectCompliancePrimaryFacts, } from './compliance-primary-facts.behavior.js';
|
|
31
32
|
import { projectRiskSignalResourceInputs } from './risk-signals.behavior.js';
|
|
32
|
-
|
|
33
|
+
/**
|
|
34
|
+
* The action a variant's `submissionChallenge` declaration names (#1985), or null. Read structurally: the observed
|
|
35
|
+
* application may run another engine revision, so the declaration is checked rather than assumed.
|
|
36
|
+
*/
|
|
37
|
+
function readSubmissionChallengeAction(declaration) {
|
|
38
|
+
if (typeof declaration !== 'object' || declaration === null)
|
|
39
|
+
return null;
|
|
40
|
+
const action = declaration.action;
|
|
41
|
+
return typeof action === 'string' && action.length > 0 ? action : null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* The specification overlay a reader of `resource-specifications` receives.
|
|
45
|
+
*
|
|
46
|
+
* `externalDataPipeline` (#1685) is described from the MATERIALIZED configuration's declaration rather than read off
|
|
47
|
+
* the specification: a specification carries it only when it was built with `resourceRelationships`, while this
|
|
48
|
+
* handler always holds the configuration, so every pipeline-declaring resource is described here whichever path its
|
|
49
|
+
* specification took — and from the one source both paths derive from.
|
|
50
|
+
*/
|
|
51
|
+
function materializeResourceSpecificationOverlay(resourceSpecOverlay, pipelineDeclaration) {
|
|
33
52
|
if (!resourceSpecOverlay) {
|
|
34
53
|
return null;
|
|
35
54
|
}
|
|
@@ -41,6 +60,7 @@ function materializeResourceSpecificationOverlay(resourceSpecOverlay) {
|
|
|
41
60
|
businessConstraints: resourceSpecOverlay.businessConstraints,
|
|
42
61
|
operations: resourceSpecOverlay.operations,
|
|
43
62
|
frontend: resourceSpecOverlay.frontend,
|
|
63
|
+
externalDataPipeline: pipelineDeclaration === undefined ? null : describeExternalDataPipeline(pipelineDeclaration),
|
|
44
64
|
};
|
|
45
65
|
}
|
|
46
66
|
/**
|
|
@@ -350,6 +370,7 @@ export const COMPANION_INTROSPECTION_BUILTIN_BEHAVIOR_HANDLERS = {
|
|
|
350
370
|
isDisabled: operation.isDisabled === true,
|
|
351
371
|
requiresStepUpAuthentication: operation.requiresStepUpAuthentication === true,
|
|
352
372
|
idempotencyKey: operation.idempotencyKey === undefined || operation.idempotencyKey === null ? null : String(operation.idempotencyKey),
|
|
373
|
+
submissionChallengeAction: readSubmissionChallengeAction(operation.submissionChallenge),
|
|
353
374
|
admitsCrossTenantPlatformAdministration: operation.admitsCrossTenantPlatformAdministration === true,
|
|
354
375
|
auditableEventType: typeof operation.auditableEvent === 'object' && operation.auditableEvent !== null
|
|
355
376
|
? String(operation.auditableEvent.eventType ?? '') || null
|
|
@@ -508,6 +529,14 @@ export const COMPANION_INTROSPECTION_BUILTIN_BEHAVIOR_HANDLERS = {
|
|
|
508
529
|
resourceFieldIdentifiers: sharedRegistry.resourceFieldIdentifiers,
|
|
509
530
|
resourceRelationships: sharedRegistry.resourceRelationships,
|
|
510
531
|
customFeatureDefinitionCount: sharedRegistry.customFeatureDefinitions.length,
|
|
532
|
+
/*
|
|
533
|
+
* The two fields the billing LABEL family needs per declared feature (#1851): which features and limits exist, so
|
|
534
|
+
* each is worded whether or not a product grants it. The engine's core definitions are the planner's to add.
|
|
535
|
+
*/
|
|
536
|
+
customFeatureDefinitions: sharedRegistry.customFeatureDefinitions.map((definition) => ({
|
|
537
|
+
identifier: definition.identifier,
|
|
538
|
+
valueType: definition.valueType,
|
|
539
|
+
})),
|
|
511
540
|
customMilestoneDefinitionCount: sharedRegistry.customMilestoneDefinitions.length,
|
|
512
541
|
/*
|
|
513
542
|
* The three fields LABELLING needs per milestone, and nothing else.
|
|
@@ -524,6 +553,18 @@ export const COMPANION_INTROSPECTION_BUILTIN_BEHAVIOR_HANDLERS = {
|
|
|
524
553
|
category: definition.category,
|
|
525
554
|
})),
|
|
526
555
|
productDefinitionCount: sharedRegistry.productDefinitions.length,
|
|
556
|
+
/*
|
|
557
|
+
* The fields the billing LABEL family needs per product, and nothing else — the same move #1405 made for
|
|
558
|
+
* milestones. The planner read these from `ProductCatalogSyncBackendService`, filled only by
|
|
559
|
+
* `startApplication()`'s billing bootstrap, which the companion never runs: no application's plan names
|
|
560
|
+
* were ever planned.
|
|
561
|
+
*/
|
|
562
|
+
productDefinitions: sharedRegistry.productDefinitions.map((definition) => ({
|
|
563
|
+
key: definition.key,
|
|
564
|
+
grantedFeatures: [...(definition.grantedFeatures ?? [])],
|
|
565
|
+
grantedLimitKeys: Object.keys(definition.grantedLimits ?? {}),
|
|
566
|
+
...(definition.purchaseConfig?.creditPoolKey ? { creditPoolKey: definition.purchaseConfig.creditPoolKey } : {}),
|
|
567
|
+
})),
|
|
527
568
|
unresolvableForeignKeyFields,
|
|
528
569
|
/*
|
|
529
570
|
* WORKSPACE GROUND TRUTH for build planning (J-1 stalls G+H): the REAL module ids and each
|
|
@@ -544,6 +585,25 @@ export const COMPANION_INTROSPECTION_BUILTIN_BEHAVIOR_HANDLERS = {
|
|
|
544
585
|
])),
|
|
545
586
|
};
|
|
546
587
|
},
|
|
588
|
+
/**
|
|
589
|
+
* Every approval gate's pause states (#1864), per function tool. Read from the application's initialization
|
|
590
|
+
* declaration — `flowsActorsRegistry.functionTools`, the application's tools as backend startup registers them — so
|
|
591
|
+
* the words planned are for the gates that run. Startup also registers the engine's default function tools
|
|
592
|
+
* (`flowsActors_Backend_Default_Definition`), which are not read here: none declares a gate with pause states, and a
|
|
593
|
+
* pin beside that list fails the day one does. A gate that declares none contributes nothing.
|
|
594
|
+
*/
|
|
595
|
+
'human-decision-gate-declarations': async (_input, context) => {
|
|
596
|
+
const { buildApplicationInitializationConfig } = resolveBackendCompanionExports(context.moduleExports);
|
|
597
|
+
const functionTools = buildApplicationInitializationConfig().flowsActorsRegistry?.functionTools ?? [];
|
|
598
|
+
return {
|
|
599
|
+
gates: functionTools
|
|
600
|
+
.filter((tool) => (tool.humanApproval?.deadlines?.pauseStates ?? []).length > 0)
|
|
601
|
+
.map((tool) => ({
|
|
602
|
+
functionRef: tool.functionRef,
|
|
603
|
+
pauseStates: [...(tool.humanApproval?.deadlines?.pauseStates ?? [])],
|
|
604
|
+
})),
|
|
605
|
+
};
|
|
606
|
+
},
|
|
547
607
|
'email-template-placement-info': async (_input, context) => {
|
|
548
608
|
const { loadBackendModules } = resolveBackendCompanionExports(context.moduleExports);
|
|
549
609
|
const backendModules = await loadBackendModules();
|
|
@@ -770,7 +830,7 @@ export const COMPANION_INTROSPECTION_BUILTIN_BEHAVIOR_HANDLERS = {
|
|
|
770
830
|
? extractResourceFieldSpecs(resourceConfig.mainSchema, resourceConfig.inheritenceSchemaDefinition, registryContext)
|
|
771
831
|
: [];
|
|
772
832
|
resourceFieldSpecs[resourceType] = {
|
|
773
|
-
specOverlay: materializeResourceSpecificationOverlay(resourceSpecOverlay),
|
|
833
|
+
specOverlay: materializeResourceSpecificationOverlay(resourceSpecOverlay, resourceConfig?.externalDataPipeline),
|
|
774
834
|
fieldSpecs,
|
|
775
835
|
};
|
|
776
836
|
}
|
|
@@ -902,11 +962,9 @@ export const COMPANION_INTROSPECTION_BUILTIN_BEHAVIOR_HANDLERS = {
|
|
|
902
962
|
const companionExports = resolveSpecificationsCompanionExports(context.moduleExports);
|
|
903
963
|
switch (request.vocabulary) {
|
|
904
964
|
case CatalogContextVocabulary.SCHEMA_ORG: {
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
}
|
|
909
|
-
const entry = findCatalogEntryByTypeLastWins(parseSchemaOrgCatalogEntries(catalog, "the application's specifications package (catalogSpecifications.schemaOrg)"), request.entryType);
|
|
965
|
+
// The application's declared catalog, else the engine's — the one resolution every reader shares.
|
|
966
|
+
const catalog = resolveApplicationSchemaOrgCatalog(companionExports);
|
|
967
|
+
const entry = findCatalogEntryByTypeLastWins(parseSchemaOrgCatalogEntries(catalog, "the application's Schema.org catalog (its catalogSpecifications.schemaOrg, else the engine's)"), request.entryType);
|
|
910
968
|
if (!entry) {
|
|
911
969
|
throw new Error(`No Schema.org catalog entry "${request.entryType}" is exported from the specifications package.`);
|
|
912
970
|
}
|
|
@@ -1288,7 +1346,17 @@ function resolveExpertPersonaDerivationInputs(moduleExports, shapingInputKinds)
|
|
|
1288
1346
|
break;
|
|
1289
1347
|
}
|
|
1290
1348
|
}
|
|
1291
|
-
|
|
1349
|
+
const notApplicableFamilies = resolveNotApplicableFamilies(exports.creatorInputs);
|
|
1350
|
+
const notApplicableKinds = missingKinds.filter((kind) => {
|
|
1351
|
+
const family = EXPERT_SHAPING_INPUT_FAMILY_BINDINGS[kind]?.family;
|
|
1352
|
+
return family !== undefined && notApplicableFamilies.has(family);
|
|
1353
|
+
});
|
|
1354
|
+
return {
|
|
1355
|
+
briefs: renderShapingInputBriefs(sources),
|
|
1356
|
+
missingKinds: missingKinds.filter((kind) => !notApplicableKinds.includes(kind)),
|
|
1357
|
+
notApplicableKinds,
|
|
1358
|
+
parentComposedKinds,
|
|
1359
|
+
};
|
|
1292
1360
|
}
|
|
1293
1361
|
/**
|
|
1294
1362
|
* Committed charters read-back — `[]` when the app has not wired (or not yet
|