@cleocode/core 2026.3.38 → 2026.3.40
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/LICENSE +21 -0
- package/README.md +584 -0
- package/dist/index.js +4200 -15208
- package/dist/index.js.map +4 -4
- package/package.json +10 -2
- package/src/__tests__/audit-prune.test.d.ts +1 -1
- package/src/__tests__/audit-prune.test.js.map +1 -1
- package/src/__tests__/audit-prune.test.ts +1 -1
- package/src/__tests__/caamp-skill-install.test.d.ts +1 -1
- package/src/__tests__/cli-mcp-parity.integration.test.d.ts +1 -1
- package/src/__tests__/cli-parity.test.d.ts +1 -1
- package/src/__tests__/cli-parity.test.js +1 -1
- package/src/__tests__/cli-parity.test.js.map +1 -1
- package/src/__tests__/cli-parity.test.ts +1 -1
- package/src/__tests__/config.test.d.ts +1 -1
- package/src/__tests__/core-parity.test.d.ts +1 -1
- package/src/__tests__/error-catalog.test.d.ts +1 -1
- package/src/__tests__/error-catalog.test.js +1 -1
- package/src/__tests__/error-catalog.test.js.map +1 -1
- package/src/__tests__/error-catalog.test.ts +1 -1
- package/src/__tests__/golden-parity.test.d.ts +1 -1
- package/src/__tests__/hooks.test.d.ts +1 -1
- package/src/__tests__/hooks.test.js +15 -7
- package/src/__tests__/hooks.test.js.map +1 -1
- package/src/__tests__/hooks.test.ts +15 -7
- package/src/__tests__/human-output.test.d.ts +1 -1
- package/src/__tests__/human-output.test.js +1 -1
- package/src/__tests__/human-output.test.js.map +1 -1
- package/src/__tests__/human-output.test.ts +1 -1
- package/src/__tests__/index-api-compat.test.d.ts +1 -1
- package/src/__tests__/init-e2e.test.d.ts +1 -1
- package/src/__tests__/init-e2e.test.js +6 -0
- package/src/__tests__/init-e2e.test.js.map +1 -1
- package/src/__tests__/init-e2e.test.ts +7 -0
- package/src/__tests__/injection-chain.test.d.ts +1 -1
- package/src/__tests__/injection-mvi-tiers.test.d.ts +1 -1
- package/src/__tests__/injection-shared.test.d.ts +1 -1
- package/src/__tests__/lafs-conformance.test.d.ts +1 -1
- package/src/__tests__/logger.test.d.ts +1 -1
- package/src/__tests__/mcp-install-verify.test.d.ts +1 -1
- package/src/__tests__/paths.test.d.ts +1 -1
- package/src/__tests__/project-info.test.d.ts +1 -1
- package/src/__tests__/rcsd-pipeline-e2e.test.d.ts +1 -1
- package/src/__tests__/remote.test.d.ts +1 -1
- package/src/__tests__/scaffold.test.d.ts +1 -1
- package/src/__tests__/schema-management.test.d.ts +1 -1
- package/src/__tests__/schema.test.d.ts +1 -1
- package/src/__tests__/schema.test.js +4 -2
- package/src/__tests__/schema.test.js.map +1 -1
- package/src/__tests__/schema.test.ts +5 -2
- package/src/__tests__/sharing.test.d.ts +1 -1
- package/src/__tests__/snapshot.test.d.ts +1 -1
- package/src/__tests__/upgrade.test.d.ts +1 -1
- package/src/adapters/__tests__/discovery.test.d.ts +1 -1
- package/src/adapters/__tests__/manager.test.d.ts +1 -1
- package/src/adapters/adapter-registry.ts +1 -3
- package/src/admin/export-tasks.ts +5 -2
- package/src/admin/export.ts +3 -18
- package/src/admin/import-tasks.ts +1 -1
- package/src/admin/import.ts +3 -2
- package/src/adrs/validate.ts +3 -1
- package/src/bootstrap.ts +1 -4
- package/src/caamp/adapter.ts +11 -12
- package/src/cleo.ts +183 -93
- package/src/compliance/__tests__/sync.test.d.ts +1 -1
- package/src/compliance/index.ts +1 -1
- package/src/config/build-config.ts +16 -16
- package/src/config.ts +1 -1
- package/src/error-catalog.ts +1 -1
- package/src/error-registry.ts +1 -1
- package/src/errors.ts +1 -1
- package/src/hooks/__tests__/provider-hooks.test.d.ts +1 -1
- package/src/hooks/__tests__/registry.test.d.ts +1 -1
- package/src/hooks/handlers/__tests__/error-hooks.test.d.ts +1 -1
- package/src/hooks/handlers/__tests__/file-hooks.test.d.ts +1 -1
- package/src/hooks/handlers/__tests__/mcp-hooks.test.d.ts +1 -1
- package/src/hooks/handlers/__tests__/session-hooks.test.d.ts +1 -1
- package/src/hooks/handlers/__tests__/task-hooks.test.d.ts +1 -1
- package/src/hooks/provider-hooks.ts +1 -1
- package/src/hooks.ts +1 -1
- package/src/index.ts +75 -98
- package/src/init.ts +2 -2
- package/src/inject/index.ts +8 -8
- package/src/internal.ts +261 -263
- package/src/issue/create.ts +1 -1
- package/src/json-schema-validator.ts +9 -5
- package/src/lifecycle/__tests__/chain-store.test.d.ts +1 -1
- package/src/lifecycle/__tests__/chain-store.test.js.map +1 -1
- package/src/lifecycle/__tests__/chain-store.test.ts +1 -1
- package/src/lifecycle/__tests__/consolidate-rcasd.test.d.ts +1 -1
- package/src/lifecycle/__tests__/default-chain.test.d.ts +1 -1
- package/src/lifecycle/__tests__/frontmatter.test.d.ts +1 -1
- package/src/lifecycle/__tests__/lifecycle.test.d.ts +1 -1
- package/src/lifecycle/__tests__/pipeline.integration.test.d.ts +1 -1
- package/src/lifecycle/__tests__/pipeline.integration.test.js +78 -78
- package/src/lifecycle/__tests__/pipeline.integration.test.js.map +1 -1
- package/src/lifecycle/__tests__/pipeline.integration.test.ts +82 -78
- package/src/lifecycle/__tests__/rcasd-paths.test.d.ts +1 -1
- package/src/lifecycle/__tests__/resume-schema-contract.test.d.ts +1 -1
- package/src/lifecycle/__tests__/resume-schema-contract.test.js +13 -4
- package/src/lifecycle/__tests__/resume-schema-contract.test.js.map +1 -1
- package/src/lifecycle/__tests__/resume-schema-contract.test.ts +19 -10
- package/src/lifecycle/__tests__/stage-record-provenance.integration.test.d.ts +1 -1
- package/src/lifecycle/__tests__/tessera-engine.test.d.ts +1 -1
- package/src/lifecycle/chain-composition.ts +1 -7
- package/src/lifecycle/chain-store.ts +1 -1
- package/src/lifecycle/evidence.ts +1 -1
- package/src/lifecycle/index.ts +2 -2
- package/src/lifecycle/pipeline.ts +3 -3
- package/src/lifecycle/rcasd-index.ts +1 -1
- package/src/lifecycle/tessera-engine.ts +2 -1
- package/src/memory/__tests__/auto-extract.test.d.ts +1 -1
- package/src/memory/__tests__/auto-extract.test.js +0 -1
- package/src/memory/__tests__/auto-extract.test.js.map +1 -1
- package/src/memory/__tests__/auto-extract.test.ts +2 -2
- package/src/memory/__tests__/brain-embedding.test.d.ts +1 -1
- package/src/memory/__tests__/brain-links.test.d.ts +1 -1
- package/src/memory/__tests__/brain-migration.test.d.ts +1 -1
- package/src/memory/__tests__/brain-retrieval.test.d.ts +1 -1
- package/src/memory/__tests__/brain-search.test.d.ts +1 -1
- package/src/memory/__tests__/claude-mem-migration.test.d.ts +1 -1
- package/src/memory/__tests__/decisions.test.d.ts +1 -1
- package/src/memory/__tests__/engine-compat.test.d.ts +1 -1
- package/src/memory/__tests__/memory-bridge.test.d.ts +1 -1
- package/src/memory/__tests__/pipeline-manifest-sqlite.test.d.ts +1 -1
- package/src/memory/__tests__/session-memory.test.d.ts +1 -1
- package/src/memory/brain-reasoning.ts +1 -1
- package/src/memory/brain-retrieval.ts +1 -1
- package/src/memory/brain-search.ts +1 -1
- package/src/memory/claude-mem-migration.ts +13 -4
- package/src/memory/engine-compat.ts +4 -11
- package/src/memory/index.ts +3 -3
- package/src/memory/memory-bridge.ts +18 -10
- package/src/memory/pipeline-manifest-sqlite.ts +2 -2
- package/src/metrics/__tests__/model-provider-registry.test.d.ts +1 -1
- package/src/metrics/__tests__/provider-detection.test.d.ts +1 -1
- package/src/metrics/token-service.ts +1 -1
- package/src/migration/__tests__/checksum.test.d.ts +1 -1
- package/src/migration/__tests__/logger.test.d.ts +1 -1
- package/src/migration/__tests__/migration-failure.integration.test.d.ts +1 -1
- package/src/migration/__tests__/migration.test.d.ts +1 -1
- package/src/migration/__tests__/state.test.d.ts +1 -1
- package/src/migration/__tests__/validate.test.d.ts +1 -1
- package/src/migration/index.ts +1 -1
- package/src/nexus/__tests__/deps.test.d.ts +1 -1
- package/src/nexus/__tests__/deps.test.js.map +1 -1
- package/src/nexus/__tests__/deps.test.ts +2 -10
- package/src/nexus/__tests__/permissions.test.d.ts +1 -1
- package/src/nexus/__tests__/query.test.d.ts +1 -1
- package/src/nexus/__tests__/reconcile.test.d.ts +1 -1
- package/src/nexus/__tests__/reconcile.test.js +1 -1
- package/src/nexus/__tests__/reconcile.test.js.map +1 -1
- package/src/nexus/__tests__/reconcile.test.ts +1 -1
- package/src/nexus/__tests__/registry.test.d.ts +1 -1
- package/src/nexus/__tests__/registry.test.js.map +1 -1
- package/src/nexus/__tests__/registry.test.ts +2 -9
- package/src/nexus/deps.ts +2 -2
- package/src/nexus/migrate-json-to-sqlite.ts +1 -1
- package/src/nexus/query.ts +2 -2
- package/src/nexus/registry.ts +4 -4
- package/src/observability/__tests__/index.test.d.ts +1 -1
- package/src/observability/__tests__/log-filter.test.d.ts +1 -1
- package/src/observability/__tests__/log-parser.test.d.ts +1 -1
- package/src/observability/__tests__/log-reader.test.d.ts +1 -1
- package/src/orchestration/__tests__/autonomous-spec.test.d.ts +1 -1
- package/src/orchestration/__tests__/autonomous-spec.test.js +1 -1
- package/src/orchestration/__tests__/autonomous-spec.test.js.map +1 -1
- package/src/orchestration/__tests__/autonomous-spec.test.ts +2 -6
- package/src/orchestration/__tests__/orchestration.test.d.ts +1 -1
- package/src/orchestration/__tests__/orchestration.test.js +1 -1
- package/src/orchestration/__tests__/orchestration.test.js.map +1 -1
- package/src/orchestration/__tests__/orchestration.test.ts +2 -6
- package/src/orchestration/__tests__/protocol-validators.test.d.ts +1 -1
- package/src/orchestration/__tests__/protocol-validators.test.js +1 -1
- package/src/orchestration/__tests__/protocol-validators.test.js.map +1 -1
- package/src/orchestration/__tests__/protocol-validators.test.ts +1 -1
- package/src/orchestration/bootstrap.ts +1 -1
- package/src/orchestration/index.ts +2 -2
- package/src/orchestration/parallel.ts +2 -2
- package/src/orchestration/unblock.ts +1 -1
- package/src/orchestration/waves.ts +1 -1
- package/src/output.ts +2 -2
- package/src/phases/__tests__/deps.test.d.ts +1 -1
- package/src/phases/__tests__/deps.test.js +1 -1
- package/src/phases/__tests__/deps.test.js.map +1 -1
- package/src/phases/__tests__/deps.test.ts +2 -6
- package/src/phases/__tests__/phases.test.d.ts +1 -1
- package/src/phases/__tests__/phases.test.js +1 -1
- package/src/phases/__tests__/phases.test.js.map +1 -1
- package/src/phases/__tests__/phases.test.ts +2 -6
- package/src/phases/deps.ts +2 -2
- package/src/phases/index.ts +34 -6
- package/src/pipeline/phase.ts +1 -1
- package/src/reconciliation/index.ts +11 -2
- package/src/reconciliation/link-store.ts +174 -0
- package/src/reconciliation/reconciliation-engine.ts +137 -89
- package/src/release/__tests__/artifacts.test.d.ts +1 -1
- package/src/release/__tests__/cancel-release.test.d.ts +1 -1
- package/src/release/__tests__/changelog-writer.test.d.ts +1 -1
- package/src/release/__tests__/push-policy.test.d.ts +1 -1
- package/src/release/__tests__/release.test.d.ts +1 -1
- package/src/release/guards.ts +1 -1
- package/src/release/release-manifest.ts +57 -5
- package/src/remote/index.ts +1 -5
- package/src/routing/capability-matrix.ts +4 -5
- package/src/scaffold.ts +6 -2
- package/src/security/input-sanitization.ts +1 -1
- package/src/sequence/__tests__/allocate.test.d.ts +1 -1
- package/src/sequence/index.ts +7 -4
- package/src/sessions/__tests__/briefing-blocked.test.d.ts +1 -1
- package/src/sessions/__tests__/briefing.test.d.ts +1 -1
- package/src/sessions/__tests__/briefing.test.js +6 -2
- package/src/sessions/__tests__/briefing.test.js.map +1 -1
- package/src/sessions/__tests__/briefing.test.ts +6 -2
- package/src/sessions/__tests__/handoff-integration.test.d.ts +1 -1
- package/src/sessions/__tests__/handoff-integration.test.js +8 -3
- package/src/sessions/__tests__/handoff-integration.test.js.map +1 -1
- package/src/sessions/__tests__/handoff-integration.test.ts +15 -5
- package/src/sessions/__tests__/handoff.test.d.ts +1 -1
- package/src/sessions/__tests__/handoff.test.js +3 -1
- package/src/sessions/__tests__/handoff.test.js.map +1 -1
- package/src/sessions/__tests__/handoff.test.ts +4 -2
- package/src/sessions/__tests__/index.test.d.ts +1 -1
- package/src/sessions/__tests__/session-cleanup.test.d.ts +1 -1
- package/src/sessions/__tests__/session-cleanup.test.js +4 -2
- package/src/sessions/__tests__/session-cleanup.test.js.map +1 -1
- package/src/sessions/__tests__/session-cleanup.test.ts +5 -3
- package/src/sessions/__tests__/session-edge-cases.test.d.ts +1 -1
- package/src/sessions/__tests__/session-find.test.d.ts +1 -1
- package/src/sessions/__tests__/session-find.test.js.map +1 -1
- package/src/sessions/__tests__/session-find.test.ts +2 -2
- package/src/sessions/__tests__/session-grade.integration.test.d.ts +1 -1
- package/src/sessions/__tests__/session-grade.test.d.ts +1 -1
- package/src/sessions/__tests__/session-memory-bridge.test.d.ts +1 -1
- package/src/sessions/__tests__/sessions.test.d.ts +1 -1
- package/src/sessions/assumptions.ts +1 -1
- package/src/sessions/briefing.ts +2 -2
- package/src/sessions/find.ts +1 -1
- package/src/sessions/handoff.ts +2 -2
- package/src/sessions/index.ts +3 -3
- package/src/sessions/session-cleanup.ts +1 -1
- package/src/sessions/session-drift.ts +3 -6
- package/src/sessions/session-history.ts +1 -1
- package/src/sessions/session-show.ts +2 -2
- package/src/sessions/session-stats.ts +2 -2
- package/src/sessions/session-suspend.ts +2 -2
- package/src/sessions/session-switch.ts +4 -3
- package/src/sessions/types.ts +6 -2
- package/src/signaldock/__tests__/claude-code-transport.test.d.ts +1 -1
- package/src/signaldock/__tests__/factory.test.d.ts +1 -1
- package/src/signaldock/__tests__/signaldock-transport.test.d.ts +1 -1
- package/src/skills/__tests__/discovery.test.d.ts +1 -1
- package/src/skills/__tests__/dispatch.test.d.ts +1 -1
- package/src/skills/__tests__/dispatch.test.js.map +1 -1
- package/src/skills/__tests__/dispatch.test.ts +1 -1
- package/src/skills/__tests__/dynamic-skill-generator.test.d.ts +1 -1
- package/src/skills/__tests__/manifests.test.d.ts +1 -1
- package/src/skills/__tests__/precedence.test.d.ts +1 -1
- package/src/skills/__tests__/routing-table.test.d.ts +1 -1
- package/src/skills/__tests__/skill-paths.test.d.ts +1 -1
- package/src/skills/__tests__/test-utility.test.d.ts +1 -1
- package/src/skills/__tests__/token.test.d.ts +1 -1
- package/src/skills/__tests__/validation.test.d.ts +1 -1
- package/src/skills/__tests__/version.test.d.ts +1 -1
- package/src/skills/discovery.ts +1 -1
- package/src/skills/injection/__tests__/subagent.test.d.ts +1 -1
- package/src/skills/injection/subagent.ts +1 -1
- package/src/skills/manifests/research.ts +1 -2
- package/src/skills/orchestrator/__tests__/spawn-tier.test.d.ts +1 -1
- package/src/skills/orchestrator/__tests__/spawn-tier.test.js +6 -0
- package/src/skills/orchestrator/__tests__/spawn-tier.test.js.map +1 -1
- package/src/skills/orchestrator/__tests__/spawn-tier.test.ts +8 -2
- package/src/skills/orchestrator/spawn.ts +1 -1
- package/src/skills/orchestrator/startup.ts +1 -4
- package/src/skills/orchestrator/validator.ts +1 -1
- package/src/snapshot/index.ts +4 -2
- package/src/spawn/__tests__/adapter-registry.test.d.ts +1 -1
- package/src/spawn/__tests__/adapter-registry.test.js.map +1 -1
- package/src/spawn/__tests__/adapter-registry.test.ts +1 -1
- package/src/spawn/adapter-registry.ts +11 -8
- package/src/stats/__tests__/stats.test.d.ts +1 -1
- package/src/stats/__tests__/stats.test.js +3 -1
- package/src/stats/__tests__/stats.test.js.map +1 -1
- package/src/stats/__tests__/stats.test.ts +4 -4
- package/src/stats/index.ts +3 -3
- package/src/sticky/__tests__/purge.test.d.ts +1 -1
- package/src/sticky/__tests__/purge.test.js.map +1 -1
- package/src/sticky/__tests__/purge.test.ts +1 -4
- package/src/store/__tests__/atomic.test.d.ts +1 -1
- package/src/store/__tests__/backup.test.d.ts +1 -1
- package/src/store/__tests__/brain-accessor-pageindex.test.d.ts +1 -1
- package/src/store/__tests__/brain-accessor.test.d.ts +1 -1
- package/src/store/__tests__/brain-pageindex.test.d.ts +1 -1
- package/src/store/__tests__/brain-schema.test.d.ts +1 -1
- package/src/store/__tests__/brain-vec.test.d.ts +1 -1
- package/src/store/__tests__/brain-vec.test.js +1 -1
- package/src/store/__tests__/brain-vec.test.js.map +1 -1
- package/src/store/__tests__/brain-vec.test.ts +1 -1
- package/src/store/__tests__/collision-detection.test.d.ts +1 -1
- package/src/store/__tests__/collision-detection.test.js +7 -0
- package/src/store/__tests__/collision-detection.test.js.map +1 -1
- package/src/store/__tests__/collision-detection.test.ts +7 -0
- package/src/store/__tests__/data-safety-central.test.d.ts +1 -1
- package/src/store/__tests__/data-safety-central.test.js +51 -17
- package/src/store/__tests__/data-safety-central.test.js.map +1 -1
- package/src/store/__tests__/data-safety-central.test.ts +52 -18
- package/src/store/__tests__/db-helpers.test.d.ts +1 -1
- package/src/store/__tests__/e2e-safety-integration.test.d.ts +1 -1
- package/src/store/__tests__/e2e-safety-integration.test.js +6 -0
- package/src/store/__tests__/e2e-safety-integration.test.js.map +1 -1
- package/src/store/__tests__/e2e-safety-integration.test.ts +7 -3
- package/src/store/__tests__/git-checkpoint.test.d.ts +1 -1
- package/src/store/__tests__/git-checkpoint.test.js.map +1 -1
- package/src/store/__tests__/git-checkpoint.test.ts +12 -3
- package/src/store/__tests__/idempotent-migration.test.d.ts +1 -1
- package/src/store/__tests__/import-logging.test.d.ts +1 -1
- package/src/store/__tests__/import-sort.test.d.ts +1 -1
- package/src/store/__tests__/json.test.d.ts +1 -1
- package/src/store/__tests__/lifecycle-schema-parity.test.d.ts +1 -1
- package/src/store/__tests__/lifecycle-schema-parity.test.js +1 -2
- package/src/store/__tests__/lifecycle-schema-parity.test.js.map +1 -1
- package/src/store/__tests__/lifecycle-schema-parity.test.ts +5 -4
- package/src/store/__tests__/migration-integration.test.d.ts +1 -1
- package/src/store/__tests__/migration-retry.test.d.ts +1 -1
- package/src/store/__tests__/migration-safety.test.d.ts +1 -1
- package/src/store/__tests__/migration-safety.test.js +1 -1
- package/src/store/__tests__/migration-safety.test.js.map +1 -1
- package/src/store/__tests__/migration-safety.test.ts +5 -12
- package/src/store/__tests__/migration-sqlite.test.d.ts +1 -1
- package/src/store/__tests__/performance-safety.test.d.ts +1 -1
- package/src/store/__tests__/performance-safety.test.js +6 -0
- package/src/store/__tests__/performance-safety.test.js.map +1 -1
- package/src/store/__tests__/performance-safety.test.ts +6 -0
- package/src/store/__tests__/project-detect.test.d.ts +1 -1
- package/src/store/__tests__/project-detect.test.js +4 -2
- package/src/store/__tests__/project-detect.test.js.map +1 -1
- package/src/store/__tests__/project-detect.test.ts +4 -2
- package/src/store/__tests__/project-registry.test.d.ts +1 -1
- package/src/store/__tests__/provider.test.d.ts +1 -1
- package/src/store/__tests__/relations.test.d.ts +1 -1
- package/src/store/__tests__/relations.test.js.map +1 -1
- package/src/store/__tests__/relations.test.ts +1 -1
- package/src/store/__tests__/safety-accessor.test.d.ts +1 -1
- package/src/store/__tests__/safety-accessor.test.js +51 -17
- package/src/store/__tests__/safety-accessor.test.js.map +1 -1
- package/src/store/__tests__/safety-accessor.test.ts +52 -19
- package/src/store/__tests__/sequence-validation.test.d.ts +1 -1
- package/src/store/__tests__/sequence-validation.test.js +1 -0
- package/src/store/__tests__/sequence-validation.test.js.map +1 -1
- package/src/store/__tests__/sequence-validation.test.ts +1 -0
- package/src/store/__tests__/session-store.test.d.ts +1 -1
- package/src/store/__tests__/session-store.test.js.map +1 -1
- package/src/store/__tests__/session-store.test.ts +1 -1
- package/src/store/__tests__/sqlite-backup.test.d.ts +1 -1
- package/src/store/__tests__/sqlite-backup.test.js.map +1 -1
- package/src/store/__tests__/sqlite-backup.test.ts +1 -1
- package/src/store/__tests__/sqlite.test.d.ts +1 -1
- package/src/store/__tests__/task-store.test.d.ts +1 -1
- package/src/store/__tests__/task-store.test.js +1 -0
- package/src/store/__tests__/task-store.test.js.map +1 -1
- package/src/store/__tests__/task-store.test.ts +2 -1
- package/src/store/__tests__/test-db-helper.d.ts +24 -15
- package/src/store/__tests__/write-verification.test.d.ts +1 -1
- package/src/store/__tests__/write-verification.test.js +7 -0
- package/src/store/__tests__/write-verification.test.js.map +1 -1
- package/src/store/__tests__/write-verification.test.ts +7 -0
- package/src/store/atomic.ts +1 -1
- package/src/store/backup.ts +1 -1
- package/src/store/brain-sqlite.ts +4 -2
- package/src/store/converters.ts +10 -2
- package/src/store/data-safety-central.ts +1 -1
- package/src/store/data-safety.ts +1 -2
- package/src/store/db-helpers.ts +1 -2
- package/src/store/import-sort.ts +1 -1
- package/src/store/json.ts +1 -1
- package/src/store/lock.ts +1 -1
- package/src/store/migration-sqlite.ts +1 -2
- package/src/store/nexus-sqlite.ts +4 -2
- package/src/store/nexus-validation-schemas.ts +5 -7
- package/src/store/provider.ts +6 -7
- package/src/store/safety-data-accessor.ts +10 -4
- package/src/store/session-store.ts +1 -1
- package/src/store/sqlite-data-accessor.ts +37 -35
- package/src/store/sqlite.ts +5 -6
- package/src/store/status-registry.ts +12 -12
- package/src/store/task-store.ts +2 -2
- package/src/store/tasks-schema.ts +52 -0
- package/src/store/validation-schemas.ts +4 -2
- package/src/system/__tests__/cleanup.test.d.ts +1 -1
- package/src/system/__tests__/health.test.d.ts +1 -1
- package/src/system/archive-analytics.ts +1 -1
- package/src/system/health.ts +3 -5
- package/src/system/index.ts +1 -1
- package/src/system/inject-generate.ts +1 -1
- package/src/system/labels.ts +2 -2
- package/src/system/metrics.ts +1 -1
- package/src/system/migrate.ts +1 -1
- package/src/system/safestop.ts +7 -4
- package/src/task-work/__tests__/start-deps.test.d.ts +1 -1
- package/src/task-work/__tests__/start-deps.test.js +1 -1
- package/src/task-work/__tests__/start-deps.test.js.map +1 -1
- package/src/task-work/__tests__/start-deps.test.ts +1 -5
- package/src/task-work/index.ts +3 -17
- package/src/tasks/__tests__/add.test.d.ts +1 -1
- package/src/tasks/__tests__/add.test.js.map +1 -1
- package/src/tasks/__tests__/add.test.ts +41 -9
- package/src/tasks/__tests__/archive.test.d.ts +1 -1
- package/src/tasks/__tests__/archive.test.js +1 -1
- package/src/tasks/__tests__/archive.test.js.map +1 -1
- package/src/tasks/__tests__/archive.test.ts +2 -6
- package/src/tasks/__tests__/atomicity.test.d.ts +5 -1
- package/src/tasks/__tests__/atomicity.test.d.ts.map +1 -1
- package/src/tasks/__tests__/atomicity.test.js.map +1 -1
- package/src/tasks/__tests__/atomicity.test.ts +2 -1
- package/src/tasks/__tests__/cancel-ops.test.d.ts +1 -1
- package/src/tasks/__tests__/cancel-ops.test.js.map +1 -1
- package/src/tasks/__tests__/cancel-ops.test.ts +1 -1
- package/src/tasks/__tests__/complete-unblocks.test.d.ts +1 -1
- package/src/tasks/__tests__/complete-unblocks.test.js +1 -1
- package/src/tasks/__tests__/complete-unblocks.test.js.map +1 -1
- package/src/tasks/__tests__/complete-unblocks.test.ts +1 -5
- package/src/tasks/__tests__/complete.test.d.ts +1 -1
- package/src/tasks/__tests__/complete.test.js +1 -1
- package/src/tasks/__tests__/complete.test.js.map +1 -1
- package/src/tasks/__tests__/complete.test.ts +1 -5
- package/src/tasks/__tests__/delete.test.d.ts +1 -1
- package/src/tasks/__tests__/delete.test.js +1 -1
- package/src/tasks/__tests__/delete.test.js.map +1 -1
- package/src/tasks/__tests__/delete.test.ts +1 -5
- package/src/tasks/__tests__/dependency-check.test.d.ts +1 -1
- package/src/tasks/__tests__/dependency-check.test.js.map +1 -1
- package/src/tasks/__tests__/dependency-check.test.ts +1 -1
- package/src/tasks/__tests__/deps-ready.test.d.ts +1 -1
- package/src/tasks/__tests__/find.test.d.ts +1 -1
- package/src/tasks/__tests__/find.test.js +1 -1
- package/src/tasks/__tests__/find.test.js.map +1 -1
- package/src/tasks/__tests__/find.test.ts +3 -7
- package/src/tasks/__tests__/graph-ops.test.d.ts +1 -1
- package/src/tasks/__tests__/graph-ops.test.js.map +1 -1
- package/src/tasks/__tests__/graph-ops.test.ts +1 -1
- package/src/tasks/__tests__/hierarchy-policy.test.d.ts +5 -1
- package/src/tasks/__tests__/hierarchy-policy.test.d.ts.map +1 -1
- package/src/tasks/__tests__/hierarchy-policy.test.js +9 -1
- package/src/tasks/__tests__/hierarchy-policy.test.js.map +1 -1
- package/src/tasks/__tests__/hierarchy-policy.test.ts +14 -6
- package/src/tasks/__tests__/hierarchy.test.d.ts +1 -1
- package/src/tasks/__tests__/hierarchy.test.js.map +1 -1
- package/src/tasks/__tests__/hierarchy.test.ts +1 -1
- package/src/tasks/__tests__/id-generator.test.d.ts +1 -1
- package/src/tasks/__tests__/labels.test.d.ts +1 -1
- package/src/tasks/__tests__/labels.test.js +1 -1
- package/src/tasks/__tests__/labels.test.js.map +1 -1
- package/src/tasks/__tests__/labels.test.ts +1 -5
- package/src/tasks/__tests__/list.test.d.ts +1 -1
- package/src/tasks/__tests__/list.test.js +1 -1
- package/src/tasks/__tests__/list.test.js.map +1 -1
- package/src/tasks/__tests__/list.test.ts +1 -5
- package/src/tasks/__tests__/phase-tracking.test.d.ts +1 -1
- package/src/tasks/__tests__/phase-tracking.test.js.map +1 -1
- package/src/tasks/__tests__/phase-tracking.test.ts +1 -1
- package/src/tasks/__tests__/plan-priority.test.d.ts +1 -1
- package/src/tasks/__tests__/priority-normalization.test.d.ts +1 -1
- package/src/tasks/__tests__/relates.test.d.ts +1 -1
- package/src/tasks/__tests__/relates.test.js.map +1 -1
- package/src/tasks/__tests__/relates.test.ts +1 -1
- package/src/tasks/__tests__/show-deps.test.d.ts +1 -1
- package/src/tasks/__tests__/show-deps.test.js +1 -1
- package/src/tasks/__tests__/show-deps.test.js.map +1 -1
- package/src/tasks/__tests__/show-deps.test.ts +1 -5
- package/src/tasks/__tests__/show.test.d.ts +1 -1
- package/src/tasks/__tests__/show.test.js +1 -1
- package/src/tasks/__tests__/show.test.js.map +1 -1
- package/src/tasks/__tests__/show.test.ts +1 -5
- package/src/tasks/__tests__/staleness.test.d.ts +1 -1
- package/src/tasks/__tests__/staleness.test.js.map +1 -1
- package/src/tasks/__tests__/staleness.test.ts +2 -2
- package/src/tasks/__tests__/task-ops-depends.test.d.ts +1 -1
- package/src/tasks/__tests__/task-ops-depends.test.js.map +1 -1
- package/src/tasks/__tests__/task-ops-depends.test.ts +1 -1
- package/src/tasks/__tests__/update.test.d.ts +1 -1
- package/src/tasks/__tests__/update.test.js +1 -1
- package/src/tasks/__tests__/update.test.js.map +1 -1
- package/src/tasks/__tests__/update.test.ts +1 -5
- package/src/tasks/add.ts +15 -9
- package/src/tasks/analyze.ts +1 -1
- package/src/tasks/archive.ts +1 -1
- package/src/tasks/complete.ts +3 -3
- package/src/tasks/delete.ts +3 -3
- package/src/tasks/find.ts +3 -3
- package/src/tasks/hierarchy-policy.ts +1 -2
- package/src/tasks/labels.ts +2 -2
- package/src/tasks/list.ts +3 -3
- package/src/tasks/plan.ts +1 -2
- package/src/tasks/relates.ts +3 -3
- package/src/tasks/reparent.ts +1 -1
- package/src/tasks/show.ts +3 -3
- package/src/tasks/task-ops.ts +15 -10
- package/src/tasks/update.ts +4 -4
- package/src/ui/__tests__/injection-registry.test.d.ts +1 -1
- package/src/upgrade.ts +1 -1
- package/src/validation/__tests__/chain-validation.test.d.ts +1 -1
- package/src/validation/__tests__/chain-validation.test.js.map +1 -1
- package/src/validation/__tests__/chain-validation.test.ts +1 -1
- package/src/validation/__tests__/compliance.test.d.ts +1 -1
- package/src/validation/__tests__/docs-sync.test.d.ts +1 -1
- package/src/validation/__tests__/doctor-gitignore.test.d.ts +1 -1
- package/src/validation/__tests__/doctor-injection.test.d.ts +1 -1
- package/src/validation/__tests__/doctor.test.d.ts +1 -1
- package/src/validation/__tests__/engine.test.d.ts +1 -1
- package/src/validation/__tests__/manifest.test.d.ts +1 -1
- package/src/validation/__tests__/protocol-common.test.d.ts +1 -1
- package/src/validation/__tests__/verification.test.d.ts +1 -1
- package/src/validation/engine.ts +1 -2
- package/src/validation/schema-validator.ts +8 -4
- package/src/validation/validate-ops.ts +7 -6
- package/dist/adapters/adapter-registry.d.ts +0 -29
- package/dist/adapters/adapter-registry.d.ts.map +0 -1
- package/dist/adapters/adapter-registry.js +0 -64
- package/dist/adapters/adapter-registry.js.map +0 -1
- package/dist/adapters/discovery.d.ts +0 -18
- package/dist/adapters/discovery.d.ts.map +0 -1
- package/dist/adapters/discovery.js +0 -83
- package/dist/adapters/discovery.js.map +0 -1
- package/dist/adapters/index.d.ts +0 -10
- package/dist/adapters/index.d.ts.map +0 -1
- package/dist/adapters/index.js +0 -9
- package/dist/adapters/index.js.map +0 -1
- package/dist/adapters/manager.d.ts +0 -81
- package/dist/adapters/manager.d.ts.map +0 -1
- package/dist/adapters/manager.js +0 -260
- package/dist/adapters/manager.js.map +0 -1
- package/dist/admin/export-tasks.d.ts +0 -30
- package/dist/admin/export-tasks.d.ts.map +0 -1
- package/dist/admin/export-tasks.js +0 -171
- package/dist/admin/export-tasks.js.map +0 -1
- package/dist/admin/export.d.ts +0 -28
- package/dist/admin/export.d.ts.map +0 -1
- package/dist/admin/export.js +0 -116
- package/dist/admin/export.js.map +0 -1
- package/dist/admin/help.d.ts +0 -74
- package/dist/admin/help.d.ts.map +0 -1
- package/dist/admin/help.js +0 -106
- package/dist/admin/help.js.map +0 -1
- package/dist/admin/import-tasks.d.ts +0 -43
- package/dist/admin/import-tasks.d.ts.map +0 -1
- package/dist/admin/import-tasks.js +0 -163
- package/dist/admin/import-tasks.js.map +0 -1
- package/dist/admin/import.d.ts +0 -33
- package/dist/admin/import.d.ts.map +0 -1
- package/dist/admin/import.js +0 -129
- package/dist/admin/import.js.map +0 -1
- package/dist/admin/index.d.ts +0 -14
- package/dist/admin/index.d.ts.map +0 -1
- package/dist/admin/index.js +0 -13
- package/dist/admin/index.js.map +0 -1
- package/dist/admin/sync.d.ts +0 -59
- package/dist/admin/sync.d.ts.map +0 -1
- package/dist/admin/sync.js +0 -118
- package/dist/admin/sync.js.map +0 -1
- package/dist/adrs/find.d.ts +0 -24
- package/dist/adrs/find.d.ts.map +0 -1
- package/dist/adrs/find.js +0 -134
- package/dist/adrs/find.js.map +0 -1
- package/dist/adrs/index.d.ts +0 -18
- package/dist/adrs/index.d.ts.map +0 -1
- package/dist/adrs/index.js +0 -15
- package/dist/adrs/index.js.map +0 -1
- package/dist/adrs/link-pipeline.d.ts +0 -35
- package/dist/adrs/link-pipeline.d.ts.map +0 -1
- package/dist/adrs/link-pipeline.js +0 -160
- package/dist/adrs/link-pipeline.js.map +0 -1
- package/dist/adrs/list.d.ts +0 -16
- package/dist/adrs/list.d.ts.map +0 -1
- package/dist/adrs/list.js +0 -43
- package/dist/adrs/list.js.map +0 -1
- package/dist/adrs/parse.d.ts +0 -18
- package/dist/adrs/parse.d.ts.map +0 -1
- package/dist/adrs/parse.js +0 -51
- package/dist/adrs/parse.js.map +0 -1
- package/dist/adrs/show.d.ts +0 -11
- package/dist/adrs/show.d.ts.map +0 -1
- package/dist/adrs/show.js +0 -22
- package/dist/adrs/show.js.map +0 -1
- package/dist/adrs/sync.d.ts +0 -20
- package/dist/adrs/sync.d.ts.map +0 -1
- package/dist/adrs/sync.js +0 -188
- package/dist/adrs/sync.js.map +0 -1
- package/dist/adrs/types.d.ts +0 -67
- package/dist/adrs/types.d.ts.map +0 -1
- package/dist/adrs/types.js +0 -9
- package/dist/adrs/types.js.map +0 -1
- package/dist/adrs/validate.d.ts +0 -24
- package/dist/adrs/validate.d.ts.map +0 -1
- package/dist/adrs/validate.js +0 -57
- package/dist/adrs/validate.js.map +0 -1
- package/dist/audit-prune.d.ts +0 -35
- package/dist/audit-prune.d.ts.map +0 -1
- package/dist/audit-prune.js +0 -94
- package/dist/audit-prune.js.map +0 -1
- package/dist/audit.d.ts +0 -49
- package/dist/audit.d.ts.map +0 -1
- package/dist/audit.js +0 -68
- package/dist/audit.js.map +0 -1
- package/dist/bootstrap.d.ts +0 -44
- package/dist/bootstrap.d.ts.map +0 -1
- package/dist/bootstrap.js +0 -228
- package/dist/bootstrap.js.map +0 -1
- package/dist/caamp/adapter.d.ts +0 -130
- package/dist/caamp/adapter.d.ts.map +0 -1
- package/dist/caamp/adapter.js +0 -437
- package/dist/caamp/adapter.js.map +0 -1
- package/dist/caamp/capability-check.d.ts +0 -27
- package/dist/caamp/capability-check.d.ts.map +0 -1
- package/dist/caamp/capability-check.js +0 -38
- package/dist/caamp/capability-check.js.map +0 -1
- package/dist/caamp/index.d.ts +0 -12
- package/dist/caamp/index.d.ts.map +0 -1
- package/dist/caamp/index.js +0 -23
- package/dist/caamp/index.js.map +0 -1
- package/dist/caamp-init.d.ts +0 -2
- package/dist/caamp-init.d.ts.map +0 -1
- package/dist/caamp-init.js +0 -16
- package/dist/caamp-init.js.map +0 -1
- package/dist/cleo.d.ts +0 -291
- package/dist/cleo.d.ts.map +0 -1
- package/dist/cleo.js +0 -224
- package/dist/cleo.js.map +0 -1
- package/dist/codebase-map/analyzers/architecture.d.ts +0 -7
- package/dist/codebase-map/analyzers/architecture.d.ts.map +0 -1
- package/dist/codebase-map/analyzers/architecture.js +0 -130
- package/dist/codebase-map/analyzers/architecture.js.map +0 -1
- package/dist/codebase-map/analyzers/concerns.d.ts +0 -6
- package/dist/codebase-map/analyzers/concerns.d.ts.map +0 -1
- package/dist/codebase-map/analyzers/concerns.js +0 -122
- package/dist/codebase-map/analyzers/concerns.js.map +0 -1
- package/dist/codebase-map/analyzers/conventions.d.ts +0 -8
- package/dist/codebase-map/analyzers/conventions.d.ts.map +0 -1
- package/dist/codebase-map/analyzers/conventions.js +0 -149
- package/dist/codebase-map/analyzers/conventions.js.map +0 -1
- package/dist/codebase-map/analyzers/integrations.d.ts +0 -7
- package/dist/codebase-map/analyzers/integrations.d.ts.map +0 -1
- package/dist/codebase-map/analyzers/integrations.js +0 -108
- package/dist/codebase-map/analyzers/integrations.js.map +0 -1
- package/dist/codebase-map/analyzers/stack.d.ts +0 -8
- package/dist/codebase-map/analyzers/stack.d.ts.map +0 -1
- package/dist/codebase-map/analyzers/stack.js +0 -117
- package/dist/codebase-map/analyzers/stack.js.map +0 -1
- package/dist/codebase-map/analyzers/structure.d.ts +0 -6
- package/dist/codebase-map/analyzers/structure.d.ts.map +0 -1
- package/dist/codebase-map/analyzers/structure.js +0 -137
- package/dist/codebase-map/analyzers/structure.js.map +0 -1
- package/dist/codebase-map/analyzers/testing.d.ts +0 -8
- package/dist/codebase-map/analyzers/testing.d.ts.map +0 -1
- package/dist/codebase-map/analyzers/testing.js +0 -118
- package/dist/codebase-map/analyzers/testing.js.map +0 -1
- package/dist/codebase-map/index.d.ts +0 -94
- package/dist/codebase-map/index.d.ts.map +0 -1
- package/dist/codebase-map/index.js +0 -57
- package/dist/codebase-map/index.js.map +0 -1
- package/dist/codebase-map/store.d.ts +0 -13
- package/dist/codebase-map/store.d.ts.map +0 -1
- package/dist/codebase-map/store.js +0 -122
- package/dist/codebase-map/store.js.map +0 -1
- package/dist/codebase-map/summary.d.ts +0 -7
- package/dist/codebase-map/summary.d.ts.map +0 -1
- package/dist/codebase-map/summary.js +0 -152
- package/dist/codebase-map/summary.js.map +0 -1
- package/dist/compliance/index.d.ts +0 -38
- package/dist/compliance/index.d.ts.map +0 -1
- package/dist/compliance/index.js +0 -288
- package/dist/compliance/index.js.map +0 -1
- package/dist/compliance/protocol-enforcement.d.ts +0 -106
- package/dist/compliance/protocol-enforcement.d.ts.map +0 -1
- package/dist/compliance/protocol-enforcement.js +0 -332
- package/dist/compliance/protocol-enforcement.js.map +0 -1
- package/dist/compliance/protocol-rules.d.ts +0 -55
- package/dist/compliance/protocol-rules.d.ts.map +0 -1
- package/dist/compliance/protocol-rules.js +0 -786
- package/dist/compliance/protocol-rules.js.map +0 -1
- package/dist/compliance/protocol-types.d.ts +0 -109
- package/dist/compliance/protocol-types.d.ts.map +0 -1
- package/dist/compliance/protocol-types.js +0 -80
- package/dist/compliance/protocol-types.js.map +0 -1
- package/dist/compliance/store.d.ts +0 -19
- package/dist/compliance/store.d.ts.map +0 -1
- package/dist/compliance/store.js +0 -53
- package/dist/compliance/store.js.map +0 -1
- package/dist/config/build-config.d.ts +0 -31
- package/dist/config/build-config.d.ts.map +0 -1
- package/dist/config/build-config.js +0 -29
- package/dist/config/build-config.js.map +0 -1
- package/dist/config.d.ts +0 -53
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -287
- package/dist/config.js.map +0 -1
- package/dist/constants.d.ts +0 -13
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js +0 -18
- package/dist/constants.js.map +0 -1
- package/dist/context/index.d.ts +0 -20
- package/dist/context/index.d.ts.map +0 -1
- package/dist/context/index.js +0 -137
- package/dist/context/index.js.map +0 -1
- package/dist/engine-result.d.ts +0 -31
- package/dist/engine-result.d.ts.map +0 -1
- package/dist/engine-result.js +0 -12
- package/dist/engine-result.js.map +0 -1
- package/dist/error-catalog.d.ts +0 -49
- package/dist/error-catalog.d.ts.map +0 -1
- package/dist/error-catalog.js +0 -404
- package/dist/error-catalog.js.map +0 -1
- package/dist/error-registry.d.ts +0 -58
- package/dist/error-registry.d.ts.map +0 -1
- package/dist/error-registry.js +0 -393
- package/dist/error-registry.js.map +0 -1
- package/dist/errors.d.ts +0 -66
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js +0 -167
- package/dist/errors.js.map +0 -1
- package/dist/hooks/handlers/error-hooks.d.ts +0 -18
- package/dist/hooks/handlers/error-hooks.d.ts.map +0 -1
- package/dist/hooks/handlers/error-hooks.js +0 -43
- package/dist/hooks/handlers/error-hooks.js.map +0 -1
- package/dist/hooks/handlers/file-hooks.d.ts +0 -20
- package/dist/hooks/handlers/file-hooks.d.ts.map +0 -1
- package/dist/hooks/handlers/file-hooks.js +0 -80
- package/dist/hooks/handlers/file-hooks.js.map +0 -1
- package/dist/hooks/handlers/index.d.ts +0 -17
- package/dist/hooks/handlers/index.d.ts.map +0 -1
- package/dist/hooks/handlers/index.js +0 -19
- package/dist/hooks/handlers/index.js.map +0 -1
- package/dist/hooks/handlers/mcp-hooks.d.ts +0 -22
- package/dist/hooks/handlers/mcp-hooks.d.ts.map +0 -1
- package/dist/hooks/handlers/mcp-hooks.js +0 -80
- package/dist/hooks/handlers/mcp-hooks.js.map +0 -1
- package/dist/hooks/handlers/session-hooks.d.ts +0 -16
- package/dist/hooks/handlers/session-hooks.d.ts.map +0 -1
- package/dist/hooks/handlers/session-hooks.js +0 -73
- package/dist/hooks/handlers/session-hooks.js.map +0 -1
- package/dist/hooks/handlers/task-hooks.d.ts +0 -16
- package/dist/hooks/handlers/task-hooks.d.ts.map +0 -1
- package/dist/hooks/handlers/task-hooks.js +0 -63
- package/dist/hooks/handlers/task-hooks.js.map +0 -1
- package/dist/hooks/index.d.ts +0 -12
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/index.js +0 -11
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/provider-hooks.d.ts +0 -27
- package/dist/hooks/provider-hooks.d.ts.map +0 -1
- package/dist/hooks/provider-hooks.js +0 -34
- package/dist/hooks/provider-hooks.js.map +0 -1
- package/dist/hooks/registry.d.ts +0 -111
- package/dist/hooks/registry.d.ts.map +0 -1
- package/dist/hooks/registry.js +0 -176
- package/dist/hooks/registry.js.map +0 -1
- package/dist/hooks/types.d.ts +0 -299
- package/dist/hooks/types.d.ts.map +0 -1
- package/dist/hooks/types.js +0 -62
- package/dist/hooks/types.js.map +0 -1
- package/dist/hooks.d.ts +0 -46
- package/dist/hooks.d.ts.map +0 -1
- package/dist/hooks.js +0 -136
- package/dist/hooks.js.map +0 -1
- package/dist/index.d.ts +0 -109
- package/dist/index.d.ts.map +0 -1
- package/dist/init.d.ts +0 -137
- package/dist/init.d.ts.map +0 -1
- package/dist/init.js +0 -664
- package/dist/init.js.map +0 -1
- package/dist/inject/index.d.ts +0 -24
- package/dist/inject/index.d.ts.map +0 -1
- package/dist/inject/index.js +0 -82
- package/dist/inject/index.js.map +0 -1
- package/dist/injection.d.ts +0 -69
- package/dist/injection.d.ts.map +0 -1
- package/dist/injection.js +0 -338
- package/dist/injection.js.map +0 -1
- package/dist/internal.d.ts +0 -213
- package/dist/internal.d.ts.map +0 -1
- package/dist/internal.js +0 -261
- package/dist/internal.js.map +0 -1
- package/dist/issue/create.d.ts +0 -43
- package/dist/issue/create.d.ts.map +0 -1
- package/dist/issue/create.js +0 -121
- package/dist/issue/create.js.map +0 -1
- package/dist/issue/diagnostics.d.ts +0 -18
- package/dist/issue/diagnostics.d.ts.map +0 -1
- package/dist/issue/diagnostics.js +0 -59
- package/dist/issue/diagnostics.js.map +0 -1
- package/dist/issue/index.d.ts +0 -12
- package/dist/issue/index.d.ts.map +0 -1
- package/dist/issue/index.js +0 -10
- package/dist/issue/index.js.map +0 -1
- package/dist/issue/template-parser.d.ts +0 -48
- package/dist/issue/template-parser.d.ts.map +0 -1
- package/dist/issue/template-parser.js +0 -213
- package/dist/issue/template-parser.js.map +0 -1
- package/dist/json-schema-validator.d.ts +0 -20
- package/dist/json-schema-validator.d.ts.map +0 -1
- package/dist/json-schema-validator.js +0 -76
- package/dist/json-schema-validator.js.map +0 -1
- package/dist/lifecycle/chain-composition.d.ts +0 -30
- package/dist/lifecycle/chain-composition.d.ts.map +0 -1
- package/dist/lifecycle/chain-composition.js +0 -152
- package/dist/lifecycle/chain-composition.js.map +0 -1
- package/dist/lifecycle/chain-store.d.ts +0 -70
- package/dist/lifecycle/chain-store.d.ts.map +0 -1
- package/dist/lifecycle/chain-store.js +0 -246
- package/dist/lifecycle/chain-store.js.map +0 -1
- package/dist/lifecycle/consolidate-rcasd.d.ts +0 -81
- package/dist/lifecycle/consolidate-rcasd.d.ts.map +0 -1
- package/dist/lifecycle/consolidate-rcasd.js +0 -352
- package/dist/lifecycle/consolidate-rcasd.js.map +0 -1
- package/dist/lifecycle/default-chain.d.ts +0 -33
- package/dist/lifecycle/default-chain.d.ts.map +0 -1
- package/dist/lifecycle/default-chain.js +0 -167
- package/dist/lifecycle/default-chain.js.map +0 -1
- package/dist/lifecycle/evidence.d.ts +0 -71
- package/dist/lifecycle/evidence.d.ts.map +0 -1
- package/dist/lifecycle/evidence.js +0 -180
- package/dist/lifecycle/evidence.js.map +0 -1
- package/dist/lifecycle/frontmatter.d.ts +0 -104
- package/dist/lifecycle/frontmatter.d.ts.map +0 -1
- package/dist/lifecycle/frontmatter.js +0 -363
- package/dist/lifecycle/frontmatter.js.map +0 -1
- package/dist/lifecycle/index.d.ts +0 -228
- package/dist/lifecycle/index.d.ts.map +0 -1
- package/dist/lifecycle/index.js +0 -753
- package/dist/lifecycle/index.js.map +0 -1
- package/dist/lifecycle/pipeline.d.ts +0 -335
- package/dist/lifecycle/pipeline.d.ts.map +0 -1
- package/dist/lifecycle/pipeline.js +0 -651
- package/dist/lifecycle/pipeline.js.map +0 -1
- package/dist/lifecycle/rcasd-index.d.ts +0 -168
- package/dist/lifecycle/rcasd-index.d.ts.map +0 -1
- package/dist/lifecycle/rcasd-index.js +0 -326
- package/dist/lifecycle/rcasd-index.js.map +0 -1
- package/dist/lifecycle/rcasd-paths.d.ts +0 -103
- package/dist/lifecycle/rcasd-paths.d.ts.map +0 -1
- package/dist/lifecycle/rcasd-paths.js +0 -220
- package/dist/lifecycle/rcasd-paths.js.map +0 -1
- package/dist/lifecycle/resume.d.ts +0 -501
- package/dist/lifecycle/resume.d.ts.map +0 -1
- package/dist/lifecycle/resume.js +0 -864
- package/dist/lifecycle/resume.js.map +0 -1
- package/dist/lifecycle/stage-artifacts.d.ts +0 -23
- package/dist/lifecycle/stage-artifacts.d.ts.map +0 -1
- package/dist/lifecycle/stage-artifacts.js +0 -94
- package/dist/lifecycle/stage-artifacts.js.map +0 -1
- package/dist/lifecycle/stages.d.ts +0 -323
- package/dist/lifecycle/stages.d.ts.map +0 -1
- package/dist/lifecycle/stages.js +0 -534
- package/dist/lifecycle/stages.js.map +0 -1
- package/dist/lifecycle/state-machine.d.ts +0 -327
- package/dist/lifecycle/state-machine.d.ts.map +0 -1
- package/dist/lifecycle/state-machine.js +0 -512
- package/dist/lifecycle/state-machine.js.map +0 -1
- package/dist/lifecycle/tessera-engine.d.ts +0 -49
- package/dist/lifecycle/tessera-engine.d.ts.map +0 -1
- package/dist/lifecycle/tessera-engine.js +0 -249
- package/dist/lifecycle/tessera-engine.js.map +0 -1
- package/dist/logger.d.ts +0 -54
- package/dist/logger.d.ts.map +0 -1
- package/dist/logger.js +0 -140
- package/dist/logger.js.map +0 -1
- package/dist/mcp/index.d.ts +0 -42
- package/dist/mcp/index.d.ts.map +0 -1
- package/dist/mcp/index.js +0 -146
- package/dist/mcp/index.js.map +0 -1
- package/dist/memory/auto-extract.d.ts +0 -34
- package/dist/memory/auto-extract.d.ts.map +0 -1
- package/dist/memory/auto-extract.js +0 -143
- package/dist/memory/auto-extract.js.map +0 -1
- package/dist/memory/brain-embedding.d.ts +0 -42
- package/dist/memory/brain-embedding.d.ts.map +0 -1
- package/dist/memory/brain-embedding.js +0 -49
- package/dist/memory/brain-embedding.js.map +0 -1
- package/dist/memory/brain-lifecycle.d.ts +0 -57
- package/dist/memory/brain-lifecycle.d.ts.map +0 -1
- package/dist/memory/brain-lifecycle.js +0 -298
- package/dist/memory/brain-lifecycle.js.map +0 -1
- package/dist/memory/brain-links.d.ts +0 -75
- package/dist/memory/brain-links.d.ts.map +0 -1
- package/dist/memory/brain-links.js +0 -148
- package/dist/memory/brain-links.js.map +0 -1
- package/dist/memory/brain-migration.d.ts +0 -30
- package/dist/memory/brain-migration.d.ts.map +0 -1
- package/dist/memory/brain-migration.js +0 -149
- package/dist/memory/brain-migration.js.map +0 -1
- package/dist/memory/brain-reasoning.d.ts +0 -54
- package/dist/memory/brain-reasoning.d.ts.map +0 -1
- package/dist/memory/brain-reasoning.js +0 -215
- package/dist/memory/brain-reasoning.js.map +0 -1
- package/dist/memory/brain-retrieval.d.ts +0 -157
- package/dist/memory/brain-retrieval.d.ts.map +0 -1
- package/dist/memory/brain-retrieval.js +0 -481
- package/dist/memory/brain-retrieval.js.map +0 -1
- package/dist/memory/brain-row-types.d.ts +0 -45
- package/dist/memory/brain-row-types.d.ts.map +0 -1
- package/dist/memory/brain-row-types.js +0 -10
- package/dist/memory/brain-row-types.js.map +0 -1
- package/dist/memory/brain-search.d.ts +0 -91
- package/dist/memory/brain-search.d.ts.map +0 -1
- package/dist/memory/brain-search.js +0 -534
- package/dist/memory/brain-search.js.map +0 -1
- package/dist/memory/brain-similarity.d.ts +0 -33
- package/dist/memory/brain-similarity.d.ts.map +0 -1
- package/dist/memory/brain-similarity.js +0 -145
- package/dist/memory/brain-similarity.js.map +0 -1
- package/dist/memory/claude-mem-migration.d.ts +0 -45
- package/dist/memory/claude-mem-migration.d.ts.map +0 -1
- package/dist/memory/claude-mem-migration.js +0 -277
- package/dist/memory/claude-mem-migration.js.map +0 -1
- package/dist/memory/decisions.d.ts +0 -72
- package/dist/memory/decisions.d.ts.map +0 -1
- package/dist/memory/decisions.js +0 -148
- package/dist/memory/decisions.js.map +0 -1
- package/dist/memory/engine-compat.d.ts +0 -144
- package/dist/memory/engine-compat.d.ts.map +0 -1
- package/dist/memory/engine-compat.js +0 -1030
- package/dist/memory/engine-compat.js.map +0 -1
- package/dist/memory/index.d.ts +0 -305
- package/dist/memory/index.d.ts.map +0 -1
- package/dist/memory/index.js +0 -773
- package/dist/memory/index.js.map +0 -1
- package/dist/memory/learnings.d.ts +0 -74
- package/dist/memory/learnings.d.ts.map +0 -1
- package/dist/memory/learnings.js +0 -121
- package/dist/memory/learnings.js.map +0 -1
- package/dist/memory/memory-bridge.d.ts +0 -50
- package/dist/memory/memory-bridge.d.ts.map +0 -1
- package/dist/memory/memory-bridge.js +0 -289
- package/dist/memory/memory-bridge.js.map +0 -1
- package/dist/memory/patterns.d.ts +0 -87
- package/dist/memory/patterns.d.ts.map +0 -1
- package/dist/memory/patterns.js +0 -122
- package/dist/memory/patterns.js.map +0 -1
- package/dist/memory/pipeline-manifest-sqlite.d.ts +0 -83
- package/dist/memory/pipeline-manifest-sqlite.d.ts.map +0 -1
- package/dist/memory/pipeline-manifest-sqlite.js +0 -975
- package/dist/memory/pipeline-manifest-sqlite.js.map +0 -1
- package/dist/memory/session-memory.d.ts +0 -88
- package/dist/memory/session-memory.d.ts.map +0 -1
- package/dist/memory/session-memory.js +0 -226
- package/dist/memory/session-memory.js.map +0 -1
- package/dist/metrics/ab-test.d.ts +0 -52
- package/dist/metrics/ab-test.d.ts.map +0 -1
- package/dist/metrics/ab-test.js +0 -260
- package/dist/metrics/ab-test.js.map +0 -1
- package/dist/metrics/aggregation.d.ts +0 -41
- package/dist/metrics/aggregation.d.ts.map +0 -1
- package/dist/metrics/aggregation.js +0 -363
- package/dist/metrics/aggregation.js.map +0 -1
- package/dist/metrics/common.d.ts +0 -30
- package/dist/metrics/common.d.ts.map +0 -1
- package/dist/metrics/common.js +0 -64
- package/dist/metrics/common.js.map +0 -1
- package/dist/metrics/enums.d.ts +0 -68
- package/dist/metrics/enums.d.ts.map +0 -1
- package/dist/metrics/enums.js +0 -78
- package/dist/metrics/enums.js.map +0 -1
- package/dist/metrics/index.d.ts +0 -17
- package/dist/metrics/index.d.ts.map +0 -1
- package/dist/metrics/index.js +0 -19
- package/dist/metrics/index.js.map +0 -1
- package/dist/metrics/model-provider-registry.d.ts +0 -17
- package/dist/metrics/model-provider-registry.d.ts.map +0 -1
- package/dist/metrics/model-provider-registry.js +0 -88
- package/dist/metrics/model-provider-registry.js.map +0 -1
- package/dist/metrics/otel-integration.d.ts +0 -49
- package/dist/metrics/otel-integration.d.ts.map +0 -1
- package/dist/metrics/otel-integration.js +0 -263
- package/dist/metrics/otel-integration.js.map +0 -1
- package/dist/metrics/provider-detection.d.ts +0 -20
- package/dist/metrics/provider-detection.d.ts.map +0 -1
- package/dist/metrics/provider-detection.js +0 -103
- package/dist/metrics/provider-detection.js.map +0 -1
- package/dist/metrics/token-estimation.d.ts +0 -70
- package/dist/metrics/token-estimation.d.ts.map +0 -1
- package/dist/metrics/token-estimation.js +0 -253
- package/dist/metrics/token-estimation.js.map +0 -1
- package/dist/metrics/token-service.d.ts +0 -107
- package/dist/metrics/token-service.d.ts.map +0 -1
- package/dist/metrics/token-service.js +0 -450
- package/dist/metrics/token-service.js.map +0 -1
- package/dist/migration/agent-outputs.d.ts +0 -70
- package/dist/migration/agent-outputs.d.ts.map +0 -1
- package/dist/migration/agent-outputs.js +0 -316
- package/dist/migration/agent-outputs.js.map +0 -1
- package/dist/migration/checksum.d.ts +0 -55
- package/dist/migration/checksum.d.ts.map +0 -1
- package/dist/migration/checksum.js +0 -92
- package/dist/migration/checksum.js.map +0 -1
- package/dist/migration/index.d.ts +0 -79
- package/dist/migration/index.d.ts.map +0 -1
- package/dist/migration/index.js +0 -282
- package/dist/migration/index.js.map +0 -1
- package/dist/migration/logger.d.ts +0 -161
- package/dist/migration/logger.d.ts.map +0 -1
- package/dist/migration/logger.js +0 -360
- package/dist/migration/logger.js.map +0 -1
- package/dist/migration/preflight.d.ts +0 -10
- package/dist/migration/preflight.d.ts.map +0 -1
- package/dist/migration/preflight.js +0 -9
- package/dist/migration/preflight.js.map +0 -1
- package/dist/migration/state.d.ts +0 -186
- package/dist/migration/state.d.ts.map +0 -1
- package/dist/migration/state.js +0 -421
- package/dist/migration/state.js.map +0 -1
- package/dist/migration/validate.d.ts +0 -57
- package/dist/migration/validate.d.ts.map +0 -1
- package/dist/migration/validate.js +0 -241
- package/dist/migration/validate.js.map +0 -1
- package/dist/nexus/deps.d.ts +0 -98
- package/dist/nexus/deps.d.ts.map +0 -1
- package/dist/nexus/deps.js +0 -375
- package/dist/nexus/deps.js.map +0 -1
- package/dist/nexus/discover.d.ts +0 -66
- package/dist/nexus/discover.d.ts.map +0 -1
- package/dist/nexus/discover.js +0 -287
- package/dist/nexus/discover.js.map +0 -1
- package/dist/nexus/hash.d.ts +0 -7
- package/dist/nexus/hash.d.ts.map +0 -1
- package/dist/nexus/hash.js +0 -10
- package/dist/nexus/hash.js.map +0 -1
- package/dist/nexus/index.d.ts +0 -17
- package/dist/nexus/index.d.ts.map +0 -1
- package/dist/nexus/index.js +0 -36
- package/dist/nexus/index.js.map +0 -1
- package/dist/nexus/migrate-json-to-sqlite.d.ts +0 -23
- package/dist/nexus/migrate-json-to-sqlite.d.ts.map +0 -1
- package/dist/nexus/migrate-json-to-sqlite.js +0 -115
- package/dist/nexus/migrate-json-to-sqlite.js.map +0 -1
- package/dist/nexus/permissions.d.ts +0 -60
- package/dist/nexus/permissions.d.ts.map +0 -1
- package/dist/nexus/permissions.js +0 -105
- package/dist/nexus/permissions.js.map +0 -1
- package/dist/nexus/query.d.ts +0 -53
- package/dist/nexus/query.d.ts.map +0 -1
- package/dist/nexus/query.js +0 -175
- package/dist/nexus/query.js.map +0 -1
- package/dist/nexus/registry.d.ts +0 -126
- package/dist/nexus/registry.d.ts.map +0 -1
- package/dist/nexus/registry.js +0 -584
- package/dist/nexus/registry.js.map +0 -1
- package/dist/nexus/sharing/index.d.ts +0 -39
- package/dist/nexus/sharing/index.d.ts.map +0 -1
- package/dist/nexus/sharing/index.js +0 -179
- package/dist/nexus/sharing/index.js.map +0 -1
- package/dist/observability/index.d.ts +0 -32
- package/dist/observability/index.d.ts.map +0 -1
- package/dist/observability/index.js +0 -103
- package/dist/observability/index.js.map +0 -1
- package/dist/observability/log-filter.d.ts +0 -31
- package/dist/observability/log-filter.d.ts.map +0 -1
- package/dist/observability/log-filter.js +0 -63
- package/dist/observability/log-filter.js.map +0 -1
- package/dist/observability/log-parser.d.ts +0 -26
- package/dist/observability/log-parser.d.ts.map +0 -1
- package/dist/observability/log-parser.js +0 -99
- package/dist/observability/log-parser.js.map +0 -1
- package/dist/observability/log-reader.d.ts +0 -35
- package/dist/observability/log-reader.d.ts.map +0 -1
- package/dist/observability/log-reader.js +0 -139
- package/dist/observability/log-reader.js.map +0 -1
- package/dist/observability/types.d.ts +0 -112
- package/dist/observability/types.d.ts.map +0 -1
- package/dist/observability/types.js +0 -19
- package/dist/observability/types.js.map +0 -1
- package/dist/orchestration/analyze.d.ts +0 -57
- package/dist/orchestration/analyze.d.ts.map +0 -1
- package/dist/orchestration/analyze.js +0 -107
- package/dist/orchestration/analyze.js.map +0 -1
- package/dist/orchestration/bootstrap.d.ts +0 -12
- package/dist/orchestration/bootstrap.d.ts.map +0 -1
- package/dist/orchestration/bootstrap.js +0 -136
- package/dist/orchestration/bootstrap.js.map +0 -1
- package/dist/orchestration/context.d.ts +0 -38
- package/dist/orchestration/context.d.ts.map +0 -1
- package/dist/orchestration/context.js +0 -56
- package/dist/orchestration/context.js.map +0 -1
- package/dist/orchestration/critical-path.d.ts +0 -22
- package/dist/orchestration/critical-path.d.ts.map +0 -1
- package/dist/orchestration/critical-path.js +0 -100
- package/dist/orchestration/critical-path.js.map +0 -1
- package/dist/orchestration/index.d.ts +0 -116
- package/dist/orchestration/index.d.ts.map +0 -1
- package/dist/orchestration/index.js +0 -286
- package/dist/orchestration/index.js.map +0 -1
- package/dist/orchestration/parallel.d.ts +0 -35
- package/dist/orchestration/parallel.d.ts.map +0 -1
- package/dist/orchestration/parallel.js +0 -89
- package/dist/orchestration/parallel.js.map +0 -1
- package/dist/orchestration/protocol-validators.d.ts +0 -96
- package/dist/orchestration/protocol-validators.d.ts.map +0 -1
- package/dist/orchestration/protocol-validators.js +0 -524
- package/dist/orchestration/protocol-validators.js.map +0 -1
- package/dist/orchestration/skill-ops.d.ts +0 -29
- package/dist/orchestration/skill-ops.d.ts.map +0 -1
- package/dist/orchestration/skill-ops.js +0 -81
- package/dist/orchestration/skill-ops.js.map +0 -1
- package/dist/orchestration/status.d.ts +0 -92
- package/dist/orchestration/status.d.ts.map +0 -1
- package/dist/orchestration/status.js +0 -107
- package/dist/orchestration/status.js.map +0 -1
- package/dist/orchestration/unblock.d.ts +0 -31
- package/dist/orchestration/unblock.d.ts.map +0 -1
- package/dist/orchestration/unblock.js +0 -103
- package/dist/orchestration/unblock.js.map +0 -1
- package/dist/orchestration/validate-spawn.d.ts +0 -19
- package/dist/orchestration/validate-spawn.d.ts.map +0 -1
- package/dist/orchestration/validate-spawn.js +0 -67
- package/dist/orchestration/validate-spawn.js.map +0 -1
- package/dist/orchestration/waves.d.ts +0 -26
- package/dist/orchestration/waves.d.ts.map +0 -1
- package/dist/orchestration/waves.js +0 -86
- package/dist/orchestration/waves.js.map +0 -1
- package/dist/otel/index.d.ts +0 -27
- package/dist/otel/index.d.ts.map +0 -1
- package/dist/otel/index.js +0 -126
- package/dist/otel/index.js.map +0 -1
- package/dist/output.d.ts +0 -66
- package/dist/output.d.ts.map +0 -1
- package/dist/output.js +0 -132
- package/dist/output.js.map +0 -1
- package/dist/pagination.d.ts +0 -45
- package/dist/pagination.d.ts.map +0 -1
- package/dist/pagination.js +0 -61
- package/dist/pagination.js.map +0 -1
- package/dist/paths.d.ts +0 -165
- package/dist/paths.d.ts.map +0 -1
- package/dist/paths.js +0 -319
- package/dist/paths.js.map +0 -1
- package/dist/phases/deps.d.ts +0 -119
- package/dist/phases/deps.d.ts.map +0 -1
- package/dist/phases/deps.js +0 -369
- package/dist/phases/deps.js.map +0 -1
- package/dist/phases/index.d.ts +0 -123
- package/dist/phases/index.d.ts.map +0 -1
- package/dist/phases/index.js +0 -349
- package/dist/phases/index.js.map +0 -1
- package/dist/pipeline/index.d.ts +0 -10
- package/dist/pipeline/index.d.ts.map +0 -1
- package/dist/pipeline/index.js +0 -10
- package/dist/pipeline/index.js.map +0 -1
- package/dist/pipeline/phase.d.ts +0 -36
- package/dist/pipeline/phase.d.ts.map +0 -1
- package/dist/pipeline/phase.js +0 -45
- package/dist/pipeline/phase.js.map +0 -1
- package/dist/platform.d.ts +0 -103
- package/dist/platform.d.ts.map +0 -1
- package/dist/platform.js +0 -211
- package/dist/platform.js.map +0 -1
- package/dist/project-info.d.ts +0 -35
- package/dist/project-info.d.ts.map +0 -1
- package/dist/project-info.js +0 -70
- package/dist/project-info.js.map +0 -1
- package/dist/reconciliation/index.d.ts +0 -8
- package/dist/reconciliation/index.d.ts.map +0 -1
- package/dist/reconciliation/index.js +0 -8
- package/dist/reconciliation/index.js.map +0 -1
- package/dist/reconciliation/reconciliation-engine.d.ts +0 -22
- package/dist/reconciliation/reconciliation-engine.d.ts.map +0 -1
- package/dist/reconciliation/reconciliation-engine.js +0 -258
- package/dist/reconciliation/reconciliation-engine.js.map +0 -1
- package/dist/reconciliation/sync-state.d.ts +0 -22
- package/dist/reconciliation/sync-state.d.ts.map +0 -1
- package/dist/reconciliation/sync-state.js +0 -59
- package/dist/reconciliation/sync-state.js.map +0 -1
- package/dist/release/artifacts.d.ts +0 -71
- package/dist/release/artifacts.d.ts.map +0 -1
- package/dist/release/artifacts.js +0 -427
- package/dist/release/artifacts.js.map +0 -1
- package/dist/release/changelog-writer.d.ts +0 -26
- package/dist/release/changelog-writer.d.ts.map +0 -1
- package/dist/release/changelog-writer.js +0 -151
- package/dist/release/changelog-writer.js.map +0 -1
- package/dist/release/channel.d.ts +0 -54
- package/dist/release/channel.d.ts.map +0 -1
- package/dist/release/channel.js +0 -144
- package/dist/release/channel.js.map +0 -1
- package/dist/release/ci.d.ts +0 -35
- package/dist/release/ci.d.ts.map +0 -1
- package/dist/release/ci.js +0 -166
- package/dist/release/ci.js.map +0 -1
- package/dist/release/github-pr.d.ts +0 -63
- package/dist/release/github-pr.d.ts.map +0 -1
- package/dist/release/github-pr.js +0 -225
- package/dist/release/github-pr.js.map +0 -1
- package/dist/release/guards.d.ts +0 -44
- package/dist/release/guards.d.ts.map +0 -1
- package/dist/release/guards.js +0 -116
- package/dist/release/guards.js.map +0 -1
- package/dist/release/index.d.ts +0 -26
- package/dist/release/index.d.ts.map +0 -1
- package/dist/release/index.js +0 -22
- package/dist/release/index.js.map +0 -1
- package/dist/release/release-config.d.ts +0 -90
- package/dist/release/release-config.d.ts.map +0 -1
- package/dist/release/release-config.js +0 -158
- package/dist/release/release-config.js.map +0 -1
- package/dist/release/release-manifest.d.ts +0 -215
- package/dist/release/release-manifest.d.ts.map +0 -1
- package/dist/release/release-manifest.js +0 -978
- package/dist/release/release-manifest.js.map +0 -1
- package/dist/release/version-bump.d.ts +0 -51
- package/dist/release/version-bump.d.ts.map +0 -1
- package/dist/release/version-bump.js +0 -255
- package/dist/release/version-bump.js.map +0 -1
- package/dist/remote/index.d.ts +0 -81
- package/dist/remote/index.d.ts.map +0 -1
- package/dist/remote/index.js +0 -257
- package/dist/remote/index.js.map +0 -1
- package/dist/repair.d.ts +0 -30
- package/dist/repair.d.ts.map +0 -1
- package/dist/repair.js +0 -89
- package/dist/repair.js.map +0 -1
- package/dist/research/index.d.ts +0 -2
- package/dist/research/index.d.ts.map +0 -1
- package/dist/research/index.js +0 -2
- package/dist/research/index.js.map +0 -1
- package/dist/roadmap/index.d.ts +0 -13
- package/dist/roadmap/index.d.ts.map +0 -1
- package/dist/roadmap/index.js +0 -59
- package/dist/roadmap/index.js.map +0 -1
- package/dist/routing/capability-matrix.d.ts +0 -78
- package/dist/routing/capability-matrix.d.ts.map +0 -1
- package/dist/routing/capability-matrix.js +0 -318
- package/dist/routing/capability-matrix.js.map +0 -1
- package/dist/routing/index.d.ts +0 -10
- package/dist/routing/index.d.ts.map +0 -1
- package/dist/routing/index.js +0 -9
- package/dist/routing/index.js.map +0 -1
- package/dist/scaffold.d.ts +0 -215
- package/dist/scaffold.d.ts.map +0 -1
- package/dist/scaffold.js +0 -1080
- package/dist/scaffold.js.map +0 -1
- package/dist/schema-management.d.ts +0 -96
- package/dist/schema-management.d.ts.map +0 -1
- package/dist/schema-management.js +0 -295
- package/dist/schema-management.js.map +0 -1
- package/dist/security/index.d.ts +0 -10
- package/dist/security/index.d.ts.map +0 -1
- package/dist/security/index.js +0 -9
- package/dist/security/index.js.map +0 -1
- package/dist/security/input-sanitization.d.ts +0 -93
- package/dist/security/input-sanitization.d.ts.map +0 -1
- package/dist/security/input-sanitization.js +0 -321
- package/dist/security/input-sanitization.js.map +0 -1
- package/dist/sequence/index.d.ts +0 -34
- package/dist/sequence/index.d.ts.map +0 -1
- package/dist/sequence/index.js +0 -295
- package/dist/sequence/index.js.map +0 -1
- package/dist/sessions/assumptions.d.ts +0 -22
- package/dist/sessions/assumptions.d.ts.map +0 -1
- package/dist/sessions/assumptions.js +0 -54
- package/dist/sessions/assumptions.js.map +0 -1
- package/dist/sessions/briefing.d.ts +0 -113
- package/dist/sessions/briefing.d.ts.map +0 -1
- package/dist/sessions/briefing.js +0 -386
- package/dist/sessions/briefing.js.map +0 -1
- package/dist/sessions/context-alert.d.ts +0 -48
- package/dist/sessions/context-alert.d.ts.map +0 -1
- package/dist/sessions/context-alert.js +0 -222
- package/dist/sessions/context-alert.js.map +0 -1
- package/dist/sessions/context-inject.d.ts +0 -31
- package/dist/sessions/context-inject.d.ts.map +0 -1
- package/dist/sessions/context-inject.js +0 -61
- package/dist/sessions/context-inject.js.map +0 -1
- package/dist/sessions/context-monitor.d.ts +0 -33
- package/dist/sessions/context-monitor.d.ts.map +0 -1
- package/dist/sessions/context-monitor.js +0 -98
- package/dist/sessions/context-monitor.js.map +0 -1
- package/dist/sessions/decisions.d.ts +0 -29
- package/dist/sessions/decisions.d.ts.map +0 -1
- package/dist/sessions/decisions.js +0 -65
- package/dist/sessions/decisions.js.map +0 -1
- package/dist/sessions/find.d.ts +0 -38
- package/dist/sessions/find.d.ts.map +0 -1
- package/dist/sessions/find.js +0 -63
- package/dist/sessions/find.js.map +0 -1
- package/dist/sessions/handoff.d.ts +0 -137
- package/dist/sessions/handoff.d.ts.map +0 -1
- package/dist/sessions/handoff.js +0 -356
- package/dist/sessions/handoff.js.map +0 -1
- package/dist/sessions/hitl-warnings.d.ts +0 -58
- package/dist/sessions/hitl-warnings.d.ts.map +0 -1
- package/dist/sessions/hitl-warnings.js +0 -254
- package/dist/sessions/hitl-warnings.js.map +0 -1
- package/dist/sessions/index.d.ts +0 -107
- package/dist/sessions/index.d.ts.map +0 -1
- package/dist/sessions/index.js +0 -318
- package/dist/sessions/index.js.map +0 -1
- package/dist/sessions/session-archive.d.ts +0 -17
- package/dist/sessions/session-archive.d.ts.map +0 -1
- package/dist/sessions/session-archive.js +0 -40
- package/dist/sessions/session-archive.js.map +0 -1
- package/dist/sessions/session-cleanup.d.ts +0 -22
- package/dist/sessions/session-cleanup.d.ts.map +0 -1
- package/dist/sessions/session-cleanup.js +0 -59
- package/dist/sessions/session-cleanup.js.map +0 -1
- package/dist/sessions/session-drift.d.ts +0 -22
- package/dist/sessions/session-drift.d.ts.map +0 -1
- package/dist/sessions/session-drift.js +0 -134
- package/dist/sessions/session-drift.js.map +0 -1
- package/dist/sessions/session-enforcement.d.ts +0 -49
- package/dist/sessions/session-enforcement.d.ts.map +0 -1
- package/dist/sessions/session-enforcement.js +0 -137
- package/dist/sessions/session-enforcement.js.map +0 -1
- package/dist/sessions/session-grade.d.ts +0 -41
- package/dist/sessions/session-grade.d.ts.map +0 -1
- package/dist/sessions/session-grade.js +0 -253
- package/dist/sessions/session-grade.js.map +0 -1
- package/dist/sessions/session-history.d.ts +0 -32
- package/dist/sessions/session-history.d.ts.map +0 -1
- package/dist/sessions/session-history.js +0 -42
- package/dist/sessions/session-history.js.map +0 -1
- package/dist/sessions/session-id.d.ts +0 -34
- package/dist/sessions/session-id.d.ts.map +0 -1
- package/dist/sessions/session-id.js +0 -81
- package/dist/sessions/session-id.js.map +0 -1
- package/dist/sessions/session-memory-bridge.d.ts +0 -28
- package/dist/sessions/session-memory-bridge.d.ts.map +0 -1
- package/dist/sessions/session-memory-bridge.js +0 -52
- package/dist/sessions/session-memory-bridge.js.map +0 -1
- package/dist/sessions/session-show.d.ts +0 -14
- package/dist/sessions/session-show.d.ts.map +0 -1
- package/dist/sessions/session-show.js +0 -24
- package/dist/sessions/session-show.js.map +0 -1
- package/dist/sessions/session-stats.d.ts +0 -30
- package/dist/sessions/session-stats.d.ts.map +0 -1
- package/dist/sessions/session-stats.js +0 -69
- package/dist/sessions/session-stats.js.map +0 -1
- package/dist/sessions/session-suspend.d.ts +0 -14
- package/dist/sessions/session-suspend.d.ts.map +0 -1
- package/dist/sessions/session-suspend.js +0 -39
- package/dist/sessions/session-suspend.js.map +0 -1
- package/dist/sessions/session-switch.d.ts +0 -14
- package/dist/sessions/session-switch.d.ts.map +0 -1
- package/dist/sessions/session-switch.js +0 -51
- package/dist/sessions/session-switch.js.map +0 -1
- package/dist/sessions/session-view.d.ts +0 -41
- package/dist/sessions/session-view.d.ts.map +0 -1
- package/dist/sessions/session-view.js +0 -76
- package/dist/sessions/session-view.js.map +0 -1
- package/dist/sessions/statusline-setup.d.ts +0 -24
- package/dist/sessions/statusline-setup.d.ts.map +0 -1
- package/dist/sessions/statusline-setup.js +0 -85
- package/dist/sessions/statusline-setup.js.map +0 -1
- package/dist/sessions/types.d.ts +0 -144
- package/dist/sessions/types.d.ts.map +0 -1
- package/dist/sessions/types.js +0 -17
- package/dist/sessions/types.js.map +0 -1
- package/dist/signaldock/claude-code-transport.d.ts +0 -34
- package/dist/signaldock/claude-code-transport.d.ts.map +0 -1
- package/dist/signaldock/claude-code-transport.js +0 -107
- package/dist/signaldock/claude-code-transport.js.map +0 -1
- package/dist/signaldock/factory.d.ts +0 -22
- package/dist/signaldock/factory.d.ts.map +0 -1
- package/dist/signaldock/factory.js +0 -25
- package/dist/signaldock/factory.js.map +0 -1
- package/dist/signaldock/index.d.ts +0 -13
- package/dist/signaldock/index.d.ts.map +0 -1
- package/dist/signaldock/index.js +0 -9
- package/dist/signaldock/index.js.map +0 -1
- package/dist/signaldock/signaldock-transport.d.ts +0 -45
- package/dist/signaldock/signaldock-transport.d.ts.map +0 -1
- package/dist/signaldock/signaldock-transport.js +0 -119
- package/dist/signaldock/signaldock-transport.js.map +0 -1
- package/dist/signaldock/transport.d.ts +0 -49
- package/dist/signaldock/transport.d.ts.map +0 -1
- package/dist/signaldock/transport.js +0 -11
- package/dist/signaldock/transport.js.map +0 -1
- package/dist/signaldock/types.d.ts +0 -88
- package/dist/signaldock/types.d.ts.map +0 -1
- package/dist/signaldock/types.js +0 -11
- package/dist/signaldock/types.js.map +0 -1
- package/dist/skills/agents/config.d.ts +0 -39
- package/dist/skills/agents/config.d.ts.map +0 -1
- package/dist/skills/agents/config.js +0 -94
- package/dist/skills/agents/config.js.map +0 -1
- package/dist/skills/agents/install.d.ts +0 -33
- package/dist/skills/agents/install.d.ts.map +0 -1
- package/dist/skills/agents/install.js +0 -109
- package/dist/skills/agents/install.js.map +0 -1
- package/dist/skills/agents/registry.d.ts +0 -56
- package/dist/skills/agents/registry.d.ts.map +0 -1
- package/dist/skills/agents/registry.js +0 -161
- package/dist/skills/agents/registry.js.map +0 -1
- package/dist/skills/discovery.d.ts +0 -102
- package/dist/skills/discovery.d.ts.map +0 -1
- package/dist/skills/discovery.js +0 -333
- package/dist/skills/discovery.js.map +0 -1
- package/dist/skills/dispatch.d.ts +0 -67
- package/dist/skills/dispatch.d.ts.map +0 -1
- package/dist/skills/dispatch.js +0 -347
- package/dist/skills/dispatch.js.map +0 -1
- package/dist/skills/dynamic-skill-generator.d.ts +0 -42
- package/dist/skills/dynamic-skill-generator.d.ts.map +0 -1
- package/dist/skills/dynamic-skill-generator.js +0 -100
- package/dist/skills/dynamic-skill-generator.js.map +0 -1
- package/dist/skills/index.d.ts +0 -38
- package/dist/skills/index.d.ts.map +0 -1
- package/dist/skills/index.js +0 -44
- package/dist/skills/index.js.map +0 -1
- package/dist/skills/injection/subagent.d.ts +0 -60
- package/dist/skills/injection/subagent.d.ts.map +0 -1
- package/dist/skills/injection/subagent.js +0 -199
- package/dist/skills/injection/subagent.js.map +0 -1
- package/dist/skills/injection/token.d.ts +0 -121
- package/dist/skills/injection/token.d.ts.map +0 -1
- package/dist/skills/injection/token.js +0 -260
- package/dist/skills/injection/token.js.map +0 -1
- package/dist/skills/install.d.ts +0 -16
- package/dist/skills/install.d.ts.map +0 -1
- package/dist/skills/install.js +0 -40
- package/dist/skills/install.js.map +0 -1
- package/dist/skills/manifests/contribution.d.ts +0 -74
- package/dist/skills/manifests/contribution.d.ts.map +0 -1
- package/dist/skills/manifests/contribution.js +0 -180
- package/dist/skills/manifests/contribution.js.map +0 -1
- package/dist/skills/manifests/research.d.ts +0 -73
- package/dist/skills/manifests/research.d.ts.map +0 -1
- package/dist/skills/manifests/research.js +0 -282
- package/dist/skills/manifests/research.js.map +0 -1
- package/dist/skills/manifests/resolver.d.ts +0 -40
- package/dist/skills/manifests/resolver.d.ts.map +0 -1
- package/dist/skills/manifests/resolver.js +0 -146
- package/dist/skills/manifests/resolver.js.map +0 -1
- package/dist/skills/marketplace.d.ts +0 -45
- package/dist/skills/marketplace.d.ts.map +0 -1
- package/dist/skills/marketplace.js +0 -90
- package/dist/skills/marketplace.js.map +0 -1
- package/dist/skills/orchestrator/spawn.d.ts +0 -66
- package/dist/skills/orchestrator/spawn.d.ts.map +0 -1
- package/dist/skills/orchestrator/spawn.js +0 -188
- package/dist/skills/orchestrator/spawn.js.map +0 -1
- package/dist/skills/orchestrator/startup.d.ts +0 -85
- package/dist/skills/orchestrator/startup.d.ts.map +0 -1
- package/dist/skills/orchestrator/startup.js +0 -441
- package/dist/skills/orchestrator/startup.js.map +0 -1
- package/dist/skills/orchestrator/validator.d.ts +0 -40
- package/dist/skills/orchestrator/validator.d.ts.map +0 -1
- package/dist/skills/orchestrator/validator.js +0 -302
- package/dist/skills/orchestrator/validator.js.map +0 -1
- package/dist/skills/precedence-integration.d.ts +0 -46
- package/dist/skills/precedence-integration.d.ts.map +0 -1
- package/dist/skills/precedence-integration.js +0 -73
- package/dist/skills/precedence-integration.js.map +0 -1
- package/dist/skills/precedence-types.d.ts +0 -27
- package/dist/skills/precedence-types.d.ts.map +0 -1
- package/dist/skills/precedence-types.js +0 -8
- package/dist/skills/precedence-types.js.map +0 -1
- package/dist/skills/routing-table.d.ts +0 -58
- package/dist/skills/routing-table.d.ts.map +0 -1
- package/dist/skills/routing-table.js +0 -276
- package/dist/skills/routing-table.js.map +0 -1
- package/dist/skills/skill-paths.d.ts +0 -79
- package/dist/skills/skill-paths.d.ts.map +0 -1
- package/dist/skills/skill-paths.js +0 -219
- package/dist/skills/skill-paths.js.map +0 -1
- package/dist/skills/test-utility.d.ts +0 -39
- package/dist/skills/test-utility.d.ts.map +0 -1
- package/dist/skills/test-utility.js +0 -55
- package/dist/skills/test-utility.js.map +0 -1
- package/dist/skills/types.d.ts +0 -281
- package/dist/skills/types.d.ts.map +0 -1
- package/dist/skills/types.js +0 -86
- package/dist/skills/types.js.map +0 -1
- package/dist/skills/validation.d.ts +0 -46
- package/dist/skills/validation.d.ts.map +0 -1
- package/dist/skills/validation.js +0 -183
- package/dist/skills/validation.js.map +0 -1
- package/dist/skills/version.d.ts +0 -31
- package/dist/skills/version.d.ts.map +0 -1
- package/dist/skills/version.js +0 -57
- package/dist/skills/version.js.map +0 -1
- package/dist/snapshot/index.d.ts +0 -83
- package/dist/snapshot/index.d.ts.map +0 -1
- package/dist/snapshot/index.js +0 -188
- package/dist/snapshot/index.js.map +0 -1
- package/dist/spawn/adapter-registry.d.ts +0 -132
- package/dist/spawn/adapter-registry.d.ts.map +0 -1
- package/dist/spawn/adapter-registry.js +0 -247
- package/dist/spawn/adapter-registry.js.map +0 -1
- package/dist/spawn/index.d.ts +0 -11
- package/dist/spawn/index.d.ts.map +0 -1
- package/dist/spawn/index.js +0 -10
- package/dist/spawn/index.js.map +0 -1
- package/dist/stats/index.d.ts +0 -37
- package/dist/stats/index.d.ts.map +0 -1
- package/dist/stats/index.js +0 -339
- package/dist/stats/index.js.map +0 -1
- package/dist/sticky/archive.d.ts +0 -18
- package/dist/sticky/archive.d.ts.map +0 -1
- package/dist/sticky/archive.js +0 -47
- package/dist/sticky/archive.js.map +0 -1
- package/dist/sticky/convert.d.ts +0 -73
- package/dist/sticky/convert.d.ts.map +0 -1
- package/dist/sticky/convert.js +0 -235
- package/dist/sticky/convert.js.map +0 -1
- package/dist/sticky/create.d.ts +0 -18
- package/dist/sticky/create.d.ts.map +0 -1
- package/dist/sticky/create.js +0 -48
- package/dist/sticky/create.js.map +0 -1
- package/dist/sticky/id.d.ts +0 -18
- package/dist/sticky/id.d.ts.map +0 -1
- package/dist/sticky/id.js +0 -35
- package/dist/sticky/id.js.map +0 -1
- package/dist/sticky/index.d.ts +0 -17
- package/dist/sticky/index.d.ts.map +0 -1
- package/dist/sticky/index.js +0 -16
- package/dist/sticky/index.js.map +0 -1
- package/dist/sticky/list.d.ts +0 -18
- package/dist/sticky/list.d.ts.map +0 -1
- package/dist/sticky/list.js +0 -44
- package/dist/sticky/list.js.map +0 -1
- package/dist/sticky/purge.d.ts +0 -17
- package/dist/sticky/purge.d.ts.map +0 -1
- package/dist/sticky/purge.js +0 -45
- package/dist/sticky/purge.js.map +0 -1
- package/dist/sticky/show.d.ts +0 -18
- package/dist/sticky/show.d.ts.map +0 -1
- package/dist/sticky/show.js +0 -42
- package/dist/sticky/show.js.map +0 -1
- package/dist/sticky/types.d.ts +0 -87
- package/dist/sticky/types.d.ts.map +0 -1
- package/dist/sticky/types.js +0 -10
- package/dist/sticky/types.js.map +0 -1
- package/dist/store/atomic.d.ts +0 -75
- package/dist/store/atomic.d.ts.map +0 -1
- package/dist/store/atomic.js +0 -167
- package/dist/store/atomic.js.map +0 -1
- package/dist/store/backup.d.ts +0 -21
- package/dist/store/backup.d.ts.map +0 -1
- package/dist/store/backup.js +0 -94
- package/dist/store/backup.js.map +0 -1
- package/dist/store/brain-accessor.d.ts +0 -84
- package/dist/store/brain-accessor.d.ts.map +0 -1
- package/dist/store/brain-accessor.js +0 -397
- package/dist/store/brain-accessor.js.map +0 -1
- package/dist/store/brain-schema.d.ts +0 -1339
- package/dist/store/brain-schema.d.ts.map +0 -1
- package/dist/store/brain-schema.js +0 -212
- package/dist/store/brain-schema.js.map +0 -1
- package/dist/store/brain-sqlite.d.ts +0 -59
- package/dist/store/brain-sqlite.d.ts.map +0 -1
- package/dist/store/brain-sqlite.js +0 -265
- package/dist/store/brain-sqlite.js.map +0 -1
- package/dist/store/cache.d.ts +0 -67
- package/dist/store/cache.d.ts.map +0 -1
- package/dist/store/cache.js +0 -168
- package/dist/store/cache.js.map +0 -1
- package/dist/store/chain-schema.d.ts +0 -319
- package/dist/store/chain-schema.d.ts.map +0 -1
- package/dist/store/chain-schema.js +0 -51
- package/dist/store/chain-schema.js.map +0 -1
- package/dist/store/converters.d.ts +0 -20
- package/dist/store/converters.d.ts.map +0 -1
- package/dist/store/converters.js +0 -120
- package/dist/store/converters.js.map +0 -1
- package/dist/store/data-accessor.d.ts +0 -20
- package/dist/store/data-accessor.d.ts.map +0 -1
- package/dist/store/data-accessor.js +0 -26
- package/dist/store/data-accessor.js.map +0 -1
- package/dist/store/data-safety-central.d.ts +0 -101
- package/dist/store/data-safety-central.d.ts.map +0 -1
- package/dist/store/data-safety-central.js +0 -269
- package/dist/store/data-safety-central.js.map +0 -1
- package/dist/store/data-safety.d.ts +0 -93
- package/dist/store/data-safety.d.ts.map +0 -1
- package/dist/store/data-safety.js +0 -274
- package/dist/store/data-safety.js.map +0 -1
- package/dist/store/db-helpers.d.ts +0 -62
- package/dist/store/db-helpers.d.ts.map +0 -1
- package/dist/store/db-helpers.js +0 -221
- package/dist/store/db-helpers.js.map +0 -1
- package/dist/store/export.d.ts +0 -87
- package/dist/store/export.d.ts.map +0 -1
- package/dist/store/export.js +0 -153
- package/dist/store/export.js.map +0 -1
- package/dist/store/file-utils.d.ts +0 -72
- package/dist/store/file-utils.d.ts.map +0 -1
- package/dist/store/file-utils.js +0 -270
- package/dist/store/file-utils.js.map +0 -1
- package/dist/store/git-checkpoint.d.ts +0 -93
- package/dist/store/git-checkpoint.d.ts.map +0 -1
- package/dist/store/git-checkpoint.js +0 -365
- package/dist/store/git-checkpoint.js.map +0 -1
- package/dist/store/import-logging.d.ts +0 -58
- package/dist/store/import-logging.d.ts.map +0 -1
- package/dist/store/import-logging.js +0 -139
- package/dist/store/import-logging.js.map +0 -1
- package/dist/store/import-remap.d.ts +0 -50
- package/dist/store/import-remap.d.ts.map +0 -1
- package/dist/store/import-remap.js +0 -145
- package/dist/store/import-remap.js.map +0 -1
- package/dist/store/import-sort.d.ts +0 -35
- package/dist/store/import-sort.d.ts.map +0 -1
- package/dist/store/import-sort.js +0 -121
- package/dist/store/import-sort.js.map +0 -1
- package/dist/store/index.d.ts +0 -28
- package/dist/store/index.d.ts.map +0 -1
- package/dist/store/index.js +0 -28
- package/dist/store/index.js.map +0 -1
- package/dist/store/json.d.ts +0 -57
- package/dist/store/json.d.ts.map +0 -1
- package/dist/store/json.js +0 -208
- package/dist/store/json.js.map +0 -1
- package/dist/store/lifecycle-store.d.ts +0 -125
- package/dist/store/lifecycle-store.d.ts.map +0 -1
- package/dist/store/lifecycle-store.js +0 -249
- package/dist/store/lifecycle-store.js.map +0 -1
- package/dist/store/lock.d.ts +0 -29
- package/dist/store/lock.d.ts.map +0 -1
- package/dist/store/lock.js +0 -70
- package/dist/store/lock.js.map +0 -1
- package/dist/store/migration-sqlite.d.ts +0 -68
- package/dist/store/migration-sqlite.d.ts.map +0 -1
- package/dist/store/migration-sqlite.js +0 -671
- package/dist/store/migration-sqlite.js.map +0 -1
- package/dist/store/nexus-schema.d.ts +0 -503
- package/dist/store/nexus-schema.d.ts.map +0 -1
- package/dist/store/nexus-schema.js +0 -62
- package/dist/store/nexus-schema.js.map +0 -1
- package/dist/store/nexus-sqlite.d.ts +0 -58
- package/dist/store/nexus-sqlite.d.ts.map +0 -1
- package/dist/store/nexus-sqlite.js +0 -211
- package/dist/store/nexus-sqlite.js.map +0 -1
- package/dist/store/nexus-validation-schemas.d.ts +0 -970
- package/dist/store/nexus-validation-schemas.d.ts.map +0 -1
- package/dist/store/nexus-validation-schemas.js +0 -41
- package/dist/store/nexus-validation-schemas.js.map +0 -1
- package/dist/store/parsers.d.ts +0 -16
- package/dist/store/parsers.d.ts.map +0 -1
- package/dist/store/parsers.js +0 -37
- package/dist/store/parsers.js.map +0 -1
- package/dist/store/project-detect.d.ts +0 -56
- package/dist/store/project-detect.d.ts.map +0 -1
- package/dist/store/project-detect.js +0 -457
- package/dist/store/project-detect.js.map +0 -1
- package/dist/store/provider.d.ts +0 -148
- package/dist/store/provider.d.ts.map +0 -1
- package/dist/store/provider.js +0 -101
- package/dist/store/provider.js.map +0 -1
- package/dist/store/safety-data-accessor.d.ts +0 -124
- package/dist/store/safety-data-accessor.d.ts.map +0 -1
- package/dist/store/safety-data-accessor.js +0 -243
- package/dist/store/safety-data-accessor.js.map +0 -1
- package/dist/store/schema.d.ts +0 -7
- package/dist/store/schema.d.ts.map +0 -1
- package/dist/store/schema.js +0 -7
- package/dist/store/schema.js.map +0 -1
- package/dist/store/session-store.d.ts +0 -42
- package/dist/store/session-store.d.ts.map +0 -1
- package/dist/store/session-store.js +0 -219
- package/dist/store/session-store.js.map +0 -1
- package/dist/store/sqlite-backup.d.ts +0 -34
- package/dist/store/sqlite-backup.d.ts.map +0 -1
- package/dist/store/sqlite-backup.js +0 -105
- package/dist/store/sqlite-backup.js.map +0 -1
- package/dist/store/sqlite-data-accessor.d.ts +0 -26
- package/dist/store/sqlite-data-accessor.d.ts.map +0 -1
- package/dist/store/sqlite-data-accessor.js +0 -742
- package/dist/store/sqlite-data-accessor.js.map +0 -1
- package/dist/store/sqlite.d.ts +0 -106
- package/dist/store/sqlite.d.ts.map +0 -1
- package/dist/store/sqlite.js +0 -481
- package/dist/store/sqlite.js.map +0 -1
- package/dist/store/status-registry.d.ts +0 -9
- package/dist/store/status-registry.d.ts.map +0 -1
- package/dist/store/status-registry.js +0 -8
- package/dist/store/status-registry.js.map +0 -1
- package/dist/store/task-store.d.ts +0 -69
- package/dist/store/task-store.d.ts.map +0 -1
- package/dist/store/task-store.js +0 -344
- package/dist/store/task-store.js.map +0 -1
- package/dist/store/tasks-schema.d.ts +0 -3873
- package/dist/store/tasks-schema.d.ts.map +0 -1
- package/dist/store/tasks-schema.js +0 -496
- package/dist/store/tasks-schema.js.map +0 -1
- package/dist/store/validation-schemas.d.ts +0 -6670
- package/dist/store/validation-schemas.d.ts.map +0 -1
- package/dist/store/validation-schemas.js +0 -95
- package/dist/store/validation-schemas.js.map +0 -1
- package/dist/system/archive-analytics.d.ts +0 -148
- package/dist/system/archive-analytics.d.ts.map +0 -1
- package/dist/system/archive-analytics.js +0 -277
- package/dist/system/archive-analytics.js.map +0 -1
- package/dist/system/archive-stats.d.ts +0 -21
- package/dist/system/archive-stats.d.ts.map +0 -1
- package/dist/system/archive-stats.js +0 -64
- package/dist/system/archive-stats.js.map +0 -1
- package/dist/system/audit.d.ts +0 -25
- package/dist/system/audit.d.ts.map +0 -1
- package/dist/system/audit.js +0 -145
- package/dist/system/audit.js.map +0 -1
- package/dist/system/backup.d.ts +0 -28
- package/dist/system/backup.d.ts.map +0 -1
- package/dist/system/backup.js +0 -99
- package/dist/system/backup.js.map +0 -1
- package/dist/system/cleanup.d.ts +0 -20
- package/dist/system/cleanup.d.ts.map +0 -1
- package/dist/system/cleanup.js +0 -134
- package/dist/system/cleanup.js.map +0 -1
- package/dist/system/health.d.ts +0 -124
- package/dist/system/health.d.ts.map +0 -1
- package/dist/system/health.js +0 -1044
- package/dist/system/health.js.map +0 -1
- package/dist/system/index.d.ts +0 -31
- package/dist/system/index.d.ts.map +0 -1
- package/dist/system/index.js +0 -18
- package/dist/system/index.js.map +0 -1
- package/dist/system/inject-generate.d.ts +0 -13
- package/dist/system/inject-generate.d.ts.map +0 -1
- package/dist/system/inject-generate.js +0 -126
- package/dist/system/inject-generate.js.map +0 -1
- package/dist/system/labels.d.ts +0 -18
- package/dist/system/labels.d.ts.map +0 -1
- package/dist/system/labels.js +0 -38
- package/dist/system/labels.js.map +0 -1
- package/dist/system/metrics.d.ts +0 -30
- package/dist/system/metrics.d.ts.map +0 -1
- package/dist/system/metrics.js +0 -61
- package/dist/system/metrics.js.map +0 -1
- package/dist/system/migrate.d.ts +0 -19
- package/dist/system/migrate.d.ts.map +0 -1
- package/dist/system/migrate.js +0 -43
- package/dist/system/migrate.js.map +0 -1
- package/dist/system/platform-paths.d.ts +0 -61
- package/dist/system/platform-paths.d.ts.map +0 -1
- package/dist/system/platform-paths.js +0 -80
- package/dist/system/platform-paths.js.map +0 -1
- package/dist/system/runtime.d.ts +0 -38
- package/dist/system/runtime.d.ts.map +0 -1
- package/dist/system/runtime.js +0 -161
- package/dist/system/runtime.js.map +0 -1
- package/dist/system/safestop.d.ts +0 -35
- package/dist/system/safestop.d.ts.map +0 -1
- package/dist/system/safestop.js +0 -96
- package/dist/system/safestop.js.map +0 -1
- package/dist/system/storage-preflight.d.ts +0 -42
- package/dist/system/storage-preflight.d.ts.map +0 -1
- package/dist/system/storage-preflight.js +0 -123
- package/dist/system/storage-preflight.js.map +0 -1
- package/dist/task-work/index.d.ts +0 -60
- package/dist/task-work/index.d.ts.map +0 -1
- package/dist/task-work/index.js +0 -157
- package/dist/task-work/index.js.map +0 -1
- package/dist/task-work/todowrite-merge.d.ts +0 -80
- package/dist/task-work/todowrite-merge.d.ts.map +0 -1
- package/dist/task-work/todowrite-merge.js +0 -204
- package/dist/task-work/todowrite-merge.js.map +0 -1
- package/dist/tasks/add.d.ts +0 -123
- package/dist/tasks/add.d.ts.map +0 -1
- package/dist/tasks/add.js +0 -494
- package/dist/tasks/add.js.map +0 -1
- package/dist/tasks/analyze.d.ts +0 -16
- package/dist/tasks/analyze.d.ts.map +0 -1
- package/dist/tasks/analyze.js +0 -85
- package/dist/tasks/analyze.js.map +0 -1
- package/dist/tasks/archive.d.ts +0 -31
- package/dist/tasks/archive.d.ts.map +0 -1
- package/dist/tasks/archive.js +0 -90
- package/dist/tasks/archive.js.map +0 -1
- package/dist/tasks/atomicity.d.ts +0 -21
- package/dist/tasks/atomicity.d.ts.map +0 -1
- package/dist/tasks/atomicity.js +0 -83
- package/dist/tasks/atomicity.js.map +0 -1
- package/dist/tasks/cancel-ops.d.ts +0 -42
- package/dist/tasks/cancel-ops.d.ts.map +0 -1
- package/dist/tasks/cancel-ops.js +0 -83
- package/dist/tasks/cancel-ops.js.map +0 -1
- package/dist/tasks/complete.d.ts +0 -26
- package/dist/tasks/complete.d.ts.map +0 -1
- package/dist/tasks/complete.js +0 -224
- package/dist/tasks/complete.js.map +0 -1
- package/dist/tasks/crossref-extract.d.ts +0 -39
- package/dist/tasks/crossref-extract.d.ts.map +0 -1
- package/dist/tasks/crossref-extract.js +0 -73
- package/dist/tasks/crossref-extract.js.map +0 -1
- package/dist/tasks/delete-preview.d.ts +0 -69
- package/dist/tasks/delete-preview.d.ts.map +0 -1
- package/dist/tasks/delete-preview.js +0 -192
- package/dist/tasks/delete-preview.js.map +0 -1
- package/dist/tasks/delete.d.ts +0 -24
- package/dist/tasks/delete.d.ts.map +0 -1
- package/dist/tasks/delete.js +0 -120
- package/dist/tasks/delete.js.map +0 -1
- package/dist/tasks/deletion-strategy.d.ts +0 -46
- package/dist/tasks/deletion-strategy.d.ts.map +0 -1
- package/dist/tasks/deletion-strategy.js +0 -200
- package/dist/tasks/deletion-strategy.js.map +0 -1
- package/dist/tasks/dependency-check.d.ts +0 -82
- package/dist/tasks/dependency-check.d.ts.map +0 -1
- package/dist/tasks/dependency-check.js +0 -278
- package/dist/tasks/dependency-check.js.map +0 -1
- package/dist/tasks/deps-ready.d.ts +0 -22
- package/dist/tasks/deps-ready.d.ts.map +0 -1
- package/dist/tasks/deps-ready.js +0 -32
- package/dist/tasks/deps-ready.js.map +0 -1
- package/dist/tasks/find.d.ts +0 -48
- package/dist/tasks/find.d.ts.map +0 -1
- package/dist/tasks/find.js +0 -148
- package/dist/tasks/find.js.map +0 -1
- package/dist/tasks/graph-cache.d.ts +0 -70
- package/dist/tasks/graph-cache.d.ts.map +0 -1
- package/dist/tasks/graph-cache.js +0 -127
- package/dist/tasks/graph-cache.js.map +0 -1
- package/dist/tasks/graph-ops.d.ts +0 -36
- package/dist/tasks/graph-ops.d.ts.map +0 -1
- package/dist/tasks/graph-ops.js +0 -171
- package/dist/tasks/graph-ops.js.map +0 -1
- package/dist/tasks/graph-rag.d.ts +0 -49
- package/dist/tasks/graph-rag.d.ts.map +0 -1
- package/dist/tasks/graph-rag.js +0 -328
- package/dist/tasks/graph-rag.js.map +0 -1
- package/dist/tasks/hierarchy-policy.d.ts +0 -62
- package/dist/tasks/hierarchy-policy.d.ts.map +0 -1
- package/dist/tasks/hierarchy-policy.js +0 -149
- package/dist/tasks/hierarchy-policy.js.map +0 -1
- package/dist/tasks/hierarchy.d.ts +0 -85
- package/dist/tasks/hierarchy.d.ts.map +0 -1
- package/dist/tasks/hierarchy.js +0 -185
- package/dist/tasks/hierarchy.js.map +0 -1
- package/dist/tasks/id-generator.d.ts +0 -28
- package/dist/tasks/id-generator.d.ts.map +0 -1
- package/dist/tasks/id-generator.js +0 -65
- package/dist/tasks/id-generator.js.map +0 -1
- package/dist/tasks/index.d.ts +0 -14
- package/dist/tasks/index.d.ts.map +0 -1
- package/dist/tasks/index.js +0 -14
- package/dist/tasks/index.js.map +0 -1
- package/dist/tasks/labels.d.ts +0 -19
- package/dist/tasks/labels.d.ts.map +0 -1
- package/dist/tasks/labels.js +0 -52
- package/dist/tasks/labels.js.map +0 -1
- package/dist/tasks/list.d.ts +0 -49
- package/dist/tasks/list.d.ts.map +0 -1
- package/dist/tasks/list.js +0 -68
- package/dist/tasks/list.js.map +0 -1
- package/dist/tasks/phase-tracking.d.ts +0 -61
- package/dist/tasks/phase-tracking.d.ts.map +0 -1
- package/dist/tasks/phase-tracking.js +0 -133
- package/dist/tasks/phase-tracking.js.map +0 -1
- package/dist/tasks/plan.d.ts +0 -53
- package/dist/tasks/plan.d.ts.map +0 -1
- package/dist/tasks/plan.js +0 -268
- package/dist/tasks/plan.js.map +0 -1
- package/dist/tasks/relates.d.ts +0 -18
- package/dist/tasks/relates.d.ts.map +0 -1
- package/dist/tasks/relates.js +0 -89
- package/dist/tasks/relates.js.map +0 -1
- package/dist/tasks/reparent.d.ts +0 -38
- package/dist/tasks/reparent.d.ts.map +0 -1
- package/dist/tasks/reparent.js +0 -90
- package/dist/tasks/reparent.js.map +0 -1
- package/dist/tasks/show.d.ts +0 -23
- package/dist/tasks/show.d.ts.map +0 -1
- package/dist/tasks/show.js +0 -78
- package/dist/tasks/show.js.map +0 -1
- package/dist/tasks/size-weighting.d.ts +0 -38
- package/dist/tasks/size-weighting.d.ts.map +0 -1
- package/dist/tasks/size-weighting.js +0 -86
- package/dist/tasks/size-weighting.js.map +0 -1
- package/dist/tasks/staleness.d.ts +0 -56
- package/dist/tasks/staleness.d.ts.map +0 -1
- package/dist/tasks/staleness.js +0 -86
- package/dist/tasks/staleness.js.map +0 -1
- package/dist/tasks/task-ops.d.ts +0 -322
- package/dist/tasks/task-ops.d.ts.map +0 -1
- package/dist/tasks/task-ops.js +0 -1340
- package/dist/tasks/task-ops.js.map +0 -1
- package/dist/tasks/update.d.ts +0 -41
- package/dist/tasks/update.d.ts.map +0 -1
- package/dist/tasks/update.js +0 -234
- package/dist/tasks/update.js.map +0 -1
- package/dist/templates/index.d.ts +0 -11
- package/dist/templates/index.d.ts.map +0 -1
- package/dist/templates/index.js +0 -10
- package/dist/templates/index.js.map +0 -1
- package/dist/templates/parser.d.ts +0 -84
- package/dist/templates/parser.d.ts.map +0 -1
- package/dist/templates/parser.js +0 -254
- package/dist/templates/parser.js.map +0 -1
- package/dist/ui/aliases.d.ts +0 -43
- package/dist/ui/aliases.d.ts.map +0 -1
- package/dist/ui/aliases.js +0 -153
- package/dist/ui/aliases.js.map +0 -1
- package/dist/ui/changelog.d.ts +0 -58
- package/dist/ui/changelog.d.ts.map +0 -1
- package/dist/ui/changelog.js +0 -184
- package/dist/ui/changelog.js.map +0 -1
- package/dist/ui/command-registry.d.ts +0 -44
- package/dist/ui/command-registry.d.ts.map +0 -1
- package/dist/ui/command-registry.js +0 -168
- package/dist/ui/command-registry.js.map +0 -1
- package/dist/ui/flags.d.ts +0 -34
- package/dist/ui/flags.d.ts.map +0 -1
- package/dist/ui/flags.js +0 -94
- package/dist/ui/flags.js.map +0 -1
- package/dist/ui/index.d.ts +0 -16
- package/dist/ui/index.d.ts.map +0 -1
- package/dist/ui/index.js +0 -26
- package/dist/ui/index.js.map +0 -1
- package/dist/ui/injection-legacy.d.ts +0 -26
- package/dist/ui/injection-legacy.d.ts.map +0 -1
- package/dist/ui/injection-legacy.js +0 -42
- package/dist/ui/injection-legacy.js.map +0 -1
- package/dist/upgrade.d.ts +0 -59
- package/dist/upgrade.d.ts.map +0 -1
- package/dist/upgrade.js +0 -862
- package/dist/upgrade.js.map +0 -1
- package/dist/validation/chain-validation.d.ts +0 -43
- package/dist/validation/chain-validation.d.ts.map +0 -1
- package/dist/validation/chain-validation.js +0 -146
- package/dist/validation/chain-validation.js.map +0 -1
- package/dist/validation/compliance.d.ts +0 -94
- package/dist/validation/compliance.d.ts.map +0 -1
- package/dist/validation/compliance.js +0 -155
- package/dist/validation/compliance.js.map +0 -1
- package/dist/validation/docs-sync.d.ts +0 -66
- package/dist/validation/docs-sync.d.ts.map +0 -1
- package/dist/validation/docs-sync.js +0 -212
- package/dist/validation/docs-sync.js.map +0 -1
- package/dist/validation/doctor/checks.d.ts +0 -125
- package/dist/validation/doctor/checks.d.ts.map +0 -1
- package/dist/validation/doctor/checks.js +0 -1046
- package/dist/validation/doctor/checks.js.map +0 -1
- package/dist/validation/doctor/index.d.ts +0 -9
- package/dist/validation/doctor/index.d.ts.map +0 -1
- package/dist/validation/doctor/index.js +0 -9
- package/dist/validation/doctor/index.js.map +0 -1
- package/dist/validation/doctor/project-cache.d.ts +0 -77
- package/dist/validation/doctor/project-cache.d.ts.map +0 -1
- package/dist/validation/doctor/project-cache.js +0 -160
- package/dist/validation/doctor/project-cache.js.map +0 -1
- package/dist/validation/doctor/utils.d.ts +0 -68
- package/dist/validation/doctor/utils.d.ts.map +0 -1
- package/dist/validation/doctor/utils.js +0 -155
- package/dist/validation/doctor/utils.js.map +0 -1
- package/dist/validation/engine.d.ts +0 -171
- package/dist/validation/engine.d.ts.map +0 -1
- package/dist/validation/engine.js +0 -903
- package/dist/validation/engine.js.map +0 -1
- package/dist/validation/gap-check.d.ts +0 -74
- package/dist/validation/gap-check.d.ts.map +0 -1
- package/dist/validation/gap-check.js +0 -175
- package/dist/validation/gap-check.js.map +0 -1
- package/dist/validation/index.d.ts +0 -18
- package/dist/validation/index.d.ts.map +0 -1
- package/dist/validation/index.js +0 -26
- package/dist/validation/index.js.map +0 -1
- package/dist/validation/manifest.d.ts +0 -81
- package/dist/validation/manifest.d.ts.map +0 -1
- package/dist/validation/manifest.js +0 -237
- package/dist/validation/manifest.js.map +0 -1
- package/dist/validation/operation-gate-validators.d.ts +0 -96
- package/dist/validation/operation-gate-validators.d.ts.map +0 -1
- package/dist/validation/operation-gate-validators.js +0 -724
- package/dist/validation/operation-gate-validators.js.map +0 -1
- package/dist/validation/operation-verification-gates.d.ts +0 -274
- package/dist/validation/operation-verification-gates.d.ts.map +0 -1
- package/dist/validation/operation-verification-gates.js +0 -532
- package/dist/validation/operation-verification-gates.js.map +0 -1
- package/dist/validation/param-utils.d.ts +0 -121
- package/dist/validation/param-utils.d.ts.map +0 -1
- package/dist/validation/param-utils.js +0 -139
- package/dist/validation/param-utils.js.map +0 -1
- package/dist/validation/protocol-common.d.ts +0 -77
- package/dist/validation/protocol-common.d.ts.map +0 -1
- package/dist/validation/protocol-common.js +0 -250
- package/dist/validation/protocol-common.js.map +0 -1
- package/dist/validation/protocols/consensus.d.ts +0 -28
- package/dist/validation/protocols/consensus.d.ts.map +0 -1
- package/dist/validation/protocols/consensus.js +0 -71
- package/dist/validation/protocols/consensus.js.map +0 -1
- package/dist/validation/protocols/contribution.d.ts +0 -26
- package/dist/validation/protocols/contribution.d.ts.map +0 -1
- package/dist/validation/protocols/contribution.js +0 -59
- package/dist/validation/protocols/contribution.js.map +0 -1
- package/dist/validation/protocols/decomposition.d.ts +0 -28
- package/dist/validation/protocols/decomposition.d.ts.map +0 -1
- package/dist/validation/protocols/decomposition.js +0 -59
- package/dist/validation/protocols/decomposition.js.map +0 -1
- package/dist/validation/protocols/implementation.d.ts +0 -26
- package/dist/validation/protocols/implementation.d.ts.map +0 -1
- package/dist/validation/protocols/implementation.js +0 -59
- package/dist/validation/protocols/implementation.js.map +0 -1
- package/dist/validation/protocols/release-protocol.d.ts +0 -27
- package/dist/validation/protocols/release-protocol.d.ts.map +0 -1
- package/dist/validation/protocols/release-protocol.js +0 -60
- package/dist/validation/protocols/release-protocol.js.map +0 -1
- package/dist/validation/protocols/research.d.ts +0 -26
- package/dist/validation/protocols/research.d.ts.map +0 -1
- package/dist/validation/protocols/research.js +0 -77
- package/dist/validation/protocols/research.js.map +0 -1
- package/dist/validation/protocols/specification.d.ts +0 -28
- package/dist/validation/protocols/specification.d.ts.map +0 -1
- package/dist/validation/protocols/specification.js +0 -84
- package/dist/validation/protocols/specification.js.map +0 -1
- package/dist/validation/protocols/testing-protocol.d.ts +0 -27
- package/dist/validation/protocols/testing-protocol.d.ts.map +0 -1
- package/dist/validation/protocols/testing-protocol.js +0 -70
- package/dist/validation/protocols/testing-protocol.js.map +0 -1
- package/dist/validation/protocols/validation-protocol.d.ts +0 -27
- package/dist/validation/protocols/validation-protocol.d.ts.map +0 -1
- package/dist/validation/protocols/validation-protocol.js +0 -70
- package/dist/validation/protocols/validation-protocol.js.map +0 -1
- package/dist/validation/schema-integrity.d.ts +0 -42
- package/dist/validation/schema-integrity.d.ts.map +0 -1
- package/dist/validation/schema-integrity.js +0 -170
- package/dist/validation/schema-integrity.js.map +0 -1
- package/dist/validation/schema-validator.d.ts +0 -52
- package/dist/validation/schema-validator.d.ts.map +0 -1
- package/dist/validation/schema-validator.js +0 -176
- package/dist/validation/schema-validator.js.map +0 -1
- package/dist/validation/validate-ops.d.ts +0 -247
- package/dist/validation/validate-ops.d.ts.map +0 -1
- package/dist/validation/validate-ops.js +0 -935
- package/dist/validation/validate-ops.js.map +0 -1
- package/dist/validation/validation-rules.d.ts +0 -85
- package/dist/validation/validation-rules.d.ts.map +0 -1
- package/dist/validation/validation-rules.js +0 -226
- package/dist/validation/validation-rules.js.map +0 -1
- package/dist/validation/verification.d.ts +0 -153
- package/dist/validation/verification.d.ts.map +0 -1
- package/dist/validation/verification.js +0 -321
- package/dist/validation/verification.js.map +0 -1
- package/src/adapters/__tests__/claude-code-adapter.test.d.ts +0 -10
- package/src/adapters/__tests__/claude-code-adapter.test.d.ts.map +0 -1
- package/src/adapters/__tests__/claude-code-adapter.test.js +0 -192
- package/src/adapters/__tests__/claude-code-adapter.test.js.map +0 -1
- package/src/adapters/__tests__/claude-code-adapter.test.ts +0 -235
- package/src/adapters/__tests__/cursor-adapter.test.d.ts +0 -10
- package/src/adapters/__tests__/cursor-adapter.test.d.ts.map +0 -1
- package/src/adapters/__tests__/cursor-adapter.test.js +0 -196
- package/src/adapters/__tests__/cursor-adapter.test.js.map +0 -1
- package/src/adapters/__tests__/cursor-adapter.test.ts +0 -246
- package/src/adapters/__tests__/opencode-adapter.test.d.ts +0 -10
- package/src/adapters/__tests__/opencode-adapter.test.d.ts.map +0 -1
- package/src/adapters/__tests__/opencode-adapter.test.js +0 -204
- package/src/adapters/__tests__/opencode-adapter.test.js.map +0 -1
- package/src/adapters/__tests__/opencode-adapter.test.ts +0 -250
- package/src/admin/sync.ts +0 -164
- package/src/reconciliation/sync-state.ts +0 -76
- package/src/task-work/todowrite-merge.ts +0 -293
package/dist/system/health.js
DELETED
|
@@ -1,1044 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* System health checks core module.
|
|
3
|
-
* @task T4783
|
|
4
|
-
* @task T4795
|
|
5
|
-
*/
|
|
6
|
-
import { execFile, execFileSync } from 'node:child_process';
|
|
7
|
-
import { existsSync, readFileSync, statSync } from 'node:fs';
|
|
8
|
-
import { createRequire } from 'node:module';
|
|
9
|
-
import { join } from 'node:path';
|
|
10
|
-
import { promisify } from 'node:util';
|
|
11
|
-
import { getAccessor } from '../store/data-accessor.js';
|
|
12
|
-
import { checkGitHooks } from '../hooks.js';
|
|
13
|
-
import { checkInjection } from '../injection.js';
|
|
14
|
-
import { getAgentsHome, isProjectInitialized } from '../paths.js';
|
|
15
|
-
import { getSystemInfo } from '../platform.js';
|
|
16
|
-
import { checkBrainDb, checkCleoStructure, checkConfig, checkGlobalHome, checkGlobalTemplates, checkLogDir, checkMemoryBridge, checkProjectContext, checkProjectInfo, checkSqliteDb, ensureCleoStructure, ensureGlobalScaffold, } from '../scaffold.js';
|
|
17
|
-
import { checkGlobalSchemas } from '../schema-management.js';
|
|
18
|
-
import { checkCleoGitignore, checkCoreFilesNotIgnored, checkLegacyAgentOutputs, checkNodeVersion, checkVitalFilesTracked, } from '../validation/doctor/checks.js';
|
|
19
|
-
import { checkStorageMigration } from './storage-preflight.js';
|
|
20
|
-
const execAsync = promisify(execFile);
|
|
21
|
-
const _require = createRequire(import.meta.url);
|
|
22
|
-
const databaseSyncCtor = (() => {
|
|
23
|
-
try {
|
|
24
|
-
return _require('node:sqlite').DatabaseSync;
|
|
25
|
-
}
|
|
26
|
-
catch {
|
|
27
|
-
return null;
|
|
28
|
-
}
|
|
29
|
-
})();
|
|
30
|
-
/** Stale JSON files that should not exist alongside tasks.db (ADR-006). */
|
|
31
|
-
const STALE_JSON_FILES = ['todo.json', 'sessions.json', 'todo-archive.json'];
|
|
32
|
-
function resolveStructuredLogPath(cleoDir) {
|
|
33
|
-
const defaultPath = join(cleoDir, 'logs', 'cleo.log');
|
|
34
|
-
const configPath = join(cleoDir, 'config.json');
|
|
35
|
-
if (!existsSync(configPath))
|
|
36
|
-
return defaultPath;
|
|
37
|
-
try {
|
|
38
|
-
const config = JSON.parse(readFileSync(configPath, 'utf-8'));
|
|
39
|
-
if (!config.logging?.filePath)
|
|
40
|
-
return defaultPath;
|
|
41
|
-
return join(cleoDir, config.logging.filePath);
|
|
42
|
-
}
|
|
43
|
-
catch {
|
|
44
|
-
return defaultPath;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
function checkAuditLogAvailability(dbPath) {
|
|
48
|
-
if (!databaseSyncCtor) {
|
|
49
|
-
return {
|
|
50
|
-
name: 'audit_log',
|
|
51
|
-
status: 'warn',
|
|
52
|
-
message: 'audit_log check unavailable: node:sqlite runtime not found',
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
try {
|
|
56
|
-
const db = new databaseSyncCtor(dbPath, { readOnly: true });
|
|
57
|
-
try {
|
|
58
|
-
const tableRow = db
|
|
59
|
-
.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='audit_log'")
|
|
60
|
-
.get();
|
|
61
|
-
if (!tableRow?.name) {
|
|
62
|
-
return {
|
|
63
|
-
name: 'audit_log',
|
|
64
|
-
status: 'fail',
|
|
65
|
-
message: 'audit_log table missing from tasks.db (run: cleo upgrade)',
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
const countRow = db.prepare('SELECT COUNT(1) AS count FROM audit_log').get();
|
|
69
|
-
return {
|
|
70
|
-
name: 'audit_log',
|
|
71
|
-
status: 'pass',
|
|
72
|
-
message: `audit_log table available (${countRow?.count ?? 0} rows)`,
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
finally {
|
|
76
|
-
db.close();
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
catch {
|
|
80
|
-
return {
|
|
81
|
-
name: 'audit_log',
|
|
82
|
-
status: 'warn',
|
|
83
|
-
message: 'Unable to validate audit_log availability from tasks.db',
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
/** Run system health checks (SQLite-first per ADR-006). */
|
|
88
|
-
export function getSystemHealth(projectRoot, opts) {
|
|
89
|
-
const cleoDir = join(projectRoot, '.cleo');
|
|
90
|
-
const checks = [];
|
|
91
|
-
// Check .cleo directory
|
|
92
|
-
if (existsSync(cleoDir)) {
|
|
93
|
-
checks.push({ name: 'cleo_dir', status: 'pass', message: '.cleo directory exists' });
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
96
|
-
checks.push({ name: 'cleo_dir', status: 'fail', message: '.cleo directory not found' });
|
|
97
|
-
}
|
|
98
|
-
// Check tasks.db (primary data store per ADR-006)
|
|
99
|
-
const dbPath = join(cleoDir, 'tasks.db');
|
|
100
|
-
if (existsSync(dbPath)) {
|
|
101
|
-
try {
|
|
102
|
-
const dbSize = statSync(dbPath).size;
|
|
103
|
-
if (dbSize > 0) {
|
|
104
|
-
checks.push({ name: 'tasks_db', status: 'pass', message: `tasks.db: ${dbSize} bytes` });
|
|
105
|
-
}
|
|
106
|
-
else {
|
|
107
|
-
checks.push({ name: 'tasks_db', status: 'warn', message: 'tasks.db exists but is empty' });
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
catch {
|
|
111
|
-
checks.push({
|
|
112
|
-
name: 'tasks_db',
|
|
113
|
-
status: 'fail',
|
|
114
|
-
message: 'tasks.db exists but is not readable',
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
else {
|
|
119
|
-
checks.push({ name: 'tasks_db', status: 'fail', message: 'tasks.db not found' });
|
|
120
|
-
}
|
|
121
|
-
if (existsSync(dbPath)) {
|
|
122
|
-
checks.push(checkAuditLogAvailability(dbPath));
|
|
123
|
-
}
|
|
124
|
-
// Check config.json (config remains JSON per ADR-006)
|
|
125
|
-
const configPath = join(cleoDir, 'config.json');
|
|
126
|
-
if (existsSync(configPath)) {
|
|
127
|
-
try {
|
|
128
|
-
JSON.parse(readFileSync(configPath, 'utf-8'));
|
|
129
|
-
checks.push({ name: 'config_json', status: 'pass', message: 'config.json is valid JSON' });
|
|
130
|
-
}
|
|
131
|
-
catch {
|
|
132
|
-
checks.push({
|
|
133
|
-
name: 'config_json',
|
|
134
|
-
status: 'warn',
|
|
135
|
-
message: 'config.json is not valid JSON',
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
checks.push({ name: 'config_json', status: 'warn', message: 'config.json not found' });
|
|
141
|
-
}
|
|
142
|
-
// Check for stale JSON files alongside tasks.db
|
|
143
|
-
if (existsSync(dbPath)) {
|
|
144
|
-
const staleFiles = STALE_JSON_FILES.filter((f) => existsSync(join(cleoDir, f)));
|
|
145
|
-
if (staleFiles.length > 0) {
|
|
146
|
-
checks.push({
|
|
147
|
-
name: 'stale_json',
|
|
148
|
-
status: 'warn',
|
|
149
|
-
message: `Stale JSON files found alongside tasks.db: ${staleFiles.join(', ')}. Run: cleo upgrade`,
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
if (opts?.detailed) {
|
|
154
|
-
const logPath = resolveStructuredLogPath(cleoDir);
|
|
155
|
-
if (existsSync(logPath)) {
|
|
156
|
-
checks.push({
|
|
157
|
-
name: 'log_file',
|
|
158
|
-
status: 'pass',
|
|
159
|
-
message: `structured log present: ${logPath}`,
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
else {
|
|
163
|
-
checks.push({
|
|
164
|
-
name: 'log_file',
|
|
165
|
-
status: 'warn',
|
|
166
|
-
message: `structured log not found: ${logPath}`,
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
const backupDir = join(cleoDir, '.backups');
|
|
170
|
-
if (existsSync(backupDir)) {
|
|
171
|
-
checks.push({ name: 'backups_dir', status: 'pass', message: '.backups directory exists' });
|
|
172
|
-
}
|
|
173
|
-
else {
|
|
174
|
-
checks.push({
|
|
175
|
-
name: 'backups_dir',
|
|
176
|
-
status: 'pass',
|
|
177
|
-
message: 'No backups directory (created on first write)',
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
// Get version
|
|
182
|
-
let version = 'unknown';
|
|
183
|
-
try {
|
|
184
|
-
const pkgPath = join(projectRoot, 'package.json');
|
|
185
|
-
if (existsSync(pkgPath)) {
|
|
186
|
-
const pkg = JSON.parse(readFileSync(pkgPath, 'utf-8'));
|
|
187
|
-
version = pkg.version || 'unknown';
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
catch {
|
|
191
|
-
// fallback
|
|
192
|
-
}
|
|
193
|
-
const failCount = checks.filter((c) => c.status === 'fail').length;
|
|
194
|
-
const warnCount = checks.filter((c) => c.status === 'warn').length;
|
|
195
|
-
const overall = failCount > 0 ? 'error' : warnCount > 0 ? 'warning' : 'healthy';
|
|
196
|
-
const installation = failCount > 0 ? 'degraded' : 'ok';
|
|
197
|
-
return { overall, checks, version, installation };
|
|
198
|
-
}
|
|
199
|
-
/** Run extended diagnostics with fix suggestions. */
|
|
200
|
-
export async function getSystemDiagnostics(projectRoot, opts) {
|
|
201
|
-
const healthResult = getSystemHealth(projectRoot, { detailed: true });
|
|
202
|
-
const diagChecks = healthResult.checks.map((c) => ({
|
|
203
|
-
name: c.name,
|
|
204
|
-
status: c.status,
|
|
205
|
-
details: c.message,
|
|
206
|
-
fix: c.status === 'fail'
|
|
207
|
-
? c.name === 'cleo_dir'
|
|
208
|
-
? 'Run: cleo init'
|
|
209
|
-
: c.name === 'tasks_db'
|
|
210
|
-
? 'Run: cleo init (or restore from backup)'
|
|
211
|
-
: undefined
|
|
212
|
-
: undefined,
|
|
213
|
-
}));
|
|
214
|
-
// Storage migration pre-flight check
|
|
215
|
-
const preflight = checkStorageMigration(projectRoot);
|
|
216
|
-
if (preflight.migrationNeeded) {
|
|
217
|
-
diagChecks.push({
|
|
218
|
-
name: 'storage_migration',
|
|
219
|
-
status: 'fail',
|
|
220
|
-
details: preflight.summary,
|
|
221
|
-
fix: preflight.fix ?? undefined,
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
else {
|
|
225
|
-
diagChecks.push({
|
|
226
|
-
name: 'storage_migration',
|
|
227
|
-
status: 'pass',
|
|
228
|
-
details: preflight.summary,
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
// Schema version check — read via DataAccessor (per ADR-006)
|
|
232
|
-
const cleoDir = join(projectRoot, '.cleo');
|
|
233
|
-
const dbPath = join(cleoDir, 'tasks.db');
|
|
234
|
-
if (existsSync(dbPath)) {
|
|
235
|
-
try {
|
|
236
|
-
const accessor = await getAccessor(projectRoot);
|
|
237
|
-
const schemaVersion = await accessor.getSchemaVersion();
|
|
238
|
-
if (schemaVersion) {
|
|
239
|
-
diagChecks.push({
|
|
240
|
-
name: 'schema_version',
|
|
241
|
-
status: 'pass',
|
|
242
|
-
details: `Schema version: ${schemaVersion}`,
|
|
243
|
-
});
|
|
244
|
-
}
|
|
245
|
-
else {
|
|
246
|
-
diagChecks.push({
|
|
247
|
-
name: 'schema_version',
|
|
248
|
-
status: 'warn',
|
|
249
|
-
details: 'No schema version in SQLite',
|
|
250
|
-
fix: 'Run: cleo upgrade',
|
|
251
|
-
});
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
catch {
|
|
255
|
-
diagChecks.push({
|
|
256
|
-
name: 'schema_version',
|
|
257
|
-
status: 'warn',
|
|
258
|
-
details: 'Could not read schema version from SQLite',
|
|
259
|
-
fix: 'Run: cleo upgrade',
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
// Check for stale sessions — read from SQLite accessor
|
|
264
|
-
if (existsSync(dbPath)) {
|
|
265
|
-
try {
|
|
266
|
-
const accessor = await getAccessor(projectRoot);
|
|
267
|
-
const sessions = await accessor.loadSessions();
|
|
268
|
-
const activeSessions = sessions.filter((s) => s.status === 'active');
|
|
269
|
-
if (activeSessions.length > 3) {
|
|
270
|
-
diagChecks.push({
|
|
271
|
-
name: 'stale_sessions',
|
|
272
|
-
status: 'warn',
|
|
273
|
-
details: `${activeSessions.length} active sessions (may include stale)`,
|
|
274
|
-
fix: 'Run: cleo session gc',
|
|
275
|
-
});
|
|
276
|
-
}
|
|
277
|
-
else {
|
|
278
|
-
diagChecks.push({
|
|
279
|
-
name: 'stale_sessions',
|
|
280
|
-
status: 'pass',
|
|
281
|
-
details: `${activeSessions.length} active session(s)`,
|
|
282
|
-
});
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
catch {
|
|
286
|
-
// skip
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
// Filter checks if specific ones requested
|
|
290
|
-
let filteredChecks = diagChecks;
|
|
291
|
-
if (opts?.checks && opts.checks.length > 0) {
|
|
292
|
-
filteredChecks = diagChecks.filter((c) => opts.checks.includes(c.name));
|
|
293
|
-
}
|
|
294
|
-
const passedCount = filteredChecks.filter((c) => c.status === 'pass').length;
|
|
295
|
-
const warnedCount = filteredChecks.filter((c) => c.status === 'warn').length;
|
|
296
|
-
const failedCount = filteredChecks.filter((c) => c.status === 'fail').length;
|
|
297
|
-
return {
|
|
298
|
-
timestamp: new Date().toISOString(),
|
|
299
|
-
checks: filteredChecks,
|
|
300
|
-
summary: {
|
|
301
|
-
total: filteredChecks.length,
|
|
302
|
-
passed: passedCount,
|
|
303
|
-
warned: warnedCount,
|
|
304
|
-
failed: failedCount,
|
|
305
|
-
},
|
|
306
|
-
};
|
|
307
|
-
}
|
|
308
|
-
async function commandExists(cmd) {
|
|
309
|
-
try {
|
|
310
|
-
const { stdout } = await execAsync('which', [cmd]);
|
|
311
|
-
return stdout.trim();
|
|
312
|
-
}
|
|
313
|
-
catch {
|
|
314
|
-
return null;
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
async function fileSize(path) {
|
|
318
|
-
try {
|
|
319
|
-
return statSync(path).size;
|
|
320
|
-
}
|
|
321
|
-
catch {
|
|
322
|
-
return -1;
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
function mapCheckResult(cr) {
|
|
326
|
-
return {
|
|
327
|
-
check: cr.id,
|
|
328
|
-
status: cr.status === 'passed'
|
|
329
|
-
? 'ok'
|
|
330
|
-
: cr.status === 'info'
|
|
331
|
-
? 'ok'
|
|
332
|
-
: cr.status === 'warning'
|
|
333
|
-
? 'warning'
|
|
334
|
-
: 'error',
|
|
335
|
-
message: cr.message,
|
|
336
|
-
...(cr.fix ? { fix: cr.fix } : {}),
|
|
337
|
-
};
|
|
338
|
-
}
|
|
339
|
-
/** Map HookCheckResult[] from hooks.ts into a single DoctorCheck summary. */
|
|
340
|
-
function mapHookResults(results) {
|
|
341
|
-
const missing = results.filter((r) => !r.installed);
|
|
342
|
-
const stale = results.filter((r) => r.installed && !r.current);
|
|
343
|
-
if (missing.length > 0) {
|
|
344
|
-
return {
|
|
345
|
-
check: 'git_hooks',
|
|
346
|
-
status: 'warning',
|
|
347
|
-
message: `Missing git hooks: ${missing.map((r) => r.hook).join(', ')}`,
|
|
348
|
-
details: { missing: missing.map((r) => r.hook), fix: 'cleo init --force' },
|
|
349
|
-
};
|
|
350
|
-
}
|
|
351
|
-
if (stale.length > 0) {
|
|
352
|
-
return {
|
|
353
|
-
check: 'git_hooks',
|
|
354
|
-
status: 'warning',
|
|
355
|
-
message: `Stale git hooks: ${stale.map((r) => r.hook).join(', ')}`,
|
|
356
|
-
details: { stale: stale.map((r) => r.hook), fix: 'cleo upgrade' },
|
|
357
|
-
};
|
|
358
|
-
}
|
|
359
|
-
return {
|
|
360
|
-
check: 'git_hooks',
|
|
361
|
-
status: 'ok',
|
|
362
|
-
message: `All ${results.length} managed git hooks installed and current`,
|
|
363
|
-
};
|
|
364
|
-
}
|
|
365
|
-
/** Map schema-management.ts CheckResult into a DoctorCheck. */
|
|
366
|
-
function mapSchemaCheckResult(sr) {
|
|
367
|
-
if (sr.missing.length > 0) {
|
|
368
|
-
return {
|
|
369
|
-
check: 'global_schemas',
|
|
370
|
-
status: 'warning',
|
|
371
|
-
message: `Missing global schemas: ${sr.missing.join(', ')}`,
|
|
372
|
-
details: { missing: sr.missing, fix: 'cleo upgrade' },
|
|
373
|
-
};
|
|
374
|
-
}
|
|
375
|
-
if (sr.stale.length > 0) {
|
|
376
|
-
return {
|
|
377
|
-
check: 'global_schemas',
|
|
378
|
-
status: 'warning',
|
|
379
|
-
message: `Stale global schemas: ${sr.stale.join(', ')}`,
|
|
380
|
-
details: { stale: sr.stale, fix: 'cleo upgrade' },
|
|
381
|
-
};
|
|
382
|
-
}
|
|
383
|
-
return {
|
|
384
|
-
check: 'global_schemas',
|
|
385
|
-
status: 'ok',
|
|
386
|
-
message: `All ${sr.installed} global schemas installed and current`,
|
|
387
|
-
};
|
|
388
|
-
}
|
|
389
|
-
/**
|
|
390
|
-
* Check contributor project dev channel availability and health.
|
|
391
|
-
* No-op for non-contributor projects (ADR-029).
|
|
392
|
-
*
|
|
393
|
-
* Reports whether cleo-dev is on PATH and responsive. Does NOT mandate
|
|
394
|
-
* using cleo-dev — agents should prefer it when healthy, fall back to
|
|
395
|
-
* production cleo when the dev build is broken.
|
|
396
|
-
*/
|
|
397
|
-
function checkContributorChannel(projectRoot) {
|
|
398
|
-
const configPath = join(projectRoot, '.cleo', 'config.json');
|
|
399
|
-
if (!existsSync(configPath)) {
|
|
400
|
-
return { check: 'contributor_channel', status: 'ok', message: 'Not a contributor project' };
|
|
401
|
-
}
|
|
402
|
-
let isContributor = false;
|
|
403
|
-
let devCli = 'cleo-dev';
|
|
404
|
-
try {
|
|
405
|
-
const config = JSON.parse(readFileSync(configPath, 'utf-8'));
|
|
406
|
-
isContributor = config.contributor?.isContributorProject === true;
|
|
407
|
-
devCli = config.contributor?.devCli ?? 'cleo-dev';
|
|
408
|
-
}
|
|
409
|
-
catch {
|
|
410
|
-
return { check: 'contributor_channel', status: 'ok', message: 'Not a contributor project' };
|
|
411
|
-
}
|
|
412
|
-
if (!isContributor) {
|
|
413
|
-
return { check: 'contributor_channel', status: 'ok', message: 'Not a contributor project' };
|
|
414
|
-
}
|
|
415
|
-
// Check that cleo-dev is on PATH
|
|
416
|
-
const pathDirs = (process.env['PATH'] ?? '').split(':').filter(Boolean);
|
|
417
|
-
const devCliOnPath = pathDirs.some((dir) => existsSync(join(dir, devCli)));
|
|
418
|
-
if (!devCliOnPath) {
|
|
419
|
-
return {
|
|
420
|
-
check: 'contributor_channel',
|
|
421
|
-
status: 'warning',
|
|
422
|
-
message: `Contributor project: '${devCli}' not on PATH. Using production cleo. Run ./install.sh --dev to enable dev channel.`,
|
|
423
|
-
fix: './install.sh --dev',
|
|
424
|
-
};
|
|
425
|
-
}
|
|
426
|
-
// Probe whether the dev CLI actually responds
|
|
427
|
-
try {
|
|
428
|
-
const version = execFileSync(devCli, ['--version'], { timeout: 5000 }).toString().trim();
|
|
429
|
-
return {
|
|
430
|
-
check: 'contributor_channel',
|
|
431
|
-
status: 'ok',
|
|
432
|
-
message: `Contributor project: '${devCli}' healthy (v${version}). Prefer dev channel for unreleased features.`,
|
|
433
|
-
};
|
|
434
|
-
}
|
|
435
|
-
catch {
|
|
436
|
-
return {
|
|
437
|
-
check: 'contributor_channel',
|
|
438
|
-
status: 'warning',
|
|
439
|
-
message: `Contributor project: '${devCli}' on PATH but not responding. Dev build may need rebuild (npm run build). Production cleo available as fallback.`,
|
|
440
|
-
fix: 'npm run build',
|
|
441
|
-
};
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
/**
|
|
445
|
-
* Run comprehensive doctor diagnostics combining dependency checks,
|
|
446
|
-
* directory checks, data file checks, gitignore checks, and environment info.
|
|
447
|
-
* @task T4795
|
|
448
|
-
*/
|
|
449
|
-
export async function coreDoctorReport(projectRoot) {
|
|
450
|
-
const checks = [];
|
|
451
|
-
// 1. Check dependencies (jq removed — no longer needed since SQLite migration, ADR-006)
|
|
452
|
-
const gitPath = await commandExists('git');
|
|
453
|
-
checks.push({
|
|
454
|
-
check: 'git_installed',
|
|
455
|
-
status: gitPath ? 'ok' : 'warning',
|
|
456
|
-
message: gitPath
|
|
457
|
-
? `git found: ${gitPath}`
|
|
458
|
-
: 'git not found (optional, needed for version control features)',
|
|
459
|
-
});
|
|
460
|
-
// 2. Check CLEO directories
|
|
461
|
-
const cleoDir = join(projectRoot, '.cleo');
|
|
462
|
-
const dirExists = existsSync(cleoDir);
|
|
463
|
-
checks.push({
|
|
464
|
-
check: 'project_dir',
|
|
465
|
-
status: dirExists ? 'ok' : 'error',
|
|
466
|
-
message: dirExists
|
|
467
|
-
? `Project dir: ${cleoDir}`
|
|
468
|
-
: `Project dir not found: ${cleoDir}. Run: cleo init`,
|
|
469
|
-
});
|
|
470
|
-
// 3. Check data files — SQLite is the primary store (ADR-006)
|
|
471
|
-
const dbPath = join(cleoDir, 'tasks.db');
|
|
472
|
-
const dbExists = existsSync(dbPath);
|
|
473
|
-
const dbSize = await fileSize(dbPath);
|
|
474
|
-
checks.push({
|
|
475
|
-
check: 'tasks_db',
|
|
476
|
-
status: dbExists ? 'ok' : 'error',
|
|
477
|
-
message: dbExists ? `tasks.db: ${dbSize} bytes` : `tasks.db not found. Run: cleo init`,
|
|
478
|
-
});
|
|
479
|
-
if (dbExists) {
|
|
480
|
-
try {
|
|
481
|
-
const accessor = await getAccessor(projectRoot);
|
|
482
|
-
const taskCount = await accessor.countTasks();
|
|
483
|
-
const schemaVersion = await accessor.getMetaValue('schemaVersion') ?? 'unknown';
|
|
484
|
-
checks.push({
|
|
485
|
-
check: 'tasks_db_data',
|
|
486
|
-
status: 'ok',
|
|
487
|
-
message: `${taskCount} tasks, schema v${schemaVersion}`,
|
|
488
|
-
details: { taskCount, schemaVersion },
|
|
489
|
-
});
|
|
490
|
-
}
|
|
491
|
-
catch {
|
|
492
|
-
checks.push({
|
|
493
|
-
check: 'tasks_db_data',
|
|
494
|
-
status: 'error',
|
|
495
|
-
message: 'Failed to read tasks from SQLite database',
|
|
496
|
-
});
|
|
497
|
-
}
|
|
498
|
-
const auditLogCheck = checkAuditLogAvailability(dbPath);
|
|
499
|
-
checks.push({
|
|
500
|
-
check: 'audit_log',
|
|
501
|
-
status: auditLogCheck.status === 'pass'
|
|
502
|
-
? 'ok'
|
|
503
|
-
: auditLogCheck.status === 'warn'
|
|
504
|
-
? 'warning'
|
|
505
|
-
: 'error',
|
|
506
|
-
message: auditLogCheck.message ?? 'audit_log availability check completed',
|
|
507
|
-
...(auditLogCheck.status === 'fail' ? { fix: 'Run: cleo upgrade' } : {}),
|
|
508
|
-
});
|
|
509
|
-
// SQLite integrity check
|
|
510
|
-
try {
|
|
511
|
-
const { getNativeDb, getDb: getDbInit } = await import('../store/sqlite.js');
|
|
512
|
-
// Ensure the DB is initialized so getNativeDb() returns a valid handle
|
|
513
|
-
await getDbInit(projectRoot);
|
|
514
|
-
const nativeDb = getNativeDb();
|
|
515
|
-
if (nativeDb) {
|
|
516
|
-
const result = nativeDb.prepare('PRAGMA integrity_check').get();
|
|
517
|
-
const integrityOk = result?.integrity_check === 'ok';
|
|
518
|
-
checks.push({
|
|
519
|
-
check: 'sqlite_integrity',
|
|
520
|
-
status: integrityOk ? 'ok' : 'warning',
|
|
521
|
-
message: integrityOk
|
|
522
|
-
? 'SQLite integrity check passed'
|
|
523
|
-
: 'SQLite integrity check reported issues',
|
|
524
|
-
...(integrityOk ? {} : { fix: 'Run: cleo upgrade' }),
|
|
525
|
-
});
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
catch {
|
|
529
|
-
// SQLite integrity check is best-effort
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
const configPath = join(cleoDir, 'config.json');
|
|
533
|
-
const configExists = existsSync(configPath);
|
|
534
|
-
checks.push({
|
|
535
|
-
check: 'config_file',
|
|
536
|
-
status: configExists ? 'ok' : 'warning',
|
|
537
|
-
message: configExists ? 'config.json present' : 'config.json not found (using defaults)',
|
|
538
|
-
});
|
|
539
|
-
// Check for stale JSON files that should have been cleaned up after migration
|
|
540
|
-
const staleJsonFiles = STALE_JSON_FILES.filter((f) => existsSync(join(cleoDir, f)));
|
|
541
|
-
if (dbExists && staleJsonFiles.length > 0) {
|
|
542
|
-
checks.push({
|
|
543
|
-
check: 'stale_json',
|
|
544
|
-
status: 'warning',
|
|
545
|
-
message: `Stale JSON files found alongside tasks.db: ${staleJsonFiles.join(', ')}. Run: cleo upgrade`,
|
|
546
|
-
details: { files: staleJsonFiles },
|
|
547
|
-
});
|
|
548
|
-
}
|
|
549
|
-
const logPath = resolveStructuredLogPath(cleoDir);
|
|
550
|
-
const logExists = existsSync(logPath);
|
|
551
|
-
checks.push({
|
|
552
|
-
check: 'log_file',
|
|
553
|
-
status: logExists ? 'ok' : 'warning',
|
|
554
|
-
message: logExists
|
|
555
|
-
? `structured log present: ${logPath}`
|
|
556
|
-
: `structured log not found: ${logPath}`,
|
|
557
|
-
});
|
|
558
|
-
// 4. Check root .gitignore for .cleo/ blocking
|
|
559
|
-
const rootGitignorePath = join(projectRoot, '.gitignore');
|
|
560
|
-
if (existsSync(rootGitignorePath)) {
|
|
561
|
-
try {
|
|
562
|
-
const gitignoreContent = readFileSync(rootGitignorePath, 'utf-8');
|
|
563
|
-
const blockingLines = gitignoreContent.split('\n').filter((line) => {
|
|
564
|
-
const trimmed = line.trim();
|
|
565
|
-
if (trimmed.startsWith('#') || trimmed === '')
|
|
566
|
-
return false;
|
|
567
|
-
return /^\/?\.cleo\/?(\*)?$/.test(trimmed);
|
|
568
|
-
});
|
|
569
|
-
checks.push({
|
|
570
|
-
check: 'root_gitignore',
|
|
571
|
-
status: blockingLines.length > 0 ? 'warning' : 'ok',
|
|
572
|
-
message: blockingLines.length > 0
|
|
573
|
-
? `.cleo/ is ignored in root .gitignore. Run 'cleo init' to fix.`
|
|
574
|
-
: 'Root .gitignore does not block .cleo/',
|
|
575
|
-
...(blockingLines.length > 0 ? { details: { blockingLines } } : {}),
|
|
576
|
-
});
|
|
577
|
-
}
|
|
578
|
-
catch {
|
|
579
|
-
// Ignore read errors for gitignore check
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
// 5. Gitignore integrity, vital files, legacy paths (delegated to core checks)
|
|
583
|
-
checks.push(mapCheckResult(checkCleoGitignore(projectRoot)));
|
|
584
|
-
checks.push(mapCheckResult(checkVitalFilesTracked(projectRoot)));
|
|
585
|
-
checks.push(mapCheckResult(checkCoreFilesNotIgnored(projectRoot)));
|
|
586
|
-
checks.push(mapCheckResult(checkLegacyAgentOutputs(projectRoot)));
|
|
587
|
-
// 5b. Isolated .cleo/.git checkpoint repo check (T4872)
|
|
588
|
-
const cleoGitHeadExists = existsSync(join(cleoDir, '.git', 'HEAD'));
|
|
589
|
-
checks.push({
|
|
590
|
-
check: 'cleo_git_repo',
|
|
591
|
-
status: cleoGitHeadExists ? 'ok' : 'warning',
|
|
592
|
-
message: cleoGitHeadExists
|
|
593
|
-
? '.cleo/.git isolated checkpoint repo exists'
|
|
594
|
-
: '.cleo/.git not found — run: cleo init',
|
|
595
|
-
});
|
|
596
|
-
// 5c. Global scaffold checks: home, templates, schemas
|
|
597
|
-
checks.push(mapCheckResult(checkGlobalHome()));
|
|
598
|
-
checks.push(mapCheckResult(checkGlobalTemplates()));
|
|
599
|
-
checks.push(mapSchemaCheckResult(checkGlobalSchemas()));
|
|
600
|
-
// 5d. Project scaffold checks: log dir, structure, git hooks, project-info, injection
|
|
601
|
-
checks.push(mapCheckResult(checkLogDir(projectRoot)));
|
|
602
|
-
const hookResults = await checkGitHooks(projectRoot);
|
|
603
|
-
checks.push(mapHookResults(hookResults));
|
|
604
|
-
checks.push(mapCheckResult(checkProjectInfo(projectRoot)));
|
|
605
|
-
// Project context check
|
|
606
|
-
checks.push(mapCheckResult(checkProjectContext(projectRoot)));
|
|
607
|
-
checks.push(mapCheckResult(checkInjection(projectRoot)));
|
|
608
|
-
// Contributor project channel check (ADR-029)
|
|
609
|
-
checks.push(checkContributorChannel(projectRoot));
|
|
610
|
-
// Agent definition presence check
|
|
611
|
-
const agentDefPath = join(getAgentsHome(), 'agents', 'cleo-subagent');
|
|
612
|
-
checks.push({
|
|
613
|
-
check: 'agent_definition',
|
|
614
|
-
status: existsSync(agentDefPath) ? 'ok' : 'warning',
|
|
615
|
-
message: existsSync(agentDefPath)
|
|
616
|
-
? 'cleo-subagent agent definition installed'
|
|
617
|
-
: 'cleo-subagent not found — run: cleo init',
|
|
618
|
-
...(existsSync(agentDefPath) ? {} : { fix: 'cleo init' }),
|
|
619
|
-
});
|
|
620
|
-
// 6a. GitHub templates presence (informational only — non-critical)
|
|
621
|
-
const gitDir = join(projectRoot, '.git');
|
|
622
|
-
const gitHubTemplatesDir = join(projectRoot, '.github', 'ISSUE_TEMPLATE');
|
|
623
|
-
if (existsSync(gitDir)) {
|
|
624
|
-
// Only check when this is a git repo
|
|
625
|
-
checks.push({
|
|
626
|
-
check: 'github_templates',
|
|
627
|
-
status: existsSync(gitHubTemplatesDir) ? 'ok' : 'warning',
|
|
628
|
-
message: existsSync(gitHubTemplatesDir)
|
|
629
|
-
? '.github/ISSUE_TEMPLATE/ present'
|
|
630
|
-
: '.github/ISSUE_TEMPLATE/ not found — run: cleo init or cleo upgrade',
|
|
631
|
-
...(existsSync(gitHubTemplatesDir)
|
|
632
|
-
? {}
|
|
633
|
-
: { fix: 'cleo init' }),
|
|
634
|
-
});
|
|
635
|
-
}
|
|
636
|
-
// 6. Environment - Node.js version validation
|
|
637
|
-
checks.push(mapCheckResult(checkNodeVersion()));
|
|
638
|
-
const sysInfo = getSystemInfo();
|
|
639
|
-
checks.push({
|
|
640
|
-
check: 'platform',
|
|
641
|
-
status: 'ok',
|
|
642
|
-
message: `${sysInfo.osType} ${sysInfo.osRelease} (${sysInfo.platform}/${sysInfo.arch}), Node ${sysInfo.nodeVersion}`,
|
|
643
|
-
details: {
|
|
644
|
-
platform: sysInfo.platform,
|
|
645
|
-
arch: sysInfo.arch,
|
|
646
|
-
osType: sysInfo.osType,
|
|
647
|
-
osRelease: sysInfo.osRelease,
|
|
648
|
-
nodeVersion: sysInfo.nodeVersion,
|
|
649
|
-
totalMemory: sysInfo.totalMemory,
|
|
650
|
-
freeMemory: sysInfo.freeMemory,
|
|
651
|
-
hostname: sysInfo.hostname,
|
|
652
|
-
},
|
|
653
|
-
});
|
|
654
|
-
// Summary
|
|
655
|
-
const errorCount = checks.filter((c) => c.status === 'error').length;
|
|
656
|
-
const warningCount = checks.filter((c) => c.status === 'warning').length;
|
|
657
|
-
const healthy = errorCount === 0;
|
|
658
|
-
return { healthy, errors: errorCount, warnings: warningCount, checks };
|
|
659
|
-
}
|
|
660
|
-
/**
|
|
661
|
-
* Run auto-fix for failed doctor checks by calling the corresponding ensure* functions.
|
|
662
|
-
* Returns a list of fix results for each attempted repair.
|
|
663
|
-
*/
|
|
664
|
-
export async function runDoctorFixes(projectRoot) {
|
|
665
|
-
const { ensureCleoStructure, ensureGitignore, ensureConfig, ensureProjectInfo, ensureProjectContext, ensureCleoGitRepo, ensureGlobalHome, ensureGlobalTemplates, } = await import('../scaffold.js');
|
|
666
|
-
const { ensureGitHooks } = await import('../hooks.js');
|
|
667
|
-
const { ensureGlobalSchemas } = await import('../schema-management.js');
|
|
668
|
-
const { ensureInjection } = await import('../injection.js');
|
|
669
|
-
const report = await coreDoctorReport(projectRoot);
|
|
670
|
-
const failedChecks = report.checks.filter((c) => c.status !== 'ok');
|
|
671
|
-
const results = [];
|
|
672
|
-
// Map check names to their fix functions
|
|
673
|
-
const fixMap = {
|
|
674
|
-
project_dir: async () => {
|
|
675
|
-
const r = await ensureCleoStructure(projectRoot);
|
|
676
|
-
return {
|
|
677
|
-
check: 'project_dir',
|
|
678
|
-
action: r.action === 'skipped' ? 'skipped' : 'fixed',
|
|
679
|
-
message: r.details ?? r.action,
|
|
680
|
-
};
|
|
681
|
-
},
|
|
682
|
-
cleo_gitignore: async () => {
|
|
683
|
-
const r = await ensureGitignore(projectRoot);
|
|
684
|
-
return {
|
|
685
|
-
check: 'cleo_gitignore',
|
|
686
|
-
action: r.action === 'skipped' ? 'skipped' : 'fixed',
|
|
687
|
-
message: r.details ?? r.action,
|
|
688
|
-
};
|
|
689
|
-
},
|
|
690
|
-
config_file: async () => {
|
|
691
|
-
const r = await ensureConfig(projectRoot);
|
|
692
|
-
return {
|
|
693
|
-
check: 'config_file',
|
|
694
|
-
action: r.action === 'skipped' ? 'skipped' : 'fixed',
|
|
695
|
-
message: r.details ?? r.action,
|
|
696
|
-
};
|
|
697
|
-
},
|
|
698
|
-
cleo_project_info: async () => {
|
|
699
|
-
const r = await ensureProjectInfo(projectRoot, { force: true });
|
|
700
|
-
return {
|
|
701
|
-
check: 'cleo_project_info',
|
|
702
|
-
action: r.action === 'skipped' ? 'skipped' : 'fixed',
|
|
703
|
-
message: r.details ?? r.action,
|
|
704
|
-
};
|
|
705
|
-
},
|
|
706
|
-
cleo_project_context: async () => {
|
|
707
|
-
const r = await ensureProjectContext(projectRoot, { force: true });
|
|
708
|
-
return {
|
|
709
|
-
check: 'cleo_project_context',
|
|
710
|
-
action: r.action === 'skipped' ? 'skipped' : 'fixed',
|
|
711
|
-
message: r.details ?? r.action,
|
|
712
|
-
};
|
|
713
|
-
},
|
|
714
|
-
cleo_git_repo: async () => {
|
|
715
|
-
const r = await ensureCleoGitRepo(projectRoot);
|
|
716
|
-
return {
|
|
717
|
-
check: 'cleo_git_repo',
|
|
718
|
-
action: r.action === 'skipped' ? 'skipped' : 'fixed',
|
|
719
|
-
message: r.details ?? r.action,
|
|
720
|
-
};
|
|
721
|
-
},
|
|
722
|
-
contributor_channel: async () => {
|
|
723
|
-
const { ensureContributorMcp } = await import('../scaffold.js');
|
|
724
|
-
const r = await ensureContributorMcp(projectRoot);
|
|
725
|
-
return {
|
|
726
|
-
check: 'contributor_channel',
|
|
727
|
-
action: r.action === 'skipped' ? 'skipped' : 'fixed',
|
|
728
|
-
message: r.details ?? r.action,
|
|
729
|
-
};
|
|
730
|
-
},
|
|
731
|
-
git_hooks: async () => {
|
|
732
|
-
const r = await ensureGitHooks(projectRoot, { force: true });
|
|
733
|
-
return {
|
|
734
|
-
check: 'git_hooks',
|
|
735
|
-
action: r.action === 'skipped' ? 'skipped' : 'fixed',
|
|
736
|
-
message: r.details ?? r.action,
|
|
737
|
-
};
|
|
738
|
-
},
|
|
739
|
-
global_schemas: async () => {
|
|
740
|
-
const r = ensureGlobalSchemas();
|
|
741
|
-
const msg = `Installed ${r.installed}, updated ${r.updated} of ${r.total} schemas`;
|
|
742
|
-
return {
|
|
743
|
-
check: 'global_schemas',
|
|
744
|
-
action: r.installed + r.updated > 0 ? 'fixed' : 'skipped',
|
|
745
|
-
message: msg,
|
|
746
|
-
};
|
|
747
|
-
},
|
|
748
|
-
injection_health: async () => {
|
|
749
|
-
const r = await ensureInjection(projectRoot);
|
|
750
|
-
return {
|
|
751
|
-
check: 'injection_health',
|
|
752
|
-
action: r.action === 'skipped' ? 'skipped' : 'fixed',
|
|
753
|
-
message: r.details ?? r.action,
|
|
754
|
-
};
|
|
755
|
-
},
|
|
756
|
-
cleo_structure: async () => {
|
|
757
|
-
const r = await ensureCleoStructure(projectRoot);
|
|
758
|
-
return {
|
|
759
|
-
check: 'cleo_structure',
|
|
760
|
-
action: r.action === 'skipped' ? 'skipped' : 'fixed',
|
|
761
|
-
message: r.details ?? r.action,
|
|
762
|
-
};
|
|
763
|
-
},
|
|
764
|
-
global_home: async () => {
|
|
765
|
-
const r = await ensureGlobalHome();
|
|
766
|
-
return {
|
|
767
|
-
check: 'global_home',
|
|
768
|
-
action: r.action === 'skipped' ? 'skipped' : 'fixed',
|
|
769
|
-
message: r.details ?? r.action,
|
|
770
|
-
};
|
|
771
|
-
},
|
|
772
|
-
global_templates: async () => {
|
|
773
|
-
const r = await ensureGlobalTemplates();
|
|
774
|
-
return {
|
|
775
|
-
check: 'global_templates',
|
|
776
|
-
action: r.action === 'skipped' ? 'skipped' : 'fixed',
|
|
777
|
-
message: r.details ?? r.action,
|
|
778
|
-
};
|
|
779
|
-
},
|
|
780
|
-
log_dir: async () => {
|
|
781
|
-
// Log dir is part of REQUIRED_CLEO_SUBDIRS, so ensureCleoStructure fixes it
|
|
782
|
-
const r = await ensureCleoStructure(projectRoot);
|
|
783
|
-
return {
|
|
784
|
-
check: 'log_dir',
|
|
785
|
-
action: r.action === 'skipped' ? 'skipped' : 'fixed',
|
|
786
|
-
message: r.details ?? r.action,
|
|
787
|
-
};
|
|
788
|
-
},
|
|
789
|
-
};
|
|
790
|
-
for (const check of failedChecks) {
|
|
791
|
-
const fixer = fixMap[check.check];
|
|
792
|
-
if (!fixer)
|
|
793
|
-
continue;
|
|
794
|
-
try {
|
|
795
|
-
const result = await fixer();
|
|
796
|
-
results.push(result);
|
|
797
|
-
}
|
|
798
|
-
catch (err) {
|
|
799
|
-
results.push({
|
|
800
|
-
check: check.check,
|
|
801
|
-
action: 'failed',
|
|
802
|
-
message: err instanceof Error ? err.message : String(err),
|
|
803
|
-
});
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
return results;
|
|
807
|
-
}
|
|
808
|
-
/**
|
|
809
|
-
* Unified startup health check for MCP server and CLI entry points.
|
|
810
|
-
*
|
|
811
|
-
* This is the single entry point for startup diagnostics. It follows a
|
|
812
|
-
* three-phase approach:
|
|
813
|
-
*
|
|
814
|
-
* Phase 1: Global scaffold (~/.cleo/) — always auto-repaired.
|
|
815
|
-
* The global home is CLEO infrastructure, not project data. It is safe
|
|
816
|
-
* to create/repair unconditionally on every startup.
|
|
817
|
-
*
|
|
818
|
-
* Phase 2: Project detection — determines if this is an initialized project.
|
|
819
|
-
* Uses isProjectInitialized() from paths.ts as the SSoT for detection.
|
|
820
|
-
*
|
|
821
|
-
* Phase 3: Project health — lightweight checks on the project scaffold.
|
|
822
|
-
* If the project is initialized, runs check* functions to detect drift.
|
|
823
|
-
* Auto-repairs safe items (missing subdirs via ensureCleoStructure).
|
|
824
|
-
* Flags items requiring full upgrade (missing DB, config issues).
|
|
825
|
-
*
|
|
826
|
-
* Design principles:
|
|
827
|
-
* - SSoT: All checks delegate to scaffold.ts check* functions
|
|
828
|
-
* - DRY: No duplicated health-check logic
|
|
829
|
-
* - SRP: This function only diagnoses and does safe auto-repair
|
|
830
|
-
* - Graceful: Never throws. All errors are captured as check results.
|
|
831
|
-
* - Logged: Returns structured results for the caller to log via pino
|
|
832
|
-
*
|
|
833
|
-
* @param projectRoot - Absolute path to the project root (defaults to cwd)
|
|
834
|
-
*/
|
|
835
|
-
export async function startupHealthCheck(projectRoot) {
|
|
836
|
-
const root = projectRoot ?? process.cwd();
|
|
837
|
-
const system = getSystemInfo();
|
|
838
|
-
const checks = [];
|
|
839
|
-
const failures = [];
|
|
840
|
-
let globalHealthy = true;
|
|
841
|
-
let projectHealthy = true;
|
|
842
|
-
// ── Phase 1: Global scaffold (~/.cleo/) ──────────────────────────
|
|
843
|
-
// Always auto-repair. This is infrastructure, not project data.
|
|
844
|
-
try {
|
|
845
|
-
// Check current state first (read-only)
|
|
846
|
-
const globalHomeCheck = checkGlobalHome();
|
|
847
|
-
const globalTemplateCheck = checkGlobalTemplates();
|
|
848
|
-
const globalSchemaCheck = checkGlobalSchemas();
|
|
849
|
-
const globalNeedsRepair = globalHomeCheck.status !== 'passed' ||
|
|
850
|
-
globalTemplateCheck.status !== 'passed' ||
|
|
851
|
-
!globalSchemaCheck.ok;
|
|
852
|
-
if (globalNeedsRepair) {
|
|
853
|
-
// Auto-repair: ensureGlobalScaffold is idempotent and safe
|
|
854
|
-
const scaffoldResult = await ensureGlobalScaffold();
|
|
855
|
-
checks.push({
|
|
856
|
-
check: 'global_home',
|
|
857
|
-
status: 'pass',
|
|
858
|
-
message: scaffoldResult.home.action === 'skipped'
|
|
859
|
-
? 'Global home already current'
|
|
860
|
-
: `Global home ${scaffoldResult.home.action}: ${scaffoldResult.home.details ?? ''}`,
|
|
861
|
-
repaired: scaffoldResult.home.action !== 'skipped',
|
|
862
|
-
});
|
|
863
|
-
checks.push({
|
|
864
|
-
check: 'global_schemas',
|
|
865
|
-
status: 'pass',
|
|
866
|
-
message: `Schemas: ${scaffoldResult.schemas.installed} installed, ${scaffoldResult.schemas.updated} updated of ${scaffoldResult.schemas.total}`,
|
|
867
|
-
repaired: scaffoldResult.schemas.installed > 0 || scaffoldResult.schemas.updated > 0,
|
|
868
|
-
});
|
|
869
|
-
checks.push({
|
|
870
|
-
check: 'global_templates',
|
|
871
|
-
status: 'pass',
|
|
872
|
-
message: scaffoldResult.templates.action === 'skipped'
|
|
873
|
-
? 'Templates already current'
|
|
874
|
-
: `Templates ${scaffoldResult.templates.action}: ${scaffoldResult.templates.details ?? ''}`,
|
|
875
|
-
repaired: scaffoldResult.templates.action !== 'skipped',
|
|
876
|
-
});
|
|
877
|
-
}
|
|
878
|
-
else {
|
|
879
|
-
checks.push({ check: 'global_home', status: 'pass', message: 'Global home healthy' }, {
|
|
880
|
-
check: 'global_schemas',
|
|
881
|
-
status: 'pass',
|
|
882
|
-
message: `All ${globalSchemaCheck.installed} schemas current`,
|
|
883
|
-
}, { check: 'global_templates', status: 'pass', message: 'Templates present' });
|
|
884
|
-
}
|
|
885
|
-
}
|
|
886
|
-
catch (err) {
|
|
887
|
-
// Global scaffold failure is non-fatal but degrades the system
|
|
888
|
-
globalHealthy = false;
|
|
889
|
-
const msg = err instanceof Error ? err.message : String(err);
|
|
890
|
-
const failCheck = {
|
|
891
|
-
check: 'global_scaffold',
|
|
892
|
-
status: 'fail',
|
|
893
|
-
message: `Global scaffold repair failed: ${msg}`,
|
|
894
|
-
};
|
|
895
|
-
checks.push(failCheck);
|
|
896
|
-
failures.push(failCheck);
|
|
897
|
-
}
|
|
898
|
-
// ── Phase 2: Project detection ───────────────────────────────────
|
|
899
|
-
if (!isProjectInitialized(root)) {
|
|
900
|
-
checks.push({
|
|
901
|
-
check: 'project_initialized',
|
|
902
|
-
status: 'fail',
|
|
903
|
-
message: 'Project not initialized (.cleo/ or tasks.db missing)',
|
|
904
|
-
});
|
|
905
|
-
return {
|
|
906
|
-
state: 'needs_init',
|
|
907
|
-
globalHealthy,
|
|
908
|
-
projectHealthy: false,
|
|
909
|
-
checks,
|
|
910
|
-
failures,
|
|
911
|
-
system,
|
|
912
|
-
};
|
|
913
|
-
}
|
|
914
|
-
checks.push({
|
|
915
|
-
check: 'project_initialized',
|
|
916
|
-
status: 'pass',
|
|
917
|
-
message: 'Project initialized',
|
|
918
|
-
});
|
|
919
|
-
// ── Phase 3: Lightweight project health checks ───────────────────
|
|
920
|
-
// Run read-only check* functions to detect drift. Only auto-repair
|
|
921
|
-
// safe structural items (missing subdirs). Flag everything else.
|
|
922
|
-
const structureCheck = checkCleoStructure(root);
|
|
923
|
-
const configCheck = checkConfig(root);
|
|
924
|
-
const dbCheck = checkSqliteDb(root);
|
|
925
|
-
const logDirCheck = checkLogDir(root);
|
|
926
|
-
// Structure: auto-repairable (missing subdirs are safe to create)
|
|
927
|
-
if (structureCheck.status !== 'passed') {
|
|
928
|
-
try {
|
|
929
|
-
await ensureCleoStructure(root);
|
|
930
|
-
checks.push({
|
|
931
|
-
check: 'cleo_structure',
|
|
932
|
-
status: 'pass',
|
|
933
|
-
message: 'Structure repaired: missing subdirectories created',
|
|
934
|
-
repaired: true,
|
|
935
|
-
});
|
|
936
|
-
}
|
|
937
|
-
catch (err) {
|
|
938
|
-
projectHealthy = false;
|
|
939
|
-
const msg = err instanceof Error ? err.message : String(err);
|
|
940
|
-
const failCheck = {
|
|
941
|
-
check: 'cleo_structure',
|
|
942
|
-
status: 'fail',
|
|
943
|
-
message: `Structure repair failed: ${msg}`,
|
|
944
|
-
};
|
|
945
|
-
checks.push(failCheck);
|
|
946
|
-
failures.push(failCheck);
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
else {
|
|
950
|
-
checks.push({ check: 'cleo_structure', status: 'pass', message: 'Structure healthy' });
|
|
951
|
-
}
|
|
952
|
-
// Config: NOT auto-repairable on startup (requires explicit init/upgrade)
|
|
953
|
-
if (configCheck.status === 'failed') {
|
|
954
|
-
projectHealthy = false;
|
|
955
|
-
const failCheck = {
|
|
956
|
-
check: 'config',
|
|
957
|
-
status: 'fail',
|
|
958
|
-
message: configCheck.message,
|
|
959
|
-
};
|
|
960
|
-
checks.push(failCheck);
|
|
961
|
-
failures.push(failCheck);
|
|
962
|
-
}
|
|
963
|
-
else {
|
|
964
|
-
checks.push({
|
|
965
|
-
check: 'config',
|
|
966
|
-
status: configCheck.status === 'warning' ? 'warn' : 'pass',
|
|
967
|
-
message: configCheck.message,
|
|
968
|
-
});
|
|
969
|
-
}
|
|
970
|
-
// SQLite DB: NOT auto-repairable on startup
|
|
971
|
-
if (dbCheck.status === 'failed') {
|
|
972
|
-
projectHealthy = false;
|
|
973
|
-
const failCheck = {
|
|
974
|
-
check: 'sqlite_db',
|
|
975
|
-
status: 'fail',
|
|
976
|
-
message: dbCheck.message,
|
|
977
|
-
};
|
|
978
|
-
checks.push(failCheck);
|
|
979
|
-
failures.push(failCheck);
|
|
980
|
-
}
|
|
981
|
-
else {
|
|
982
|
-
checks.push({
|
|
983
|
-
check: 'sqlite_db',
|
|
984
|
-
status: dbCheck.status === 'warning' ? 'warn' : 'pass',
|
|
985
|
-
message: dbCheck.message,
|
|
986
|
-
});
|
|
987
|
-
}
|
|
988
|
-
// Log directory: auto-repairable (part of ensureCleoStructure above,
|
|
989
|
-
// but verify explicitly since it was just added to REQUIRED_CLEO_SUBDIRS)
|
|
990
|
-
if (logDirCheck.status !== 'passed') {
|
|
991
|
-
// ensureCleoStructure above should have created it, but check again
|
|
992
|
-
checks.push({
|
|
993
|
-
check: 'log_dir',
|
|
994
|
-
status: 'warn',
|
|
995
|
-
message: logDirCheck.message,
|
|
996
|
-
});
|
|
997
|
-
}
|
|
998
|
-
else {
|
|
999
|
-
checks.push({ check: 'log_dir', status: 'pass', message: 'Log directory present' });
|
|
1000
|
-
}
|
|
1001
|
-
// Brain.db: warning-level check (not a startup failure)
|
|
1002
|
-
const brainDbCheck = checkBrainDb(root);
|
|
1003
|
-
checks.push({
|
|
1004
|
-
check: 'brain_db',
|
|
1005
|
-
status: brainDbCheck.status === 'passed' ? 'pass' : 'warn',
|
|
1006
|
-
message: brainDbCheck.message,
|
|
1007
|
-
});
|
|
1008
|
-
// Memory bridge: info-level check
|
|
1009
|
-
const memBridgeCheck = checkMemoryBridge(root);
|
|
1010
|
-
checks.push({
|
|
1011
|
-
check: 'memory_bridge',
|
|
1012
|
-
status: memBridgeCheck.status === 'passed' ? 'pass' : 'warn',
|
|
1013
|
-
message: memBridgeCheck.message,
|
|
1014
|
-
});
|
|
1015
|
-
// NEXUS auto-registration (best-effort, never blocks startup)
|
|
1016
|
-
try {
|
|
1017
|
-
const { nexusReconcile } = await import('../nexus/registry.js');
|
|
1018
|
-
await nexusReconcile(root);
|
|
1019
|
-
checks.push({
|
|
1020
|
-
check: 'nexus_registration',
|
|
1021
|
-
status: 'pass',
|
|
1022
|
-
message: 'NEXUS registry reconciled',
|
|
1023
|
-
});
|
|
1024
|
-
}
|
|
1025
|
-
catch {
|
|
1026
|
-
checks.push({
|
|
1027
|
-
check: 'nexus_registration',
|
|
1028
|
-
status: 'warn',
|
|
1029
|
-
message: 'NEXUS reconciliation skipped (non-fatal)',
|
|
1030
|
-
});
|
|
1031
|
-
}
|
|
1032
|
-
// Determine overall state
|
|
1033
|
-
const hasFailures = failures.length > 0;
|
|
1034
|
-
const state = hasFailures && !projectHealthy ? 'needs_upgrade' : 'healthy';
|
|
1035
|
-
return {
|
|
1036
|
-
state,
|
|
1037
|
-
globalHealthy,
|
|
1038
|
-
projectHealthy,
|
|
1039
|
-
checks,
|
|
1040
|
-
failures,
|
|
1041
|
-
system,
|
|
1042
|
-
};
|
|
1043
|
-
}
|
|
1044
|
-
//# sourceMappingURL=health.js.map
|