@wildo-ai/dev-companion 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/__tests__/asset-noop.d.ts.map +1 -1
- package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +1 -1
- package/dist/esm/__tests__/internal-test-view.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-creative-brief.schemas.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.js +9 -3
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
- package/dist/esm/brand/models/logo-judge.schemas.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts +3 -24
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.js +10 -48
- package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
- package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/logo-deliberation.companion.service.js +2 -8
- package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
- package/dist/esm/brand/services/logo-generation.companion.service.d.ts +6 -3
- package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/logo-generation.companion.service.js +11 -12
- package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
- package/dist/esm/brand/utils/derived-brand-assets.d.ts +0 -1
- package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
- package/dist/esm/brand/utils/derived-brand-assets.js +1 -2
- package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
- package/dist/esm/brand/utils/stage-brand-candidate.d.ts +7 -9
- package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
- package/dist/esm/brand/utils/stage-brand-candidate.js +8 -11
- package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +52 -2
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +45 -0
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +45 -5
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +192 -13
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts +12 -22
- package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/git-change-set.companion.service.js +151 -82
- package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts +30 -4
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js +30 -4
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +16 -0
- 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 +17 -0
- package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
- package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.d.ts.map +1 -1
- package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.d.ts.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.d.ts +57 -57
- package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts +90 -0
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -0
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.js +98 -0
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -0
- package/dist/esm/companion-api/controllers/companion.controller.d.ts +33 -5
- package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.js +150 -40
- package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts +8 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts.map +1 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.js +8 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.js.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.models.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts +34 -0
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -0
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js +65 -0
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -0
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts +11 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js +10 -2
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
- package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/context/companion-context.d.ts.map +1 -1
- package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
- package/dist/esm/core/inject/models/container.d.ts.map +1 -1
- package/dist/esm/core/inject/models/container.js +0 -7
- package/dist/esm/core/inject/models/container.js.map +1 -1
- package/dist/esm/core/inject/models/service-types.d.ts +0 -1
- package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
- package/dist/esm/core/inject/models/service-types.js +0 -1
- package/dist/esm/core/inject/models/service-types.js.map +1 -1
- package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
- package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +8 -4
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +8 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.js +42 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts +4 -9
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-register.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +3 -2
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-child.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts +14 -5
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js +14 -5
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts +0 -21
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js +39 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-context-block.builder.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts +41 -2
- 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 +178 -41
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts +23 -0
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.js +23 -0
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.js.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.models.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts +4 -4
- package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-startup-assembly.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-startup-assembly.js +5 -0
- package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/models/companion-runtime.models.d.ts.map +1 -1
- package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +16 -13
- package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
- package/dist/esm/core/runtime/services/start-companion-application.service.js +70 -45
- package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.js +9 -2
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-workbench-topology.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.d.ts.map +1 -1
- package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/execution-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/feature-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/milestone-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/product-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/role-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.models.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js +4 -4
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
- package/dist/esm/core/utils/atomic-write.utils.d.ts.map +1 -1
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +13 -3
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.js +0 -5
- package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.js +0 -2
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
- package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.js +4 -2
- package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.js +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.js.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.js +23 -1
- package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
- package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.d.ts +82 -3
- package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.js +128 -6
- package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js +7 -3
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js +11 -5
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts +9 -24
- package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.js +11 -60
- package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts +39 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js +39 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_announcement.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_card.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_modal.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_tooltip.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_tour.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
- package/dist/esm/i18n/index.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +58 -0
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-unit.models.js +35 -0
- package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js +8 -3
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
- package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +55 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +178 -73
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts +3 -3
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js +16 -5
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +35 -2
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +68 -29
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +126 -35
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-file-source.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts +143 -0
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js +179 -0
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts +154 -0
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js +174 -0
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts +104 -0
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js +163 -18
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/market/services/market-generation.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts +82 -3
- 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 +210 -54
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts +27 -1
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js +38 -5
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts +49 -0
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js +95 -0
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -0
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js +9 -4
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +25 -6
- 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 +82 -25
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +83 -2
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +197 -4
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +44 -3
- 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 +346 -42
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts +117 -2
- package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-doc.companion.service.js +260 -69
- package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts +7 -1
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js +179 -10
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts +2 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js +10 -2
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
- package/package.json +17 -17
- package/dist/esm/core/runtime/companion-startup-composition-fence.d.ts +0 -44
- package/dist/esm/core/runtime/companion-startup-composition-fence.d.ts.map +0 -1
- package/dist/esm/core/runtime/companion-startup-composition-fence.js +0 -85
- package/dist/esm/core/runtime/companion-startup-composition-fence.js.map +0 -1
- package/dist/esm/expert-personas/utils/canonical-json.d.ts +0 -25
- package/dist/esm/expert-personas/utils/canonical-json.d.ts.map +0 -1
- package/dist/esm/expert-personas/utils/canonical-json.js +0 -45
- package/dist/esm/expert-personas/utils/canonical-json.js.map +0 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts +0 -19
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +0 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js +0 -19
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +0 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.d.ts +0 -17
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.d.ts.map +0 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.js +0 -17
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.js.map +0 -1
|
@@ -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;AAiXjF,MAAM,+BAA+B,GAAG,GAAG,CAAC;AAE5C,SAAS,oBAAoB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AQ,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 * The specification's PROSE — `purpose`, `businessRole`, `lifecycleRole`, `businessConstraints` —\n * plus each resource's field NAMES. Not `operations`, `frontend`, `codeHandling` or the extracted\n * per-field specs: those are large, they are what makes `resource-specifications` expensive, and a\n * domain-model panel reads none of them. Stated rather than left implicit so the next reader does not\n * mistake the omission for an oversight; a consumer that needs them asks `resource-specifications`,\n * which is exactly what it is for.\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 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 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 specification says it MEANS.\n *\n * spec-cite: N/A — \"the specification\" here is Wildo's OWN `*.resource.specification.ts` layer, not an external standard, and the quoted\n * fragments are questions this panel answers rather than any document's words.\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 specification declares — `frontend.views`.\n *\n * spec-cite: N/A — \"the specification\" is Wildo's own specification layer; the quoted fragment is the question this field answers.\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 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,MAAM,uBAAuB,CAAC;AA4WjF,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,CAAC,eAAe,IAAI,EAAE;YAClC,YAAY,CAAC,iBAAiB,IAAI,EAAE;YACpC;;;;;;eAMG;YACH,YAAY,CAAC,mBAAmB,IAAI,EAAE;YACtC,YAAY,CAAC,yBAAyB,IAAI,EAAE;YAC5C,YAAY,CAAC,YAAY,IAAI,EAAE;YAC/B,YAAY,CAAC,UAAU,KAAK,IA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AClE,aAAa,EAAE,oBAAoB,CAAC,KAAK,CAAC,oBAAoB,EAAE,CAAC,YAAY,CAAC,CAAC;YAC/E,aAAa,EAAE,2BAA2B,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE;SACnE,CAAC;IACJ,CAAC,CAAC;IAEF,MAAM,yBAAyB,GAAa,EAAE,CAAC;IAC/C,MAAM,cAAc,GAAG,IAAI,GAAG,EAAU,CAAC;IACzC,KAAK,MAAM,YAAY,IAAI,KAAK,CAAC,aAAa,EAAE,CAAC;QAC/C,KAAK,MAAM,YAAY,IAAI,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,sBAAsB,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;YACzF,wFAAwF;YACxF,wCAAwC;YACxC,IAAI,cAAc,CAAC,GAAG,CAAC,YAAY,CAAC;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 * The specification's PROSE — `purpose`, `businessRole`, `lifecycleRole`, `businessConstraints` —\n * plus each resource's field NAMES. Not `operations`, `frontend`, `codeHandling` or the extracted\n * per-field specs: those are large, they are what makes `resource-specifications` expensive, and a\n * domain-model panel reads none of them. Stated rather than left implicit so the next reader does not\n * mistake the omission for an oversight; a consumer that needs them asks `resource-specifications`,\n * which is exactly what it is for.\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 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertions.behavior.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"assertions.behavior.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/assertions.behavior.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAU9D,OAAO,KAAK,EACV,qBAAqB,EACrB,4BAA4B,EAC5B,8BAA8B,EAE9B,sBAAsB,EACtB,8BAA8B,EAE9B,2BAA2B,EAE3B,yBAAyB,EACzB,aAAa,EACd,MAAM,+BAA+B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E,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACtC,eAAe,EAAE,kCAAkC,CAAC,iBAAiB,CAAC,GACrE,OAAO,CAAC,2BAA2B,CAAC,CA0CtC;AAyCD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,SAAS,gBAAgB,EAAE,EACpC,0BAA0B,EAAE,SAAS,MAAM,EAAE,EAC7C,KAAK,EAAE,aAAa,GAAG,SAAS,GAC/B,oBAAoB,CAetB;AA+BD;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,4BAA4B,EACnC,OAAO,EAAE,oBAAoB,GAC5B,wBAAwB,CA4E1B;AAiBD;;;GAGG;AACH,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,4BAA4B,EACnC,UAAU,EAAE,wBAAwB,GAAG,SAAS,GAC/C,8BAA8B,CA6DhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset-noop-hooks.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"asset-noop-hooks.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/asset-noop-hooks.ts"],"names":[],"mappings":"AAAA;;;;GAIG;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-register.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"asset-noop-register.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/asset-noop-register.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand-prompt-renderer.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"brand-prompt-renderer.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/brand-prompt-renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EACzB,aAAa,EACb,iBAAiB,EAClB,MAAM,+BAA+B,CAAC;AAEvC;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,aAAa,CAAC;IACxB,6EAA6E;IAC7E,YAAY,CAAC,EAAE,iBAAiB,EAAE,CAAC;CACpC;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,GAAG,yBAAyB,CA4F1F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chart-registration-refs.behavior.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"chart-registration-refs.behavior.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/chart-registration-refs.behavior.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAGL,KAAK,wBAAwB,EAE9B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAgB1E,MAAM,WAAW,2BAA2B;IAC1C,6BAA6B,EAAE,4BAA4B,EAAE,CAAC;CAC/D;AAED,wBAAsB,wBAAwB,CAC5C,wBAAwB,EAAE,wBAAwB,EAClD,OAAO,EAAE;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,GAC9B,OAAO,CAAC,2BAA2B,CAAC,CAatC"}
|
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":["
|
|
1
|
+
{"version":3,"file":"companion-introspection-behavior-handlers.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/companion-introspection-behavior-handlers.ts"],"names":[],"mappings":"AASA,OAAO,EAML,gBAAgB,EAIjB,MAAM,uBAAuB,CAAC;AA8D/B,OAAO,KAAK,EACV,gCAAgC,EAChC,kCAAkC,EAClC,gDAAgD,EACjD,MAAM,0CAA0C,CAAC;AAyDlD,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;AA6BhC,eAAO,MAAM,iDAAiD,EAAE,OAAO,CACrE,MAAM,CAAC,gCAAgC,EAAE,qCAAqC,CAAC,CAymChF,CAAC;AAwVF;;;;;;;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"}
|
|
@@ -8,6 +8,7 @@ import { getCustomFieldMetadata, getZodObjectShape } from '@wildo-ai/zod-decorat
|
|
|
8
8
|
import { assertResourceSpecificationsAlignWithRegistry, ExpertShapingInputKind, extractFieldSpecsFromFieldMap, extractResourceFieldSpecs, engineResourceSpecificationsByType, validateBrandSnapshot, validateMarketSnapshot, } from '@wildo-ai/saas-specifications';
|
|
9
9
|
import { parseSpecificationContextFactoryRequest, renderSpecificationContextPart, } from '../../specifications/specification-context-factory.js';
|
|
10
10
|
import { renderCatalogEntryContextPart } from '../../catalogs/catalog-context.factory.js';
|
|
11
|
+
import { parseSchemaOrgCatalogEntries } from '../../catalogs/schema-org/schema-org-catalog-boundary.shared.js';
|
|
11
12
|
import { CatalogContextVocabulary } from '../../catalogs/catalog-context.factory.models.js';
|
|
12
13
|
import { resolveBackendCompanionExports, resolveDesignSystemSourceConfig, resolveFrontendCompanionExports, resolveSharedLibraryCompanionExports, resolveSpecificationsCompanionExports, } from './companion-introspection-module-exports.utils.js';
|
|
13
14
|
import { runFrontendLabelsNeededInfo } from './frontend-labels-needed-info.behavior.js';
|
|
@@ -884,14 +885,14 @@ export const COMPANION_INTROSPECTION_BUILTIN_BEHAVIOR_HANDLERS = {
|
|
|
884
885
|
if (!catalog) {
|
|
885
886
|
throw new Error('Specifications companion exports are missing `catalogSpecifications.schemaOrg`.');
|
|
886
887
|
}
|
|
887
|
-
const entry = findCatalogEntryByTypeLastWins(catalog, request.entryType);
|
|
888
|
+
const entry = findCatalogEntryByTypeLastWins(parseSchemaOrgCatalogEntries(catalog, "the application's specifications package (catalogSpecifications.schemaOrg)"), request.entryType);
|
|
888
889
|
if (!entry) {
|
|
889
890
|
throw new Error(`No Schema.org catalog entry "${request.entryType}" is exported from the specifications package.`);
|
|
890
891
|
}
|
|
891
892
|
return {
|
|
892
893
|
contextPart: renderCatalogEntryContextPart({
|
|
893
894
|
vocabulary: request.vocabulary,
|
|
894
|
-
entry
|
|
895
|
+
entry,
|
|
895
896
|
}),
|
|
896
897
|
};
|
|
897
898
|
}
|