@wildo-ai/dev-companion 1.1.7 → 1.1.8
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/__tests__/asset-noop.d.ts.map +1 -1
- package/dist/esm/__tests__/asset-noop.js.map +1 -1
- package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +1 -1
- package/dist/esm/__tests__/chdir-dogfood-app.setup.js.map +1 -1
- package/dist/esm/__tests__/internal-test-view.d.ts.map +1 -1
- package/dist/esm/__tests__/internal-test-view.js.map +1 -1
- package/dist/esm/brand/models/logo-creative-brief.schemas.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-creative-brief.schemas.js.map +1 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.js.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.map +1 -1
- package/dist/esm/brand/models/logo-judge.schemas.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-judge.schemas.js.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
- package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-propagation.companion.utils.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.map +1 -1
- package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
- package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
- package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
- package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
- package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
- package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/coding-session-frame-retention.js.map +1 -1
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answer.models.js.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -1
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +1 -1
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -1
- 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.map +1 -1
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js.map +1 -1
- 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.map +1 -1
- 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.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-label-placeholder-contract.companion.js.map +1 -1
- package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.d.ts.map +1 -1
- package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
- package/dist/esm/companion-api/companion-error-guidance.models.d.ts.map +1 -1
- package/dist/esm/companion-api/companion-error-guidance.models.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.js.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-i18n-api-contract.utils.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -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.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.models.d.ts.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.models.js.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-offer-catalog-context.factory.js.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/aggregate-rating-catalog-context.factory.js.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/article-catalog-context.factory.js.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/blog-posting-catalog-context.factory.js.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/breadcrumb-list-catalog-context.factory.js.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/faq-page-catalog-context.factory.js.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/offer-catalog-context.factory.js.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/organization-catalog-context.factory.js.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/product-catalog-context.factory.js.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/review-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -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/software-application-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
- package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js.map +1 -1
- package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
- package/dist/esm/core/context/companion-context.d.ts.map +1 -1
- package/dist/esm/core/context/companion-context.js.map +1 -1
- package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
- package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
- package/dist/esm/core/context/draft-family-values.companion.d.ts.map +1 -1
- package/dist/esm/core/context/draft-family-values.companion.js.map +1 -1
- package/dist/esm/core/inject/models/container.d.ts.map +1 -1
- package/dist/esm/core/inject/models/container.js.map +1 -1
- package/dist/esm/core/inject/models/service-types.d.ts.map +1 -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/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
- package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
- package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
- package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/application-secrets.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.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.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.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-notifier.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.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-behavior-registry.companion.service.js.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.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-derivation-state.companion.service.js.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-state.companion.service.js.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/introspection-source-watcher.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/translation-placement.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js.map +1 -1
- 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/assertions.behavior.js.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-hooks.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-register.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-register.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.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-child.js.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/companion-introspection-module-exports.utils.js.map +1 -1
- 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.map +1 -1
- package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -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/frontend-labels-needed-info.behavior.js.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-context-block.builder.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js.map +1 -1
- package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -1
- package/dist/esm/core/introspection/workspace-elements.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/workspace-elements.companion.js.map +1 -1
- 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.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.models.js.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.schemas.js.map +1 -1
- package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/application-runtime-liveness.companion.js.map +1 -1
- package/dist/esm/core/runtime/companion-endpoint-record.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-endpoint-record.js.map +1 -1
- package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-env-file.js.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.map +1 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js.map +1 -1
- package/dist/esm/core/runtime/models/companion-runtime.models.d.ts.map +1 -1
- package/dist/esm/core/runtime/models/companion-runtime.models.js.map +1 -1
- package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/services/file-storage-initialization.companion.js.map +1 -1
- 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.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-local-signing-key.companion.js.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.map +1 -1
- package/dist/esm/core/runtime/utils/companion-workbench-topology.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-workbench-topology.js.map +1 -1
- package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.js.map +1 -1
- package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/chart-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/composite-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/cross-registry-rendering.shared.js.map +1 -1
- package/dist/esm/core/specifications/execution-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/execution-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/feature-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/feature-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/frontend-component-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/full-custom-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/guidance-flow-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/milestone-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/milestone-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/non-composite-view-specification-context.shared.js.map +1 -1
- package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/onboarding-element-rendering.shared.js.map +1 -1
- package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/onboarding-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/product-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/product-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/resource-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/role-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/role-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.js.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.models.js.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.shared.js.map +1 -1
- package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/system-email-template-specification-context.factory.js.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-all-information.template.js.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-custom-implementation-context.template.js.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-development-usage-context.template.js.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/composite-view/composite-view-translation-context.template.js.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-all-information.template.js.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-custom-implementation-context.template.js.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-development-usage-context.template.js.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/feature/feature-translation-context.template.js.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-all-information.template.js.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-custom-implementation-context.template.js.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-development-usage-context.template.js.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/frontend-component/frontend-component-translation-context.template.js.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-all-information.template.js.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-custom-implementation-context.template.js.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-development-usage-context.template.js.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/guidance-flow-specification/guidance-flow-translation-context.template.js.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-all-information.template.js.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-custom-implementation-context.template.js.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-development-usage-context.template.js.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/milestone/milestone-translation-context.template.js.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-all-information.template.js.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-custom-implementation-context.template.js.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-development-usage-context.template.js.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/non-composite-view/non-composite-view-translation-context.template.js.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-all-information.template.js.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-custom-implementation-context.template.js.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-development-usage-context.template.js.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/onboarding-view-specification/onboarding-view-translation-context.template.js.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-all-information.template.js.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-custom-implementation-context.template.js.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-development-usage-context.template.js.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/product/product-translation-context.template.js.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-all-information.template.js.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-custom-implementation-context.template.js.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-development-usage-context.template.js.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/resource/resource-translation-context.template.js.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-all-information.template.js.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-custom-implementation-context.template.js.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-development-usage-context.template.js.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/role/role-translation-context.template.js.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-all-information.template.js.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-custom-implementation-context.template.js.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-development-usage-context.template.js.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/templates/system-email-template/system-email-template-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
- package/dist/esm/core/specifications/validate-resource-field-completeness.js.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.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.models.js.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.service.js.map +1 -1
- package/dist/esm/core/utils/atomic-write.utils.d.ts.map +1 -1
- package/dist/esm/core/utils/atomic-write.utils.js.map +1 -1
- package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/utils/derived-input-signature.companion.utils.js.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -1
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.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.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.map +1 -1
- package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
- package/dist/esm/deliberations/utils/load-committed-expert-agents.js.map +1 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.js.map +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.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.map +1 -1
- package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-labels-file-source.utils.js.map +1 -1
- package/dist/esm/email/utils/email-labels-tree.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-labels-tree.utils.js.map +1 -1
- package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-template-fs-discovery.utils.js.map +1 -1
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.js.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.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.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.js.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
- package/dist/esm/expert-personas/services/persona-source-ownership.d.ts.map +1 -1
- package/dist/esm/expert-personas/services/persona-source-ownership.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_ACTIVITY_BAR.en.js.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_COMMAND_MENU.en.js.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_CONTROL_PANEL.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.js.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_NAVIGATION_BACK.en.js.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_NOTIFICATION_CENTER.en.js.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_ACTION_BUTTON.en.js.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_QUICK_SWITCHER.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js.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_STATUS_BAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.js.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_USER_DROPDOWN.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js.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_APPEARANCE_SETTINGS.en.js.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_BILLING_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js.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_ERROR_BOUNDARY.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.js.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_INVITATIONS_SETTINGS.en.js.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_MAIN_CONTAINER.en.js.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_ROUTER_ERROR_BOUNDARY.en.js.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_SECURITY_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js.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.en.js.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_CHART_WIDGET.en.js.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_EXECUTION.en.js.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_FLOWS_ACTORS.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.js.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_ACTION_BAR.en.js.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_ACTOR.en.js.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_AGENT_CONFIG.en.js.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_APPROVAL.en.js.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.en.js.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_ARTIFACT_BROWSER.en.js.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_CHAIN_OF_THOUGHT.en.js.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_CODE_BLOCK.en.js.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_CONFIRMATION.en.js.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_CONTEXT.en.js.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_CONVERSATION.en.js.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_DECISION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js.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_PLAN.en.js.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_EXECUTION_STREAM.en.js.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_EXECUTION.en.js.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_FLOW_NODE.en.js.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_INLINE_CITATION.en.js.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_MESSAGE.en.js.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_MODEL_SELECTOR.en.js.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_OPEN_IN_CHAT.en.js.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_PLAN.en.js.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_PROMPT_INPUT.en.js.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_SYSTEM_CATALOG.en.js.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_DETAIL.en.js.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_TASK_MEMORY.en.js.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_AI_WEB_PREVIEW.en.js.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_INVOICE_HISTORY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.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_PORTAL_LINK.en.js.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_PRICING_TABLE.en.js.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_SUBSCRIPTION_STATUS.en.js.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_BILLING_USAGE_DASHBOARD.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.js.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_CELEBRATION_OVERLAY.en.js.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_COLOR_INPUT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.js.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_CONTENT_SECTION_CONTAINER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js.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_BIGDECIMAL.en.js.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_BOOLEAN.en.js.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_CODE.en.js.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_DURATION.en.js.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.en.js.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_AUDIO.en.js.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_DOCUMENT.en.js.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_GALLERY.en.js.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_IMAGE.en.js.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_FILE_VIDEO.en.js.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_MONEY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js.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_PHONE.en.js.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_BIGDECIMAL.en.js.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_MONEY.en.js.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_DISPLAY_FIELD_RANGE_NUMBER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js.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_ERROR_DISPLAY.en.js.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_LOCK_BADGE.en.js.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_FEATURE_UNAVAILABLE_PROMPT.en.js.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_FILE_UPLOAD.en.js.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.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.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_BOOLEAN.en.js.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_CODE.en.js.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_FILE.en.js.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_PHONE.en.js.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_FIELD_STRING.en.js.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_FORM_MESSAGE.en.js.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_IMAGE_CROP.en.js.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_OVERLAY.en.js.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_LOADING_SPINNER.en.js.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_OPERATIONS_CONFIRM_CRITICAL.en.js.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_OVERLAY_CONTAINER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js.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_SELECT_MULTIPLE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js.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_AUTH_CALLBACK.en.js.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_ENROLLMENT_REQUIRED.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.js.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_MFA_CHALLENGE.en.js.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_CONSENT.en.js.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_LOGGED_OUT.en.js.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_OAUTH_LOGOUT_CONFIRM.en.js.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_ONE_OFF_SESSION.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js.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_AUTH.en.js.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_CONFIRM_EMAIL.en.js.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_INVITATION.en.js.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_PASSWORD_LOST.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js.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_CONTAINER_NESTED.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js.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_DANGER_ZONE.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.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_BULK.en.js.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_OPERATIONS_ITEMS.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_announcement.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_announcement.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_banner.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_card.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_card.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist_item.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_modal.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_modal.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_onboarding_view.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_survey.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_tooltip.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_tooltip.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_tour.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_tour.en.js.map +1 -1
- package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_achievement_badge.en.js.map +1 -1
- package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_milestone_tracker.en.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.domain-model.en.js.map +1 -1
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts.map +1 -1
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.js.map +1 -1
- package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -1
- package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -1
- package/dist/esm/i18n/index.d.ts.map +1 -1
- package/dist/esm/i18n/index.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDomainResources.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/compliance-programme.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/flows-actors.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/flows-actors.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/market.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/risk-register.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-secrets.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -1
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
- 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.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/component-labels-bootstrap.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -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.map +1 -1
- 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.map +1 -1
- 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.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.map +1 -1
- package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.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/frontend-derived-label-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js.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-file-source.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.js.map +1 -1
- 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.map +1 -1
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.js.map +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/market/services/market-generation.companion.service.d.ts.map +1 -1
- package/dist/esm/market/services/market-generation.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-line-catalog.models.js.map +1 -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.map +1 -1
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/human-decision-settler.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.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.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.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/__tests__/application-build-task-coding.companion.test-fixtures.js.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +1 -1
- 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.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js.map +1 -1
- 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.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/application-build-task-coding-policy.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js.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/execution-trace-read.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js.map +1 -1
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/landed-module-import.companion.js.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-execution-trace.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.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-write-register.companion.service.js.map +1 -1
- 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.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js.map +1 -1
- package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts.map +1 -1
- package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js.map +1 -1
- 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.map +1 -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.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-environment-identity.companion.service.js.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-assets.companion.service.js.map +1 -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.map +1 -1
- package/package.json +17 -17
package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"introspection-source-state.companion.service.js","sourceRoot":"","sources":["../../../../../src/core/introspection/services/introspection-source-state.companion.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAG1C;;;;;;;;;;;GAWG;AACH,MAAM,0BAA0B,GAAG,EAAE,CAAC;AAEtC;;;;;;;GAOG;AACH,MAAM,uBAAuB,GAAG,IAAI,GAAG,CAAC,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC;AAElE;;;;;;;;;GASG;AACH,MAAM,wBAAwB,GAAG,OAAO,CAAC;AAkCzC;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AAC,GAAG,CAAC,gBAAgB,CAAC,sBAAsB,CAAC,WAAW,CAAC,CAAC;IAC5E,CAAC;IACD,OAAO,CAAC,GAAG,gBAAgB,CAAC,CAAC;AAC/B,CAAC","sourcesContent":["import { promises as fsPromises } from 'node:fs';\nimport { join, resolve } from 'node:path';\nimport type { CompanionContext } from '../../context/companion-context';\n\n/**\n * How many directories are walked concurrently.\n *\n * Measured on `examples/wonder-crm` (23,758 files + 2,706 directories across the three application\n * package roots and the 19 distinct `@wildo-ai/*` roots they resolve to): 350 ms at concurrency 1,\n * **125 ms at 16**, 142 ms at 64, 134 ms at 128. The curve is flat past 16, so 16 is the point where\n * the walk stops being latency-bound without turning into an open-ended file-descriptor burst.\n *\n * The walk is deliberately ASYNC rather than the ~30 % faster synchronous form. A synchronous sweep\n * measured 175 ms on the same tree, but it holds the event loop for that whole time — and this runs\n * inside a long-lived HTTP server that is also serving the workbench.\n */\nconst DIRECTORY_WALK_CONCURRENCY = 16;\n\n/**\n * Directory names never descended into.\n *\n * `node_modules` is skipped during the walk and reached only through the explicit `@wildo-ai/*`\n * roots below: descending into it from an application package would sweep the app's entire\n * dependency graph (hundreds of thousands of files) to learn nothing the resolved engine roots do\n * not already say.\n */\nconst SKIPPED_DIRECTORY_NAMES = new Set(['node_modules', '.git']);\n\n/**\n * A ceiling on how much this observer will walk before it gives up on caching.\n *\n * Chosen ~10x above the measured 26k-entry dogfood application, so it can only be reached by a\n * pathological root (a `dist` holding a build cache, an application that vendored something large).\n * Crossing it does not disable the walk half-way and report a plausible number — it returns\n * `bounded: false`, which the caller MUST read as \"do not cache this derivation\". Failing toward\n * re-deriving is the only safe direction here: an under-observed token is a cache key that stops\n * moving when the source does.\n */\nconst MAXIMUM_OBSERVED_ENTRIES = 250_000;\n\n/**\n * What a completed sweep learned about the source that feeds an introspection derivation.\n */\nexport interface IntrospectionSourceStateObservation {\n /**\n * The comparable value. Two observations with the same token describe the same source tree; a\n * different token means SOMETHING moved and every cached derivation is void.\n */\n token: string;\n /**\n * `false` when the sweep hit {@link MAXIMUM_OBSERVED_ENTRIES}. The token is then deliberately\n * unique per observation, so a caller that ignores this flag still re-derives rather than serving\n * a stale answer.\n */\n bounded: boolean;\n /** Wall-clock cost of the sweep, for the debug line that explains a cache hit's latency. */\n durationMs: number;\n /** Number of roots actually walked (a root that does not exist yet is not one). */\n observedRootCount: number;\n /** Files plus directories visited. Reported so an operator can see why a sweep is slow. */\n observedEntryCount: number;\n /** The instant the sweep STARTED, which is the instant the token describes. */\n startedAt: number;\n}\n\ninterface SweepAccumulator {\n fileCount: number;\n directoryCount: number;\n maximumMtimeMs: number;\n exceededCeiling: boolean;\n}\n\n/**\n * Observes the state of every source tree an introspection derivation can read, as one comparable\n * token.\n *\n * ## Why a token rather than a watcher\n *\n * The companion's file watcher (`IntrospectionSourceWatcherCompanionService`) is best-effort —\n * `fs.watch` can go deaf with no error — so it only says WHEN to look; this observer says WHETHER\n * anything moved. A sweep answers that on demand, costs ~125 ms against the largest dogfood\n * application, and cannot miss an event because it does not observe events at all — it observes the\n * tree. (This paragraph said \"the companion has no file watcher\" until 2026-09-24; the watcher was\n * added on top of the observer, not instead of it.)\n *\n * ## Why mtimes rather than content\n *\n * `.claude/rules/application-creation-directive.md` forbids digests, of any kind, for any purpose,\n * and `.claude/rules/one-source-of-truth.md` Rule 0 refuses anything that is not branchable on git.\n * A content hash compared against a stored one is exactly the second-source-of-truth shape both\n * rules exist to keep out. An mtime observation stores nothing about the application: it is a\n * reading taken now, compared against a reading taken earlier in the same process, and deleting it\n * costs a re-derivation and nothing else.\n *\n * ## What the token is made of, and what each part catches\n *\n * | Component | Catches |\n * |---|---|\n * | maximum file/directory mtime | a file written in place (the ordinary edit, and every `tsc` emit) |\n * | file count | a file added or deleted |\n * | directory count | a directory added or deleted |\n * | directory mtimes, in the maximum | a RENAME, which preserves the file's own mtime and would otherwise be invisible while the file count stayed equal |\n *\n * Directory mtimes are the non-obvious member and they are load-bearing: without them,\n * `mv a.ts b.ts` moves neither the count nor any file mtime, and the cache would keep answering\n * from the pre-rename derivation for as long as nothing else in the tree moved.\n *\n * The one mutation this cannot see is an mtime pushed BACKWARD in place on a file that is not the\n * newest in the tree (`touch -t 200001010000 <file>` on an already-old file). Nothing in a dev loop\n * does that; a real editor, `tsc`, `git checkout` and pnpm's hard-link relink all move an mtime\n * forward or move a directory. Recorded rather than papered over, because a reader who assumes the\n * token is total would be assuming something false.\n *\n * ## Which trees, and why the engine ones are in there\n *\n * An application resolving `@wildo-ai/*` through `file:` links — every dogfood app does — changes\n * its derivation when the engine is rebuilt, with no application file touched. The engine bytes the\n * child actually imports are the ones pnpm hard-linked into the app's store, NOT the ones in\n * `engine/<package>/dist`, and the two are reconciled at supervised (re)start rather than continuously. So\n * the framework signal has to be the injected snapshot itself. `.wildo-runtime-signals/dev-compile-status.json`\n * was considered and rejected for exactly this: it is a LEADING indicator, moving when the engine\n * compiles and therefore possibly before the bytes this process would import have changed — which\n * would let a derivation be cached against a token that has already advanced past it, and never\n * re-derived when the injection finally lands.\n *\n * For an application consuming published `@wildo-ai/*` tarballs the same roots are simply immutable\n * between installs, so the sweep costs a little and proves the same thing.\n *\n * ## What it costs, and one narrowing that was measured and REJECTED\n *\n * 176–225 ms against `examples/wonder-crm` (23 roots, 27,050 entries), versus a 3.1–4.2 s cold\n * import of that application's specifications package alone. So a cache hit is ~15x cheaper than\n * the cheapest possible miss.\n *\n * Skipping `*.d.ts` and `*.map` would roughly halve it — they are **55 %** of the swept files\n * (8,830 maps + 4,417 declarations of 24,243) and neither can change a runtime derivation. It was\n * rejected anyway: the saving is ~90 ms nobody can perceive, and it would buy that with an\n * assumption about what a future behavior may read. No behavior under `introspection/subprocess/`\n * imports `node:fs` at all today — every one of them is a pure function of the imported module\n * graph — but that is a fact about today, and the direction to be wrong in here is toward\n * re-deriving. Recorded so the next reader does not re-derive the numbers before reaching the same\n * conclusion.\n */\nexport class IntrospectionSourceStateObserver {\n private readonly companionContext: Pick<CompanionContext, 'saasRoot' | 'companionHome' | 'servicesByKey' | 'resolvedLibraries' | 'resolvedSpecifications'>;\n private observationSequence = 0;\n private inFlight: { startedAt: number; observation: Promise<IntrospectionSourceStateObservation> } | null = null;\n\n constructor(\n companionContext: Pick<CompanionContext, 'saasRoot' | 'companionHome' | 'servicesByKey' | 'resolvedLibraries' | 'resolvedSpecifications'>,\n ) {\n this.companionContext = companionContext;\n }\n\n /**\n * Take a reading of the source trees, reusing an in-flight one ONLY when that reading started at\n * or after the caller's own arrival.\n *\n * The condition is the whole point of the coalescing. A sweep takes ~125 ms; a request arriving\n * 100 ms into someone else's sweep and adopting its token would be answered from a picture of the\n * world taken 100 ms before it asked — a window in which the operator could have saved a file. So\n * a late arrival waits for the running sweep to finish and takes a fresh one, which is slower and\n * correct, while genuinely concurrent callers share one walk, which is what the coalescing is for.\n */\n public async observe(requestedAt: number = Date.now()): Promise<IntrospectionSourceStateObservation> {\n const current = this.inFlight;\n if (current !== null && current.startedAt >= requestedAt) {\n return current.observation;\n }\n\n if (current !== null) {\n // Let the running sweep finish before starting another; two concurrent walks of the same\n // trees would only contend for the same file descriptors.\n await current.observation.catch(() => undefined);\n return this.observe(requestedAt);\n }\n\n const startedAt = Date.now();\n const observation = this.runObservation(startedAt).finally(() => {\n if (this.inFlight?.startedAt === startedAt) {\n this.inFlight = null;\n }\n });\n this.inFlight = { startedAt, observation };\n return observation;\n }\n\n private async runObservation(startedAt: number): Promise<IntrospectionSourceStateObservation> {\n const roots = await this.resolveObservedRoots();\n const accumulator: SweepAccumulator = {\n fileCount: 0,\n directoryCount: 0,\n maximumMtimeMs: 0,\n exceededCeiling: false,\n };\n\n await this.observeApplicationRootManifests(accumulator);\n await this.walk(roots, accumulator);\n\n this.observationSequence += 1;\n const bounded = !accumulator.exceededCeiling;\n const token = bounded\n ? `roots:${roots.length}|files:${accumulator.fileCount}|dirs:${accumulator.directoryCount}|mtime:${accumulator.maximumMtimeMs}`\n : `unbounded:${this.observationSequence}`;\n\n return {\n token,\n bounded,\n durationMs: Date.now() - startedAt,\n observedRootCount: roots.length,\n observedEntryCount: accumulator.fileCount + accumulator.directoryCount,\n startedAt,\n };\n }\n\n /**\n * The two ROOT populations a derivation reads from, kept apart because a watcher treats them\n * differently.\n *\n * An APPLICATION root is a package the operator edits: its `src` moves first and its `dist` moves\n * second, and only the second changes what a derivation imports —\n * `resolvePackageCompanionEntryPath` resolves the package's `exports['./companion']`, which is\n * `./dist/esm/companion-exports.js` on every application package. A FRAMEWORK root is the injected\n * `@wildo-ai/*` copy in the application's own store: dist-only bytes, hard-linked at supervised\n * (re)start, carrying no runtime-signal files of its own.\n *\n * Exposed so the watcher and the sweep observe one population rather than two enumerations that\n * agree only until one side gains an entry.\n */\n public async resolveObservedRootPopulations(): Promise<{\n readonly applicationRoots: readonly string[];\n readonly frameworkRoots: readonly string[];\n }> {\n const applicationRoots = resolveIntrospectedApplicationPackageRoots(this.companionContext);\n\n const frameworkScopeOwners = [\n ...applicationRoots,\n this.companionContext.saasRoot,\n this.companionContext.companionHome,\n ];\n const frameworkRoots = new Set<string>();\n for (const owner of frameworkScopeOwners) {\n const scopeDirectory = join(owner, 'node_modules', '@wildo-ai');\n let scopeEntries: string[];\n try {\n scopeEntries = await fsPromises.readdir(scopeDirectory);\n } catch {\n continue;\n }\n for (const scopeEntry of scopeEntries) {\n try {\n frameworkRoots.add(await fsPromises.realpath(join(scopeDirectory, scopeEntry)));\n } catch {\n // A dangling link contributes nothing to observe; its disappearance shows up as a\n // directory-mtime change on the scope directory's owner instead.\n }\n }\n }\n\n return { applicationRoots: [...applicationRoots], frameworkRoots: [...frameworkRoots] };\n }\n\n /**\n * Every tree whose bytes can reach a derivation, de-duplicated by resolved real path.\n *\n * Two families, and the second is the one a reader would not think of:\n *\n * 1. The APPLICATION package roots — every declared service, every resolved library, and the\n * specifications package. Whole roots rather than `src/` alone, because\n * `resolvePackageCompanionEntryPath` prefers a package's built `./companion` export when it\n * exists, so the child commonly imports `dist/`, not source. Sweeping both means neither\n * resolution mode has a blind spot.\n * 2. The FRAMEWORK packages, reached by reading each of those roots' (and the companion home's)\n * `node_modules/@wildo-ai` scope directory and resolving each link to its real path. Reading\n * the scope directory rather than listing package names keeps this from becoming a second\n * enumeration of the engine's package set that could drift from the real one.\n *\n * The application root itself is NOT walked recursively — its interesting children are already in\n * family 1, and descending it would pull in `.wildo-saas` (the companion's own dist plus the\n * runtime-signal files that churn on a heartbeat, which would make every token unique and every\n * cache read a miss).\n */\n private async resolveObservedRoots(): Promise<string[]> {\n const { applicationRoots, frameworkRoots } = await this.resolveObservedRootPopulations();\n return [...new Set([...applicationRoots, ...frameworkRoots])];\n }\n\n /**\n * Fold the application root's own top-level FILES in, without descending it.\n *\n * These are `pnpm-lock.yaml`, `package.json` and `wildo.saas.config.ts` — the manifests that\n * decide which third-party bytes the child imports. Without them there is a narrow but real hole:\n * an install that moves a non-`@wildo-ai` dependency changes a derivation while touching nothing\n * inside a package root, because the walk enters `node_modules` only through the resolved\n * `@wildo-ai` scope. The lockfile moves on every such install, so one shallow read closes it.\n *\n * The root is NOT descended, because doing so would pull in `.wildo-saas` — the companion's own\n * dist and the runtime-signal files that are rewritten on a heartbeat, which would make every\n * token unique and every cache read a miss.\n */\n private async observeApplicationRootManifests(accumulator: SweepAccumulator): Promise<void> {\n let entries;\n try {\n entries = await fsPromises.readdir(this.companionContext.saasRoot, { withFileTypes: true });\n } catch {\n return;\n }\n\n await Promise.all(entries.map(async (entry) => {\n if (!entry.isFile()) return;\n accumulator.fileCount += 1;\n try {\n const entryStats = await fsPromises.stat(join(this.companionContext.saasRoot, entry.name));\n if (entryStats.mtimeMs > accumulator.maximumMtimeMs) {\n accumulator.maximumMtimeMs = entryStats.mtimeMs;\n }\n } catch {\n // Counted above; a file that vanished between readdir and stat is itself a change, and the\n // count will differ on the next observation.\n }\n }));\n }\n\n /**\n * Breadth-of-tree walk with a fixed directory concurrency.\n *\n * A worker-pool built over the ROOT list was written first and was wrong: it sizes its pool from\n * the number of roots, so a single-root application would walk its whole tree one directory at a\n * time, and a worker that finds the queue momentarily empty cannot tell \"finished\" from \"another\n * worker is about to push children\". The pump below sizes on IN-FLIGHT directories instead, which\n * is the quantity the concurrency limit is actually about, and terminates on the only condition\n * that means finished: nothing queued and nothing running.\n */\n private async walk(roots: readonly string[], accumulator: SweepAccumulator): Promise<void> {\n const pending: string[] = [...roots];\n let inFlightDirectories = 0;\n\n return new Promise<void>((resolveWalk) => {\n const pump = (): void => {\n while (\n !accumulator.exceededCeiling\n && inFlightDirectories < DIRECTORY_WALK_CONCURRENCY\n && pending.length > 0\n ) {\n const directory = pending.pop() as string;\n inFlightDirectories += 1;\n void this.visitDirectory(directory, accumulator, pending).then(() => {\n inFlightDirectories -= 1;\n pump();\n });\n }\n\n if (inFlightDirectories === 0 && (pending.length === 0 || accumulator.exceededCeiling)) {\n resolveWalk();\n }\n };\n\n pump();\n });\n }\n\n /**\n * Read one directory: count it, fold its own mtime in, stat its files, and queue its children.\n *\n * Never rejects. A directory that cannot be read (an unbuilt `dist`, a permission) contributes\n * nothing and is not an error — when it appears later it is a new directory, which moves the\n * counts and invalidates every cached derivation.\n */\n private async visitDirectory(\n directory: string,\n accumulator: SweepAccumulator,\n pending: string[],\n ): Promise<void> {\n let entries;\n try {\n entries = await fsPromises.readdir(directory, { withFileTypes: true });\n } catch {\n return;\n }\n\n accumulator.directoryCount += 1;\n try {\n const directoryStats = await fsPromises.stat(directory);\n if (directoryStats.mtimeMs > accumulator.maximumMtimeMs) {\n accumulator.maximumMtimeMs = directoryStats.mtimeMs;\n }\n } catch {\n // Counted above regardless: the directory demonstrably exists, we just read it.\n }\n\n const fileStats: Promise<void>[] = [];\n for (const entry of entries) {\n if (SKIPPED_DIRECTORY_NAMES.has(entry.name)) continue;\n const entryPath = join(directory, entry.name);\n if (entry.isDirectory()) {\n pending.push(entryPath);\n continue;\n }\n if (!entry.isFile()) {\n // A symlink is counted but never followed — following one inside a package tree can walk\n // back out into a dependency graph. Retargeting one rewrites its directory entry, which\n // moves the parent directory's mtime, so the change is still observed.\n accumulator.fileCount += 1;\n continue;\n }\n fileStats.push(\n fsPromises.stat(entryPath).then(\n (entryStats) => {\n accumulator.fileCount += 1;\n if (entryStats.mtimeMs > accumulator.maximumMtimeMs) {\n accumulator.maximumMtimeMs = entryStats.mtimeMs;\n }\n },\n () => {\n accumulator.fileCount += 1;\n },\n ),\n );\n }\n await Promise.all(fileStats);\n\n if (accumulator.fileCount + accumulator.directoryCount > MAXIMUM_OBSERVED_ENTRIES) {\n accumulator.exceededCeiling = true;\n }\n }\n}\n\n/**\n * Every APPLICATION package an introspection derivation can import: each declared service, each\n * resolved library, and the specifications package.\n *\n * ONE enumeration, shared by this observer and by the creation-plane projection's input signature\n * (#1310, seventh review G1), because both answer the same question — \"which built trees can move an\n * introspection result?\" — and two lists of one population agree only until one gains an entry.\n */\nexport function resolveIntrospectedApplicationPackageRoots(\n companionContext: Pick<CompanionContext, 'saasRoot' | 'servicesByKey' | 'resolvedLibraries' | 'resolvedSpecifications'>,\n): readonly string[] {\n const applicationRoots = new Set<string>();\n for (const serviceDefinition of Object.values(companionContext.servicesByKey)) {\n applicationRoots.add(resolve(companionContext.saasRoot, serviceDefinition.path));\n }\n for (const resolvedLibrary of Object.values(companionContext.resolvedLibraries)) {\n applicationRoots.add(resolvedLibrary.packageRoot);\n }\n if (companionContext.resolvedSpecifications) {\n applicationRoots.add(companionContext.resolvedSpecifications.packageRoot);\n }\n return [...applicationRoots];\n}\n"]}
|
|
1
|
+
{"version":3,"file":"introspection-source-state.companion.service.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/services/introspection-source-state.companion.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAG1C;;;;;;;;;;;GAWG;AACH,MAAM,0BAA0B,GAAG,EAAE,CAAC;AAEtC;;;;;;;GAOG;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C,EAAE,CAAC;QAChF,gBAAgB,CAAC,GAAG,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC;IACpD,CAAC;IACD,IAAI,gBAAgB,CAAC,sBAAsB,EAAE,CAAC;QAC5C,gBAAgB,CAAC,GAAG,CAAC,gBAAgB,CAAC,sBAAsB,CAAC,WAAW,CAAC,CAAC;IAC5E,CAAC;IACD,OAAO,CAAC,GAAG,gBAAgB,CAAC,CAAC;AAC/B,CAAC","sourcesContent":["import { promises as fsPromises } from 'node:fs';\nimport { join, resolve } from 'node:path';\nimport type { CompanionContext } from '../../context/companion-context';\n\n/**\n * How many directories are walked concurrently.\n *\n * Measured on `examples/wonder-crm` (23,758 files + 2,706 directories across the three application\n * package roots and the 19 distinct `@wildo-ai/*` roots they resolve to): 350 ms at concurrency 1,\n * **125 ms at 16**, 142 ms at 64, 134 ms at 128. The curve is flat past 16, so 16 is the point where\n * the walk stops being latency-bound without turning into an open-ended file-descriptor burst.\n *\n * The walk is deliberately ASYNC rather than the ~30 % faster synchronous form. A synchronous sweep\n * measured 175 ms on the same tree, but it holds the event loop for that whole time — and this runs\n * inside a long-lived HTTP server that is also serving the workbench.\n */\nconst DIRECTORY_WALK_CONCURRENCY = 16;\n\n/**\n * Directory names never descended into.\n *\n * `node_modules` is skipped during the walk and reached only through the explicit `@wildo-ai/*`\n * roots below: descending into it from an application package would sweep the app's entire\n * dependency graph (hundreds of thousands of files) to learn nothing the resolved engine roots do\n * not already say.\n */\nconst SKIPPED_DIRECTORY_NAMES = new Set(['node_modules', '.git']);\n\n/**\n * A ceiling on how much this observer will walk before it gives up on caching.\n *\n * Chosen ~10x above the measured 26k-entry dogfood application, so it can only be reached by a\n * pathological root (a `dist` holding a build cache, an application that vendored something large).\n * Crossing it does not disable the walk half-way and report a plausible number — it returns\n * `bounded: false`, which the caller MUST read as \"do not cache this derivation\". Failing toward\n * re-deriving is the only safe direction here: an under-observed token is a cache key that stops\n * moving when the source does.\n */\nconst MAXIMUM_OBSERVED_ENTRIES = 250_000;\n\n/**\n * What a completed sweep learned about the source that feeds an introspection derivation.\n */\nexport interface IntrospectionSourceStateObservation {\n /**\n * The comparable value. Two observations with the same token describe the same source tree; a\n * different token means SOMETHING moved and every cached derivation is void.\n */\n token: string;\n /**\n * `false` when the sweep hit {@link MAXIMUM_OBSERVED_ENTRIES}. The token is then deliberately\n * unique per observation, so a caller that ignores this flag still re-derives rather than serving\n * a stale answer.\n */\n bounded: boolean;\n /** Wall-clock cost of the sweep, for the debug line that explains a cache hit's latency. */\n durationMs: number;\n /** Number of roots actually walked (a root that does not exist yet is not one). */\n observedRootCount: number;\n /** Files plus directories visited. Reported so an operator can see why a sweep is slow. */\n observedEntryCount: number;\n /** The instant the sweep STARTED, which is the instant the token describes. */\n startedAt: number;\n}\n\ninterface SweepAccumulator {\n fileCount: number;\n directoryCount: number;\n maximumMtimeMs: number;\n exceededCeiling: boolean;\n}\n\n/**\n * Observes the state of every source tree an introspection derivation can read, as one comparable\n * token.\n *\n * ## Why a token rather than a watcher\n *\n * The companion's file watcher (`IntrospectionSourceWatcherCompanionService`) is best-effort —\n * `fs.watch` can go deaf with no error — so it only says WHEN to look; this observer says WHETHER\n * anything moved. A sweep answers that on demand, costs ~125 ms against the largest dogfood\n * application, and cannot miss an event because it does not observe events at all — it observes the\n * tree. (This paragraph said \"the companion has no file watcher\" until 2026-09-24; the watcher was\n * added on top of the observer, not instead of it.)\n *\n * ## Why mtimes rather than content\n *\n * `.claude/rules/application-creation-directive.md` forbids digests, of any kind, for any purpose,\n * and `.claude/rules/one-source-of-truth.md` Rule 0 refuses anything that is not branchable on git.\n * A content hash compared against a stored one is exactly the second-source-of-truth shape both\n * rules exist to keep out. An mtime observation stores nothing about the application: it is a\n * reading taken now, compared against a reading taken earlier in the same process, and deleting it\n * costs a re-derivation and nothing else.\n *\n * ## What the token is made of, and what each part catches\n *\n * | Component | Catches |\n * |---|---|\n * | maximum file/directory mtime | a file written in place (the ordinary edit, and every `tsc` emit) |\n * | file count | a file added or deleted |\n * | directory count | a directory added or deleted |\n * | directory mtimes, in the maximum | a RENAME, which preserves the file's own mtime and would otherwise be invisible while the file count stayed equal |\n *\n * Directory mtimes are the non-obvious member and they are load-bearing: without them,\n * `mv a.ts b.ts` moves neither the count nor any file mtime, and the cache would keep answering\n * from the pre-rename derivation for as long as nothing else in the tree moved.\n *\n * The one mutation this cannot see is an mtime pushed BACKWARD in place on a file that is not the\n * newest in the tree (`touch -t 200001010000 <file>` on an already-old file). Nothing in a dev loop\n * does that; a real editor, `tsc`, `git checkout` and pnpm's hard-link relink all move an mtime\n * forward or move a directory. Recorded rather than papered over, because a reader who assumes the\n * token is total would be assuming something false.\n *\n * ## Which trees, and why the engine ones are in there\n *\n * An application resolving `@wildo-ai/*` through `file:` links — every dogfood app does — changes\n * its derivation when the engine is rebuilt, with no application file touched. The engine bytes the\n * child actually imports are the ones pnpm hard-linked into the app's store, NOT the ones in\n * `engine/<package>/dist`, and the two are reconciled at supervised (re)start rather than continuously. So\n * the framework signal has to be the injected snapshot itself. `.wildo-runtime-signals/dev-compile-status.json`\n * was considered and rejected for exactly this: it is a LEADING indicator, moving when the engine\n * compiles and therefore possibly before the bytes this process would import have changed — which\n * would let a derivation be cached against a token that has already advanced past it, and never\n * re-derived when the injection finally lands.\n *\n * For an application consuming published `@wildo-ai/*` tarballs the same roots are simply immutable\n * between installs, so the sweep costs a little and proves the same thing.\n *\n * ## What it costs, and one narrowing that was measured and REJECTED\n *\n * 176–225 ms against `examples/wonder-crm` (23 roots, 27,050 entries), versus a 3.1–4.2 s cold\n * import of that application's specifications package alone. So a cache hit is ~15x cheaper than\n * the cheapest possible miss.\n *\n * Skipping `*.d.ts` and `*.map` would roughly halve it — they are **55 %** of the swept files\n * (8,830 maps + 4,417 declarations of 24,243) and neither can change a runtime derivation. It was\n * rejected anyway: the saving is ~90 ms nobody can perceive, and it would buy that with an\n * assumption about what a future behavior may read. No behavior under `introspection/subprocess/`\n * imports `node:fs` at all today — every one of them is a pure function of the imported module\n * graph — but that is a fact about today, and the direction to be wrong in here is toward\n * re-deriving. Recorded so the next reader does not re-derive the numbers before reaching the same\n * conclusion.\n */\nexport class IntrospectionSourceStateObserver {\n private readonly companionContext: Pick<CompanionContext, 'saasRoot' | 'companionHome' | 'servicesByKey' | 'resolvedLibraries' | 'resolvedSpecifications'>;\n private observationSequence = 0;\n private inFlight: { startedAt: number; observation: Promise<IntrospectionSourceStateObservation> } | null = null;\n\n constructor(\n companionContext: Pick<CompanionContext, 'saasRoot' | 'companionHome' | 'servicesByKey' | 'resolvedLibraries' | 'resolvedSpecifications'>,\n ) {\n this.companionContext = companionContext;\n }\n\n /**\n * Take a reading of the source trees, reusing an in-flight one ONLY when that reading started at\n * or after the caller's own arrival.\n *\n * The condition is the whole point of the coalescing. A sweep takes ~125 ms; a request arriving\n * 100 ms into someone else's sweep and adopting its token would be answered from a picture of the\n * world taken 100 ms before it asked — a window in which the operator could have saved a file. So\n * a late arrival waits for the running sweep to finish and takes a fresh one, which is slower and\n * correct, while genuinely concurrent callers share one walk, which is what the coalescing is for.\n */\n public async observe(requestedAt: number = Date.now()): Promise<IntrospectionSourceStateObservation> {\n const current = this.inFlight;\n if (current !== null && current.startedAt >= requestedAt) {\n return current.observation;\n }\n\n if (current !== null) {\n // Let the running sweep finish before starting another; two concurrent walks of the same\n // trees would only contend for the same file descriptors.\n await current.observation.catch(() => undefined);\n return this.observe(requestedAt);\n }\n\n const startedAt = Date.now();\n const observation = this.runObservation(startedAt).finally(() => {\n if (this.inFlight?.startedAt === startedAt) {\n this.inFlight = null;\n }\n });\n this.inFlight = { startedAt, observation };\n return observation;\n }\n\n private async runObservation(startedAt: number): Promise<IntrospectionSourceStateObservation> {\n const roots = await this.resolveObservedRoots();\n const accumulator: SweepAccumulator = {\n fileCount: 0,\n directoryCount: 0,\n maximumMtimeMs: 0,\n exceededCeiling: false,\n };\n\n await this.observeApplicationRootManifests(accumulator);\n await this.walk(roots, accumulator);\n\n this.observationSequence += 1;\n const bounded = !accumulator.exceededCeiling;\n const token = bounded\n ? `roots:${roots.length}|files:${accumulator.fileCount}|dirs:${accumulator.directoryCount}|mtime:${accumulator.maximumMtimeMs}`\n : `unbounded:${this.observationSequence}`;\n\n return {\n token,\n bounded,\n durationMs: Date.now() - startedAt,\n observedRootCount: roots.length,\n observedEntryCount: accumulator.fileCount + accumulator.directoryCount,\n startedAt,\n };\n }\n\n /**\n * The two ROOT populations a derivation reads from, kept apart because a watcher treats them\n * differently.\n *\n * An APPLICATION root is a package the operator edits: its `src` moves first and its `dist` moves\n * second, and only the second changes what a derivation imports —\n * `resolvePackageCompanionEntryPath` resolves the package's `exports['./companion']`, which is\n * `./dist/esm/companion-exports.js` on every application package. A FRAMEWORK root is the injected\n * `@wildo-ai/*` copy in the application's own store: dist-only bytes, hard-linked at supervised\n * (re)start, carrying no runtime-signal files of its own.\n *\n * Exposed so the watcher and the sweep observe one population rather than two enumerations that\n * agree only until one side gains an entry.\n */\n public async resolveObservedRootPopulations(): Promise<{\n readonly applicationRoots: readonly string[];\n readonly frameworkRoots: readonly string[];\n }> {\n const applicationRoots = resolveIntrospectedApplicationPackageRoots(this.companionContext);\n\n const frameworkScopeOwners = [\n ...applicationRoots,\n this.companionContext.saasRoot,\n this.companionContext.companionHome,\n ];\n const frameworkRoots = new Set<string>();\n for (const owner of frameworkScopeOwners) {\n const scopeDirectory = join(owner, 'node_modules', '@wildo-ai');\n let scopeEntries: string[];\n try {\n scopeEntries = await fsPromises.readdir(scopeDirectory);\n } catch {\n continue;\n }\n for (const scopeEntry of scopeEntries) {\n try {\n frameworkRoots.add(await fsPromises.realpath(join(scopeDirectory, scopeEntry)));\n } catch {\n // A dangling link contributes nothing to observe; its disappearance shows up as a\n // directory-mtime change on the scope directory's owner instead.\n }\n }\n }\n\n return { applicationRoots: [...applicationRoots], frameworkRoots: [...frameworkRoots] };\n }\n\n /**\n * Every tree whose bytes can reach a derivation, de-duplicated by resolved real path.\n *\n * Two families, and the second is the one a reader would not think of:\n *\n * 1. The APPLICATION package roots — every declared service, every resolved library, and the\n * specifications package. Whole roots rather than `src/` alone, because\n * `resolvePackageCompanionEntryPath` prefers a package's built `./companion` export when it\n * exists, so the child commonly imports `dist/`, not source. Sweeping both means neither\n * resolution mode has a blind spot.\n * 2. The FRAMEWORK packages, reached by reading each of those roots' (and the companion home's)\n * `node_modules/@wildo-ai` scope directory and resolving each link to its real path. Reading\n * the scope directory rather than listing package names keeps this from becoming a second\n * enumeration of the engine's package set that could drift from the real one.\n *\n * The application root itself is NOT walked recursively — its interesting children are already in\n * family 1, and descending it would pull in `.wildo-saas` (the companion's own dist plus the\n * runtime-signal files that churn on a heartbeat, which would make every token unique and every\n * cache read a miss).\n */\n private async resolveObservedRoots(): Promise<string[]> {\n const { applicationRoots, frameworkRoots } = await this.resolveObservedRootPopulations();\n return [...new Set([...applicationRoots, ...frameworkRoots])];\n }\n\n /**\n * Fold the application root's own top-level FILES in, without descending it.\n *\n * These are `pnpm-lock.yaml`, `package.json` and `wildo.saas.config.ts` — the manifests that\n * decide which third-party bytes the child imports. Without them there is a narrow but real hole:\n * an install that moves a non-`@wildo-ai` dependency changes a derivation while touching nothing\n * inside a package root, because the walk enters `node_modules` only through the resolved\n * `@wildo-ai` scope. The lockfile moves on every such install, so one shallow read closes it.\n *\n * The root is NOT descended, because doing so would pull in `.wildo-saas` — the companion's own\n * dist and the runtime-signal files that are rewritten on a heartbeat, which would make every\n * token unique and every cache read a miss.\n */\n private async observeApplicationRootManifests(accumulator: SweepAccumulator): Promise<void> {\n let entries;\n try {\n entries = await fsPromises.readdir(this.companionContext.saasRoot, { withFileTypes: true });\n } catch {\n return;\n }\n\n await Promise.all(entries.map(async (entry) => {\n if (!entry.isFile()) return;\n accumulator.fileCount += 1;\n try {\n const entryStats = await fsPromises.stat(join(this.companionContext.saasRoot, entry.name));\n if (entryStats.mtimeMs > accumulator.maximumMtimeMs) {\n accumulator.maximumMtimeMs = entryStats.mtimeMs;\n }\n } catch {\n // Counted above; a file that vanished between readdir and stat is itself a change, and the\n // count will differ on the next observation.\n }\n }));\n }\n\n /**\n * Breadth-of-tree walk with a fixed directory concurrency.\n *\n * A worker-pool built over the ROOT list was written first and was wrong: it sizes its pool from\n * the number of roots, so a single-root application would walk its whole tree one directory at a\n * time, and a worker that finds the queue momentarily empty cannot tell \"finished\" from \"another\n * worker is about to push children\". The pump below sizes on IN-FLIGHT directories instead, which\n * is the quantity the concurrency limit is actually about, and terminates on the only condition\n * that means finished: nothing queued and nothing running.\n */\n private async walk(roots: readonly string[], accumulator: SweepAccumulator): Promise<void> {\n const pending: string[] = [...roots];\n let inFlightDirectories = 0;\n\n return new Promise<void>((resolveWalk) => {\n const pump = (): void => {\n while (\n !accumulator.exceededCeiling\n && inFlightDirectories < DIRECTORY_WALK_CONCURRENCY\n && pending.length > 0\n ) {\n const directory = pending.pop() as string;\n inFlightDirectories += 1;\n void this.visitDirectory(directory, accumulator, pending).then(() => {\n inFlightDirectories -= 1;\n pump();\n });\n }\n\n if (inFlightDirectories === 0 && (pending.length === 0 || accumulator.exceededCeiling)) {\n resolveWalk();\n }\n };\n\n pump();\n });\n }\n\n /**\n * Read one directory: count it, fold its own mtime in, stat its files, and queue its children.\n *\n * Never rejects. A directory that cannot be read (an unbuilt `dist`, a permission) contributes\n * nothing and is not an error — when it appears later it is a new directory, which moves the\n * counts and invalidates every cached derivation.\n */\n private async visitDirectory(\n directory: string,\n accumulator: SweepAccumulator,\n pending: string[],\n ): Promise<void> {\n let entries;\n try {\n entries = await fsPromises.readdir(directory, { withFileTypes: true });\n } catch {\n return;\n }\n\n accumulator.directoryCount += 1;\n try {\n const directoryStats = await fsPromises.stat(directory);\n if (directoryStats.mtimeMs > accumulator.maximumMtimeMs) {\n accumulator.maximumMtimeMs = directoryStats.mtimeMs;\n }\n } catch {\n // Counted above regardless: the directory demonstrably exists, we just read it.\n }\n\n const fileStats: Promise<void>[] = [];\n for (const entry of entries) {\n if (SKIPPED_DIRECTORY_NAMES.has(entry.name)) continue;\n const entryPath = join(directory, entry.name);\n if (entry.isDirectory()) {\n pending.push(entryPath);\n continue;\n }\n if (!entry.isFile()) {\n // A symlink is counted but never followed — following one inside a package tree can walk\n // back out into a dependency graph. Retargeting one rewrites its directory entry, which\n // moves the parent directory's mtime, so the change is still observed.\n accumulator.fileCount += 1;\n continue;\n }\n fileStats.push(\n fsPromises.stat(entryPath).then(\n (entryStats) => {\n accumulator.fileCount += 1;\n if (entryStats.mtimeMs > accumulator.maximumMtimeMs) {\n accumulator.maximumMtimeMs = entryStats.mtimeMs;\n }\n },\n () => {\n accumulator.fileCount += 1;\n },\n ),\n );\n }\n await Promise.all(fileStats);\n\n if (accumulator.fileCount + accumulator.directoryCount > MAXIMUM_OBSERVED_ENTRIES) {\n accumulator.exceededCeiling = true;\n }\n }\n}\n\n/**\n * Every APPLICATION package an introspection derivation can import: each declared service, each\n * resolved library, and the specifications package.\n *\n * ONE enumeration, shared by this observer and by the creation-plane projection's input signature\n * (#1310, seventh review G1), because both answer the same question — \"which built trees can move an\n * introspection result?\" — and two lists of one population agree only until one gains an entry.\n */\nexport function resolveIntrospectedApplicationPackageRoots(\n companionContext: Pick<CompanionContext, 'saasRoot' | 'servicesByKey' | 'resolvedLibraries' | 'resolvedSpecifications'>,\n): readonly string[] {\n const applicationRoots = new Set<string>();\n for (const serviceDefinition of Object.values(companionContext.servicesByKey)) {\n applicationRoots.add(resolve(companionContext.saasRoot, serviceDefinition.path));\n }\n for (const resolvedLibrary of Object.values(companionContext.resolvedLibraries)) {\n applicationRoots.add(resolvedLibrary.packageRoot);\n }\n if (companionContext.resolvedSpecifications) {\n applicationRoots.add(companionContext.resolvedSpecifications.packageRoot);\n }\n return [...applicationRoots];\n}\n"]}
|
package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"introspection-source-watcher.companion.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"introspection-source-watcher.companion.service.d.ts","sourceRoot":"","sources":["../../../../../../src/core/introspection/services/introspection-source-watcher.companion.service.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAIhE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,EACL,4BAA4B,EAC5B,KAAK,4CAA4C,EACjD,KAAK,6BAA6B,EACnC,MAAM,oDAAoD,CAAC;AA6B5D,qFAAqF;AACrF,MAAM,MAAM,8BAA8B,GAAG,CAC3C,QAAQ,EAAE,SAAS,6BAA6B,EAAE,EAClD,MAAM,EAAE,4BAA4B,KACjC,IAAI,CAAC;AAEV;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,kCAAkC,GAAG,MAAM,IAAI,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,qBACa,0CAA0C;IAahB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACR,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IAEnF,OAAO,CAAC,QAAQ,CAAC,eAAe;IAflC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA+D;IACxF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmC;IAC5D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmB;IAC5C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA6C;IACvE,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAiD;IAClF,OAAO,CAAC,WAAW,CAA6B;IAChD,OAAO,CAAC,cAAc,CAA6B;IACnD,uFAAuF;IACvF,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,OAAO,CAAS;gBAG8B,MAAM,EAAE,aAAa,EACN,gBAAgB,EAAE,gBAAgB,EAEpF,eAAe,EAAE,4CAA4C;IAOhF,kGAAkG;IAC3F,YAAY,CAAC,QAAQ,EAAE,8BAA8B,GAAG,MAAM,IAAI;IAKzE,wGAAwG;IACjG,eAAe,CAAC,QAAQ,EAAE,kCAAkC,GAAG,MAAM,IAAI;IAKhF;;;;;;OAMG;IACU,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAgDnC,qEAAqE;IAC9D,IAAI,IAAI,IAAI;IAkBnB;;;;;;;;;;;OAWG;YACW,mBAAmB;IAajC,4FAA4F;IAC5F,OAAO,CAAC,mBAAmB;IAU3B;;;;;;OAMG;IACH,OAAO,CAAC,mBAAmB;IAU3B;;;;;;;OAOG;YACW,SAAS;CAsCxB"}
|
package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"introspection-source-watcher.companion.service.js","sourceRoot":"","sources":["../../../../../src/core/introspection/services/introspection-source-watcher.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAkB,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAErF,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAE5E,OAAO,EAAE,gCAAgC,EAAE,MAAM,gDAAgD,CAAC;AAClG,OAAO,EACL,4BAA4B,GAG7B,MAAM,oDAAoD,CAAC;AAE5D;;;;;;;;;;;GAWG;AACH,MAAM,eAAe,GAAG,GAAG,CAAC;AAE5B;;;;;;;GAOG;AACH,MAAM,0BAA0B,GAAG,MAAM,CAAC;AAE1C,kGAAkG;AAClG,MAAM,wBAAwB,GAAG,8BAA8B,CAAC;AAsBhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AAEI,IAAM,0CAA0C,GAAhD,MAAM,0CAA0C;IAaC;IACe;IA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,UAAU,EAAE;IAcR,WAAA,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;IAChD,WAAA,MAAM,CAAC,uBAAuB,CAAC,mCAAmC,CAAC,CAAA;;GAf3D,0CAA0C,CAgNtD","sourcesContent":["import { watch, type FSWatcher } from 'node:fs';\nimport { join } from 'node:path';\nimport { inject, injectable } from 'inversify';\nimport type { LoggerService } from '@wildo-ai/saas-backend-lib';\nimport { SAAS_SERVICE_TYPES, describeCaughtError } from '@wildo-ai/saas-backend-lib';\n\nimport { COMPANION_SERVICE_TYPES } from '../../inject/models/service-types';\nimport type { CompanionContext } from '../../context/companion-context';\nimport { IntrospectionSourceStateObserver } from './introspection-source-state.companion.service';\nimport {\n IntrospectionRecompileReason,\n type IntrospectionDerivationStateCompanionService,\n type IntrospectionRecompileOutcome,\n} from './introspection-derivation-state.companion.service';\n\n/**\n * How long a burst of filesystem events is allowed to settle before a recompilation starts.\n *\n * A `tsc` emit is not one event, it is hundreds — one per emitted file, arriving over the tens of\n * milliseconds the write takes. Recompiling on the first would import a half-written `dist`. The\n * window is measured from the LAST event rather than the first, so a long emit extends it rather\n * than racing it.\n *\n * 300 ms is chosen against the thing being waited for, not by taste: it is comfortably longer than\n * the gap between two files of one emit and far shorter than the 8.9 s a cold derivation costs, so\n * the wait is invisible next to the work it protects.\n */\nconst EVENT_SETTLE_MS = 300;\n\n/**\n * How often the reconciliation sweep runs when the watcher believes nothing has happened.\n *\n * This is the backstop for a missed event, and its period is a direct trade: it is the longest a\n * missed mutation can go unnoticed. The sweep costs 180–225 ms of filesystem work on a dogfood\n * application, so at 30 s it is a 0.7 % duty cycle — cheap enough to leave on permanently, which is\n * the only kind of backstop that is actually running when it is needed.\n */\nconst RECONCILIATION_INTERVAL_MS = 30_000;\n\n/** The name this authority registers under, so a log line says which mechanism owns freshness. */\nconst FRESHNESS_AUTHORITY_NAME = 'introspection-source-watcher';\n\n/** A consumer notified after every recompilation that actually changed something. */\nexport type IntrospectionRecompileListener = (\n outcomes: readonly IntrospectionRecompileOutcome[],\n reason: IntrospectionRecompileReason,\n) => void;\n\n/**\n * A consumer notified when a burst of filesystem events has SETTLED — before, and independently of,\n * whether any introspection derivation turns out to have changed.\n *\n * A separate seam from {@link IntrospectionRecompileListener} because the two answer different\n * questions. That one says \"an introspection derivation's rows moved\"; this one says \"the bytes this\n * watcher covers just moved\". The creation plane (#1310) needs the second: its boards read the\n * working tree, git and the packages' built companion trees — some through introspection, most not —\n * so an emit that changes no introspection row can still change which playbook is eligible, and\n * waiting for a recompilation to report a change would miss exactly those. The creation plane\n * answers the event by re-reading its own input signature, which signs those built trees.\n */\nexport type IntrospectionSourceSettledListener = () => void;\n\n/**\n * Watches the bytes an introspection derivation actually imports, and drives recompilation from\n * them rather than from somebody asking for a read.\n *\n * ## Why this watches `dist`, and never `src`\n *\n * The introspection child imports a package's built `./companion` export:\n * `resolvePackageCompanionEntryPath` is called with no options, so it resolves the package's\n * `exports['./companion']`, which is `./dist/esm/companion-exports.js` on every application package.\n * A derivation therefore cannot change until the emit lands.\n *\n * Watching `src` would fire on the operator's keystroke — BEFORE the input to the derivation exists.\n * Under eager recompilation that means importing the previous `dist`, computing a diff against it,\n * and publishing a change that describes a state the application was never in. The accepted-\n * generation manifests and the emitted trees are TRAILING signals: they move after the bytes are\n * final, which is the only moment at which recompiling answers the right question.\n *\n * ## Why the framework dimension is watched separately\n *\n * An application resolves `@wildo-ai/*` through `file:` links, and those bytes are hard-linked into\n * the application's own pnpm store. That copy carries no `.wildo-runtime-signals` of its own\n * (verified), so it has no completion signal to subscribe to and the injected bytes themselves are\n * the only coincident evidence. This is also why the framework's own\n * `.wildo-runtime-signals/dev-compile-status.json` is NOT used: it advances when the framework\n * compiles, which is BEFORE the reconciliation that copies those bytes into the application — a\n * leading indicator, and acting on it would cache a derivation against a token it has already\n * passed.\n *\n * ## Why `node:fs` rather than chokidar\n *\n * `fs.watch({ recursive: true })` is supported on every platform this repository's Node baseline\n * runs, and it is what chokidar itself sits on. Taking the dependency would put a package into the\n * companion's RUNTIME closure, and the companion is delivered as a dist artifact into every\n * generated application — so a convenience here becomes an install obligation for every application\n * built with Wildo. The event coalescing chokidar is usually wanted for is\n * {@link EVENT_SETTLE_MS} below, which is nine lines.\n *\n * ## What a missed event costs\n *\n * Nothing permanent, by construction. `fs.watch` is best-effort on every platform, so the watcher is\n * never the only mechanism: {@link RECONCILIATION_INTERVAL_MS} re-observes on a timer, and the state\n * service compares a source token before recompiling anything. A missed event delays a\n * recompilation; it cannot make one wrong.\n */\n@injectable()\nexport class IntrospectionSourceWatcherCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n private readonly observer: IntrospectionSourceStateObserver;\n private readonly watchers: FSWatcher[] = [];\n private readonly listeners = new Set<IntrospectionRecompileListener>();\n private readonly settledListeners = new Set<IntrospectionSourceSettledListener>();\n private settleTimer: NodeJS.Timeout | undefined;\n private reconcileTimer: NodeJS.Timeout | undefined;\n /** Guards against a reconciliation and a settle firing into the same recompilation. */\n private recompiling: Promise<void> | undefined;\n private started = false;\n\n constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.IntrospectionDerivationStateService)\n private readonly derivationState: IntrospectionDerivationStateCompanionService,\n ) {\n this.logDebug = this.logger.debugByType('IntrospectionSourceWatcher');\n this.logger.setDebugTypeLogging('IntrospectionSourceWatcher', true);\n this.observer = new IntrospectionSourceStateObserver(this.companionContext);\n }\n\n /** Register a consumer of recompilation outcomes — the seam the WebSocket notifier plugs into. */\n public onRecompiled(listener: IntrospectionRecompileListener): () => void {\n this.listeners.add(listener);\n return () => this.listeners.delete(listener);\n }\n\n /** Register a consumer of settled source movements — see {@link IntrospectionSourceSettledListener}. */\n public onSourceSettled(listener: IntrospectionSourceSettledListener): () => void {\n this.settledListeners.add(listener);\n return () => this.settledListeners.delete(listener);\n }\n\n /**\n * Begin watching, and promote the derivation state out of per-read observation.\n *\n * Promotion happens only once at least one watch target was successfully established. A companion\n * whose every target failed stays in `OBSERVE_PER_READ`, which is slower and correct, rather than\n * claiming a freshness it does not have.\n */\n public async start(): Promise<void> {\n if (this.started) return;\n this.started = true;\n\n const targets = await this.resolveWatchTargets();\n for (const target of targets) {\n try {\n const watcher = watch(target, { recursive: true, persistent: false }, () => this.noteFilesystemEvent());\n watcher.on('error', (error) => {\n this.logger.warn('Introspection source watcher target failed', {\n target,\n error: describeCaughtError(error),\n });\n });\n this.watchers.push(watcher);\n } catch (error) {\n // A target that does not exist yet is normal — an application package whose `dist` has never\n // been built has no directory to watch. It is picked up by the reconciliation sweep, and by\n // the next start after it exists.\n this.logDebug('Introspection source watch target not established', {\n target,\n error: describeCaughtError(error),\n });\n }\n }\n\n if (this.watchers.length === 0) {\n this.logger.warn(\n 'Introspection source watcher established no targets; derivation freshness stays on per-read observation',\n { attemptedTargetCount: targets.length },\n );\n return;\n }\n\n this.reconcileTimer = setInterval(() => {\n void this.recompile(IntrospectionRecompileReason.RECONCILIATION);\n }, RECONCILIATION_INTERVAL_MS);\n this.reconcileTimer.unref?.();\n\n this.derivationState.registerFreshnessAuthority(FRESHNESS_AUTHORITY_NAME);\n this.logger.info('Introspection source watcher started', {\n watchTargetCount: this.watchers.length,\n attemptedTargetCount: targets.length,\n settleMs: EVENT_SETTLE_MS,\n reconciliationIntervalMs: RECONCILIATION_INTERVAL_MS,\n });\n }\n\n /** Stop watching and hand freshness back to per-read observation. */\n public stop(): void {\n if (!this.started) return;\n this.started = false;\n if (this.settleTimer) clearTimeout(this.settleTimer);\n if (this.reconcileTimer) clearInterval(this.reconcileTimer);\n this.settleTimer = undefined;\n this.reconcileTimer = undefined;\n for (const watcher of this.watchers) {\n try {\n watcher.close();\n } catch {\n // Closing an already-failed watcher is not a condition anybody can act on.\n }\n }\n this.watchers.length = 0;\n this.derivationState.noteFreshnessAuthorityLost('watcher stopped');\n }\n\n /**\n * The directories whose contents can change a derivation's answer.\n *\n * Application roots contribute their EMITTED surfaces only — `dist`, because that is what the\n * child imports, and `.wildo-runtime-signals`, because that is where the accepted-generation\n * manifest lands when an emit is finalized. The root itself is deliberately not watched\n * recursively: it contains `src`, whose events lead the derivation (see the class docstring), and\n * `.wildo-saas`, whose runtime-signal files churn on a heartbeat and would keep the settle window\n * permanently open.\n *\n * Framework roots are watched whole, because the injected copy is dist-only already.\n */\n private async resolveWatchTargets(): Promise<readonly string[]> {\n const { applicationRoots, frameworkRoots } = await this.observer.resolveObservedRootPopulations();\n const targets = new Set<string>();\n for (const applicationRoot of applicationRoots) {\n targets.add(join(applicationRoot, 'dist'));\n targets.add(join(applicationRoot, '.wildo-runtime-signals'));\n }\n for (const frameworkRoot of frameworkRoots) {\n targets.add(frameworkRoot);\n }\n return [...targets];\n }\n\n /** Restart the settle window. Called on every filesystem event, so it must stay trivial. */\n private noteFilesystemEvent(): void {\n if (this.settleTimer) clearTimeout(this.settleTimer);\n this.settleTimer = setTimeout(() => {\n this.settleTimer = undefined;\n this.notifySourceSettled();\n void this.recompile(IntrospectionRecompileReason.SOURCE_MUTATION);\n }, EVENT_SETTLE_MS);\n this.settleTimer.unref?.();\n }\n\n /**\n * Tell the settled-source consumers, each isolated from the others and from the recompilation.\n *\n * Called BEFORE the recompile rather than after it: a recompilation imports the whole application\n * and can take seconds, and a consumer asking \"did my inputs move?\" should not wait behind a\n * question it did not ask.\n */\n private notifySourceSettled(): void {\n for (const listener of this.settledListeners) {\n try {\n listener();\n } catch (error) {\n this.logger.warn('Introspection source-settled listener failed', { error: describeCaughtError(error) });\n }\n }\n }\n\n /**\n * Recompile, at most one at a time.\n *\n * Serialized rather than queued: a second trigger arriving while a recompilation runs describes a\n * tree the running recompilation may already have observed, and if it does not, the reconciliation\n * sweep will see it. Queueing would let a burst of emits stack N full application imports behind\n * each other, which is the cost this whole change exists to remove.\n */\n private async recompile(reason: IntrospectionRecompileReason): Promise<void> {\n if (this.recompiling) return this.recompiling;\n\n this.recompiling = (async () => {\n try {\n const { moved, outcomes } = await this.derivationState.recompileIfSourceMoved(reason);\n if (!moved) return;\n const changed = outcomes.filter((outcome) => outcome.changed);\n this.logDebug('Introspection recompilation completed', {\n reason,\n derivationCount: outcomes.length,\n changedCount: changed.length,\n });\n if (changed.length === 0) return;\n for (const listener of this.listeners) {\n try {\n listener(changed, reason);\n } catch (error) {\n // A listener is a notifier. Its failure must not stop the recompilation that produced\n // the state, nor the next listener from hearing about it.\n this.logger.warn('Introspection recompile listener failed', {\n reason,\n error: describeCaughtError(error),\n });\n }\n }\n } catch (error) {\n this.logger.warn('Introspection recompilation failed', {\n reason,\n error: describeCaughtError(error),\n });\n } finally {\n this.recompiling = undefined;\n }\n })();\n\n return this.recompiling;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"introspection-source-watcher.companion.service.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/services/introspection-source-watcher.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAkB,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAErF,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAE5E,OAAO,EAAE,gCAAgC,EAAE,MAAM,gDAAgD,CAAC;AAClG,OAAO,EACL,4BAA4B,GAG7B,MAAM,oDAAoD,CAAC;AAE5D;;;;;;;;;;;GAWG;AACH,MAAM,eAAe,GAAG,GAAG,CAAC;AAE5B;;;;;;;GAOG;AACH,MAAM,0BAA0B,GAAG,MAAM,CAAC;AAE1C,kGAAkG;AAClG,MAAM,wBAAwB,GAAG,8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SAAS,CAAC;YAC/B,CAAC;QACH,CAAC,CAAC,EAAE,CAAC;QAEL,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;CACF,CAAA;AAhNY,0CAA0C;IADtD,UAAU,EAAE;IAcR,WAAA,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;IAChD,WAAA,MAAM,CAAC,uBAAuB,CAAC,mCAAmC,CAAC,CAAA;;GAf3D,0CAA0C,CAgNtD","sourcesContent":["import { watch, type FSWatcher } from 'node:fs';\nimport { join } from 'node:path';\nimport { inject, injectable } from 'inversify';\nimport type { LoggerService } from '@wildo-ai/saas-backend-lib';\nimport { SAAS_SERVICE_TYPES, describeCaughtError } from '@wildo-ai/saas-backend-lib';\n\nimport { COMPANION_SERVICE_TYPES } from '../../inject/models/service-types';\nimport type { CompanionContext } from '../../context/companion-context';\nimport { IntrospectionSourceStateObserver } from './introspection-source-state.companion.service';\nimport {\n IntrospectionRecompileReason,\n type IntrospectionDerivationStateCompanionService,\n type IntrospectionRecompileOutcome,\n} from './introspection-derivation-state.companion.service';\n\n/**\n * How long a burst of filesystem events is allowed to settle before a recompilation starts.\n *\n * A `tsc` emit is not one event, it is hundreds — one per emitted file, arriving over the tens of\n * milliseconds the write takes. Recompiling on the first would import a half-written `dist`. The\n * window is measured from the LAST event rather than the first, so a long emit extends it rather\n * than racing it.\n *\n * 300 ms is chosen against the thing being waited for, not by taste: it is comfortably longer than\n * the gap between two files of one emit and far shorter than the 8.9 s a cold derivation costs, so\n * the wait is invisible next to the work it protects.\n */\nconst EVENT_SETTLE_MS = 300;\n\n/**\n * How often the reconciliation sweep runs when the watcher believes nothing has happened.\n *\n * This is the backstop for a missed event, and its period is a direct trade: it is the longest a\n * missed mutation can go unnoticed. The sweep costs 180–225 ms of filesystem work on a dogfood\n * application, so at 30 s it is a 0.7 % duty cycle — cheap enough to leave on permanently, which is\n * the only kind of backstop that is actually running when it is needed.\n */\nconst RECONCILIATION_INTERVAL_MS = 30_000;\n\n/** The name this authority registers under, so a log line says which mechanism owns freshness. */\nconst FRESHNESS_AUTHORITY_NAME = 'introspection-source-watcher';\n\n/** A consumer notified after every recompilation that actually changed something. */\nexport type IntrospectionRecompileListener = (\n outcomes: readonly IntrospectionRecompileOutcome[],\n reason: IntrospectionRecompileReason,\n) => void;\n\n/**\n * A consumer notified when a burst of filesystem events has SETTLED — before, and independently of,\n * whether any introspection derivation turns out to have changed.\n *\n * A separate seam from {@link IntrospectionRecompileListener} because the two answer different\n * questions. That one says \"an introspection derivation's rows moved\"; this one says \"the bytes this\n * watcher covers just moved\". The creation plane (#1310) needs the second: its boards read the\n * working tree, git and the packages' built companion trees — some through introspection, most not —\n * so an emit that changes no introspection row can still change which playbook is eligible, and\n * waiting for a recompilation to report a change would miss exactly those. The creation plane\n * answers the event by re-reading its own input signature, which signs those built trees.\n */\nexport type IntrospectionSourceSettledListener = () => void;\n\n/**\n * Watches the bytes an introspection derivation actually imports, and drives recompilation from\n * them rather than from somebody asking for a read.\n *\n * ## Why this watches `dist`, and never `src`\n *\n * The introspection child imports a package's built `./companion` export:\n * `resolvePackageCompanionEntryPath` is called with no options, so it resolves the package's\n * `exports['./companion']`, which is `./dist/esm/companion-exports.js` on every application package.\n * A derivation therefore cannot change until the emit lands.\n *\n * Watching `src` would fire on the operator's keystroke — BEFORE the input to the derivation exists.\n * Under eager recompilation that means importing the previous `dist`, computing a diff against it,\n * and publishing a change that describes a state the application was never in. The accepted-\n * generation manifests and the emitted trees are TRAILING signals: they move after the bytes are\n * final, which is the only moment at which recompiling answers the right question.\n *\n * ## Why the framework dimension is watched separately\n *\n * An application resolves `@wildo-ai/*` through `file:` links, and those bytes are hard-linked into\n * the application's own pnpm store. That copy carries no `.wildo-runtime-signals` of its own\n * (verified), so it has no completion signal to subscribe to and the injected bytes themselves are\n * the only coincident evidence. This is also why the framework's own\n * `.wildo-runtime-signals/dev-compile-status.json` is NOT used: it advances when the framework\n * compiles, which is BEFORE the reconciliation that copies those bytes into the application — a\n * leading indicator, and acting on it would cache a derivation against a token it has already\n * passed.\n *\n * ## Why `node:fs` rather than chokidar\n *\n * `fs.watch({ recursive: true })` is supported on every platform this repository's Node baseline\n * runs, and it is what chokidar itself sits on. Taking the dependency would put a package into the\n * companion's RUNTIME closure, and the companion is delivered as a dist artifact into every\n * generated application — so a convenience here becomes an install obligation for every application\n * built with Wildo. The event coalescing chokidar is usually wanted for is\n * {@link EVENT_SETTLE_MS} below, which is nine lines.\n *\n * ## What a missed event costs\n *\n * Nothing permanent, by construction. `fs.watch` is best-effort on every platform, so the watcher is\n * never the only mechanism: {@link RECONCILIATION_INTERVAL_MS} re-observes on a timer, and the state\n * service compares a source token before recompiling anything. A missed event delays a\n * recompilation; it cannot make one wrong.\n */\n@injectable()\nexport class IntrospectionSourceWatcherCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n private readonly observer: IntrospectionSourceStateObserver;\n private readonly watchers: FSWatcher[] = [];\n private readonly listeners = new Set<IntrospectionRecompileListener>();\n private readonly settledListeners = new Set<IntrospectionSourceSettledListener>();\n private settleTimer: NodeJS.Timeout | undefined;\n private reconcileTimer: NodeJS.Timeout | undefined;\n /** Guards against a reconciliation and a settle firing into the same recompilation. */\n private recompiling: Promise<void> | undefined;\n private started = false;\n\n constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.IntrospectionDerivationStateService)\n private readonly derivationState: IntrospectionDerivationStateCompanionService,\n ) {\n this.logDebug = this.logger.debugByType('IntrospectionSourceWatcher');\n this.logger.setDebugTypeLogging('IntrospectionSourceWatcher', true);\n this.observer = new IntrospectionSourceStateObserver(this.companionContext);\n }\n\n /** Register a consumer of recompilation outcomes — the seam the WebSocket notifier plugs into. */\n public onRecompiled(listener: IntrospectionRecompileListener): () => void {\n this.listeners.add(listener);\n return () => this.listeners.delete(listener);\n }\n\n /** Register a consumer of settled source movements — see {@link IntrospectionSourceSettledListener}. */\n public onSourceSettled(listener: IntrospectionSourceSettledListener): () => void {\n this.settledListeners.add(listener);\n return () => this.settledListeners.delete(listener);\n }\n\n /**\n * Begin watching, and promote the derivation state out of per-read observation.\n *\n * Promotion happens only once at least one watch target was successfully established. A companion\n * whose every target failed stays in `OBSERVE_PER_READ`, which is slower and correct, rather than\n * claiming a freshness it does not have.\n */\n public async start(): Promise<void> {\n if (this.started) return;\n this.started = true;\n\n const targets = await this.resolveWatchTargets();\n for (const target of targets) {\n try {\n const watcher = watch(target, { recursive: true, persistent: false }, () => this.noteFilesystemEvent());\n watcher.on('error', (error) => {\n this.logger.warn('Introspection source watcher target failed', {\n target,\n error: describeCaughtError(error),\n });\n });\n this.watchers.push(watcher);\n } catch (error) {\n // A target that does not exist yet is normal — an application package whose `dist` has never\n // been built has no directory to watch. It is picked up by the reconciliation sweep, and by\n // the next start after it exists.\n this.logDebug('Introspection source watch target not established', {\n target,\n error: describeCaughtError(error),\n });\n }\n }\n\n if (this.watchers.length === 0) {\n this.logger.warn(\n 'Introspection source watcher established no targets; derivation freshness stays on per-read observation',\n { attemptedTargetCount: targets.length },\n );\n return;\n }\n\n this.reconcileTimer = setInterval(() => {\n void this.recompile(IntrospectionRecompileReason.RECONCILIATION);\n }, RECONCILIATION_INTERVAL_MS);\n this.reconcileTimer.unref?.();\n\n this.derivationState.registerFreshnessAuthority(FRESHNESS_AUTHORITY_NAME);\n this.logger.info('Introspection source watcher started', {\n watchTargetCount: this.watchers.length,\n attemptedTargetCount: targets.length,\n settleMs: EVENT_SETTLE_MS,\n reconciliationIntervalMs: RECONCILIATION_INTERVAL_MS,\n });\n }\n\n /** Stop watching and hand freshness back to per-read observation. */\n public stop(): void {\n if (!this.started) return;\n this.started = false;\n if (this.settleTimer) clearTimeout(this.settleTimer);\n if (this.reconcileTimer) clearInterval(this.reconcileTimer);\n this.settleTimer = undefined;\n this.reconcileTimer = undefined;\n for (const watcher of this.watchers) {\n try {\n watcher.close();\n } catch {\n // Closing an already-failed watcher is not a condition anybody can act on.\n }\n }\n this.watchers.length = 0;\n this.derivationState.noteFreshnessAuthorityLost('watcher stopped');\n }\n\n /**\n * The directories whose contents can change a derivation's answer.\n *\n * Application roots contribute their EMITTED surfaces only — `dist`, because that is what the\n * child imports, and `.wildo-runtime-signals`, because that is where the accepted-generation\n * manifest lands when an emit is finalized. The root itself is deliberately not watched\n * recursively: it contains `src`, whose events lead the derivation (see the class docstring), and\n * `.wildo-saas`, whose runtime-signal files churn on a heartbeat and would keep the settle window\n * permanently open.\n *\n * Framework roots are watched whole, because the injected copy is dist-only already.\n */\n private async resolveWatchTargets(): Promise<readonly string[]> {\n const { applicationRoots, frameworkRoots } = await this.observer.resolveObservedRootPopulations();\n const targets = new Set<string>();\n for (const applicationRoot of applicationRoots) {\n targets.add(join(applicationRoot, 'dist'));\n targets.add(join(applicationRoot, '.wildo-runtime-signals'));\n }\n for (const frameworkRoot of frameworkRoots) {\n targets.add(frameworkRoot);\n }\n return [...targets];\n }\n\n /** Restart the settle window. Called on every filesystem event, so it must stay trivial. */\n private noteFilesystemEvent(): void {\n if (this.settleTimer) clearTimeout(this.settleTimer);\n this.settleTimer = setTimeout(() => {\n this.settleTimer = undefined;\n this.notifySourceSettled();\n void this.recompile(IntrospectionRecompileReason.SOURCE_MUTATION);\n }, EVENT_SETTLE_MS);\n this.settleTimer.unref?.();\n }\n\n /**\n * Tell the settled-source consumers, each isolated from the others and from the recompilation.\n *\n * Called BEFORE the recompile rather than after it: a recompilation imports the whole application\n * and can take seconds, and a consumer asking \"did my inputs move?\" should not wait behind a\n * question it did not ask.\n */\n private notifySourceSettled(): void {\n for (const listener of this.settledListeners) {\n try {\n listener();\n } catch (error) {\n this.logger.warn('Introspection source-settled listener failed', { error: describeCaughtError(error) });\n }\n }\n }\n\n /**\n * Recompile, at most one at a time.\n *\n * Serialized rather than queued: a second trigger arriving while a recompilation runs describes a\n * tree the running recompilation may already have observed, and if it does not, the reconciliation\n * sweep will see it. Queueing would let a burst of emits stack N full application imports behind\n * each other, which is the cost this whole change exists to remove.\n */\n private async recompile(reason: IntrospectionRecompileReason): Promise<void> {\n if (this.recompiling) return this.recompiling;\n\n this.recompiling = (async () => {\n try {\n const { moved, outcomes } = await this.derivationState.recompileIfSourceMoved(reason);\n if (!moved) return;\n const changed = outcomes.filter((outcome) => outcome.changed);\n this.logDebug('Introspection recompilation completed', {\n reason,\n derivationCount: outcomes.length,\n changedCount: changed.length,\n });\n if (changed.length === 0) return;\n for (const listener of this.listeners) {\n try {\n listener(changed, reason);\n } catch (error) {\n // A listener is a notifier. Its failure must not stop the recompilation that produced\n // the state, nor the next listener from hearing about it.\n this.logger.warn('Introspection recompile listener failed', {\n reason,\n error: describeCaughtError(error),\n });\n }\n }\n } catch (error) {\n this.logger.warn('Introspection recompilation failed', {\n reason,\n error: describeCaughtError(error),\n });\n } finally {\n this.recompiling = undefined;\n }\n })();\n\n return this.recompiling;\n }\n}\n"]}
|
package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translation-placement.companion.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"translation-placement.companion.service.d.ts","sourceRoot":"","sources":["../../../../../../src/core/introspection/services/translation-placement.companion.service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,KAAK,EACV,oCAAoC,EACpC,yCAAyC,EACzC,oCAAoC,EACrC,MAAM,iCAAiC,CAAC;AAGzC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAG5F,UAAU,8BAA8B;IACtC,iBAAiB,EAAE,MA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{"version":3,"file":"translation-placement.companion.service.js","sourceRoot":"","sources":["../../../../../src/core/introspection/services/translation-placement.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAE,kBAAkB,EAAG,mBAAmB,EAAC,MAAM,4BAA4B,CAAC;AAOrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAE5E,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAoCrF,IAAM,oCAAoC,GAA1C,MAAM,oCAAoC;IAIO;IACe;IAElD;IANF,QAAQ,CAA+D;IAExF,YACsD,MAAqB,EACN,gBAAkC,EAEpF,6BAA4D;QAHzB,WAAM,GAAN,MAAM,CAAe;QACN,qBAAgB,GAAhB,gBAAgB,CAAkB;QAEpF,kCAA6B,GAA7B,6BAA6B,CAA+B;QAE7E,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,sCAAsC,CAAC,CAAC;QAChF,IAAI,CAAC,MAAM,CAAC,mBAAmB,CAAC,sCAAsC,EAAE,IAAI,CAAC,CAAC;IAChF,CAAC;IAEM,KAAK,CAAC,oBAAoB,CAC/B,UAA+C,EAAE;QAEjD,MAAM,QAAQ,GAAa,EAAE,CAAC;QAC9B,MAAM,aAAa,GAAG,OAAO,CAAC,aAAa,IAAI,IAAI,CAAC;QACpD,MAAM,eAAe,GAAG,OAAO,CAAC,eAAe,IAAI,IAAI,CAAC;QACxD,MAAM,mBAAmB,GAAG,OAAO,CAAC,mBAAmB,IAAI,IAAI,CAAC;QAChE,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;QAC3E,MAAM,kBAAkB,GAAG,cAAc;aACtC,MAAM,CAAC,CAAC,CA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AAC;YACf,MAAM,OAAO,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC;YAC3C,QAAQ,CAAC,IAAI,CAAC,GAAG,UAAU,IAAI,QAAQ,YAAY,OAAO,EAAE,CAAC,CAAC;YAC9D,IAAI,CAAC,QAAQ,CAAC,mCAAmC,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;YACtF,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;CACF,CAAA;AArKY,oCAAoC;IADhD,UAAU,EAAE;IAKR,WAAA,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;IAChD,WAAA,MAAM,CAAC,uBAAuB,CAAC,oBAAoB,CAAC,CAAA;uDACL,6BAA6B;GAPpE,oCAAoC,CAqKhD","sourcesContent":["import { inject, injectable } from 'inversify';\nimport { AppFrontendType } from '@wildo-ai/platform-config-lib';\nimport type { LoggerService } from '@wildo-ai/saas-backend-lib';\nimport { SAAS_SERVICE_TYPES , describeCaughtError} from '@wildo-ai/saas-backend-lib';\nimport type {\n CompanionArtifactPlacementDescriptor,\n CompanionEmailTemplateOwnershipDescriptor,\n CompanionResourceOwnershipDescriptor,\n} from '@wildo-ai/saas-models/companion';\nimport { CompanionArtifactClass } from '@wildo-ai/saas-models/companion';\nimport { COMPANION_SERVICE_TYPES } from '../../inject/models/service-types';\nimport type { CompanionContext } from '../../context/companion-context';\nimport { CompanionIntrospectionService } from './companion-introspection.companion.service';\nimport type { CompanionIntrospectionBehaviorId } from '../models/companion-introspection.models';\n\ninterface SharedTranslationPlacementInfo {\n carrierServiceKey: string;\n moduleIds: string[];\n contributionModuleIds: string[];\n artifactPlacements: CompanionArtifactPlacementDescriptor[];\n resourceOwnership: CompanionResourceOwnershipDescriptor[];\n}\n\ninterface FrontendTranslationPlacementInfo {\n serviceKey: string;\n artifactPlacements: CompanionArtifactPlacementDescriptor[];\n}\n\ninterface BackendEmailPlacementInfo {\n serviceKey: string;\n emailTemplateOwnership: CompanionEmailTemplateOwnershipDescriptor[];\n}\n\nexport interface TranslationPlacementSnapshot {\n declaredModuleIds: string[];\n shared: SharedTranslationPlacementInfo | null;\n frontend: FrontendTranslationPlacementInfo[];\n backendEmail: BackendEmailPlacementInfo[];\n warnings: string[];\n}\n\nexport interface TranslationPlacementSnapshotOptions {\n includeShared?: boolean;\n includeFrontend?: boolean;\n includeBackendEmail?: boolean;\n}\n\n@injectable()\nexport class TranslationPlacementCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.IntrospectionService)\n private readonly companionIntrospectionService: CompanionIntrospectionService,\n ) {\n this.logDebug = this.logger.debugByType('TranslationPlacementCompanionService');\n this.logger.setDebugTypeLogging('TranslationPlacementCompanionService', true);\n }\n\n public async getPlacementSnapshot(\n options: TranslationPlacementSnapshotOptions = {},\n ): Promise<TranslationPlacementSnapshot> {\n const warnings: string[] = [];\n const includeShared = options.includeShared ?? true;\n const includeFrontend = options.includeFrontend ?? true;\n const includeBackendEmail = options.includeBackendEmail ?? true;\n const serviceEntries = Object.entries(this.companionContext.servicesByKey);\n const backendServiceKeys = serviceEntries\n .filter(([, service]) => !service.frontendType)\n .map(([serviceKey]) => serviceKey);\n const frontendServiceKeys = serviceEntries\n .filter(([, service]) => service.frontendType === AppFrontendType.SAAS_APP)\n .map(([serviceKey]) => serviceKey);\n\n const sharedCarrierServiceKey = includeShared\n ? this.pickSharedCarrierServiceKey(\n backendServiceKeys,\n frontendServiceKeys,\n )\n : null;\n const shared = sharedCarrierServiceKey\n ? await this.loadSharedPlacement(sharedCarrierServiceKey, warnings)\n : null;\n\n const frontend = includeFrontend\n ? (\n await Promise.all(\n frontendServiceKeys.map((serviceKey) => this.loadFrontendPlacement(serviceKey, warnings)),\n )\n ).filter((entry): entry is FrontendTranslationPlacementInfo => entry !== null)\n : [];\n\n const backendEmail = includeBackendEmail\n ? (\n await Promise.all(\n backendServiceKeys.map((serviceKey) => this.loadBackendEmailPlacement(serviceKey, warnings)),\n )\n ).filter((entry): entry is BackendEmailPlacementInfo => entry !== null)\n : [];\n\n return {\n declaredModuleIds: this.companionContext.moduleIds,\n shared,\n frontend,\n backendEmail,\n warnings,\n };\n }\n\n private pickSharedCarrierServiceKey(\n backendServiceKeys: string[],\n frontendServiceKeys: string[],\n ): string | null {\n const candidates = [...backendServiceKeys, ...frontendServiceKeys];\n if (candidates.length === 0) {\n return null;\n }\n\n return [...candidates].sort((left, right) => {\n const leftCount = this.companionContext.moduleIdsByService[left]?.length ?? 0;\n const rightCount = this.companionContext.moduleIdsByService[right]?.length ?? 0;\n return rightCount - leftCount;\n })[0] ?? null;\n }\n\n private async loadSharedPlacement(\n serviceKey: string,\n warnings: string[],\n ): Promise<SharedTranslationPlacementInfo | null> {\n const data = await this.requestBehaviorData<{\n moduleIds?: string[];\n contributionModuleIds?: string[];\n artifactPlacements?: CompanionArtifactPlacementDescriptor[];\n resourceOwnership?: CompanionResourceOwnershipDescriptor[];\n }>(serviceKey, 'translation-needed-info', warnings);\n\n if (!data) {\n return null;\n }\n\n return {\n carrierServiceKey: serviceKey,\n moduleIds: data.moduleIds ?? [],\n contributionModuleIds: data.contributionModuleIds ?? [],\n artifactPlacements: data.artifactPlacements ?? [],\n resourceOwnership: data.resourceOwnership ?? [],\n };\n }\n\n private async loadFrontendPlacement(\n serviceKey: string,\n warnings: string[],\n ): Promise<FrontendTranslationPlacementInfo | null> {\n const data = await this.requestBehaviorData<{\n artifactPlacements?: CompanionArtifactPlacementDescriptor[];\n }>(serviceKey, 'frontend-artifact-placement-info', warnings);\n\n if (!data) {\n return null;\n }\n\n return {\n serviceKey,\n artifactPlacements: data.artifactPlacements ?? [],\n };\n }\n\n private async loadBackendEmailPlacement(\n serviceKey: string,\n warnings: string[],\n ): Promise<BackendEmailPlacementInfo | null> {\n const data = await this.requestBehaviorData<{\n emailTemplateOwnership?: CompanionEmailTemplateOwnershipDescriptor[];\n }>(serviceKey, 'email-template-placement-info', warnings);\n\n if (!data) {\n return null;\n }\n\n return {\n serviceKey,\n emailTemplateOwnership: data.emailTemplateOwnership ?? [],\n };\n }\n\n private async requestBehaviorData<T>(\n serviceKey: string,\n behavior: CompanionIntrospectionBehaviorId,\n warnings: string[],\n ): Promise<T | null> {\n try {\n const result = await this.companionIntrospectionService.requestInfo({\n serviceKey,\n behavior,\n });\n\n if (!result.success && 'error' in result) {\n warnings.push(\n `${serviceKey}:${behavior} failed: ${result.error.message}`,\n );\n return null;\n }\n\n return (result.data ?? null) as T | null;\n } catch (error) {\n const message = describeCaughtError(error);\n warnings.push(`${serviceKey}:${behavior} failed: ${message}`);\n this.logDebug('Placement behavior request failed', { serviceKey, behavior, message });\n return null;\n }\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"translation-placement.companion.service.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/services/translation-placement.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAE,kBAAkB,EAAG,mBAAmB,EAAC,MAAM,4BAA4B,CAAC;AAOrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAE5E,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAoCrF,IAAM,oCAAoC,GAA1C,MAAM,oCAAoC;IAIO;IACe;IAElD;IANF,QAAQ,CAA+D;IAExF,YACsD,MAAqB,EACN,gBAAkC,EAEpF,6BAA4D;QAHzB,WAAM,GAAN,MAAM,CAAe;QACN,qBAAgB,GAAhB,gBAAgB,CAAkB;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rontendType } from '@wildo-ai/platform-config-lib';\nimport type { LoggerService } from '@wildo-ai/saas-backend-lib';\nimport { SAAS_SERVICE_TYPES , describeCaughtError} from '@wildo-ai/saas-backend-lib';\nimport type {\n CompanionArtifactPlacementDescriptor,\n CompanionEmailTemplateOwnershipDescriptor,\n CompanionResourceOwnershipDescriptor,\n} from '@wildo-ai/saas-models/companion';\nimport { CompanionArtifactClass } from '@wildo-ai/saas-models/companion';\nimport { COMPANION_SERVICE_TYPES } from '../../inject/models/service-types';\nimport type { CompanionContext } from '../../context/companion-context';\nimport { CompanionIntrospectionService } from './companion-introspection.companion.service';\nimport type { CompanionIntrospectionBehaviorId } from '../models/companion-introspection.models';\n\ninterface SharedTranslationPlacementInfo {\n carrierServiceKey: string;\n moduleIds: string[];\n contributionModuleIds: string[];\n artifactPlacements: CompanionArtifactPlacementDescriptor[];\n resourceOwnership: CompanionResourceOwnershipDescriptor[];\n}\n\ninterface FrontendTranslationPlacementInfo {\n serviceKey: string;\n artifactPlacements: CompanionArtifactPlacementDescriptor[];\n}\n\ninterface BackendEmailPlacementInfo {\n serviceKey: string;\n emailTemplateOwnership: CompanionEmailTemplateOwnershipDescriptor[];\n}\n\nexport interface TranslationPlacementSnapshot {\n declaredModuleIds: string[];\n shared: SharedTranslationPlacementInfo | null;\n frontend: FrontendTranslationPlacementInfo[];\n backendEmail: BackendEmailPlacementInfo[];\n warnings: string[];\n}\n\nexport interface TranslationPlacementSnapshotOptions {\n includeShared?: boolean;\n includeFrontend?: boolean;\n includeBackendEmail?: boolean;\n}\n\n@injectable()\nexport class TranslationPlacementCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.IntrospectionService)\n private readonly companionIntrospectionService: CompanionIntrospectionService,\n ) {\n this.logDebug = this.logger.debugByType('TranslationPlacementCompanionService');\n this.logger.setDebugTypeLogging('TranslationPlacementCompanionService', true);\n }\n\n public async getPlacementSnapshot(\n options: TranslationPlacementSnapshotOptions = {},\n ): Promise<TranslationPlacementSnapshot> {\n const warnings: string[] = [];\n const includeShared = options.includeShared ?? true;\n const includeFrontend = options.includeFrontend ?? true;\n const includeBackendEmail = options.includeBackendEmail ?? true;\n const serviceEntries = Object.entries(this.companionContext.servicesByKey);\n const backendServiceKeys = serviceEntries\n .filter(([, service]) => !service.frontendType)\n .map(([serviceKey]) => serviceKey);\n const frontendServiceKeys = serviceEntries\n .filter(([, service]) => service.frontendType === AppFrontendType.SAAS_APP)\n .map(([serviceKey]) => serviceKey);\n\n const sharedCarrierServiceKey = includeShared\n ? this.pickSharedCarrierServiceKey(\n backendServiceKeys,\n frontendServiceKeys,\n )\n : null;\n const shared = sharedCarrierServiceKey\n ? await this.loadSharedPlacement(sharedCarrierServiceKey, warnings)\n : null;\n\n const frontend = includeFrontend\n ? (\n await Promise.all(\n frontendServiceKeys.map((serviceKey) => this.loadFrontendPlacement(serviceKey, warnings)),\n )\n ).filter((entry): entry is FrontendTranslationPlacementInfo => entry !== null)\n : [];\n\n const backendEmail = includeBackendEmail\n ? (\n await Promise.all(\n backendServiceKeys.map((serviceKey) => this.loadBackendEmailPlacement(serviceKey, warnings)),\n )\n ).filter((entry): entry is BackendEmailPlacementInfo => entry !== null)\n : [];\n\n return {\n declaredModuleIds: this.companionContext.moduleIds,\n shared,\n frontend,\n backendEmail,\n warnings,\n };\n }\n\n private pickSharedCarrierServiceKey(\n backendServiceKeys: string[],\n frontendServiceKeys: string[],\n ): string | null {\n const candidates = [...backendServiceKeys, ...frontendServiceKeys];\n if (candidates.length === 0) {\n return null;\n }\n\n return [...candidates].sort((left, right) => {\n const leftCount = this.companionContext.moduleIdsByService[left]?.length ?? 0;\n const rightCount = this.companionContext.moduleIdsByService[right]?.length ?? 0;\n return rightCount - leftCount;\n })[0] ?? null;\n }\n\n private async loadSharedPlacement(\n serviceKey: string,\n warnings: string[],\n ): Promise<SharedTranslationPlacementInfo | null> {\n const data = await this.requestBehaviorData<{\n moduleIds?: string[];\n contributionModuleIds?: string[];\n artifactPlacements?: CompanionArtifactPlacementDescriptor[];\n resourceOwnership?: CompanionResourceOwnershipDescriptor[];\n }>(serviceKey, 'translation-needed-info', warnings);\n\n if (!data) {\n return null;\n }\n\n return {\n carrierServiceKey: serviceKey,\n moduleIds: data.moduleIds ?? [],\n contributionModuleIds: data.contributionModuleIds ?? [],\n artifactPlacements: data.artifactPlacements ?? [],\n resourceOwnership: data.resourceOwnership ?? [],\n };\n }\n\n private async loadFrontendPlacement(\n serviceKey: string,\n warnings: string[],\n ): Promise<FrontendTranslationPlacementInfo | null> {\n const data = await this.requestBehaviorData<{\n artifactPlacements?: CompanionArtifactPlacementDescriptor[];\n }>(serviceKey, 'frontend-artifact-placement-info', warnings);\n\n if (!data) {\n return null;\n }\n\n return {\n serviceKey,\n artifactPlacements: data.artifactPlacements ?? [],\n };\n }\n\n private async loadBackendEmailPlacement(\n serviceKey: string,\n warnings: string[],\n ): Promise<BackendEmailPlacementInfo | null> {\n const data = await this.requestBehaviorData<{\n emailTemplateOwnership?: CompanionEmailTemplateOwnershipDescriptor[];\n }>(serviceKey, 'email-template-placement-info', warnings);\n\n if (!data) {\n return null;\n }\n\n return {\n serviceKey,\n emailTemplateOwnership: data.emailTemplateOwnership ?? [],\n };\n }\n\n private async requestBehaviorData<T>(\n serviceKey: string,\n behavior: CompanionIntrospectionBehaviorId,\n warnings: string[],\n ): Promise<T | null> {\n try {\n const result = await this.companionIntrospectionService.requestInfo({\n serviceKey,\n behavior,\n });\n\n if (!result.success && 'error' in result) {\n warnings.push(\n `${serviceKey}:${behavior} failed: ${result.error.message}`,\n );\n return null;\n }\n\n return (result.data ?? null) as T | null;\n } catch (error) {\n const message = describeCaughtError(error);\n warnings.push(`${serviceKey}:${behavior} failed: ${message}`);\n this.logDebug('Placement behavior request failed', { serviceKey, behavior, message });\n return null;\n }\n }\n}\n"]}
|
package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-shell-placement-content.behavior.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"app-shell-placement-content.behavior.d.ts","sourceRoot":"","sources":["../../../../../../src/core/introspection/subprocess/app-shell-placement-content.behavior.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AAOtF,OAAO,EAIL,KAAK,wBAAwB,EAE9B,MAAM,uCAAuC,CAAC;AAE/C,sGAAsG;AACtG,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,gBAAgB,CAAC;IAC1B;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB,4GAA4G;IAC5G,UAAU,EAAE,MAAM,CAAC;IACnB,qFAAqF;IACrF,QAAQ,EAAE,OAAO,CAAC;IAClB,kGAAkG;IAClG,aAAa,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAChD;;;OAGG;IACH,SAAS,EAAE,qBAAqB,EAAE,CAAC;IACnC,2FAA2F;IAC3F,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B;;;OAGG;IACH,qBAAqB,EAAE,MAAM,EAAE,CAAC;CACjC;AAED,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,EAAE,0BAA0B,EAAE,CAAC;IACvC,gGAAgG;IAChG,gBAAgB,EAAE,gBAAgB,EAAE,CAAC;CACtC;AA4ED,wBAAsB,2BAA2B,CAC/C,wBAAwB,EAAE,wBAAwB,GACjD,OAAO,CAAC,8BAA8B,CAAC,CAwFzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-shell-placement-content.behavior.js","sourceRoot":"","sources":["../../../../../src/core/introspection/subprocess/app-shell-placement-content.behavior.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AACtF,OAAO,EACL,2BAA2B,EAC3B,iCAAiC,EACjC,wBAAwB,GAEzB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,6BAA6B,EAC7B,sBAAsB,EACtB,yBAAyB,GAG1B,MAAM,uCAAuC,CAAC;AA4C/C,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC;AACrD,CAAC;AAED,8FAA8F;AAC9F,SAAS,oBAAoB,CAC3B,cAAuB,EACvB,GAAkC;IAElC,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC;QAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvE,MAAM,KAAK,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;IAClC,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,KAAK;QAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACpF,IAAI,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,EAA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,eAAe,CAAC;SACjG;QACD;YACE,OAAO,EAAE,gBAAgB,CAAC,YAAY;YACtC,OAAO,EAAE,IAAI;YACb,UAAU,EAAE,mBAAmB,CAAC,MAAM;YACtC,QAAQ,EAAE,mBAAmB,CAAC,MAAM,GAAG,CAAC;YACxC,aAAa,EAAE,EAAE,GAAG,EAAE,mBAAmB,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE;YAC9D,SAAS,EAAE,gCAAgC,CAAC,mBAAmB,EAAE,kBAAkB,CAAC;YACpF,eAAe,EAAE,mBAAmB;YACpC,qBAAqB,EAAE,EAAE;SAC1B;KACF,CAAC;IAEF,OAAO;QACL,QAAQ;QACR,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC;KAC5F,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Subprocess behavior: what the application's shell actually COMPOSES, per surface.\n *\n * ## Why this exists — no text probe can witness a shell placement\n *\n * A `SHELL_PLACEMENT` build task declares its product as `declarationRefs` drawn from the\n * PLACEMENT PLAN's vocabulary (`sidebar-capture-actions-placement`,\n * `command-menu-library-placement`, …). Those refs are addresses in the plan; nothing in the\n * authored tree is obliged to spell them, and nothing does — a sidebar section carries an\n * engine-conventional `ref: 'main'`, a command-menu entry carries a resource type and an\n * operation. So a probe looking for the plan's refs in the tree can only ever answer \"no\",\n * however completely the task did its work.\n *\n * The obvious repair — look for the SYMBOLS instead — fails for a second, independent reason:\n * `wildo init` scaffolds `app-shell.config.ts` with every `ApplicationLevelComponentType` key\n * already present, hosting the same components a built application hosts. A freshly initialised\n * application and a finished one differ in the CONTENT of those structures and never in which\n * symbols appear, so a symbol sweep answers the same for both.\n *\n * What this behavior answers is how much each surface carries, in the RESOLVED configuration — a\n * question only this subprocess can answer, which is why it is a behavior and not a check.\n *\n * ## What it CANNOT answer, measured against the real scaffold (2026-09-23)\n *\n * **A count does not separate scaffold defaults from application work.** The skeleton's `settings`\n * sidebar section ships with one child (the settings launcher), and the skeleton's engine module\n * contributes a billing command — so a freshly initialised application already reports SIDEBAR and\n * COMMAND_MENU as composed. The first version of this behavior claimed otherwise, from a pin whose\n * \"scaffold\" fixture was written by hand rather than read from `templates/saas/skeleton`, and that\n * claim was reported as a finding before it was caught. Treat `composed` as \"carries something\", never\n * as \"the application placed something\". Deciding the latter needs each entry's IDENTITY compared with\n * what the placement plan asked for (#1538).\n *\n * ## It reports; it does not judge\n *\n * An application composes AT LEAST ONE shell surface and deliberately not all of them — which\n * ones is a product decision rather than a requirement to satisfy. So this returns one row per\n * surface and no verdict. A caller asserting \"at least one composed\" and a caller asserting\n * \"this task's surface is composed\" both read the same rows; a behavior that returned a single\n * boolean would have had to pick one of those questions and would be wrong for the other.\n *\n * The same reasoning applies one level down. A module contributing NOTHING is an answer, not an\n * omission: in the application this was written against, two of three modules contribute no\n * sidebar section on purpose, because every one of their resources' placements was declined or\n * routed to the settings hub, and because module sections merge by `ref` with the last writer\n * winning — so a second `isPrimary` claim on `main` would have silently overwritten the module\n * that legitimately owns the primary workspace. A per-module reading would have scored both as\n * incomplete. The surface is the honest unit.\n *\n * ## All four placement surfaces, by IDENTITY\n *\n * Each row carries the surface's entries as the engine addresses them — launcher refs for the\n * sidebar and the command palette, settings destination refs for the user menu and the settings\n * rail — because a count cannot tell a scaffold default from an application's placement and an\n * identity can: the landing probe compares these with the subjects the placement plan decided\n * (#1538). The settings rail is read RESOLVED, so a destination the catalog does not ship (which\n * renders nothing) is not reported as carried. `settings-placement-content` still answers the\n * separate question of whether the authored rail is VALID.\n *\n * One settings entry has TWO identities: an APPLICATION destination whose target is a resource\n * operation is how a resource operation reaches the rail or the dropdown, and the placement plan\n * names it as that operation, not by the destination ref the application chose. So such an entry is\n * reported as a launcher too. Engine destinations are not: the plan names them by ref, and reporting\n * an engine destination's operation as well would make a subject the plan never considered look\n * carried.\n *\n * Composes the engine's own merge (`buildFrontendModuleRegistry`) rather than re-deriving it:\n * the merge order, the `ref` collision rule and the launcher-identity dedupe are the runtime's,\n * and a second copy here would drift from the thing it claims to describe.\n */\n\nimport { PlacementSurface } from '@wildo-ai/saas-specifications/application-creation';\nimport {\n buildFrontendModuleRegistry,\n resolveSettingsDestinationCatalog,\n resolveSettingsHubConfig,\n type SettingsHubConfig,\n} from '@wildo-ai/saas-frontend-lib';\nimport {\n ApplicationLevelComponentType,\n LauncherItemTargetKind,\n SettingsSectionTargetKind,\n type FrontendCompanionExports,\n type FrontendModule,\n} from '@wildo-ai/saas-frontend-lib/companion';\n\n/** A launcher entry exactly as the engine types it — kind plus the fields that address its target. */\nexport interface AppShellLauncherEntry {\n readonly kind: string;\n readonly resourceType?: string;\n readonly operation?: string;\n readonly viewRef?: string;\n readonly sectionRef?: string;\n}\n\nexport interface AppShellSurfaceComposition {\n surface: PlacementSurface;\n /**\n * Is the surface switched on at all? `false` means the application declared it off, which is a\n * decision — a caller must not read it as \"not yet authored\". The settings rail has no switch.\n */\n enabled: boolean;\n /** How many entries the resolved surface carries — a SUMMARY; see the file JSDoc for what it cannot say. */\n entryCount: number;\n /** `entryCount > 0` — the surface carries something (scaffold defaults included). */\n composed: boolean;\n /** Where the entries came from, so a caller can tell an app-level authoring from a module one. */\n contributedBy: { app: number; modules: number };\n /**\n * The sidebar's and the palette's entries, by identity. On the user menu and the settings rail, the\n * entries that resolve to an application destination rendering a resource operation.\n */\n launchers: AppShellLauncherEntry[];\n /** The user menu's inline entries and the settings rail's sections, by destination ref. */\n destinationRefs: string[];\n /**\n * The modules whose OWN contribution adds entries here. A landing must see their files committed\n * as well as the application's config, or it would read a composition HEAD does not hold.\n */\n contributingModuleIds: string[];\n}\n\nexport interface AppShellPlacementContentResult {\n surfaces: AppShellSurfaceComposition[];\n /** The surfaces that carry something — the set Paul's \"at least one, not all\" rule is about. */\n composedSurfaces: PlacementSurface[];\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null;\n}\n\n/** A surface key is `false` (off), `true` (on, engine defaults) or a configuration object. */\nfunction surfaceConfiguration(\n appShellConfig: unknown,\n key: ApplicationLevelComponentType,\n): { enabled: boolean; config: Record<string, unknown> | null } {\n if (!isRecord(appShellConfig)) return { enabled: false, config: null };\n const value = appShellConfig[key];\n if (value === undefined || value === false) return { enabled: false, config: null };\n if (isRecord(value)) return { enabled: true, config: value };\n return { enabled: true, config: null };\n}\n\nfunction launcherEntries(value: unknown): AppShellLauncherEntry[] {\n if (!Array.isArray(value)) return [];\n return value.filter(isRecord).map((entry) => ({\n kind: String(entry.kind ?? ''),\n ...(typeof entry.resourceType === 'string' ? { resourceType: entry.resourceType } : {}),\n ...(typeof entry.operation === 'string' ? { operation: entry.operation } : {}),\n ...(typeof entry.viewRef === 'string' ? { viewRef: entry.viewRef } : {}),\n ...(typeof entry.sectionRef === 'string' ? { sectionRef: entry.sectionRef } : {}),\n }));\n}\n\n/**\n * A sidebar's placed ROWS are the CHILDREN of its sections, never the sections themselves.\n * A module declares the section so a later placement task has somewhere to append to — the\n * application this was written against does exactly that, with an explicitly empty `children` and\n * a comment naming the task that fills it. Counting sections would score that declaration as the\n * placement it is waiting for.\n */\nfunction sidebarChildren(sections: unknown): AppShellLauncherEntry[] {\n if (!Array.isArray(sections)) return [];\n return sections.flatMap((section) => (isRecord(section) ? launcherEntries(section.children) : []));\n}\n\n/**\n * The quick-action button's actions, when the SIDEBAR hosts that button.\n *\n * A sidebar carries entries two ways: as rows of its navigation sections, and as chrome hosted at its\n * top or bottom. A placement plan can ask for an action that is deliberately NOT a destination — a\n * persistent \"add\" in the rail — and the faithful realisation is the quick-action button hosted there,\n * not a row among the rows. Reading only the rows would report that placement as missing when the rail\n * shows it. Any breakpoint counts: hosting it is the placement, and responsive visibility is a separate\n * decision the same config states.\n */\nfunction sidebarHostedQuickActions(sidebarConfig: Record<string, unknown> | null, appShellConfig: unknown): AppShellLauncherEntry[] {\n const hosted = sidebarConfig?.hostedComponents;\n if (!Array.isArray(hosted)) return [];\n const hostsQuickActions = hosted.some((entry) => isRecord(entry) && entry.componentType === ApplicationLevelComponentType.QUICK_ACTION_BUTTON);\n if (!hostsQuickActions) return [];\n return launcherEntries(surfaceConfiguration(appShellConfig, ApplicationLevelComponentType.QUICK_ACTION_BUTTON).config?.actions);\n}\n\nfunction stringArray(value: unknown): string[] {\n return Array.isArray(value) ? value.filter((entry): entry is string => typeof entry === 'string') : [];\n}\n\n/** The settings entries that are an application's resource-operation destination, as launchers. */\nfunction applicationDestinationOperations(\n refs: readonly string[],\n catalog: ReturnType<typeof resolveSettingsDestinationCatalog>,\n): AppShellLauncherEntry[] {\n return refs.flatMap((ref) => {\n if (!catalog.applicationDestinationRefs.has(ref)) return [];\n const target = catalog.byRef.get(ref)?.target;\n if (target?.kind !== SettingsSectionTargetKind.RESOURCE_OPERATION) return [];\n return [{ kind: LauncherItemTargetKind.RESOURCE_OPERATION, resourceType: target.resourceType, operation: target.operation }];\n });\n}\n\nexport async function runAppShellPlacementContent(\n frontendCompanionExports: FrontendCompanionExports,\n): Promise<AppShellPlacementContentResult> {\n const appShellConfig = frontendCompanionExports.appShellConfig as unknown;\n\n const loadFrontendModules = frontendCompanionExports.loadFrontendModules;\n const modules: FrontendModule[] = loadFrontendModules ? await loadFrontendModules() : [];\n const moduleRegistry = buildFrontendModuleRegistry(...modules);\n\n const sidebar = surfaceConfiguration(appShellConfig, ApplicationLevelComponentType.SIDEBAR);\n const commandMenu = surfaceConfiguration(appShellConfig, ApplicationLevelComponentType.COMMAND_MENU);\n // `PlacementSurface.USER_MENU` is the placement plan's name for the user dropdown; the shell\n // vocabulary calls the same surface `USER_DROPDOWN`. Mapped here, once, rather than at callers.\n const userMenu = surfaceConfiguration(appShellConfig, ApplicationLevelComponentType.USER_DROPDOWN);\n\n const sidebarFromApp = [...sidebarChildren(sidebar.config?.contentSections), ...sidebarHostedQuickActions(sidebar.config, appShellConfig)];\n const sidebarFromModules = sidebarChildren(moduleRegistry.sidebarSections);\n\n // The palette's placed entries are its static commands — the application's own `commands` and\n // every module's contribution. `searchResources` is the OMNIBOX's live record search, a different\n // affordance on the same surface: counted in the summary, never an identity, because no placement\n // decision addresses it.\n const commandsFromApp = launcherEntries(commandMenu.config?.commands);\n const commandsFromModules = launcherEntries(moduleRegistry.commandMenuItems);\n const searchResourceCount = Array.isArray(commandMenu.config?.searchResources) ? (commandMenu.config!.searchResources as unknown[]).length : 0;\n\n // The dropdown's placements are the settings-hub sections surfaced inline — `settingsEntries`.\n // `sections` is the engine's vocabulary of built-in blocks (profile, organization, logout), present\n // on every application; counting it would make this surface composed for a scaffold.\n // (The first version read a field named `settingsSectionRefs`, which does not exist, so this\n // surface always read 0 whatever the application placed.)\n const userMenuEntries = stringArray(userMenu.config?.settingsEntries);\n\n // The settings rail, RESOLVED: a destination the catalog does not ship renders nothing, so it is\n // not something the rail carries.\n const settingsHubConfig = frontendCompanionExports.settingsHubConfig as SettingsHubConfig | undefined;\n const railSections = resolveSettingsHubConfig(settingsHubConfig).sections;\n const railDestinationRefs = railSections.map((section) => section.ref);\n const destinationCatalog = resolveSettingsDestinationCatalog(settingsHubConfig);\n\n const modulesContributing = (pick: (module: FrontendModule) => unknown, read: (value: unknown) => unknown[]) =>\n modules.filter((module) => read(pick(module)).length > 0).map((module) => module.moduleId);\n\n const surfaces: AppShellSurfaceComposition[] = [\n {\n surface: PlacementSurface.SIDEBAR,\n enabled: sidebar.enabled,\n entryCount: sidebarFromApp.length + sidebarFromModules.length,\n composed: sidebarFromApp.length + sidebarFromModules.length > 0,\n contributedBy: { app: sidebarFromApp.length, modules: sidebarFromModules.length },\n launchers: [...sidebarFromApp, ...sidebarFromModules],\n destinationRefs: [],\n contributingModuleIds: modulesContributing((module) => module.sidebarSections, sidebarChildren),\n },\n {\n surface: PlacementSurface.USER_MENU,\n enabled: userMenu.enabled,\n entryCount: userMenuEntries.length,\n composed: userMenuEntries.length > 0,\n contributedBy: { app: userMenuEntries.length, modules: 0 },\n launchers: applicationDestinationOperations(userMenuEntries, destinationCatalog),\n destinationRefs: userMenuEntries,\n contributingModuleIds: [],\n },\n {\n surface: PlacementSurface.COMMAND_MENU,\n enabled: commandMenu.enabled,\n entryCount: commandsFromApp.length + commandsFromModules.length + searchResourceCount,\n composed: commandsFromApp.length + commandsFromModules.length + searchResourceCount > 0,\n contributedBy: { app: commandsFromApp.length + searchResourceCount, modules: commandsFromModules.length },\n launchers: [...commandsFromApp, ...commandsFromModules],\n destinationRefs: [],\n contributingModuleIds: modulesContributing((module) => module.commandMenuItems, launcherEntries),\n },\n {\n surface: PlacementSurface.SETTINGS_HUB,\n enabled: true,\n entryCount: railDestinationRefs.length,\n composed: railDestinationRefs.length > 0,\n contributedBy: { app: railDestinationRefs.length, modules: 0 },\n launchers: applicationDestinationOperations(railDestinationRefs, destinationCatalog),\n destinationRefs: railDestinationRefs,\n contributingModuleIds: [],\n },\n ];\n\n return {\n surfaces,\n composedSurfaces: surfaces.filter(({ composed }) => composed).map(({ surface }) => surface),\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"app-shell-placement-content.behavior.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/subprocess/app-shell-placement-content.behavior.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AACtF,OAAO,EACL,2BAA2B,EAC3B,iCAAiC,EACjC,wBAAwB,GAEzB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,6BAA6B,EAC7B,sBAAsB,EACtB,yBAAyB,GAG1B,MAAM,uCAAuC,CAAC;AA4C/C,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC;AACrD,C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,mBAAmB,CAAC,MAAM,GAAG,mBAAmB;YACrF,QAAQ,EAAE,eAAe,CAAC,MAAM,GAAG,mBAAmB,CAAC,MAAM,GAAG,mBAAmB,GAAG,CAAC;YACvF,aAAa,EAAE,EAAE,GAAG,EAAE,eAAe,CAAC,MAAM,GAAG,mBAAmB,EAAE,OAAO,EAAE,mBAAmB,CAAC,MAAM,EAAE;YACzG,SAAS,EAAE,CAAC,GAAG,eAAe,EAAE,GAAG,mBAAmB,CAAC;YACvD,eAAe,EAAE,EAAE;YACnB,qBAAqB,EAAE,mBAAmB,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,gBAAgB,EAAE,eAAe,CAAC;SACjG;QACD;YACE,OAAO,EAAE,gBAAgB,CAAC,YAAY;YACtC,OAAO,EAAE,IAAI;YACb,UAAU,EAAE,mBAAmB,CAAC,MAAM;YACtC,QAAQ,EAAE,mBAAmB,CAAC,MAAM,GAAG,CAAC;YACxC,aAAa,EAAE,EAAE,GAAG,EAAE,mBAAmB,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE;YAC9D,SAAS,EAAE,gCAAgC,CAAC,mBAAmB,EAAE,kBAAkB,CAAC;YACpF,eAAe,EAAE,mBAAmB;YACpC,qBAAqB,EAAE,EAAE;SAC1B;KACF,CAAC;IAEF,OAAO;QACL,QAAQ;QACR,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC;KAC5F,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Subprocess behavior: what the application's shell actually COMPOSES, per surface.\n *\n * ## Why this exists — no text probe can witness a shell placement\n *\n * A `SHELL_PLACEMENT` build task declares its product as `declarationRefs` drawn from the\n * PLACEMENT PLAN's vocabulary (`sidebar-capture-actions-placement`,\n * `command-menu-library-placement`, …). Those refs are addresses in the plan; nothing in the\n * authored tree is obliged to spell them, and nothing does — a sidebar section carries an\n * engine-conventional `ref: 'main'`, a command-menu entry carries a resource type and an\n * operation. So a probe looking for the plan's refs in the tree can only ever answer \"no\",\n * however completely the task did its work.\n *\n * The obvious repair — look for the SYMBOLS instead — fails for a second, independent reason:\n * `wildo init` scaffolds `app-shell.config.ts` with every `ApplicationLevelComponentType` key\n * already present, hosting the same components a built application hosts. A freshly initialised\n * application and a finished one differ in the CONTENT of those structures and never in which\n * symbols appear, so a symbol sweep answers the same for both.\n *\n * What this behavior answers is how much each surface carries, in the RESOLVED configuration — a\n * question only this subprocess can answer, which is why it is a behavior and not a check.\n *\n * ## What it CANNOT answer, measured against the real scaffold (2026-09-23)\n *\n * **A count does not separate scaffold defaults from application work.** The skeleton's `settings`\n * sidebar section ships with one child (the settings launcher), and the skeleton's engine module\n * contributes a billing command — so a freshly initialised application already reports SIDEBAR and\n * COMMAND_MENU as composed. The first version of this behavior claimed otherwise, from a pin whose\n * \"scaffold\" fixture was written by hand rather than read from `templates/saas/skeleton`, and that\n * claim was reported as a finding before it was caught. Treat `composed` as \"carries something\", never\n * as \"the application placed something\". Deciding the latter needs each entry's IDENTITY compared with\n * what the placement plan asked for (#1538).\n *\n * ## It reports; it does not judge\n *\n * An application composes AT LEAST ONE shell surface and deliberately not all of them — which\n * ones is a product decision rather than a requirement to satisfy. So this returns one row per\n * surface and no verdict. A caller asserting \"at least one composed\" and a caller asserting\n * \"this task's surface is composed\" both read the same rows; a behavior that returned a single\n * boolean would have had to pick one of those questions and would be wrong for the other.\n *\n * The same reasoning applies one level down. A module contributing NOTHING is an answer, not an\n * omission: in the application this was written against, two of three modules contribute no\n * sidebar section on purpose, because every one of their resources' placements was declined or\n * routed to the settings hub, and because module sections merge by `ref` with the last writer\n * winning — so a second `isPrimary` claim on `main` would have silently overwritten the module\n * that legitimately owns the primary workspace. A per-module reading would have scored both as\n * incomplete. The surface is the honest unit.\n *\n * ## All four placement surfaces, by IDENTITY\n *\n * Each row carries the surface's entries as the engine addresses them — launcher refs for the\n * sidebar and the command palette, settings destination refs for the user menu and the settings\n * rail — because a count cannot tell a scaffold default from an application's placement and an\n * identity can: the landing probe compares these with the subjects the placement plan decided\n * (#1538). The settings rail is read RESOLVED, so a destination the catalog does not ship (which\n * renders nothing) is not reported as carried. `settings-placement-content` still answers the\n * separate question of whether the authored rail is VALID.\n *\n * One settings entry has TWO identities: an APPLICATION destination whose target is a resource\n * operation is how a resource operation reaches the rail or the dropdown, and the placement plan\n * names it as that operation, not by the destination ref the application chose. So such an entry is\n * reported as a launcher too. Engine destinations are not: the plan names them by ref, and reporting\n * an engine destination's operation as well would make a subject the plan never considered look\n * carried.\n *\n * Composes the engine's own merge (`buildFrontendModuleRegistry`) rather than re-deriving it:\n * the merge order, the `ref` collision rule and the launcher-identity dedupe are the runtime's,\n * and a second copy here would drift from the thing it claims to describe.\n */\n\nimport { PlacementSurface } from '@wildo-ai/saas-specifications/application-creation';\nimport {\n buildFrontendModuleRegistry,\n resolveSettingsDestinationCatalog,\n resolveSettingsHubConfig,\n type SettingsHubConfig,\n} from '@wildo-ai/saas-frontend-lib';\nimport {\n ApplicationLevelComponentType,\n LauncherItemTargetKind,\n SettingsSectionTargetKind,\n type FrontendCompanionExports,\n type FrontendModule,\n} from '@wildo-ai/saas-frontend-lib/companion';\n\n/** A launcher entry exactly as the engine types it — kind plus the fields that address its target. */\nexport interface AppShellLauncherEntry {\n readonly kind: string;\n readonly resourceType?: string;\n readonly operation?: string;\n readonly viewRef?: string;\n readonly sectionRef?: string;\n}\n\nexport interface AppShellSurfaceComposition {\n surface: PlacementSurface;\n /**\n * Is the surface switched on at all? `false` means the application declared it off, which is a\n * decision — a caller must not read it as \"not yet authored\". The settings rail has no switch.\n */\n enabled: boolean;\n /** How many entries the resolved surface carries — a SUMMARY; see the file JSDoc for what it cannot say. */\n entryCount: number;\n /** `entryCount > 0` — the surface carries something (scaffold defaults included). */\n composed: boolean;\n /** Where the entries came from, so a caller can tell an app-level authoring from a module one. */\n contributedBy: { app: number; modules: number };\n /**\n * The sidebar's and the palette's entries, by identity. On the user menu and the settings rail, the\n * entries that resolve to an application destination rendering a resource operation.\n */\n launchers: AppShellLauncherEntry[];\n /** The user menu's inline entries and the settings rail's sections, by destination ref. */\n destinationRefs: string[];\n /**\n * The modules whose OWN contribution adds entries here. A landing must see their files committed\n * as well as the application's config, or it would read a composition HEAD does not hold.\n */\n contributingModuleIds: string[];\n}\n\nexport interface AppShellPlacementContentResult {\n surfaces: AppShellSurfaceComposition[];\n /** The surfaces that carry something — the set Paul's \"at least one, not all\" rule is about. */\n composedSurfaces: PlacementSurface[];\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null;\n}\n\n/** A surface key is `false` (off), `true` (on, engine defaults) or a configuration object. */\nfunction surfaceConfiguration(\n appShellConfig: unknown,\n key: ApplicationLevelComponentType,\n): { enabled: boolean; config: Record<string, unknown> | null } {\n if (!isRecord(appShellConfig)) return { enabled: false, config: null };\n const value = appShellConfig[key];\n if (value === undefined || value === false) return { enabled: false, config: null };\n if (isRecord(value)) return { enabled: true, config: value };\n return { enabled: true, config: null };\n}\n\nfunction launcherEntries(value: unknown): AppShellLauncherEntry[] {\n if (!Array.isArray(value)) return [];\n return value.filter(isRecord).map((entry) => ({\n kind: String(entry.kind ?? ''),\n ...(typeof entry.resourceType === 'string' ? { resourceType: entry.resourceType } : {}),\n ...(typeof entry.operation === 'string' ? { operation: entry.operation } : {}),\n ...(typeof entry.viewRef === 'string' ? { viewRef: entry.viewRef } : {}),\n ...(typeof entry.sectionRef === 'string' ? { sectionRef: entry.sectionRef } : {}),\n }));\n}\n\n/**\n * A sidebar's placed ROWS are the CHILDREN of its sections, never the sections themselves.\n * A module declares the section so a later placement task has somewhere to append to — the\n * application this was written against does exactly that, with an explicitly empty `children` and\n * a comment naming the task that fills it. Counting sections would score that declaration as the\n * placement it is waiting for.\n */\nfunction sidebarChildren(sections: unknown): AppShellLauncherEntry[] {\n if (!Array.isArray(sections)) return [];\n return sections.flatMap((section) => (isRecord(section) ? launcherEntries(section.children) : []));\n}\n\n/**\n * The quick-action button's actions, when the SIDEBAR hosts that button.\n *\n * A sidebar carries entries two ways: as rows of its navigation sections, and as chrome hosted at its\n * top or bottom. A placement plan can ask for an action that is deliberately NOT a destination — a\n * persistent \"add\" in the rail — and the faithful realisation is the quick-action button hosted there,\n * not a row among the rows. Reading only the rows would report that placement as missing when the rail\n * shows it. Any breakpoint counts: hosting it is the placement, and responsive visibility is a separate\n * decision the same config states.\n */\nfunction sidebarHostedQuickActions(sidebarConfig: Record<string, unknown> | null, appShellConfig: unknown): AppShellLauncherEntry[] {\n const hosted = sidebarConfig?.hostedComponents;\n if (!Array.isArray(hosted)) return [];\n const hostsQuickActions = hosted.some((entry) => isRecord(entry) && entry.componentType === ApplicationLevelComponentType.QUICK_ACTION_BUTTON);\n if (!hostsQuickActions) return [];\n return launcherEntries(surfaceConfiguration(appShellConfig, ApplicationLevelComponentType.QUICK_ACTION_BUTTON).config?.actions);\n}\n\nfunction stringArray(value: unknown): string[] {\n return Array.isArray(value) ? value.filter((entry): entry is string => typeof entry === 'string') : [];\n}\n\n/** The settings entries that are an application's resource-operation destination, as launchers. */\nfunction applicationDestinationOperations(\n refs: readonly string[],\n catalog: ReturnType<typeof resolveSettingsDestinationCatalog>,\n): AppShellLauncherEntry[] {\n return refs.flatMap((ref) => {\n if (!catalog.applicationDestinationRefs.has(ref)) return [];\n const target = catalog.byRef.get(ref)?.target;\n if (target?.kind !== SettingsSectionTargetKind.RESOURCE_OPERATION) return [];\n return [{ kind: LauncherItemTargetKind.RESOURCE_OPERATION, resourceType: target.resourceType, operation: target.operation }];\n });\n}\n\nexport async function runAppShellPlacementContent(\n frontendCompanionExports: FrontendCompanionExports,\n): Promise<AppShellPlacementContentResult> {\n const appShellConfig = frontendCompanionExports.appShellConfig as unknown;\n\n const loadFrontendModules = frontendCompanionExports.loadFrontendModules;\n const modules: FrontendModule[] = loadFrontendModules ? await loadFrontendModules() : [];\n const moduleRegistry = buildFrontendModuleRegistry(...modules);\n\n const sidebar = surfaceConfiguration(appShellConfig, ApplicationLevelComponentType.SIDEBAR);\n const commandMenu = surfaceConfiguration(appShellConfig, ApplicationLevelComponentType.COMMAND_MENU);\n // `PlacementSurface.USER_MENU` is the placement plan's name for the user dropdown; the shell\n // vocabulary calls the same surface `USER_DROPDOWN`. Mapped here, once, rather than at callers.\n const userMenu = surfaceConfiguration(appShellConfig, ApplicationLevelComponentType.USER_DROPDOWN);\n\n const sidebarFromApp = [...sidebarChildren(sidebar.config?.contentSections), ...sidebarHostedQuickActions(sidebar.config, appShellConfig)];\n const sidebarFromModules = sidebarChildren(moduleRegistry.sidebarSections);\n\n // The palette's placed entries are its static commands — the application's own `commands` and\n // every module's contribution. `searchResources` is the OMNIBOX's live record search, a different\n // affordance on the same surface: counted in the summary, never an identity, because no placement\n // decision addresses it.\n const commandsFromApp = launcherEntries(commandMenu.config?.commands);\n const commandsFromModules = launcherEntries(moduleRegistry.commandMenuItems);\n const searchResourceCount = Array.isArray(commandMenu.config?.searchResources) ? (commandMenu.config!.searchResources as unknown[]).length : 0;\n\n // The dropdown's placements are the settings-hub sections surfaced inline — `settingsEntries`.\n // `sections` is the engine's vocabulary of built-in blocks (profile, organization, logout), present\n // on every application; counting it would make this surface composed for a scaffold.\n // (The first version read a field named `settingsSectionRefs`, which does not exist, so this\n // surface always read 0 whatever the application placed.)\n const userMenuEntries = stringArray(userMenu.config?.settingsEntries);\n\n // The settings rail, RESOLVED: a destination the catalog does not ship renders nothing, so it is\n // not something the rail carries.\n const settingsHubConfig = frontendCompanionExports.settingsHubConfig as SettingsHubConfig | undefined;\n const railSections = resolveSettingsHubConfig(settingsHubConfig).sections;\n const railDestinationRefs = railSections.map((section) => section.ref);\n const destinationCatalog = resolveSettingsDestinationCatalog(settingsHubConfig);\n\n const modulesContributing = (pick: (module: FrontendModule) => unknown, read: (value: unknown) => unknown[]) =>\n modules.filter((module) => read(pick(module)).length > 0).map((module) => module.moduleId);\n\n const surfaces: AppShellSurfaceComposition[] = [\n {\n surface: PlacementSurface.SIDEBAR,\n enabled: sidebar.enabled,\n entryCount: sidebarFromApp.length + sidebarFromModules.length,\n composed: sidebarFromApp.length + sidebarFromModules.length > 0,\n contributedBy: { app: sidebarFromApp.length, modules: sidebarFromModules.length },\n launchers: [...sidebarFromApp, ...sidebarFromModules],\n destinationRefs: [],\n contributingModuleIds: modulesContributing((module) => module.sidebarSections, sidebarChildren),\n },\n {\n surface: PlacementSurface.USER_MENU,\n enabled: userMenu.enabled,\n entryCount: userMenuEntries.length,\n composed: userMenuEntries.length > 0,\n contributedBy: { app: userMenuEntries.length, modules: 0 },\n launchers: applicationDestinationOperations(userMenuEntries, destinationCatalog),\n destinationRefs: userMenuEntries,\n contributingModuleIds: [],\n },\n {\n surface: PlacementSurface.COMMAND_MENU,\n enabled: commandMenu.enabled,\n entryCount: commandsFromApp.length + commandsFromModules.length + searchResourceCount,\n composed: commandsFromApp.length + commandsFromModules.length + searchResourceCount > 0,\n contributedBy: { app: commandsFromApp.length + searchResourceCount, modules: commandsFromModules.length },\n launchers: [...commandsFromApp, ...commandsFromModules],\n destinationRefs: [],\n contributingModuleIds: modulesContributing((module) => module.commandMenuItems, launcherEntries),\n },\n {\n surface: PlacementSurface.SETTINGS_HUB,\n enabled: true,\n entryCount: railDestinationRefs.length,\n composed: railDestinationRefs.length > 0,\n contributedBy: { app: railDestinationRefs.length, modules: 0 },\n launchers: applicationDestinationOperations(railDestinationRefs, destinationCatalog),\n destinationRefs: railDestinationRefs,\n contributingModuleIds: [],\n },\n ];\n\n return {\n surfaces,\n composedSurfaces: surfaces.filter(({ composed }) => composed).map(({ surface }) => surface),\n };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-domain-model.behavior.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"application-domain-model.behavior.d.ts","sourceRoot":"","sources":["../../../../../../src/core/introspection/subprocess/application-domain-model.behavior.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAEpF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH;;;;;;;;GAQG;AACH,MAAM,WAAW,4BAA4B;IAC3C,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,6FAA6F;AAC7F,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sBAAsB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClD;AAED,MAAM,WAAW,0BAA0B;IACzC,mEAAmE;IACnE,aAAa,EAAE,SAAS,sBAAsB,EAAE,CAAC;IACjD,qDAAqD;IACrD,qBAAqB,EAAE,SAAS,4BAA4B,EAAE,CAAC;IAC/D,kGAAkG;IAClG,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,8BAA8B,CAAC,GAAG,SAAS,CAAC;IACjF,2FAA2F;IAC3F,4BAA4B,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,mBAAmB,EAAE,CAAC,CAAC;IAC7E,gFAAgF;IAChF,gCAAgC,EAAE,MAA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