@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
package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companion-introspection-module-exports.utils.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"companion-introspection-module-exports.utils.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/companion-introspection-module-exports.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,KAAK,EACV,wBAAwB,EACxB,cAAc,EACf,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EACV,6BAA6B,EAC7B,gBAAgB,EACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AAE9F,MAAM,MAAM,qBAAqB,GAAG,MAAM,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;AACpE,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC;AAapE,wBAAgB,8BAA8B,CAC5C,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACrC,uBAAuB,CAOzB;AAED,wBAAgB,+BAA+B,CAC7C,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACrC,wBAAwB,CAO1B;AAED,wBAAgB,oCAAoC,CAClD,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACrC,6BAA6B,CAO/B;AAED,wBAAgB,qCAAqC,CACnD,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACrC,8BAA8B,CAOhC;AAED,wBAAgB,+BAA+B,CAC7C,wBAAwB,EAAE,wBAAwB,GACjD,wBAAwB,CAO1B"}
|
|
@@ -47,16 +47,25 @@ import { ErasureRetentionMode, type PersonalDataCategory, type PersonalDataField
|
|
|
47
47
|
* | `systemAccessPolicy.exportSubject` | 41 |
|
|
48
48
|
* | `systemAccessPolicy.seeRetained` | 2 |
|
|
49
49
|
*
|
|
50
|
-
* So on the erasure axis the engine
|
|
51
|
-
* not profiles, not audit logs, not files, not membership. On the subject-EXPORT axis it
|
|
52
|
-
* about half. The two axes are declared by different mechanisms and
|
|
50
|
+
* So on the erasure axis the engine answered for the ACCOUNT and for nothing else — not credentials,
|
|
51
|
+
* not profiles, not audit logs, not files, not membership. On the subject-EXPORT axis it answered for
|
|
52
|
+
* about half. The two axes are declared by different mechanisms and had drifted apart, and no
|
|
53
53
|
* consumer could see it because nothing read the declarations back until this projection did.
|
|
54
54
|
*
|
|
55
|
+
* **THAT TABLE IS A SNAPSHOT, AND THE ERASURE ROW HAS SINCE BEEN OVERTAKEN. Do not quote it as
|
|
56
|
+
* current coverage.** It is kept because the finding it records is the reason this projection exists:
|
|
57
|
+
* the expectation was the opposite of the measurement, and only reading the declarations back could
|
|
58
|
+
* show that. Postures were then declared in bulk, so the erasure row is no longer 2, and the resource
|
|
59
|
+
* POPULATION has moved too, which is why a later run reports a different denominator. Any consumer
|
|
60
|
+
* that needs today's number must run this behavior, never copy a row from here or from a curated map;
|
|
61
|
+
* `.claude/context/privacy-erasure-retention.md` carries the later figure and says the same thing.
|
|
62
|
+
*
|
|
55
63
|
* That is a finding about the FRAMEWORK, and it is the honest thing for a produced notice to state.
|
|
56
64
|
* It is deliberately not repaired here: whether a resource holding personal data must be REQUIRED to
|
|
57
65
|
* declare it is issue #93, a decision, and inferring a default would be precisely the invention this
|
|
58
|
-
* whole capability refuses. Until it is taken, `undeclaredResourceTypes` names
|
|
59
|
-
* the
|
|
66
|
+
* whole capability refuses. Until it is taken, `undeclaredResourceTypes` names every undeclared
|
|
67
|
+
* resource individually (83 in the snapshot above; ask the behavior for the current set) and the
|
|
68
|
+
* document carries them as an incompleteness with a named owner.
|
|
60
69
|
*
|
|
61
70
|
* ## The session axis is not the personal-data axis
|
|
62
71
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compliance-primary-facts.behavior.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"compliance-primary-facts.behavior.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/compliance-primary-facts.behavior.ts"],"names":[],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,EACnC,aAAa,EAAE,+BAA+B,GAC7C,8BAA8B,CAahC;AAED;;;;;;;GAOG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,aAAa,CAAC;IACrB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,2BAA2B,CAAC;IAC7C,QAAQ,CAAC,aAAa,EAAE,+BAA+B,CAAC;CACzD,CAAC,GACD,8BAA8B,CAqFhC;AAED;;;;;;GAMG;AACH,wBAAgB,iCAAiC,CAAC,aAAa,EAAE,+BAA+B,GAAG,+BAA+B,CAEjI"}
|
|
@@ -47,16 +47,25 @@ import { ErasureRetentionMode, resolveResourcePersonalDataCategories, resourceAn
|
|
|
47
47
|
* | `systemAccessPolicy.exportSubject` | 41 |
|
|
48
48
|
* | `systemAccessPolicy.seeRetained` | 2 |
|
|
49
49
|
*
|
|
50
|
-
* So on the erasure axis the engine
|
|
51
|
-
* not profiles, not audit logs, not files, not membership. On the subject-EXPORT axis it
|
|
52
|
-
* about half. The two axes are declared by different mechanisms and
|
|
50
|
+
* So on the erasure axis the engine answered for the ACCOUNT and for nothing else — not credentials,
|
|
51
|
+
* not profiles, not audit logs, not files, not membership. On the subject-EXPORT axis it answered for
|
|
52
|
+
* about half. The two axes are declared by different mechanisms and had drifted apart, and no
|
|
53
53
|
* consumer could see it because nothing read the declarations back until this projection did.
|
|
54
54
|
*
|
|
55
|
+
* **THAT TABLE IS A SNAPSHOT, AND THE ERASURE ROW HAS SINCE BEEN OVERTAKEN. Do not quote it as
|
|
56
|
+
* current coverage.** It is kept because the finding it records is the reason this projection exists:
|
|
57
|
+
* the expectation was the opposite of the measurement, and only reading the declarations back could
|
|
58
|
+
* show that. Postures were then declared in bulk, so the erasure row is no longer 2, and the resource
|
|
59
|
+
* POPULATION has moved too, which is why a later run reports a different denominator. Any consumer
|
|
60
|
+
* that needs today's number must run this behavior, never copy a row from here or from a curated map;
|
|
61
|
+
* `.claude/context/privacy-erasure-retention.md` carries the later figure and says the same thing.
|
|
62
|
+
*
|
|
55
63
|
* That is a finding about the FRAMEWORK, and it is the honest thing for a produced notice to state.
|
|
56
64
|
* It is deliberately not repaired here: whether a resource holding personal data must be REQUIRED to
|
|
57
65
|
* declare it is issue #93, a decision, and inferring a default would be precisely the invention this
|
|
58
|
-
* whole capability refuses. Until it is taken, `undeclaredResourceTypes` names
|
|
59
|
-
* the
|
|
66
|
+
* whole capability refuses. Until it is taken, `undeclaredResourceTypes` names every undeclared
|
|
67
|
+
* resource individually (83 in the snapshot above; ask the behavior for the current set) and the
|
|
68
|
+
* document carries them as an incompleteness with a named owner.
|
|
60
69
|
*
|
|
61
70
|
* ## The session axis is not the personal-data axis
|
|
62
71
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compliance-primary-facts.behavior.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/subprocess/compliance-primary-facts.behavior.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EAOpB,qCAAqC,EACrC,uCAAuC,EACvC,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2EG;AAEH,kGAAkG;AAClG,MAAM,CAAN,IAAY,2BAKX;AALD,WAAY,2BAA2B;IACrC,2EAA2E;IAC3E,gDAAiB,CAAA;IACjB,6DAA6D;IAC7D,0DAA2B,CAAA;AAC7B,CAAC,EALW,2BAA2B,KAA3B,2BAA2B,QAKtC;AAqJD,MAAM,aAAa,GAAG,GAAkC,EAAE,CAAC,CAAC;IAC1D,aAAa,EAAE,CAAC;IAChB,wBAAwB,EAAE,CAAC;IAC3B,mBAAmB,EAAE,CAAC;IACtB,iBAAiB,EAAE,CAAC;IACpB,iCAAiC,EAAE,CAAC;IACpC,0BAA0B,EAAE,CAAC;IAC7B,+BAA+B,EAAE,CAAC;CACnC,CAAC,C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AAC,CAAC;SAChF,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAEtC,iGAAiG;IACjG,iGAAiG;IACjG,qEAAqE;IACrE,MAAM,sBAAsB,GAAG,0BAA0B,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAE5H,MAAM,qCAAqC,GAAG,SAAS;SACpD,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC,MAAM,GAAG,CAAC,CAAC;SACrE,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QAClB,YAAY,EAAE,QAAQ,CAAC,YAAY;QACnC,MAAM,EAAE,QAAQ,CAAC,MAAM;QACvB,MAAM,EAAE,QAAQ,CAAC,2BAA2B;KAC7C,CAAC,CAAC,CAAC;IAEN,OAAO;QACL,SAAS;QACT,gBAAgB,EAAE,QAAQ;QAC1B,uBAAuB;QACvB,sBAAsB;QACtB,qCAAqC;QACrC,KAAK,EAAE;YACL,mBAAmB,EAAE,QAAQ,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAC,aAAa;YAC/E,wBAAwB,EAAE,QAAQ,CAAC,2BAA2B,CAAC,WAAW,CAAC,CAAC,aAAa;SAC1F;KACF,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,iCAAiC,CAAC,aAA8C;IAC9F,OAAO,aAAa,CAAC;AACvB,CAAC","sourcesContent":["import {\n ErasureRetentionMode,\n type PersonalDataCategory,\n type PersonalDataFieldCategories,\n ResourceDataSubjectKind,\n type ResourceDataSubjectPolicy,\n type ResourceRetentionPolicy,\n type ResourceSystemAccessPolicy,\n resolveResourcePersonalDataCategories,\n resourceAnsweredThePersonalDataQuestion,\n sortPersonalDataCategories,\n} from '@wildo-ai/saas-models';\n\n/**\n * **compliance-primary-facts** — what a compliance document can say about this application, DERIVED\n * from its resource configurations rather than elicited from a human or invented by a model.\n *\n * ## Why derivation rather than elicitation\n *\n * Wildo already IMPLEMENTS most of the compliance machinery a B2B SaaS needs — erasure with\n * retention, subject export for Art. 15 and Art. 20, consent levels, audit trails, tenant isolation.\n * What no consumer could read back is which resources DECLARE that they are governed by it, and a\n * document may only cite the declaration: an implemented mechanism says what the framework can do, a\n * declaration says what is true of this row.\n *\n * This behavior reads the declarations. It is the mechanism that lets a compliance document be\n * produced from what the application IS, instead of from what somebody remembers about it — including\n * when the honest answer is that a resource has declared nothing (see the measured table below, which\n * is not the answer this was expected to return).\n *\n * ## No model, by construction rather than by discipline\n *\n * Every value here is a DECLARATION already written down, so answering \"what is this resource's\n * erasure mode\" is a lookup. A lookup does not need a model, and a model asked to perform one can get\n * it wrong in a way nothing detects.\n *\n * That is not enforced by a rule saying \"do not call the model\" — it is enforced by this module\n * having no model port to call. There is no provider in the signature, no client in the closure, and\n * nothing to inject one through, so a model call here is unrepresentable rather than forbidden. A\n * test asserting \"we did not call the model\" would be the weaker form of the same claim: it can only\n * fail after someone has already added the call.\n *\n * ## Engine-declared and application-declared are reported SEPARATELY\n *\n * The split exists because engine and application declarations have different OWNERS, and therefore\n * different remedies: nobody building an application can close an engine gap, and nobody maintaining\n * the engine can close theirs. A produced notice that merged the two would report one number that\n * neither party can act on.\n *\n * **What the split was EXPECTED to show, and what it actually shows, are opposite — measured, not\n * assumed.** The expectation, written here until 2026-08-29 and taken from hand-writing the first real\n * privacy notice, was that *the engine already answers most of it* — identity, credentials, sessions,\n * membership being engine resources carrying engine declarations. The first live run that could reach\n * the engine population at all (wonder-crm, 2026-08-29, 85 engine resources) says otherwise:\n *\n * | engine resources declaring… | of 85 |\n * |---|---|\n * | `retentionPolicy.mode` / `dataSubjectPolicy.kind` | **2** — `users` and `user_self`, nothing else |\n * | `systemAccessPolicy.exportSubject` | 41 |\n * | `systemAccessPolicy.seeRetained` | 2 |\n *\n * So on the erasure axis the engine answers for the ACCOUNT and for nothing else — not credentials,\n * not profiles, not audit logs, not files, not membership. On the subject-EXPORT axis it answers for\n * about half. The two axes are declared by different mechanisms and have drifted apart, and no\n * consumer could see it because nothing read the declarations back until this projection did.\n *\n * That is a finding about the FRAMEWORK, and it is the honest thing for a produced notice to state.\n * It is deliberately not repaired here: whether a resource holding personal data must be REQUIRED to\n * declare it is issue #93, a decision, and inferring a default would be precisely the invention this\n * whole capability refuses. Until it is taken, `undeclaredResourceTypes` names all 83 individually and\n * the document carries them as an incompleteness with a named owner.\n *\n * ## The session axis is not the personal-data axis\n *\n * `dataSubjectPolicy.kind` answers *whose login session an erasure ends*, and `NO_PRINCIPAL` — its\n * commonest value — is equally true of an invoice and of a CRM contact. What separates them is\n * `retentionPolicy.mode`: `RETAIN_ONLY` is the factory-enforced declaration that a resource *\"holds\n * no personal data of its own\"*, while `RETAIN_AND_IMPERSONALIZE` requires at least one field that\n * would actually be scrubbed. **A consumer reading the session axis for the personal-data question\n * will report a contacts table as holding nothing**, which is why the two are carried separately here\n * and never collapsed into one flag.\n *\n * ## What it deliberately does not do\n *\n * It reports declarations; it does not judge them. \"This resource declares no retention policy\" is a\n * fact. Whether that is a defect, an accepted decision, or a resource that genuinely holds no\n * personal data is a question for the document's incompleteness statement and, eventually, a human —\n * not for a projection that cannot see intent.\n */\n\n/** Whether a resource is engine-owned or authored by this application. The split is the point. */\nexport enum CompliancePrimaryFactOrigin {\n /** Declared by the engine and inherited by every generated application. */\n ENGINE = 'ENGINE',\n /** Declared — or not — by this application's own authors. */\n APPLICATION = 'APPLICATION',\n}\n\n/** One resource's compliance-relevant declarations, exactly as written. */\nexport interface CompliancePrimaryResourceFacts {\n readonly resourceType: string;\n readonly origin: CompliancePrimaryFactOrigin;\n /**\n * What happens to a row when its subject is erased. Absent means the resource has NOT declared —\n * which is not the same as declaring that nothing is retained, and must never be reported as such.\n */\n readonly erasureRetentionMode?: ErasureRetentionMode;\n /**\n * WHOSE SESSION an erasure of this row ends — never whether the row is about a person.\n *\n * Read it as the session axis only. `NO_PRINCIPAL` covers two populations a document must treat\n * very differently: an ordinary business record, and a person with no account (a CRM contact, a\n * lead, a subscriber). {@link CompliancePrimaryResourceFacts.erasureRetentionMode} is what\n * separates them — `RETAIN_ONLY` is the declared \"holds no personal data of its own\".\n *\n * The member was called `NOT_A_DATA_SUBJECT` until 2026-08-28, and this projection was written\n * against that name. Reading it as \"not a person\" is exactly the error the rename removed: it would\n * have put every contact resource in the settled column and produced a privacy notice claiming the\n * application holds no personal data about the people its customers care most about.\n *\n * Absent means undeclared — which the resource factory permits only on a resource with no\n * retention policy at all.\n */\n readonly dataSubjectKind?: ResourceDataSubjectKind;\n /** True when the resource declares a subject-export mode — the Art. 15 / Art. 20 answer. */\n readonly declaresSubjectExport: boolean;\n /**\n * True when the resource declares the audited see-through read path over retained rows\n * (`seeRetained`). Worth stating in a document because it is the mechanism by which retained-but-\n * hidden data remains reachable at all, and every reveal through it is audited.\n */\n readonly declaresRetainedSeeThrough: boolean;\n /**\n * WHICH KINDS of personal data this resource holds, read off its fields' `.dataCategories()`\n * declarations plus the one category the walk DERIVES — `CREDENTIALS`, from `.isPassword()` /\n * `.isOtp()` / `.isWriteOnlySecret()`, which are markers the author wrote.\n *\n * Empty means the resource declares none. That is NOT a statement that it holds no personal data:\n * a resource holding personal data and declaring no category is indistinguishable here from one\n * holding none, which is exactly why {@link uncategorizedPersonalFields} exists beside it.\n */\n readonly personalDataCategories: readonly PersonalDataCategory[];\n /**\n * Fields this resource has ALREADY declared to be personal — through a credential marker, an\n * erasure scrub treatment, or a portability provenance — that carry no category.\n *\n * The actionable half of the answer. For these fields the omission is provably an OMISSION rather\n * than a judgement that the field is not personal, because the application said it was personal by\n * another door. A document names them; it does not guess what they contain.\n */\n readonly uncategorizedPersonalFields: readonly PersonalDataFieldCategories[];\n}\n\n/** Counts over one origin, so a reader can size what is answered against what is owed. */\nexport interface CompliancePrimaryFactCoverage {\n readonly resourceCount: number;\n readonly withErasureRetentionMode: number;\n readonly withDataSubjectKind: number;\n readonly withSubjectExport: number;\n /**\n * Resources declaring {@link ErasureRetentionMode.RETAIN_ONLY} — the mode whose documented meaning\n * is *\"this resource holds no personal data of its own\"*, and which the resource factory REJECTS if\n * a scrub treatment contradicts it. So this count is a positive, checked statement a document may\n * cite, not an inference from silence.\n */\n readonly declaringNoPersonalDataOfTheirOwn: number;\n /** Resources declaring at least one personal-data category. */\n readonly withPersonalDataCategories: number;\n /**\n * Resources carrying at least one field that is personal by the application's OWN declaration and\n * has no category — the population whose remedy is one `.dataCategories()` call each.\n */\n readonly withUncategorizedPersonalFields: number;\n}\n\nexport interface CompliancePrimaryFactsResponse {\n readonly resources: readonly CompliancePrimaryResourceFacts[];\n readonly coverageByOrigin: Readonly<Record<CompliancePrimaryFactOrigin, CompliancePrimaryFactCoverage>>;\n /**\n * Resources that have said NOTHING about whether their rows are about people.\n *\n * Named individually rather than counted, because the remedy is per-resource and a count is not\n * actionable. This is a list a document STATES, never a defect this projection asserts: a resource\n * here may hold no personal data at all, and nothing in the configuration distinguishes \"considered\n * and not applicable\" from \"never considered\". That indistinguishability IS the finding — the\n * framework does not currently require the declaration, so silence is the default and the default\n * is uninformative.\n */\n readonly undeclaredResourceTypes: readonly string[];\n /**\n * Every personal-data category any resource declares, across both origins — the list a privacy\n * notice enumerates when it answers \"which categories of personal data do you process\".\n *\n * A UNION, deliberately: the notice question is application-wide, and per-resource detail is in\n * {@link resources} for a document that wants it. Ordered by the `PersonalDataCategory` enum so\n * the same application produces the same sentence every run.\n */\n readonly personalDataCategories: readonly PersonalDataCategory[];\n /**\n * Per resource, the fields that are personal by the application's own declaration and carry no\n * category. Empty when there is nothing outstanding.\n *\n * Named per field rather than counted, because the remedy is one `.dataCategories()` call per\n * field. Unlike {@link undeclaredResourceTypes} — which a document must present as \"not asked\" —\n * every entry here IS a gap: the application already said the field holds personal data.\n */\n readonly uncategorizedPersonalFieldsByResource: ReadonlyArray<{\n readonly resourceType: string;\n readonly origin: CompliancePrimaryFactOrigin;\n readonly fields: readonly PersonalDataFieldCategories[];\n }>;\n readonly trace: {\n readonly engineResourceCount: number;\n readonly applicationResourceCount: number;\n };\n}\n\n/**\n * The compliance-relevant slice of a resource configuration — three of its ~30 fields.\n *\n * Narrow rather than the whole `ResourceConfiguration` because that type is generic in three\n * parameters this projection has no opinion about, and because naming exactly what is read keeps the\n * dependency honest: a change to any OTHER part of a configuration cannot silently change what a\n * compliance document says.\n *\n * The three field TYPES are imported rather than restated, and that is the load-bearing choice. A\n * structural copy would let `retentionPolicy.mode` be renamed in `saas-models` while this kept\n * compiling and reported every resource as UNDECLARED — silently, and in the one direction a\n * compliance statement must never fail in. Importing the types makes the rename a build error here.\n */\ninterface ComplianceRelevantConfiguration {\n readonly retentionPolicy?: ResourceRetentionPolicy;\n readonly dataSubjectPolicy?: ResourceDataSubjectPolicy;\n readonly systemAccessPolicy?: ResourceSystemAccessPolicy;\n /**\n * The resource's main schema, read ONLY through `resolveResourcePersonalDataCategories`.\n *\n * `unknown` rather than a Zod type on purpose. This projection takes no opinion on the schema's\n * shape — the saas-models resolver owns the walk, including what to do with a union or a\n * non-object mainSchema (it returns an empty profile rather than throwing). Typing it here would\n * make this module a second place where \"how do you read a resource's fields\" is decided.\n */\n readonly mainSchema?: unknown;\n}\n\nconst emptyCoverage = (): CompliancePrimaryFactCoverage => ({\n resourceCount: 0,\n withErasureRetentionMode: 0,\n withDataSubjectKind: 0,\n withSubjectExport: 0,\n declaringNoPersonalDataOfTheirOwn: 0,\n withPersonalDataCategories: 0,\n withUncategorizedPersonalFields: 0,\n});\n\n/** One resource's declarations, read off an already-materialized configuration. */\nexport function readCompliancePrimaryResourceFacts(\n resourceType: string,\n origin: CompliancePrimaryFactOrigin,\n configuration: ComplianceRelevantConfiguration,\n): CompliancePrimaryResourceFacts {\n const systemAccessPolicy = configuration.systemAccessPolicy;\n const categoryProfile = resolveResourcePersonalDataCategories(configuration.mainSchema);\n return {\n resourceType,\n origin,\n ...(configuration.retentionPolicy?.mode === undefined ? {} : { erasureRetentionMode: configuration.retentionPolicy.mode }),\n ...(configuration.dataSubjectPolicy?.kind === undefined ? {} : { dataSubjectKind: configuration.dataSubjectPolicy.kind }),\n declaresSubjectExport: systemAccessPolicy?.exportSubject !== undefined,\n declaresRetainedSeeThrough: systemAccessPolicy?.seeRetained !== undefined,\n personalDataCategories: categoryProfile.categories,\n uncategorizedPersonalFields: categoryProfile.uncategorizedPersonalFields,\n };\n}\n\n/**\n * Project the compliance facts of an application from its materialized resource configurations.\n *\n * Takes configurations already materialized by the caller rather than factories to materialize\n * itself: the handler knows how a factory is called (`factory(allRelationships)`, the way both\n * runtime registries do it) and owns the failure policy when one throws. Keeping that here would be a\n * second copy of a materialization convention that has already been the site of one defect.\n */\nexport function projectCompliancePrimaryFacts(\n entries: ReadonlyArray<{\n readonly resourceType: string;\n readonly origin: CompliancePrimaryFactOrigin;\n readonly configuration: ComplianceRelevantConfiguration;\n }>,\n): CompliancePrimaryFactsResponse {\n const resources = entries.map((entry) =>\n readCompliancePrimaryResourceFacts(entry.resourceType, entry.origin, entry.configuration));\n\n const coverage: Record<CompliancePrimaryFactOrigin, CompliancePrimaryFactCoverage> = {\n [CompliancePrimaryFactOrigin.ENGINE]: emptyCoverage(),\n [CompliancePrimaryFactOrigin.APPLICATION]: emptyCoverage(),\n };\n for (const resource of resources) {\n const current = coverage[resource.origin];\n coverage[resource.origin] = {\n resourceCount: current.resourceCount + 1,\n withErasureRetentionMode: current.withErasureRetentionMode + (resource.erasureRetentionMode === undefined ? 0 : 1),\n withDataSubjectKind: current.withDataSubjectKind + (resource.dataSubjectKind === undefined ? 0 : 1),\n withSubjectExport: current.withSubjectExport + (resource.declaresSubjectExport ? 1 : 0),\n declaringNoPersonalDataOfTheirOwn:\n current.declaringNoPersonalDataOfTheirOwn\n + (resource.erasureRetentionMode === ErasureRetentionMode.RETAIN_ONLY ? 1 : 0),\n withPersonalDataCategories: current.withPersonalDataCategories + (resource.personalDataCategories.length > 0 ? 1 : 0),\n withUncategorizedPersonalFields:\n current.withUncategorizedPersonalFields + (resource.uncategorizedPersonalFields.length > 0 ? 1 : 0),\n };\n }\n\n /*\n * Resources carrying NEITHER declaration.\n *\n * The first draft of this filter asked for the sharper population — rows that ARE a person with no\n * erasure treatment — and that set is EMPTY BY CONSTRUCTION, not because applications are diligent:\n * the resource factory refuses a `retentionPolicy` with no `dataSubjectPolicy` and refuses a\n * `dataSubjectPolicy` with no `retentionPolicy`, so the two always co-occur. A filter that can never\n * match reports a clean application and a broken projection identically.\n *\n * So the answerable question is the blunter one, and it is still the useful one: which resources\n * have not been asked. A resource that declared EITHER field has considered the question and is\n * excluded — listing settled cases beside open ones is how a gap list stops being read.\n *\n * Note what is deliberately NOT done here: `NO_PRINCIPAL` is not treated as \"not a person\". It is\n * the session axis, and it is the honest answer for a CRM contact as much as for an invoice. What\n * distinguishes them is the retention MODE, which the caller reads from the same row.\n */\n /*\n * A DECLARED CATEGORY IS AN ANSWER, and omitting it here put a contradiction in a produced notice.\n *\n * This filter keyed only on the two erasure axes until 2026-08-30. Then the engine declared data\n * categories on 48 of its 85 resources, and the very next wonder-crm notice said, of resources\n * including `userProfiles` and `userCredentials`, that \"whether each of those undeclared resources\n * holds personal data is not established by this notice\" — two sections after enumerating the\n * categories those same resources declare. Both clauses were DERIVED, both were sourced, and they\n * disagreed.\n *\n * The lesson is not \"add a third condition\". It is that the question \"has this resource been asked\"\n * has ONE answer and had two implementations: this filter, and\n * `resourceAnsweredThePersonalDataQuestion`, written for the startup report on the same day. Reusing\n * the saas-models predicate is what stops them drifting again — and it also brings in\n * `systemAccessPolicy.exportSubject`, which this filter never considered either.\n */\n const undeclaredResourceTypes = entries\n .filter((entry) => !resourceAnsweredThePersonalDataQuestion(entry.configuration))\n .map((entry) => entry.resourceType);\n\n // Ordered through the saas-models helper rather than by first appearance. First-appearance order\n // depends on resource iteration order, so adding one unrelated resource would silently reorder a\n // notice's category sentence — which reads as if the answer changed.\n const personalDataCategories = sortPersonalDataCategories(resources.flatMap((resource) => resource.personalDataCategories));\n\n const uncategorizedPersonalFieldsByResource = resources\n .filter((resource) => resource.uncategorizedPersonalFields.length > 0)\n .map((resource) => ({\n resourceType: resource.resourceType,\n origin: resource.origin,\n fields: resource.uncategorizedPersonalFields,\n }));\n\n return {\n resources,\n coverageByOrigin: coverage,\n undeclaredResourceTypes,\n personalDataCategories,\n uncategorizedPersonalFieldsByResource,\n trace: {\n engineResourceCount: coverage[CompliancePrimaryFactOrigin.ENGINE].resourceCount,\n applicationResourceCount: coverage[CompliancePrimaryFactOrigin.APPLICATION].resourceCount,\n },\n };\n}\n\n/**\n * Narrow a materialized configuration to the fields this projection reads.\n *\n * Structural, so any object carrying the three policies satisfies it — which is what lets the handler\n * pass a `ResourceConfiguration` of any generic instantiation without this module taking an opinion\n * on its three type parameters.\n */\nexport function asComplianceRelevantConfiguration(configuration: ComplianceRelevantConfiguration): ComplianceRelevantConfiguration {\n return configuration;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"compliance-primary-facts.behavior.js","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/compliance-primary-facts.behavior.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EAOpB,qCAAqC,EACrC,uCAAuC,EACvC,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoFG;AAEH,kGAAkG;AAClG,MAAM,CAAN,IAAY,2BAKX;AALD,WAAY,2BAA2B;IACrC,2EAA2E;IAC3E,gDAAiB,CAAA;IACjB,6DAA6D;IAC7D,0DAA2B,CAAA;AAC7B,CAAC,EALW,2BAA2B,KAA3B,2BAA2B,QAKtC;AAqJD,MAAM,aAAa,GAAG,GAAkC,EAAE,CAAC,CAAC;IAC1D,aAAa,EAAE,CAAC;IAChB,wBAAwB,EAAE,CAAC;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;IACH;;;;;;;;;;;;;;;OAeG;IACH,MAAM,uBAAuB,GAAG,OAAO;SACpC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,uCAAuC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;SAChF,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAEtC,iGAAiG;IACjG,iGAAiG;IACjG,qEAAqE;IACrE,MAAM,sBAAsB,GAAG,0BAA0B,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAE5H,MAAM,qCAAqC,GAAG,SAAS;SACpD,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC,MAAM,GAAG,CAAC,CAAC;SACrE,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QAClB,YAAY,EAAE,QAAQ,CAAC,YAAY;QACnC,MAAM,EAAE,QAAQ,CAAC,MAAM;QACvB,MAAM,EAAE,QAAQ,CAAC,2BAA2B;KAC7C,CAAC,CAAC,CAAC;IAEN,OAAO;QACL,SAAS;QACT,gBAAgB,EAAE,QAAQ;QAC1B,uBAAuB;QACvB,sBAAsB;QACtB,qCAAqC;QACrC,KAAK,EAAE;YACL,mBAAmB,EAAE,QAAQ,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAC,aAAa;YAC/E,wBAAwB,EAAE,QAAQ,CAAC,2BAA2B,CAAC,WAAW,CAAC,CAAC,aAAa;SAC1F;KACF,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,iCAAiC,CAAC,aAA8C;IAC9F,OAAO,aAAa,CAAC;AACvB,CAAC","sourcesContent":["import {\n ErasureRetentionMode,\n type PersonalDataCategory,\n type PersonalDataFieldCategories,\n ResourceDataSubjectKind,\n type ResourceDataSubjectPolicy,\n type ResourceRetentionPolicy,\n type ResourceSystemAccessPolicy,\n resolveResourcePersonalDataCategories,\n resourceAnsweredThePersonalDataQuestion,\n sortPersonalDataCategories,\n} from '@wildo-ai/saas-models';\n\n/**\n * **compliance-primary-facts** — what a compliance document can say about this application, DERIVED\n * from its resource configurations rather than elicited from a human or invented by a model.\n *\n * ## Why derivation rather than elicitation\n *\n * Wildo already IMPLEMENTS most of the compliance machinery a B2B SaaS needs — erasure with\n * retention, subject export for Art. 15 and Art. 20, consent levels, audit trails, tenant isolation.\n * What no consumer could read back is which resources DECLARE that they are governed by it, and a\n * document may only cite the declaration: an implemented mechanism says what the framework can do, a\n * declaration says what is true of this row.\n *\n * This behavior reads the declarations. It is the mechanism that lets a compliance document be\n * produced from what the application IS, instead of from what somebody remembers about it — including\n * when the honest answer is that a resource has declared nothing (see the measured table below, which\n * is not the answer this was expected to return).\n *\n * ## No model, by construction rather than by discipline\n *\n * Every value here is a DECLARATION already written down, so answering \"what is this resource's\n * erasure mode\" is a lookup. A lookup does not need a model, and a model asked to perform one can get\n * it wrong in a way nothing detects.\n *\n * That is not enforced by a rule saying \"do not call the model\" — it is enforced by this module\n * having no model port to call. There is no provider in the signature, no client in the closure, and\n * nothing to inject one through, so a model call here is unrepresentable rather than forbidden. A\n * test asserting \"we did not call the model\" would be the weaker form of the same claim: it can only\n * fail after someone has already added the call.\n *\n * ## Engine-declared and application-declared are reported SEPARATELY\n *\n * The split exists because engine and application declarations have different OWNERS, and therefore\n * different remedies: nobody building an application can close an engine gap, and nobody maintaining\n * the engine can close theirs. A produced notice that merged the two would report one number that\n * neither party can act on.\n *\n * **What the split was EXPECTED to show, and what it actually shows, are opposite — measured, not\n * assumed.** The expectation, written here until 2026-08-29 and taken from hand-writing the first real\n * privacy notice, was that *the engine already answers most of it* — identity, credentials, sessions,\n * membership being engine resources carrying engine declarations. The first live run that could reach\n * the engine population at all (wonder-crm, 2026-08-29, 85 engine resources) says otherwise:\n *\n * | engine resources declaring… | of 85 |\n * |---|---|\n * | `retentionPolicy.mode` / `dataSubjectPolicy.kind` | **2** — `users` and `user_self`, nothing else |\n * | `systemAccessPolicy.exportSubject` | 41 |\n * | `systemAccessPolicy.seeRetained` | 2 |\n *\n * So on the erasure axis the engine answered for the ACCOUNT and for nothing else — not credentials,\n * not profiles, not audit logs, not files, not membership. On the subject-EXPORT axis it answered for\n * about half. The two axes are declared by different mechanisms and had drifted apart, and no\n * consumer could see it because nothing read the declarations back until this projection did.\n *\n * **THAT TABLE IS A SNAPSHOT, AND THE ERASURE ROW HAS SINCE BEEN OVERTAKEN. Do not quote it as\n * current coverage.** It is kept because the finding it records is the reason this projection exists:\n * the expectation was the opposite of the measurement, and only reading the declarations back could\n * show that. Postures were then declared in bulk, so the erasure row is no longer 2, and the resource\n * POPULATION has moved too, which is why a later run reports a different denominator. Any consumer\n * that needs today's number must run this behavior, never copy a row from here or from a curated map;\n * `.claude/context/privacy-erasure-retention.md` carries the later figure and says the same thing.\n *\n * That is a finding about the FRAMEWORK, and it is the honest thing for a produced notice to state.\n * It is deliberately not repaired here: whether a resource holding personal data must be REQUIRED to\n * declare it is issue #93, a decision, and inferring a default would be precisely the invention this\n * whole capability refuses. Until it is taken, `undeclaredResourceTypes` names every undeclared\n * resource individually (83 in the snapshot above; ask the behavior for the current set) and the\n * document carries them as an incompleteness with a named owner.\n *\n * ## The session axis is not the personal-data axis\n *\n * `dataSubjectPolicy.kind` answers *whose login session an erasure ends*, and `NO_PRINCIPAL` — its\n * commonest value — is equally true of an invoice and of a CRM contact. What separates them is\n * `retentionPolicy.mode`: `RETAIN_ONLY` is the factory-enforced declaration that a resource *\"holds\n * no personal data of its own\"*, while `RETAIN_AND_IMPERSONALIZE` requires at least one field that\n * would actually be scrubbed. **A consumer reading the session axis for the personal-data question\n * will report a contacts table as holding nothing**, which is why the two are carried separately here\n * and never collapsed into one flag.\n *\n * ## What it deliberately does not do\n *\n * It reports declarations; it does not judge them. \"This resource declares no retention policy\" is a\n * fact. Whether that is a defect, an accepted decision, or a resource that genuinely holds no\n * personal data is a question for the document's incompleteness statement and, eventually, a human —\n * not for a projection that cannot see intent.\n */\n\n/** Whether a resource is engine-owned or authored by this application. The split is the point. */\nexport enum CompliancePrimaryFactOrigin {\n /** Declared by the engine and inherited by every generated application. */\n ENGINE = 'ENGINE',\n /** Declared — or not — by this application's own authors. */\n APPLICATION = 'APPLICATION',\n}\n\n/** One resource's compliance-relevant declarations, exactly as written. */\nexport interface CompliancePrimaryResourceFacts {\n readonly resourceType: string;\n readonly origin: CompliancePrimaryFactOrigin;\n /**\n * What happens to a row when its subject is erased. Absent means the resource has NOT declared —\n * which is not the same as declaring that nothing is retained, and must never be reported as such.\n */\n readonly erasureRetentionMode?: ErasureRetentionMode;\n /**\n * WHOSE SESSION an erasure of this row ends — never whether the row is about a person.\n *\n * Read it as the session axis only. `NO_PRINCIPAL` covers two populations a document must treat\n * very differently: an ordinary business record, and a person with no account (a CRM contact, a\n * lead, a subscriber). {@link CompliancePrimaryResourceFacts.erasureRetentionMode} is what\n * separates them — `RETAIN_ONLY` is the declared \"holds no personal data of its own\".\n *\n * The member was called `NOT_A_DATA_SUBJECT` until 2026-08-28, and this projection was written\n * against that name. Reading it as \"not a person\" is exactly the error the rename removed: it would\n * have put every contact resource in the settled column and produced a privacy notice claiming the\n * application holds no personal data about the people its customers care most about.\n *\n * Absent means undeclared — which the resource factory permits only on a resource with no\n * retention policy at all.\n */\n readonly dataSubjectKind?: ResourceDataSubjectKind;\n /** True when the resource declares a subject-export mode — the Art. 15 / Art. 20 answer. */\n readonly declaresSubjectExport: boolean;\n /**\n * True when the resource declares the audited see-through read path over retained rows\n * (`seeRetained`). Worth stating in a document because it is the mechanism by which retained-but-\n * hidden data remains reachable at all, and every reveal through it is audited.\n */\n readonly declaresRetainedSeeThrough: boolean;\n /**\n * WHICH KINDS of personal data this resource holds, read off its fields' `.dataCategories()`\n * declarations plus the one category the walk DERIVES — `CREDENTIALS`, from `.isPassword()` /\n * `.isOtp()` / `.isWriteOnlySecret()`, which are markers the author wrote.\n *\n * Empty means the resource declares none. That is NOT a statement that it holds no personal data:\n * a resource holding personal data and declaring no category is indistinguishable here from one\n * holding none, which is exactly why {@link uncategorizedPersonalFields} exists beside it.\n */\n readonly personalDataCategories: readonly PersonalDataCategory[];\n /**\n * Fields this resource has ALREADY declared to be personal — through a credential marker, an\n * erasure scrub treatment, or a portability provenance — that carry no category.\n *\n * The actionable half of the answer. For these fields the omission is provably an OMISSION rather\n * than a judgement that the field is not personal, because the application said it was personal by\n * another door. A document names them; it does not guess what they contain.\n */\n readonly uncategorizedPersonalFields: readonly PersonalDataFieldCategories[];\n}\n\n/** Counts over one origin, so a reader can size what is answered against what is owed. */\nexport interface CompliancePrimaryFactCoverage {\n readonly resourceCount: number;\n readonly withErasureRetentionMode: number;\n readonly withDataSubjectKind: number;\n readonly withSubjectExport: number;\n /**\n * Resources declaring {@link ErasureRetentionMode.RETAIN_ONLY} — the mode whose documented meaning\n * is *\"this resource holds no personal data of its own\"*, and which the resource factory REJECTS if\n * a scrub treatment contradicts it. So this count is a positive, checked statement a document may\n * cite, not an inference from silence.\n */\n readonly declaringNoPersonalDataOfTheirOwn: number;\n /** Resources declaring at least one personal-data category. */\n readonly withPersonalDataCategories: number;\n /**\n * Resources carrying at least one field that is personal by the application's OWN declaration and\n * has no category — the population whose remedy is one `.dataCategories()` call each.\n */\n readonly withUncategorizedPersonalFields: number;\n}\n\nexport interface CompliancePrimaryFactsResponse {\n readonly resources: readonly CompliancePrimaryResourceFacts[];\n readonly coverageByOrigin: Readonly<Record<CompliancePrimaryFactOrigin, CompliancePrimaryFactCoverage>>;\n /**\n * Resources that have said NOTHING about whether their rows are about people.\n *\n * Named individually rather than counted, because the remedy is per-resource and a count is not\n * actionable. This is a list a document STATES, never a defect this projection asserts: a resource\n * here may hold no personal data at all, and nothing in the configuration distinguishes \"considered\n * and not applicable\" from \"never considered\". That indistinguishability IS the finding — the\n * framework does not currently require the declaration, so silence is the default and the default\n * is uninformative.\n */\n readonly undeclaredResourceTypes: readonly string[];\n /**\n * Every personal-data category any resource declares, across both origins — the list a privacy\n * notice enumerates when it answers \"which categories of personal data do you process\".\n *\n * A UNION, deliberately: the notice question is application-wide, and per-resource detail is in\n * {@link resources} for a document that wants it. Ordered by the `PersonalDataCategory` enum so\n * the same application produces the same sentence every run.\n */\n readonly personalDataCategories: readonly PersonalDataCategory[];\n /**\n * Per resource, the fields that are personal by the application's own declaration and carry no\n * category. Empty when there is nothing outstanding.\n *\n * Named per field rather than counted, because the remedy is one `.dataCategories()` call per\n * field. Unlike {@link undeclaredResourceTypes} — which a document must present as \"not asked\" —\n * every entry here IS a gap: the application already said the field holds personal data.\n */\n readonly uncategorizedPersonalFieldsByResource: ReadonlyArray<{\n readonly resourceType: string;\n readonly origin: CompliancePrimaryFactOrigin;\n readonly fields: readonly PersonalDataFieldCategories[];\n }>;\n readonly trace: {\n readonly engineResourceCount: number;\n readonly applicationResourceCount: number;\n };\n}\n\n/**\n * The compliance-relevant slice of a resource configuration — three of its ~30 fields.\n *\n * Narrow rather than the whole `ResourceConfiguration` because that type is generic in three\n * parameters this projection has no opinion about, and because naming exactly what is read keeps the\n * dependency honest: a change to any OTHER part of a configuration cannot silently change what a\n * compliance document says.\n *\n * The three field TYPES are imported rather than restated, and that is the load-bearing choice. A\n * structural copy would let `retentionPolicy.mode` be renamed in `saas-models` while this kept\n * compiling and reported every resource as UNDECLARED — silently, and in the one direction a\n * compliance statement must never fail in. Importing the types makes the rename a build error here.\n */\ninterface ComplianceRelevantConfiguration {\n readonly retentionPolicy?: ResourceRetentionPolicy;\n readonly dataSubjectPolicy?: ResourceDataSubjectPolicy;\n readonly systemAccessPolicy?: ResourceSystemAccessPolicy;\n /**\n * The resource's main schema, read ONLY through `resolveResourcePersonalDataCategories`.\n *\n * `unknown` rather than a Zod type on purpose. This projection takes no opinion on the schema's\n * shape — the saas-models resolver owns the walk, including what to do with a union or a\n * non-object mainSchema (it returns an empty profile rather than throwing). Typing it here would\n * make this module a second place where \"how do you read a resource's fields\" is decided.\n */\n readonly mainSchema?: unknown;\n}\n\nconst emptyCoverage = (): CompliancePrimaryFactCoverage => ({\n resourceCount: 0,\n withErasureRetentionMode: 0,\n withDataSubjectKind: 0,\n withSubjectExport: 0,\n declaringNoPersonalDataOfTheirOwn: 0,\n withPersonalDataCategories: 0,\n withUncategorizedPersonalFields: 0,\n});\n\n/** One resource's declarations, read off an already-materialized configuration. */\nexport function readCompliancePrimaryResourceFacts(\n resourceType: string,\n origin: CompliancePrimaryFactOrigin,\n configuration: ComplianceRelevantConfiguration,\n): CompliancePrimaryResourceFacts {\n const systemAccessPolicy = configuration.systemAccessPolicy;\n const categoryProfile = resolveResourcePersonalDataCategories(configuration.mainSchema);\n return {\n resourceType,\n origin,\n ...(configuration.retentionPolicy?.mode === undefined ? {} : { erasureRetentionMode: configuration.retentionPolicy.mode }),\n ...(configuration.dataSubjectPolicy?.kind === undefined ? {} : { dataSubjectKind: configuration.dataSubjectPolicy.kind }),\n declaresSubjectExport: systemAccessPolicy?.exportSubject !== undefined,\n declaresRetainedSeeThrough: systemAccessPolicy?.seeRetained !== undefined,\n personalDataCategories: categoryProfile.categories,\n uncategorizedPersonalFields: categoryProfile.uncategorizedPersonalFields,\n };\n}\n\n/**\n * Project the compliance facts of an application from its materialized resource configurations.\n *\n * Takes configurations already materialized by the caller rather than factories to materialize\n * itself: the handler knows how a factory is called (`factory(allRelationships)`, the way both\n * runtime registries do it) and owns the failure policy when one throws. Keeping that here would be a\n * second copy of a materialization convention that has already been the site of one defect.\n */\nexport function projectCompliancePrimaryFacts(\n entries: ReadonlyArray<{\n readonly resourceType: string;\n readonly origin: CompliancePrimaryFactOrigin;\n readonly configuration: ComplianceRelevantConfiguration;\n }>,\n): CompliancePrimaryFactsResponse {\n const resources = entries.map((entry) =>\n readCompliancePrimaryResourceFacts(entry.resourceType, entry.origin, entry.configuration));\n\n const coverage: Record<CompliancePrimaryFactOrigin, CompliancePrimaryFactCoverage> = {\n [CompliancePrimaryFactOrigin.ENGINE]: emptyCoverage(),\n [CompliancePrimaryFactOrigin.APPLICATION]: emptyCoverage(),\n };\n for (const resource of resources) {\n const current = coverage[resource.origin];\n coverage[resource.origin] = {\n resourceCount: current.resourceCount + 1,\n withErasureRetentionMode: current.withErasureRetentionMode + (resource.erasureRetentionMode === undefined ? 0 : 1),\n withDataSubjectKind: current.withDataSubjectKind + (resource.dataSubjectKind === undefined ? 0 : 1),\n withSubjectExport: current.withSubjectExport + (resource.declaresSubjectExport ? 1 : 0),\n declaringNoPersonalDataOfTheirOwn:\n current.declaringNoPersonalDataOfTheirOwn\n + (resource.erasureRetentionMode === ErasureRetentionMode.RETAIN_ONLY ? 1 : 0),\n withPersonalDataCategories: current.withPersonalDataCategories + (resource.personalDataCategories.length > 0 ? 1 : 0),\n withUncategorizedPersonalFields:\n current.withUncategorizedPersonalFields + (resource.uncategorizedPersonalFields.length > 0 ? 1 : 0),\n };\n }\n\n /*\n * Resources carrying NEITHER declaration.\n *\n * The first draft of this filter asked for the sharper population — rows that ARE a person with no\n * erasure treatment — and that set is EMPTY BY CONSTRUCTION, not because applications are diligent:\n * the resource factory refuses a `retentionPolicy` with no `dataSubjectPolicy` and refuses a\n * `dataSubjectPolicy` with no `retentionPolicy`, so the two always co-occur. A filter that can never\n * match reports a clean application and a broken projection identically.\n *\n * So the answerable question is the blunter one, and it is still the useful one: which resources\n * have not been asked. A resource that declared EITHER field has considered the question and is\n * excluded — listing settled cases beside open ones is how a gap list stops being read.\n *\n * Note what is deliberately NOT done here: `NO_PRINCIPAL` is not treated as \"not a person\". It is\n * the session axis, and it is the honest answer for a CRM contact as much as for an invoice. What\n * distinguishes them is the retention MODE, which the caller reads from the same row.\n */\n /*\n * A DECLARED CATEGORY IS AN ANSWER, and omitting it here put a contradiction in a produced notice.\n *\n * This filter keyed only on the two erasure axes until 2026-08-30. Then the engine declared data\n * categories on 48 of its 85 resources, and the very next wonder-crm notice said, of resources\n * including `userProfiles` and `userCredentials`, that \"whether each of those undeclared resources\n * holds personal data is not established by this notice\" — two sections after enumerating the\n * categories those same resources declare. Both clauses were DERIVED, both were sourced, and they\n * disagreed.\n *\n * The lesson is not \"add a third condition\". It is that the question \"has this resource been asked\"\n * has ONE answer and had two implementations: this filter, and\n * `resourceAnsweredThePersonalDataQuestion`, written for the startup report on the same day. Reusing\n * the saas-models predicate is what stops them drifting again — and it also brings in\n * `systemAccessPolicy.exportSubject`, which this filter never considered either.\n */\n const undeclaredResourceTypes = entries\n .filter((entry) => !resourceAnsweredThePersonalDataQuestion(entry.configuration))\n .map((entry) => entry.resourceType);\n\n // Ordered through the saas-models helper rather than by first appearance. First-appearance order\n // depends on resource iteration order, so adding one unrelated resource would silently reorder a\n // notice's category sentence — which reads as if the answer changed.\n const personalDataCategories = sortPersonalDataCategories(resources.flatMap((resource) => resource.personalDataCategories));\n\n const uncategorizedPersonalFieldsByResource = resources\n .filter((resource) => resource.uncategorizedPersonalFields.length > 0)\n .map((resource) => ({\n resourceType: resource.resourceType,\n origin: resource.origin,\n fields: resource.uncategorizedPersonalFields,\n }));\n\n return {\n resources,\n coverageByOrigin: coverage,\n undeclaredResourceTypes,\n personalDataCategories,\n uncategorizedPersonalFieldsByResource,\n trace: {\n engineResourceCount: coverage[CompliancePrimaryFactOrigin.ENGINE].resourceCount,\n applicationResourceCount: coverage[CompliancePrimaryFactOrigin.APPLICATION].resourceCount,\n },\n };\n}\n\n/**\n * Narrow a materialized configuration to the fields this projection reads.\n *\n * Structural, so any object carrying the three policies satisfies it — which is what lets the handler\n * pass a `ResourceConfiguration` of any generic instantiation without this module taking an opinion\n * on its three type parameters.\n */\nexport function asComplianceRelevantConfiguration(configuration: ComplianceRelevantConfiguration): ComplianceRelevantConfiguration {\n return configuration;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition-specifications.behavior.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"definition-specifications.behavior.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/definition-specifications.behavior.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,yBAAyB,EAC/B,MAAM,wCAAwC,CAAC;AAKhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH,uEAAuE;AACvE,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,uGAAuG;IACvG,QAAQ,CAAC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IACxC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;IACpD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED,yDAAyD;AACzD,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,QAAQ,EAAE,uBAAuB,EAAE,CAAC;IAC7C,QAAQ,CAAC,SAAS,EAAE,yBAAyB,CAAC;IAC9C,QAAQ,CAAC,KAAK,EAAE;QACd,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;KAC9B,CAAC;CACH;AAYD;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAC7C,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACrC,gCAAgC,CA4ElC;AAED;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,OAAO,EACf,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACrC,gCAAgC,CAElC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expert-persona-brief.renderer.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"expert-persona-brief.renderer.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/expert-persona-brief.renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,yBAAyB,EAE9B,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACpB,MAAM,+BAA+B,CAAC;AAEvC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,kFAAkF;AAClF,MAAM,WAAW,yBAAyB;IACxC,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC,EAAE,cAAc,CAAC;IACjD,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC,EAAE,cAAc,CAAC;IACjD,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC,EAAE,aAAa,CAAC;IAC/C,CAAC,sBAAsB,CAAC,YAAY,CAAC,CAAC,EAAE,oBAAoB,CAAC;IAC7D,CAAC,sBAAsB,CAAC,cAAc,CAAC,CAAC,EAAE,yBAAyB,CAAC;IACpE,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAClE;AAYD,kEAAkE;AAClE,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAoBhE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAmDhE;AAED,4EAA4E;AAC5E,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,CAa7D;AAED,yFAAyF;AACzF,wBAAgB,uBAAuB,CAAC,YAAY,EAAE,oBAAoB,GAAG,MAAM,CAWlF;AAED,kGAAkG;AAClG,wBAAgB,wBAAwB,CAAC,aAAa,EAAE,yBAAyB,GAAG,MAAM,CASzF;AAED,qFAAqF;AACrF,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,gBAAgB,EAAE,GAAG,MAAM,CAO/E;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,yBAAyB,GACjC,OAAO,CAAC,MAAM,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAC,CAejD"}
|
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FAMILY ASPECTS — every second-level aspect row of every landed family, in ONE projection.
|
|
3
|
-
*
|
|
4
|
-
* One behavior for forty resources, on the same single-import consistency argument as
|
|
5
|
-
* `application-domain-model`: the aspect rows CROSS-REFERENCE each other (a requirement's
|
|
6
|
-
* `icpRefs` must be routable against the ICP key set), so deriving them from one read of one
|
|
7
|
-
* companion-exports module is the only shape in which the graph's two ends describe the same
|
|
8
|
-
* working tree. Each aspect resource binds this behavior at its own `rowsPath`.
|
|
9
|
-
*
|
|
10
|
-
* ## What a row is
|
|
11
|
-
*
|
|
12
|
-
* The spine envelope (see `workbench-aspect-resources.custom.shared.schemas.ts`): composed
|
|
13
|
-
* identity, `family` backlink, `aspectKey`, `title` (the registry's headline field), the full
|
|
14
|
-
* item as `content`, plus the aspect's FLATTENED reference fields. Flattening happens here:
|
|
15
|
-
*
|
|
16
|
-
* - through-edges lift the key(s) out of edge objects (`jobs[].jobRef` → `jobRefs`),
|
|
17
|
-
* - multi-target edges route each key BY MEMBERSHIP into its per-target split field
|
|
18
|
-
* (`deliversRequirementRefs` → `deliversFunctionalRequirementRefs` + …); a key belonging to
|
|
19
|
-
* NO target keeps the graph honest by landing in none of them — the raw value stays readable
|
|
20
|
-
* in `content`, so a dangling ref is visible without becoming a dead reference control.
|
|
21
|
-
*/
|
|
22
1
|
interface FamilyAspectRow {
|
|
23
2
|
readonly [field: string]: unknown;
|
|
24
3
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"family-aspects.behavior.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"family-aspects.behavior.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/family-aspects.behavior.ts"],"names":[],"mappings":"AAsDA,UAAU,eAAe;IACvB,QAAQ,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;CACnC;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,CAAC,KAAK,EAAE,kBAAkB,CAAC;CACpC,GAAG;IACF,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,eAAe,EAAE,GAAG,kBAAkB,CAAC;CAC9E,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAMD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE;IAC1C,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B,GAAG,qBAAqB,CAwExB"}
|
|
@@ -2,6 +2,44 @@ import { FAMILY_ASPECTS_REGISTRY, FamilyAspectKind, } from '@wildo-ai/saas-speci
|
|
|
2
2
|
import { APPLICATION_SPECIFICATION_SEMANTIC_SCHEMA_BINDINGS } from '@wildo-ai/application-creation-runtime';
|
|
3
3
|
import { WORKBENCH_ASPECT_DESCRIPTORS, WorkbenchShared_ResourceFieldIdentifier, } from '@wildo-ai/platform-core-shared';
|
|
4
4
|
import { resolveSpecificationsCompanionExports } from './companion-introspection-module-exports.utils.js';
|
|
5
|
+
/**
|
|
6
|
+
* FAMILY ASPECTS — every second-level aspect row of every landed family, in ONE projection.
|
|
7
|
+
*
|
|
8
|
+
* One behavior for forty resources, on the same single-import consistency argument as
|
|
9
|
+
* `application-domain-model`: the aspect rows CROSS-REFERENCE each other (a requirement's
|
|
10
|
+
* `icpRefs` must be routable against the ICP key set), so deriving them from one read of one
|
|
11
|
+
* companion-exports module is the only shape in which the graph's two ends describe the same
|
|
12
|
+
* working tree. Each aspect resource binds this behavior at its own `rowsPath`.
|
|
13
|
+
*
|
|
14
|
+
* ## What a row is
|
|
15
|
+
*
|
|
16
|
+
* The spine envelope (see `workbench-aspect-resources.custom.shared.schemas.ts`): composed
|
|
17
|
+
* identity, `family` backlink, `aspectKey`, `title` (the registry's headline field), the full
|
|
18
|
+
* item as `content`, plus the aspect's FLATTENED reference fields. Flattening happens here:
|
|
19
|
+
*
|
|
20
|
+
* - through-edges lift the key(s) out of edge objects (`jobs[].jobRef` → `jobRefs`),
|
|
21
|
+
* - multi-target edges route each key BY MEMBERSHIP into its per-target split field
|
|
22
|
+
* (`deliversRequirementRefs` → `deliversFunctionalRequirementRefs` + …); a key belonging to
|
|
23
|
+
* NO target keeps the graph honest by landing in none of them — the raw value stays readable
|
|
24
|
+
* in `content`, so a dangling ref is visible without becoming a dead reference control.
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* The headline value at a declared field path — plain-object segments only.
|
|
28
|
+
*
|
|
29
|
+
* A path rather than a key because a family's reader-facing name is not always top-level: a feature
|
|
30
|
+
* draft's is `draft.purpose`, under a wrapper that exists because the payload is authored ref-lessly.
|
|
31
|
+
* A missing segment yields `undefined` and the caller falls back to the row identity, so a drifted
|
|
32
|
+
* path degrades to the slug rather than throwing — and the registry pin is what stops it drifting.
|
|
33
|
+
*/
|
|
34
|
+
function resolveHeadlineValue(item, fieldPath) {
|
|
35
|
+
let current = item;
|
|
36
|
+
for (const segment of fieldPath.split('.')) {
|
|
37
|
+
if (current === null || typeof current !== 'object')
|
|
38
|
+
return undefined;
|
|
39
|
+
current = current[segment];
|
|
40
|
+
}
|
|
41
|
+
return current;
|
|
42
|
+
}
|
|
5
43
|
const DESCRIPTOR_BY_ASPECT_KEY = new Map(WORKBENCH_ASPECT_DESCRIPTORS.map((descriptor) => [descriptor.aspectKey, descriptor]));
|
|
6
44
|
export function projectFamilyAspects(input) {
|
|
7
45
|
const companionExports = resolveSpecificationsCompanionExports(input.moduleExports);
|
|
@@ -49,7 +87,7 @@ export function projectFamilyAspects(input) {
|
|
|
49
87
|
const identity = declaration.businessKey !== undefined
|
|
50
88
|
? String(item[declaration.businessKey] ?? `${aspectKey}[${index}]`)
|
|
51
89
|
: declaration.kind === FamilyAspectKind.SINGLETON ? aspectKey : `${aspectKey}[${index}]`;
|
|
52
|
-
const headline = item
|
|
90
|
+
const headline = resolveHeadlineValue(item, declaration.headlineField);
|
|
53
91
|
const row = {
|
|
54
92
|
[identityField]: identity,
|
|
55
93
|
family,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"family-aspects.behavior.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/subprocess/family-aspects.behavior.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EAGvB,gBAAgB,GACjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,kDAAkD,EAAE,MAAM,wCAAwC,CAAC;AAC5G,OAAO,EACL,4BAA4B,EAC5B,uCAAuC,GAExC,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,qCAAqC,EAAE,MAAM,gDAAgD,CAAC;AAwCvG,MAAM,wBAAwB,GAAmD,IAAI,GAAG,CACtF,4BAA4B,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CACrF,CAAC;AAEF,MAAM,UAAU,oBAAoB,CAAC,KAGpC;IACC,MAAM,gBAAgB,GAAG,qCAAqC,CAAC,KAAK,CAAC,aAAa,CAAuC,CAAC;IAC1H,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAChC,kDAAkD,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,SAAmB,EAAE,OAAO,CAAC,CAAC,CAC5G,CAAC;IAEF,gGAAgG;IAChG,MAAM,gBAAgB,GAAG,IAAI,GAAG,EAAsG,CAAC;IACvI,KAA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,CAAC,YAAY,CAAC,CAAC;QACxE,IAAI,OAAO,OAAO,KAAK,QAAQ;YAAE,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;aAC/C,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;YAChC,KAAK,MAAM,KAAK,IAAI,OAAO;gBAAE,IAAI,OAAO,KAAK,KAAK,QAAQ;oBAAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC/E,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["import {\n FAMILY_ASPECTS_REGISTRY,\n type FamilyAspectDeclaration,\n type FamilyAspectEdge,\n FamilyAspectKind,\n} from '@wildo-ai/saas-specifications';\nimport { APPLICATION_SPECIFICATION_SEMANTIC_SCHEMA_BINDINGS } from '@wildo-ai/application-creation-runtime';\nimport {\n WORKBENCH_ASPECT_DESCRIPTORS,\n WorkbenchShared_ResourceFieldIdentifier,\n type WorkbenchAspectDescriptor,\n} from '@wildo-ai/platform-core-shared';\n\nimport { resolveSpecificationsCompanionExports } from './companion-introspection-module-exports.utils';\n\n/**\n * FAMILY ASPECTS — every second-level aspect row of every landed family, in ONE projection.\n *\n * One behavior for forty resources, on the same single-import consistency argument as\n * `application-domain-model`: the aspect rows CROSS-REFERENCE each other (a requirement's\n * `icpRefs` must be routable against the ICP key set), so deriving them from one read of one\n * companion-exports module is the only shape in which the graph's two ends describe the same\n * working tree. Each aspect resource binds this behavior at its own `rowsPath`.\n *\n * ## What a row is\n *\n * The spine envelope (see `workbench-aspect-resources.custom.shared.schemas.ts`): composed\n * identity, `family` backlink, `aspectKey`, `title` (the registry's headline field), the full\n * item as `content`, plus the aspect's FLATTENED reference fields. Flattening happens here:\n *\n * - through-edges lift the key(s) out of edge objects (`jobs[].jobRef` → `jobRefs`),\n * - multi-target edges route each key BY MEMBERSHIP into its per-target split field\n * (`deliversRequirementRefs` → `deliversFunctionalRequirementRefs` + …); a key belonging to\n * NO target keeps the graph honest by landing in none of them — the raw value stays readable\n * in `content`, so a dangling ref is visible without becoming a dead reference control.\n */\n\ninterface FamilyAspectRow {\n readonly [field: string]: unknown;\n}\n\nexport type FamilyAspectsResponse = {\n readonly trace: FamilyAspectsTrace;\n} & {\n readonly [rowsPath: string]: readonly FamilyAspectRow[] | FamilyAspectsTrace;\n};\n\nexport interface FamilyAspectsTrace {\n readonly aspects: number;\n readonly rows: number;\n readonly evaluatedAt: string;\n}\n\nconst DESCRIPTOR_BY_ASPECT_KEY: ReadonlyMap<string, WorkbenchAspectDescriptor> = new Map(\n WORKBENCH_ASPECT_DESCRIPTORS.map((descriptor) => [descriptor.aspectKey, descriptor]),\n);\n\nexport function projectFamilyAspects(input: {\n readonly moduleExports: Record<string, unknown>;\n readonly evaluatedAt: string;\n}): FamilyAspectsResponse {\n const companionExports = resolveSpecificationsCompanionExports(input.moduleExports) as unknown as Record<string, unknown>;\n const bindingBySchemaRef = new Map(\n APPLICATION_SPECIFICATION_SEMANTIC_SCHEMA_BINDINGS.map((binding) => [binding.schemaRef as string, binding]),\n );\n\n // ── Pass 1: raw items per aspect (needed before edges — membership routing reads key sets). ──\n const itemsByAspectKey = new Map<string, { family: string; items: Record<string, unknown>[]; declaration: FamilyAspectDeclaration }>();\n for (const familyDeclaration of FAMILY_ASPECTS_REGISTRY) {\n const binding = bindingBySchemaRef.get(familyDeclaration.schemaRef);\n if (!binding) continue;\n const snapshot = binding.companionExportsField === undefined\n ? undefined\n : (companionExports[binding.companionExportsField] as Record<string, unknown> | undefined);\n for (const aspect of familyDeclaration.aspects) {\n const member = snapshot?.[aspect.snapshotPath];\n const items = aspect.kind === FamilyAspectKind.SINGLETON\n ? (member && typeof member === 'object' ? [member as Record<string, unknown>] : [])\n : (Array.isArray(member) ? (member as Record<string, unknown>[]) : []);\n itemsByAspectKey.set(aspect.key, { family: binding.family, items, declaration: aspect });\n }\n }\n\n // ── Key sets per aspect, for membership routing of multi-target edges. ──\n const keySetByAspectKey = new Map<string, Set<string>>();\n for (const [aspectKey, { items, declaration }] of itemsByAspectKey) {\n const keys = new Set<string>();\n if (declaration.businessKey !== undefined) {\n for (const item of items) {\n const value = item[declaration.businessKey];\n if (typeof value === 'string') keys.add(value);\n }\n }\n keySetByAspectKey.set(aspectKey, keys);\n }\n\n // ── Pass 2: envelope rows. ──\n const rowsByPath: Record<string, FamilyAspectRow[]> = {};\n let totalRows = 0;\n for (const [aspectKey, { family, items, declaration }] of itemsByAspectKey) {\n const descriptor = DESCRIPTOR_BY_ASPECT_KEY.get(aspectKey);\n if (!descriptor) continue; // spine coverage is the parity test's business, not a crash site\n // The projection must emit the exact composed field the spine's identifier map names.\n const identityField = WorkbenchShared_ResourceFieldIdentifier[descriptor.resourceType];\n\n rowsByPath[descriptor.rowsPath] = items.map((item, index) => {\n const identity = declaration.businessKey !== undefined\n ? String(item[declaration.businessKey] ?? `${aspectKey}[${index}]`)\n : declaration.kind === FamilyAspectKind.SINGLETON ? aspectKey : `${aspectKey}[${index}]`;\n const headline = item[declaration.headlineField];\n\n const row: Record<string, unknown> = {\n [identityField]: identity,\n family,\n aspectKey,\n title: typeof headline === 'string' ? headline : identity,\n content: item,\n };\n for (const edge of declaration.edges) {\n applyEdge({ row, item, aspect: declaration, edge, descriptor, keySetByAspectKey });\n }\n return row;\n });\n totalRows += items.length;\n }\n\n const trace: FamilyAspectsTrace = {\n aspects: itemsByAspectKey.size,\n rows: totalRows,\n evaluatedAt: input.evaluatedAt,\n };\n return { ...rowsByPath, trace };\n}\n\n/**\n * Flatten one registry edge into the row's spine field(s).\n *\n * The spine field for a target is the descriptor edge whose `targetAspectKey` matches — unique\n * per (aspect, target) by construction, and the parity test pins that uniqueness, because this\n * join is exactly where a second same-target edge would silently merge two meanings.\n */\nfunction applyEdge(context: {\n row: Record<string, unknown>;\n item: Record<string, unknown>;\n aspect: FamilyAspectDeclaration;\n edge: FamilyAspectEdge;\n descriptor: WorkbenchAspectDescriptor;\n keySetByAspectKey: ReadonlyMap<string, Set<string>>;\n}): void {\n const keys = extractEdgeKeys(context.item, context.edge);\n for (const targetAspectKey of context.edge.targetAspects) {\n const spineEdge = context.descriptor.edges.find((entry) => entry.targetAspectKey === targetAspectKey);\n if (!spineEdge) continue;\n const targetKeys = context.edge.targetAspects.length === 1\n ? keys\n : keys.filter((key) => context.keySetByAspectKey.get(targetAspectKey)?.has(key));\n if (spineEdge.many) {\n context.row[spineEdge.field] = targetKeys;\n } else if (targetKeys.length > 0) {\n context.row[spineEdge.field] = targetKeys[0];\n }\n }\n}\n\n/** Lift the reference key(s) out of the item — plain, array, or through an edge object/array. */\nfunction extractEdgeKeys(item: Record<string, unknown>, edge: FamilyAspectEdge): string[] {\n const raw = item[edge.field];\n if (raw === undefined || raw === null) return [];\n if (edge.throughField === undefined) {\n if (typeof raw === 'string') return [raw];\n if (Array.isArray(raw)) return raw.filter((entry): entry is string => typeof entry === 'string');\n return [];\n }\n const carriers = Array.isArray(raw) ? raw : [raw];\n const keys: string[] = [];\n for (const carrier of carriers) {\n if (!carrier || typeof carrier !== 'object') continue;\n const through = (carrier as Record<string, unknown>)[edge.throughField];\n if (typeof through === 'string') keys.push(through);\n else if (Array.isArray(through)) {\n for (const entry of through) if (typeof entry === 'string') keys.push(entry);\n }\n }\n return keys;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"family-aspects.behavior.js","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/family-aspects.behavior.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EAGvB,gBAAgB,GACjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,kDAAkD,EAAE,MAAM,wCAAwC,CAAC;AAC5G,OAAO,EACL,4BAA4B,EAC5B,uCAAuC,GAExC,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,qCAAqC,EAAE,MAAM,gDAAgD,CAAC;AAEvG;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;;;;GAOG;AACH,SAAS,oBAAoB,CA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ECTS_REGISTRY,\n type FamilyAspectDeclaration,\n type FamilyAspectEdge,\n FamilyAspectKind,\n} from '@wildo-ai/saas-specifications';\nimport { APPLICATION_SPECIFICATION_SEMANTIC_SCHEMA_BINDINGS } from '@wildo-ai/application-creation-runtime';\nimport {\n WORKBENCH_ASPECT_DESCRIPTORS,\n WorkbenchShared_ResourceFieldIdentifier,\n type WorkbenchAspectDescriptor,\n} from '@wildo-ai/platform-core-shared';\n\nimport { resolveSpecificationsCompanionExports } from './companion-introspection-module-exports.utils';\n\n/**\n * FAMILY ASPECTS — every second-level aspect row of every landed family, in ONE projection.\n *\n * One behavior for forty resources, on the same single-import consistency argument as\n * `application-domain-model`: the aspect rows CROSS-REFERENCE each other (a requirement's\n * `icpRefs` must be routable against the ICP key set), so deriving them from one read of one\n * companion-exports module is the only shape in which the graph's two ends describe the same\n * working tree. Each aspect resource binds this behavior at its own `rowsPath`.\n *\n * ## What a row is\n *\n * The spine envelope (see `workbench-aspect-resources.custom.shared.schemas.ts`): composed\n * identity, `family` backlink, `aspectKey`, `title` (the registry's headline field), the full\n * item as `content`, plus the aspect's FLATTENED reference fields. Flattening happens here:\n *\n * - through-edges lift the key(s) out of edge objects (`jobs[].jobRef` → `jobRefs`),\n * - multi-target edges route each key BY MEMBERSHIP into its per-target split field\n * (`deliversRequirementRefs` → `deliversFunctionalRequirementRefs` + …); a key belonging to\n * NO target keeps the graph honest by landing in none of them — the raw value stays readable\n * in `content`, so a dangling ref is visible without becoming a dead reference control.\n */\n\n/**\n * The headline value at a declared field path — plain-object segments only.\n *\n * A path rather than a key because a family's reader-facing name is not always top-level: a feature\n * draft's is `draft.purpose`, under a wrapper that exists because the payload is authored ref-lessly.\n * A missing segment yields `undefined` and the caller falls back to the row identity, so a drifted\n * path degrades to the slug rather than throwing — and the registry pin is what stops it drifting.\n */\nfunction resolveHeadlineValue(item: FamilyAspectRow, fieldPath: string): unknown {\n let current: unknown = item;\n for (const segment of fieldPath.split('.')) {\n if (current === null || typeof current !== 'object') return undefined;\n current = (current as Record<string, unknown>)[segment];\n }\n return current;\n}\n\ninterface FamilyAspectRow {\n readonly [field: string]: unknown;\n}\n\nexport type FamilyAspectsResponse = {\n readonly trace: FamilyAspectsTrace;\n} & {\n readonly [rowsPath: string]: readonly FamilyAspectRow[] | FamilyAspectsTrace;\n};\n\nexport interface FamilyAspectsTrace {\n readonly aspects: number;\n readonly rows: number;\n readonly evaluatedAt: string;\n}\n\nconst DESCRIPTOR_BY_ASPECT_KEY: ReadonlyMap<string, WorkbenchAspectDescriptor> = new Map(\n WORKBENCH_ASPECT_DESCRIPTORS.map((descriptor) => [descriptor.aspectKey, descriptor]),\n);\n\nexport function projectFamilyAspects(input: {\n readonly moduleExports: Record<string, unknown>;\n readonly evaluatedAt: string;\n}): FamilyAspectsResponse {\n const companionExports = resolveSpecificationsCompanionExports(input.moduleExports) as unknown as Record<string, unknown>;\n const bindingBySchemaRef = new Map(\n APPLICATION_SPECIFICATION_SEMANTIC_SCHEMA_BINDINGS.map((binding) => [binding.schemaRef as string, binding]),\n );\n\n // ── Pass 1: raw items per aspect (needed before edges — membership routing reads key sets). ──\n const itemsByAspectKey = new Map<string, { family: string; items: Record<string, unknown>[]; declaration: FamilyAspectDeclaration }>();\n for (const familyDeclaration of FAMILY_ASPECTS_REGISTRY) {\n const binding = bindingBySchemaRef.get(familyDeclaration.schemaRef);\n if (!binding) continue;\n const snapshot = binding.companionExportsField === undefined\n ? undefined\n : (companionExports[binding.companionExportsField] as Record<string, unknown> | undefined);\n for (const aspect of familyDeclaration.aspects) {\n const member = snapshot?.[aspect.snapshotPath];\n const items = aspect.kind === FamilyAspectKind.SINGLETON\n ? (member && typeof member === 'object' ? [member as Record<string, unknown>] : [])\n : (Array.isArray(member) ? (member as Record<string, unknown>[]) : []);\n itemsByAspectKey.set(aspect.key, { family: binding.family, items, declaration: aspect });\n }\n }\n\n // ── Key sets per aspect, for membership routing of multi-target edges. ──\n const keySetByAspectKey = new Map<string, Set<string>>();\n for (const [aspectKey, { items, declaration }] of itemsByAspectKey) {\n const keys = new Set<string>();\n if (declaration.businessKey !== undefined) {\n for (const item of items) {\n const value = item[declaration.businessKey];\n if (typeof value === 'string') keys.add(value);\n }\n }\n keySetByAspectKey.set(aspectKey, keys);\n }\n\n // ── Pass 2: envelope rows. ──\n const rowsByPath: Record<string, FamilyAspectRow[]> = {};\n let totalRows = 0;\n for (const [aspectKey, { family, items, declaration }] of itemsByAspectKey) {\n const descriptor = DESCRIPTOR_BY_ASPECT_KEY.get(aspectKey);\n if (!descriptor) continue; // spine coverage is the parity test's business, not a crash site\n // The projection must emit the exact composed field the spine's identifier map names.\n const identityField = WorkbenchShared_ResourceFieldIdentifier[descriptor.resourceType];\n\n rowsByPath[descriptor.rowsPath] = items.map((item, index) => {\n const identity = declaration.businessKey !== undefined\n ? String(item[declaration.businessKey] ?? `${aspectKey}[${index}]`)\n : declaration.kind === FamilyAspectKind.SINGLETON ? aspectKey : `${aspectKey}[${index}]`;\n const headline = resolveHeadlineValue(item, declaration.headlineField);\n\n const row: Record<string, unknown> = {\n [identityField]: identity,\n family,\n aspectKey,\n title: typeof headline === 'string' ? headline : identity,\n content: item,\n };\n for (const edge of declaration.edges) {\n applyEdge({ row, item, aspect: declaration, edge, descriptor, keySetByAspectKey });\n }\n return row;\n });\n totalRows += items.length;\n }\n\n const trace: FamilyAspectsTrace = {\n aspects: itemsByAspectKey.size,\n rows: totalRows,\n evaluatedAt: input.evaluatedAt,\n };\n return { ...rowsByPath, trace };\n}\n\n/**\n * Flatten one registry edge into the row's spine field(s).\n *\n * The spine field for a target is the descriptor edge whose `targetAspectKey` matches — unique\n * per (aspect, target) by construction, and the parity test pins that uniqueness, because this\n * join is exactly where a second same-target edge would silently merge two meanings.\n */\nfunction applyEdge(context: {\n row: Record<string, unknown>;\n item: Record<string, unknown>;\n aspect: FamilyAspectDeclaration;\n edge: FamilyAspectEdge;\n descriptor: WorkbenchAspectDescriptor;\n keySetByAspectKey: ReadonlyMap<string, Set<string>>;\n}): void {\n const keys = extractEdgeKeys(context.item, context.edge);\n for (const targetAspectKey of context.edge.targetAspects) {\n const spineEdge = context.descriptor.edges.find((entry) => entry.targetAspectKey === targetAspectKey);\n if (!spineEdge) continue;\n const targetKeys = context.edge.targetAspects.length === 1\n ? keys\n : keys.filter((key) => context.keySetByAspectKey.get(targetAspectKey)?.has(key));\n if (spineEdge.many) {\n context.row[spineEdge.field] = targetKeys;\n } else if (targetKeys.length > 0) {\n context.row[spineEdge.field] = targetKeys[0];\n }\n }\n}\n\n/** Lift the reference key(s) out of the item — plain, array, or through an edge object/array. */\nfunction extractEdgeKeys(item: Record<string, unknown>, edge: FamilyAspectEdge): string[] {\n const raw = item[edge.field];\n if (raw === undefined || raw === null) return [];\n if (edge.throughField === undefined) {\n if (typeof raw === 'string') return [raw];\n if (Array.isArray(raw)) return raw.filter((entry): entry is string => typeof entry === 'string');\n return [];\n }\n const carriers = Array.isArray(raw) ? raw : [raw];\n const keys: string[] = [];\n for (const carrier of carriers) {\n if (!carrier || typeof carrier !== 'object') continue;\n const through = (carrier as Record<string, unknown>)[edge.throughField];\n if (typeof through === 'string') keys.push(through);\n else if (Array.isArray(through)) {\n for (const entry of through) if (typeof entry === 'string') keys.push(entry);\n }\n }\n return keys;\n}\n"]}
|
package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frontend-labels-needed-info.behavior.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"frontend-labels-needed-info.behavior.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/frontend-labels-needed-info.behavior.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,wBAAwB,EAK9B,MAAM,uCAAuC,CAAC;AAgC/C,UAAU,wBAAwB;IAChC;;;;;;;OAOG;IACH,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B;;;;;;;OAOG;IACH,6BAA6B,EAAE,MAAM,EAAE,CAAC;IACxC;;;;;;;OAOG;IACH,uBAAuB,EAAE,MAAM,EAAE,CAAC;IAClC;;;;;;OAMG;IACH,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAC1C;;;;;OAKG;IACH,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3C;;;;;;;;;;;;OAYG;IACH,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACrD;;;;;;;;;OASG;IACH,6BAA6B,EAAE,MAAM,EAAE,CAAC;CACzC;AAiyBD,wBAAsB,2BAA2B,CAC/C,wBAAwB,EAAE,wBAAwB,EAClD,OAAO,EAAE;IACP,UAAU,EAAE,MAAM,CAAC;CACpB,GACA,OAAO,CAAC,wBAAwB,CAAC,CA6GnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"market-context-block.builder.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"market-context-block.builder.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/market-context-block.builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,cAAc,EAIpB,MAAM,+BAA+B,CAAC;AAEvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,MAAM,WAAW,uBAAuB;IACtC;yEACqE;IACrE,QAAQ,EAAE,cAAc,CAAC;IACzB,MAAM,EACF;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,GACvC;QAAE,IAAI,EAAE,KAAK,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACpC;;+BAE2B;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,uBAAuB;IACtC;;2DAEuD;IACvD,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,yEAAyE;IACzE,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,wEAAwE;IACxE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,wBAAwB;IACvC,oEAAoE;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,uBAAuB,CAAC;CAChC;AA+BD,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,uBAAuB,GAC7B,wBAAwB,CA6D1B;AA4VD,0DAA0D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"market-prompt-renderer.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"market-prompt-renderer.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/market-prompt-renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAM1B,KAAK,cAAc,EACpB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAqDzE,MAAM,WAAW,mBAAmB;IAClC,mEAAmE;IACnE,WAAW,EAAE,MAAM,CAAC;IACpB,+DAA+D;IAC/D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mEAAmE;IACnE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uEAAuE;IACvE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uEAAuE;IACvE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2EAA2E;IAC3E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kEAAkE;IAClE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,yBAAyB;IACxC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM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34
34
|
* a focused projection of the resolved registry into a flat,
|
|
35
35
|
* JSON-safe shape, leaving every other concern to the consumer.
|
|
36
36
|
*/
|
|
37
|
-
import { CoreResourceType, type ResourceConfiguration_Operation, type ResourceConfiguration_Operation_ApiCall, type ResourceConfiguration_Operation_ApiCallWithCallback, type ResourceConfiguration_Operation_UrlInitiatorInfo, type ResourceRelationship, type FlowActorSystem } from '@wildo-ai/saas-models';
|
|
37
|
+
import { CoreResourceType, type ResourceConfiguration, type ResourceConfiguration_Operation, type ResourceConfiguration_Operation_ApiCall, type ResourceConfiguration_Operation_ApiCallWithCallback, type ResourceConfiguration_Operation_UrlInitiatorInfo, type ResourceRelationship, type FlowActorSystem } from '@wildo-ai/saas-models';
|
|
38
38
|
import { type AnyResourceSpecificationConfig } from '@wildo-ai/saas-specifications';
|
|
39
|
-
import { OpenApiSection, type OperationDoc, type OperationHttpDoc, type OpenApiGenerationProjectorStats, type OperationProjection, type ResourceTag, type ApplicationOrganizationRoleDocumentationSource, type ApplicationOrganizationUnitResourceDocumentation, type ApplicationRoleDocumentationSource } from '@wildo-ai/saas-technical-doc/companion';
|
|
39
|
+
import { OpenApiSection, type OperationDoc, type OperationHttpDoc, type OpenApiGenerationProjectorStats, type OperationProjection, type ResourceTag, type ApplicationOrganizationRoleDocumentationSource, type ApplicationOrganizationUnitResourceDocumentation, type ApplicationRoleDocumentationSource, type ApplicationMcpToolSource, type ApplicationWebhookEventSource } from '@wildo-ai/saas-technical-doc/companion';
|
|
40
40
|
/**
|
|
41
41
|
* Wire format returned by the `'openapi-generation-input'` subprocess
|
|
42
42
|
* behavior. It carries the JSON-safe facts that require the application module
|
|
@@ -54,6 +54,8 @@ export interface OpenApiGenerationInputSubprocessOutput {
|
|
|
54
54
|
operations: OperationProjection[];
|
|
55
55
|
/** True when the final application registry declares at least one usable MCP tool operation. */
|
|
56
56
|
hasConfiguredMcpToolOperations: boolean;
|
|
57
|
+
mcpTools: readonly ApplicationMcpToolSource[];
|
|
58
|
+
webhookEvents: readonly ApplicationWebhookEventSource[];
|
|
57
59
|
/** True when the final startup declaration contains at least one actor system that A2A can expose as a skill. */
|
|
58
60
|
hasConfiguredA2aSkills: boolean;
|
|
59
61
|
/** Every resolved organization-scoped role, joined to its authored semantics. */
|
|
@@ -169,6 +171,43 @@ excludedCoreResourceTypes?: readonly CoreResourceType[],
|
|
|
169
171
|
roleSpecifications?: Record<string, unknown>,
|
|
170
172
|
/** Narrow consumer-doc facts read from the application's final startup declaration. */
|
|
171
173
|
startupProjection?: ApplicationConsumerDocumentationStartupProjectionInput): Promise<OpenApiGenerationInputSubprocessOutput>;
|
|
174
|
+
/**
|
|
175
|
+
* Match the MCP adapter's publication gates: a tool operation must be
|
|
176
|
+
* default, URL-bearing, non-bulk, explicitly opted in, and not acknowledged as
|
|
177
|
+
* unimplemented; its composed public name must also be protocol-conformant and
|
|
178
|
+
* unambiguous. The scan covers the application's resources plus every
|
|
179
|
+
* runtime-eligible core resource; it is intentionally independent from the
|
|
180
|
+
* narrower `apiDocResources` selection, which controls reference content rather
|
|
181
|
+
* than whether the application has an MCP surface.
|
|
182
|
+
*/
|
|
183
|
+
/**
|
|
184
|
+
* One tool an MCP client can call, and one event a webhook receiver can be sent.
|
|
185
|
+
*
|
|
186
|
+
* Both were computed here as BOOLEANS — "does this application expose any MCP tool?", "…any
|
|
187
|
+
* webhook surface?" — which is all the applicability gates needed. It is not what a reader needs:
|
|
188
|
+
* the MCP page could say a catalogue exists without naming a tool in it, and five webhook pages
|
|
189
|
+
* could explain delivery without ever naming an event. The walk was already visiting every
|
|
190
|
+
* operation; it now keeps what it finds.
|
|
191
|
+
*/
|
|
192
|
+
export interface ProjectedIntegrationSurfaces {
|
|
193
|
+
readonly mcpTools: readonly ApplicationMcpToolSource[];
|
|
194
|
+
readonly webhookEvents: readonly ApplicationWebhookEventSource[];
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Walks the application's own resources AND the selected core resources once, collecting both
|
|
198
|
+
* integration surfaces. Core resources are materialized from the same factory map the runtime uses,
|
|
199
|
+
* so a core resource this application excluded contributes nothing — exactly as it contributes no
|
|
200
|
+
* route.
|
|
201
|
+
*/
|
|
202
|
+
export declare function collectIntegrationSurfaces(preparedApplicationAndSelectedCoreResources: readonly PreparedResourceProjection[], applicationResourceConfigurations: Readonly<Record<string, unknown>>, excludedCoreResourceTypes: ReadonlySet<CoreResourceType>, applicationFieldIdentifiers: Readonly<Record<string, string>>, applicationRelationships: readonly ResourceRelationship[]): ProjectedIntegrationSurfaces;
|
|
203
|
+
export interface PreparedResourceProjection {
|
|
204
|
+
resourceType: string;
|
|
205
|
+
materializedConfig: ResourceConfiguration<any, any, any>;
|
|
206
|
+
compiledRelationships: ResourceRelationship[];
|
|
207
|
+
specOverlayMap: Record<string, unknown> | undefined;
|
|
208
|
+
documentableApiOperationCount: number;
|
|
209
|
+
resolvedExternalHttpOperations: OpenApiGenerationInputSubprocessOutput['stats']['resolvedExternalHttpOperations'];
|
|
210
|
+
}
|
|
172
211
|
/**
|
|
173
212
|
* Resolve the source identity of every externally exposed HTTP route without
|
|
174
213
|
* invoking any documentation projector. Missing routes are defects: an
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openapi-generation-input.behavior.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"openapi-generation-input.behavior.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/openapi-generation-input.behavior.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,OAAO,EAaL,gBAAgB,EAehB,KAAK,qBAAqB,EAC1B,KAAK,+BAA+B,EACpC,KAAK,uCAAuC,EAC5C,KAAK,mDAAmD,EACxD,KAAK,gDAAgD,EACrD,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACrB,MAAM,uBAAuB,CAAC;AAM/B,OAAO,EAOL,KAAK,8BAA8B,EAEpC,MAAM,+BAA+B,CAAC;AAEvC,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