@cleocode/core 2026.3.42 → 2026.3.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/adapter-registry.d.ts +29 -0
- package/dist/adapters/adapter-registry.d.ts.map +1 -0
- package/dist/adapters/discovery.d.ts +18 -0
- package/dist/adapters/discovery.d.ts.map +1 -0
- package/dist/adapters/index.d.ts +10 -0
- package/dist/adapters/index.d.ts.map +1 -0
- package/dist/adapters/manager.d.ts +81 -0
- package/dist/adapters/manager.d.ts.map +1 -0
- package/dist/admin/export-tasks.d.ts +30 -0
- package/dist/admin/export-tasks.d.ts.map +1 -0
- package/dist/admin/export.d.ts +28 -0
- package/dist/admin/export.d.ts.map +1 -0
- package/dist/admin/help.d.ts +74 -0
- package/dist/admin/help.d.ts.map +1 -0
- package/dist/admin/import-tasks.d.ts +43 -0
- package/dist/admin/import-tasks.d.ts.map +1 -0
- package/dist/admin/import.d.ts +33 -0
- package/dist/admin/import.d.ts.map +1 -0
- package/dist/admin/index.d.ts +14 -0
- package/dist/admin/index.d.ts.map +1 -0
- package/dist/adrs/find.d.ts +24 -0
- package/dist/adrs/find.d.ts.map +1 -0
- package/dist/adrs/index.d.ts +18 -0
- package/dist/adrs/index.d.ts.map +1 -0
- package/dist/adrs/link-pipeline.d.ts +35 -0
- package/dist/adrs/link-pipeline.d.ts.map +1 -0
- package/dist/adrs/list.d.ts +16 -0
- package/dist/adrs/list.d.ts.map +1 -0
- package/dist/adrs/parse.d.ts +18 -0
- package/dist/adrs/parse.d.ts.map +1 -0
- package/dist/adrs/show.d.ts +11 -0
- package/dist/adrs/show.d.ts.map +1 -0
- package/dist/adrs/sync.d.ts +20 -0
- package/dist/adrs/sync.d.ts.map +1 -0
- package/dist/adrs/types.d.ts +67 -0
- package/dist/adrs/types.d.ts.map +1 -0
- package/dist/adrs/validate.d.ts +24 -0
- package/dist/adrs/validate.d.ts.map +1 -0
- package/dist/agents/agent-schema.d.ts +358 -0
- package/dist/agents/agent-schema.d.ts.map +1 -0
- package/dist/agents/capacity.d.ts +57 -0
- package/dist/agents/capacity.d.ts.map +1 -0
- package/dist/agents/index.d.ts +17 -0
- package/dist/agents/index.d.ts.map +1 -0
- package/dist/agents/registry.d.ts +115 -0
- package/dist/agents/registry.d.ts.map +1 -0
- package/dist/agents/retry.d.ts +83 -0
- package/dist/agents/retry.d.ts.map +1 -0
- package/dist/audit-prune.d.ts +35 -0
- package/dist/audit-prune.d.ts.map +1 -0
- package/dist/audit.d.ts +49 -0
- package/dist/audit.d.ts.map +1 -0
- package/dist/bootstrap.d.ts +44 -0
- package/dist/bootstrap.d.ts.map +1 -0
- package/dist/caamp/adapter.d.ts +130 -0
- package/dist/caamp/adapter.d.ts.map +1 -0
- package/dist/caamp/capability-check.d.ts +27 -0
- package/dist/caamp/capability-check.d.ts.map +1 -0
- package/dist/caamp/index.d.ts +12 -0
- package/dist/caamp/index.d.ts.map +1 -0
- package/dist/caamp-init.d.ts +2 -0
- package/dist/caamp-init.d.ts.map +1 -0
- package/dist/cleo.d.ts +295 -0
- package/dist/cleo.d.ts.map +1 -0
- package/dist/codebase-map/analyzers/architecture.d.ts +7 -0
- package/dist/codebase-map/analyzers/architecture.d.ts.map +1 -0
- package/dist/codebase-map/analyzers/concerns.d.ts +6 -0
- package/dist/codebase-map/analyzers/concerns.d.ts.map +1 -0
- package/dist/codebase-map/analyzers/conventions.d.ts +8 -0
- package/dist/codebase-map/analyzers/conventions.d.ts.map +1 -0
- package/dist/codebase-map/analyzers/integrations.d.ts +7 -0
- package/dist/codebase-map/analyzers/integrations.d.ts.map +1 -0
- package/dist/codebase-map/analyzers/stack.d.ts +8 -0
- package/dist/codebase-map/analyzers/stack.d.ts.map +1 -0
- package/dist/codebase-map/analyzers/structure.d.ts +6 -0
- package/dist/codebase-map/analyzers/structure.d.ts.map +1 -0
- package/dist/codebase-map/analyzers/testing.d.ts +8 -0
- package/dist/codebase-map/analyzers/testing.d.ts.map +1 -0
- package/dist/codebase-map/index.d.ts +94 -0
- package/dist/codebase-map/index.d.ts.map +1 -0
- package/dist/codebase-map/store.d.ts +13 -0
- package/dist/codebase-map/store.d.ts.map +1 -0
- package/dist/codebase-map/summary.d.ts +7 -0
- package/dist/codebase-map/summary.d.ts.map +1 -0
- package/dist/compliance/index.d.ts +38 -0
- package/dist/compliance/index.d.ts.map +1 -0
- package/dist/compliance/protocol-enforcement.d.ts +106 -0
- package/dist/compliance/protocol-enforcement.d.ts.map +1 -0
- package/dist/compliance/protocol-rules.d.ts +55 -0
- package/dist/compliance/protocol-rules.d.ts.map +1 -0
- package/dist/compliance/protocol-types.d.ts +109 -0
- package/dist/compliance/protocol-types.d.ts.map +1 -0
- package/dist/compliance/store.d.ts +19 -0
- package/dist/compliance/store.d.ts.map +1 -0
- package/dist/config/build-config.d.ts +31 -0
- package/dist/config/build-config.d.ts.map +1 -0
- package/dist/config.d.ts +53 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/constants.d.ts +13 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/context/index.d.ts +20 -0
- package/dist/context/index.d.ts.map +1 -0
- package/dist/engine-result.d.ts +31 -0
- package/dist/engine-result.d.ts.map +1 -0
- package/dist/error-catalog.d.ts +49 -0
- package/dist/error-catalog.d.ts.map +1 -0
- package/dist/error-registry.d.ts +58 -0
- package/dist/error-registry.d.ts.map +1 -0
- package/dist/errors.d.ts +66 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/hooks/handlers/error-hooks.d.ts +18 -0
- package/dist/hooks/handlers/error-hooks.d.ts.map +1 -0
- package/dist/hooks/handlers/file-hooks.d.ts +20 -0
- package/dist/hooks/handlers/file-hooks.d.ts.map +1 -0
- package/dist/hooks/handlers/index.d.ts +17 -0
- package/dist/hooks/handlers/index.d.ts.map +1 -0
- package/dist/hooks/handlers/mcp-hooks.d.ts +22 -0
- package/dist/hooks/handlers/mcp-hooks.d.ts.map +1 -0
- package/dist/hooks/handlers/session-hooks.d.ts +16 -0
- package/dist/hooks/handlers/session-hooks.d.ts.map +1 -0
- package/dist/hooks/handlers/task-hooks.d.ts +16 -0
- package/dist/hooks/handlers/task-hooks.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +15 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/payload-schemas.d.ts +214 -0
- package/dist/hooks/payload-schemas.d.ts.map +1 -0
- package/dist/hooks/provider-hooks.d.ts +27 -0
- package/dist/hooks/provider-hooks.d.ts.map +1 -0
- package/dist/hooks/registry.d.ts +111 -0
- package/dist/hooks/registry.d.ts.map +1 -0
- package/dist/hooks/types.d.ts +299 -0
- package/dist/hooks/types.d.ts.map +1 -0
- package/dist/hooks.d.ts +46 -0
- package/dist/hooks.d.ts.map +1 -0
- package/dist/index.d.ts +112 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +16443 -2160
- package/dist/index.js.map +4 -4
- package/dist/init.d.ts +137 -0
- package/dist/init.d.ts.map +1 -0
- package/dist/inject/index.d.ts +26 -0
- package/dist/inject/index.d.ts.map +1 -0
- package/dist/injection.d.ts +69 -0
- package/dist/injection.d.ts.map +1 -0
- package/dist/intelligence/impact.d.ts +51 -0
- package/dist/intelligence/impact.d.ts.map +1 -0
- package/dist/intelligence/index.d.ts +15 -0
- package/dist/intelligence/index.d.ts.map +1 -0
- package/dist/intelligence/patterns.d.ts +66 -0
- package/dist/intelligence/patterns.d.ts.map +1 -0
- package/dist/intelligence/prediction.d.ts +51 -0
- package/dist/intelligence/prediction.d.ts.map +1 -0
- package/dist/intelligence/types.d.ts +221 -0
- package/dist/intelligence/types.d.ts.map +1 -0
- package/dist/internal.d.ts +209 -0
- package/dist/internal.d.ts.map +1 -0
- package/dist/issue/create.d.ts +43 -0
- package/dist/issue/create.d.ts.map +1 -0
- package/dist/issue/diagnostics.d.ts +18 -0
- package/dist/issue/diagnostics.d.ts.map +1 -0
- package/dist/issue/index.d.ts +12 -0
- package/dist/issue/index.d.ts.map +1 -0
- package/dist/issue/template-parser.d.ts +54 -0
- package/dist/issue/template-parser.d.ts.map +1 -0
- package/dist/json-schema-validator.d.ts +20 -0
- package/dist/json-schema-validator.d.ts.map +1 -0
- package/dist/lifecycle/chain-composition.d.ts +30 -0
- package/dist/lifecycle/chain-composition.d.ts.map +1 -0
- package/dist/lifecycle/chain-store.d.ts +70 -0
- package/dist/lifecycle/chain-store.d.ts.map +1 -0
- package/dist/lifecycle/consolidate-rcasd.d.ts +81 -0
- package/dist/lifecycle/consolidate-rcasd.d.ts.map +1 -0
- package/dist/lifecycle/default-chain.d.ts +33 -0
- package/dist/lifecycle/default-chain.d.ts.map +1 -0
- package/dist/lifecycle/evidence.d.ts +71 -0
- package/dist/lifecycle/evidence.d.ts.map +1 -0
- package/dist/lifecycle/frontmatter.d.ts +104 -0
- package/dist/lifecycle/frontmatter.d.ts.map +1 -0
- package/dist/lifecycle/index.d.ts +228 -0
- package/dist/lifecycle/index.d.ts.map +1 -0
- package/dist/lifecycle/pipeline.d.ts +335 -0
- package/dist/lifecycle/pipeline.d.ts.map +1 -0
- package/dist/lifecycle/rcasd-index.d.ts +168 -0
- package/dist/lifecycle/rcasd-index.d.ts.map +1 -0
- package/dist/lifecycle/rcasd-paths.d.ts +103 -0
- package/dist/lifecycle/rcasd-paths.d.ts.map +1 -0
- package/dist/lifecycle/resume.d.ts +501 -0
- package/dist/lifecycle/resume.d.ts.map +1 -0
- package/dist/lifecycle/stage-artifacts.d.ts +23 -0
- package/dist/lifecycle/stage-artifacts.d.ts.map +1 -0
- package/dist/lifecycle/stages.d.ts +323 -0
- package/dist/lifecycle/stages.d.ts.map +1 -0
- package/dist/lifecycle/state-machine.d.ts +327 -0
- package/dist/lifecycle/state-machine.d.ts.map +1 -0
- package/dist/lifecycle/tessera-engine.d.ts +48 -0
- package/dist/lifecycle/tessera-engine.d.ts.map +1 -0
- package/dist/logger.d.ts +54 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/mcp/index.d.ts +42 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/memory/auto-extract.d.ts +34 -0
- package/dist/memory/auto-extract.d.ts.map +1 -0
- package/dist/memory/brain-embedding.d.ts +42 -0
- package/dist/memory/brain-embedding.d.ts.map +1 -0
- package/dist/memory/brain-lifecycle.d.ts +57 -0
- package/dist/memory/brain-lifecycle.d.ts.map +1 -0
- package/dist/memory/brain-links.d.ts +75 -0
- package/dist/memory/brain-links.d.ts.map +1 -0
- package/dist/memory/brain-migration.d.ts +30 -0
- package/dist/memory/brain-migration.d.ts.map +1 -0
- package/dist/memory/brain-reasoning.d.ts +54 -0
- package/dist/memory/brain-reasoning.d.ts.map +1 -0
- package/dist/memory/brain-retrieval.d.ts +157 -0
- package/dist/memory/brain-retrieval.d.ts.map +1 -0
- package/dist/memory/brain-row-types.d.ts +79 -0
- package/dist/memory/brain-row-types.d.ts.map +1 -0
- package/dist/memory/brain-search.d.ts +91 -0
- package/dist/memory/brain-search.d.ts.map +1 -0
- package/dist/memory/brain-similarity.d.ts +33 -0
- package/dist/memory/brain-similarity.d.ts.map +1 -0
- package/dist/memory/claude-mem-migration.d.ts +45 -0
- package/dist/memory/claude-mem-migration.d.ts.map +1 -0
- package/dist/memory/decisions.d.ts +72 -0
- package/dist/memory/decisions.d.ts.map +1 -0
- package/dist/memory/engine-compat.d.ts +144 -0
- package/dist/memory/engine-compat.d.ts.map +1 -0
- package/dist/memory/index.d.ts +305 -0
- package/dist/memory/index.d.ts.map +1 -0
- package/dist/memory/learnings.d.ts +74 -0
- package/dist/memory/learnings.d.ts.map +1 -0
- package/dist/memory/memory-bridge.d.ts +50 -0
- package/dist/memory/memory-bridge.d.ts.map +1 -0
- package/dist/memory/patterns.d.ts +87 -0
- package/dist/memory/patterns.d.ts.map +1 -0
- package/dist/memory/pipeline-manifest-sqlite.d.ts +83 -0
- package/dist/memory/pipeline-manifest-sqlite.d.ts.map +1 -0
- package/dist/memory/session-memory.d.ts +88 -0
- package/dist/memory/session-memory.d.ts.map +1 -0
- package/dist/metrics/ab-test.d.ts +52 -0
- package/dist/metrics/ab-test.d.ts.map +1 -0
- package/dist/metrics/aggregation.d.ts +41 -0
- package/dist/metrics/aggregation.d.ts.map +1 -0
- package/dist/metrics/common.d.ts +30 -0
- package/dist/metrics/common.d.ts.map +1 -0
- package/dist/metrics/enums.d.ts +68 -0
- package/dist/metrics/enums.d.ts.map +1 -0
- package/dist/metrics/index.d.ts +17 -0
- package/dist/metrics/index.d.ts.map +1 -0
- package/dist/metrics/model-provider-registry.d.ts +17 -0
- package/dist/metrics/model-provider-registry.d.ts.map +1 -0
- package/dist/metrics/otel-integration.d.ts +49 -0
- package/dist/metrics/otel-integration.d.ts.map +1 -0
- package/dist/metrics/provider-detection.d.ts +20 -0
- package/dist/metrics/provider-detection.d.ts.map +1 -0
- package/dist/metrics/token-estimation.d.ts +70 -0
- package/dist/metrics/token-estimation.d.ts.map +1 -0
- package/dist/metrics/token-service.d.ts +107 -0
- package/dist/metrics/token-service.d.ts.map +1 -0
- package/dist/migration/agent-outputs.d.ts +70 -0
- package/dist/migration/agent-outputs.d.ts.map +1 -0
- package/dist/migration/checksum.d.ts +55 -0
- package/dist/migration/checksum.d.ts.map +1 -0
- package/dist/migration/index.d.ts +79 -0
- package/dist/migration/index.d.ts.map +1 -0
- package/dist/migration/logger.d.ts +161 -0
- package/dist/migration/logger.d.ts.map +1 -0
- package/dist/migration/preflight.d.ts +10 -0
- package/dist/migration/preflight.d.ts.map +1 -0
- package/dist/migration/state.d.ts +186 -0
- package/dist/migration/state.d.ts.map +1 -0
- package/dist/migration/validate.d.ts +57 -0
- package/dist/migration/validate.d.ts.map +1 -0
- package/dist/nexus/deps.d.ts +98 -0
- package/dist/nexus/deps.d.ts.map +1 -0
- package/dist/nexus/discover.d.ts +66 -0
- package/dist/nexus/discover.d.ts.map +1 -0
- package/dist/nexus/hash.d.ts +7 -0
- package/dist/nexus/hash.d.ts.map +1 -0
- package/dist/nexus/index.d.ts +17 -0
- package/dist/nexus/index.d.ts.map +1 -0
- package/dist/nexus/migrate-json-to-sqlite.d.ts +23 -0
- package/dist/nexus/migrate-json-to-sqlite.d.ts.map +1 -0
- package/dist/nexus/permissions.d.ts +60 -0
- package/dist/nexus/permissions.d.ts.map +1 -0
- package/dist/nexus/query.d.ts +53 -0
- package/dist/nexus/query.d.ts.map +1 -0
- package/dist/nexus/registry.d.ts +126 -0
- package/dist/nexus/registry.d.ts.map +1 -0
- package/dist/nexus/sharing/index.d.ts +39 -0
- package/dist/nexus/sharing/index.d.ts.map +1 -0
- package/dist/observability/index.d.ts +32 -0
- package/dist/observability/index.d.ts.map +1 -0
- package/dist/observability/log-filter.d.ts +31 -0
- package/dist/observability/log-filter.d.ts.map +1 -0
- package/dist/observability/log-parser.d.ts +26 -0
- package/dist/observability/log-parser.d.ts.map +1 -0
- package/dist/observability/log-reader.d.ts +35 -0
- package/dist/observability/log-reader.d.ts.map +1 -0
- package/dist/observability/types.d.ts +112 -0
- package/dist/observability/types.d.ts.map +1 -0
- package/dist/orchestration/analyze.d.ts +57 -0
- package/dist/orchestration/analyze.d.ts.map +1 -0
- package/dist/orchestration/bootstrap.d.ts +12 -0
- package/dist/orchestration/bootstrap.d.ts.map +1 -0
- package/dist/orchestration/context.d.ts +38 -0
- package/dist/orchestration/context.d.ts.map +1 -0
- package/dist/orchestration/critical-path.d.ts +22 -0
- package/dist/orchestration/critical-path.d.ts.map +1 -0
- package/dist/orchestration/index.d.ts +116 -0
- package/dist/orchestration/index.d.ts.map +1 -0
- package/dist/orchestration/parallel.d.ts +35 -0
- package/dist/orchestration/parallel.d.ts.map +1 -0
- package/dist/orchestration/protocol-validators.d.ts +96 -0
- package/dist/orchestration/protocol-validators.d.ts.map +1 -0
- package/dist/orchestration/skill-ops.d.ts +29 -0
- package/dist/orchestration/skill-ops.d.ts.map +1 -0
- package/dist/orchestration/status.d.ts +92 -0
- package/dist/orchestration/status.d.ts.map +1 -0
- package/dist/orchestration/unblock.d.ts +31 -0
- package/dist/orchestration/unblock.d.ts.map +1 -0
- package/dist/orchestration/validate-spawn.d.ts +19 -0
- package/dist/orchestration/validate-spawn.d.ts.map +1 -0
- package/dist/orchestration/waves.d.ts +26 -0
- package/dist/orchestration/waves.d.ts.map +1 -0
- package/dist/otel/index.d.ts +27 -0
- package/dist/otel/index.d.ts.map +1 -0
- package/dist/output.d.ts +66 -0
- package/dist/output.d.ts.map +1 -0
- package/dist/pagination.d.ts +45 -0
- package/dist/pagination.d.ts.map +1 -0
- package/dist/paths.d.ts +165 -0
- package/dist/paths.d.ts.map +1 -0
- package/dist/phases/deps.d.ts +119 -0
- package/dist/phases/deps.d.ts.map +1 -0
- package/dist/phases/index.d.ts +123 -0
- package/dist/phases/index.d.ts.map +1 -0
- package/dist/pipeline/index.d.ts +10 -0
- package/dist/pipeline/index.d.ts.map +1 -0
- package/dist/pipeline/phase.d.ts +36 -0
- package/dist/pipeline/phase.d.ts.map +1 -0
- package/dist/platform.d.ts +103 -0
- package/dist/platform.d.ts.map +1 -0
- package/dist/project-info.d.ts +35 -0
- package/dist/project-info.d.ts.map +1 -0
- package/dist/reconciliation/index.d.ts +10 -0
- package/dist/reconciliation/index.d.ts.map +1 -0
- package/dist/reconciliation/link-store.d.ts +44 -0
- package/dist/reconciliation/link-store.d.ts.map +1 -0
- package/dist/reconciliation/reconciliation-engine.d.ts +24 -0
- package/dist/reconciliation/reconciliation-engine.d.ts.map +1 -0
- package/dist/release/artifacts.d.ts +71 -0
- package/dist/release/artifacts.d.ts.map +1 -0
- package/dist/release/changelog-writer.d.ts +26 -0
- package/dist/release/changelog-writer.d.ts.map +1 -0
- package/dist/release/channel.d.ts +54 -0
- package/dist/release/channel.d.ts.map +1 -0
- package/dist/release/ci.d.ts +35 -0
- package/dist/release/ci.d.ts.map +1 -0
- package/dist/release/github-pr.d.ts +63 -0
- package/dist/release/github-pr.d.ts.map +1 -0
- package/dist/release/guards.d.ts +44 -0
- package/dist/release/guards.d.ts.map +1 -0
- package/dist/release/index.d.ts +26 -0
- package/dist/release/index.d.ts.map +1 -0
- package/dist/release/release-config.d.ts +90 -0
- package/dist/release/release-config.d.ts.map +1 -0
- package/dist/release/release-manifest.d.ts +215 -0
- package/dist/release/release-manifest.d.ts.map +1 -0
- package/dist/release/version-bump.d.ts +51 -0
- package/dist/release/version-bump.d.ts.map +1 -0
- package/dist/remote/index.d.ts +81 -0
- package/dist/remote/index.d.ts.map +1 -0
- package/dist/repair.d.ts +30 -0
- package/dist/repair.d.ts.map +1 -0
- package/dist/research/index.d.ts +2 -0
- package/dist/research/index.d.ts.map +1 -0
- package/dist/roadmap/index.d.ts +13 -0
- package/dist/roadmap/index.d.ts.map +1 -0
- package/dist/routing/capability-matrix.d.ts +78 -0
- package/dist/routing/capability-matrix.d.ts.map +1 -0
- package/dist/routing/index.d.ts +10 -0
- package/dist/routing/index.d.ts.map +1 -0
- package/dist/scaffold.d.ts +215 -0
- package/dist/scaffold.d.ts.map +1 -0
- package/dist/schema-management.d.ts +96 -0
- package/dist/schema-management.d.ts.map +1 -0
- package/dist/security/index.d.ts +10 -0
- package/dist/security/index.d.ts.map +1 -0
- package/dist/security/input-sanitization.d.ts +93 -0
- package/dist/security/input-sanitization.d.ts.map +1 -0
- package/dist/sequence/index.d.ts +34 -0
- package/dist/sequence/index.d.ts.map +1 -0
- package/dist/sessions/assumptions.d.ts +22 -0
- package/dist/sessions/assumptions.d.ts.map +1 -0
- package/dist/sessions/briefing.d.ts +113 -0
- package/dist/sessions/briefing.d.ts.map +1 -0
- package/dist/sessions/context-alert.d.ts +48 -0
- package/dist/sessions/context-alert.d.ts.map +1 -0
- package/dist/sessions/context-inject.d.ts +31 -0
- package/dist/sessions/context-inject.d.ts.map +1 -0
- package/dist/sessions/context-monitor.d.ts +33 -0
- package/dist/sessions/context-monitor.d.ts.map +1 -0
- package/dist/sessions/decisions.d.ts +29 -0
- package/dist/sessions/decisions.d.ts.map +1 -0
- package/dist/sessions/find.d.ts +38 -0
- package/dist/sessions/find.d.ts.map +1 -0
- package/dist/sessions/handoff.d.ts +137 -0
- package/dist/sessions/handoff.d.ts.map +1 -0
- package/dist/sessions/hitl-warnings.d.ts +58 -0
- package/dist/sessions/hitl-warnings.d.ts.map +1 -0
- package/dist/sessions/index.d.ts +107 -0
- package/dist/sessions/index.d.ts.map +1 -0
- package/dist/sessions/session-archive.d.ts +17 -0
- package/dist/sessions/session-archive.d.ts.map +1 -0
- package/dist/sessions/session-cleanup.d.ts +22 -0
- package/dist/sessions/session-cleanup.d.ts.map +1 -0
- package/dist/sessions/session-drift.d.ts +22 -0
- package/dist/sessions/session-drift.d.ts.map +1 -0
- package/dist/sessions/session-enforcement.d.ts +49 -0
- package/dist/sessions/session-enforcement.d.ts.map +1 -0
- package/dist/sessions/session-grade.d.ts +41 -0
- package/dist/sessions/session-grade.d.ts.map +1 -0
- package/dist/sessions/session-history.d.ts +32 -0
- package/dist/sessions/session-history.d.ts.map +1 -0
- package/dist/sessions/session-id.d.ts +34 -0
- package/dist/sessions/session-id.d.ts.map +1 -0
- package/dist/sessions/session-memory-bridge.d.ts +28 -0
- package/dist/sessions/session-memory-bridge.d.ts.map +1 -0
- package/dist/sessions/session-show.d.ts +14 -0
- package/dist/sessions/session-show.d.ts.map +1 -0
- package/dist/sessions/session-stats.d.ts +30 -0
- package/dist/sessions/session-stats.d.ts.map +1 -0
- package/dist/sessions/session-suspend.d.ts +14 -0
- package/dist/sessions/session-suspend.d.ts.map +1 -0
- package/dist/sessions/session-switch.d.ts +14 -0
- package/dist/sessions/session-switch.d.ts.map +1 -0
- package/dist/sessions/session-view.d.ts +41 -0
- package/dist/sessions/session-view.d.ts.map +1 -0
- package/dist/sessions/statusline-setup.d.ts +24 -0
- package/dist/sessions/statusline-setup.d.ts.map +1 -0
- package/dist/sessions/types.d.ts +110 -0
- package/dist/sessions/types.d.ts.map +1 -0
- package/dist/signaldock/claude-code-transport.d.ts +34 -0
- package/dist/signaldock/claude-code-transport.d.ts.map +1 -0
- package/dist/signaldock/factory.d.ts +22 -0
- package/dist/signaldock/factory.d.ts.map +1 -0
- package/dist/signaldock/index.d.ts +13 -0
- package/dist/signaldock/index.d.ts.map +1 -0
- package/dist/signaldock/signaldock-transport.d.ts +45 -0
- package/dist/signaldock/signaldock-transport.d.ts.map +1 -0
- package/dist/signaldock/transport.d.ts +49 -0
- package/dist/signaldock/transport.d.ts.map +1 -0
- package/dist/signaldock/types.d.ts +88 -0
- package/dist/signaldock/types.d.ts.map +1 -0
- package/dist/skills/agents/config.d.ts +39 -0
- package/dist/skills/agents/config.d.ts.map +1 -0
- package/dist/skills/agents/install.d.ts +33 -0
- package/dist/skills/agents/install.d.ts.map +1 -0
- package/dist/skills/agents/registry.d.ts +56 -0
- package/dist/skills/agents/registry.d.ts.map +1 -0
- package/dist/skills/discovery.d.ts +102 -0
- package/dist/skills/discovery.d.ts.map +1 -0
- package/dist/skills/dispatch.d.ts +67 -0
- package/dist/skills/dispatch.d.ts.map +1 -0
- package/dist/skills/dynamic-skill-generator.d.ts +42 -0
- package/dist/skills/dynamic-skill-generator.d.ts.map +1 -0
- package/dist/skills/index.d.ts +38 -0
- package/dist/skills/index.d.ts.map +1 -0
- package/dist/skills/injection/subagent.d.ts +60 -0
- package/dist/skills/injection/subagent.d.ts.map +1 -0
- package/dist/skills/injection/token.d.ts +121 -0
- package/dist/skills/injection/token.d.ts.map +1 -0
- package/dist/skills/install.d.ts +16 -0
- package/dist/skills/install.d.ts.map +1 -0
- package/dist/skills/manifests/contribution.d.ts +74 -0
- package/dist/skills/manifests/contribution.d.ts.map +1 -0
- package/dist/skills/manifests/research.d.ts +73 -0
- package/dist/skills/manifests/research.d.ts.map +1 -0
- package/dist/skills/manifests/resolver.d.ts +40 -0
- package/dist/skills/manifests/resolver.d.ts.map +1 -0
- package/dist/skills/marketplace.d.ts +45 -0
- package/dist/skills/marketplace.d.ts.map +1 -0
- package/dist/skills/orchestrator/spawn.d.ts +66 -0
- package/dist/skills/orchestrator/spawn.d.ts.map +1 -0
- package/dist/skills/orchestrator/startup.d.ts +85 -0
- package/dist/skills/orchestrator/startup.d.ts.map +1 -0
- package/dist/skills/orchestrator/validator.d.ts +40 -0
- package/dist/skills/orchestrator/validator.d.ts.map +1 -0
- package/dist/skills/precedence-integration.d.ts +46 -0
- package/dist/skills/precedence-integration.d.ts.map +1 -0
- package/dist/skills/precedence-types.d.ts +50 -0
- package/dist/skills/precedence-types.d.ts.map +1 -0
- package/dist/skills/routing-table.d.ts +58 -0
- package/dist/skills/routing-table.d.ts.map +1 -0
- package/dist/skills/skill-paths.d.ts +79 -0
- package/dist/skills/skill-paths.d.ts.map +1 -0
- package/dist/skills/test-utility.d.ts +39 -0
- package/dist/skills/test-utility.d.ts.map +1 -0
- package/dist/skills/types.d.ts +347 -0
- package/dist/skills/types.d.ts.map +1 -0
- package/dist/skills/validation.d.ts +46 -0
- package/dist/skills/validation.d.ts.map +1 -0
- package/dist/skills/version.d.ts +31 -0
- package/dist/skills/version.d.ts.map +1 -0
- package/dist/snapshot/index.d.ts +83 -0
- package/dist/snapshot/index.d.ts.map +1 -0
- package/dist/spawn/adapter-registry.d.ts +132 -0
- package/dist/spawn/adapter-registry.d.ts.map +1 -0
- package/dist/spawn/index.d.ts +11 -0
- package/dist/spawn/index.d.ts.map +1 -0
- package/dist/stats/index.d.ts +37 -0
- package/dist/stats/index.d.ts.map +1 -0
- package/dist/sticky/archive.d.ts +18 -0
- package/dist/sticky/archive.d.ts.map +1 -0
- package/dist/sticky/convert.d.ts +73 -0
- package/dist/sticky/convert.d.ts.map +1 -0
- package/dist/sticky/create.d.ts +18 -0
- package/dist/sticky/create.d.ts.map +1 -0
- package/dist/sticky/id.d.ts +18 -0
- package/dist/sticky/id.d.ts.map +1 -0
- package/dist/sticky/index.d.ts +17 -0
- package/dist/sticky/index.d.ts.map +1 -0
- package/dist/sticky/list.d.ts +18 -0
- package/dist/sticky/list.d.ts.map +1 -0
- package/dist/sticky/purge.d.ts +17 -0
- package/dist/sticky/purge.d.ts.map +1 -0
- package/dist/sticky/show.d.ts +18 -0
- package/dist/sticky/show.d.ts.map +1 -0
- package/dist/sticky/types.d.ts +87 -0
- package/dist/sticky/types.d.ts.map +1 -0
- package/dist/store/atomic.d.ts +75 -0
- package/dist/store/atomic.d.ts.map +1 -0
- package/dist/store/backup.d.ts +21 -0
- package/dist/store/backup.d.ts.map +1 -0
- package/dist/store/brain-accessor.d.ts +84 -0
- package/dist/store/brain-accessor.d.ts.map +1 -0
- package/dist/store/brain-schema.d.ts +1339 -0
- package/dist/store/brain-schema.d.ts.map +1 -0
- package/dist/store/brain-sqlite.d.ts +59 -0
- package/dist/store/brain-sqlite.d.ts.map +1 -0
- package/dist/store/cache.d.ts +67 -0
- package/dist/store/cache.d.ts.map +1 -0
- package/dist/store/chain-schema.d.ts +319 -0
- package/dist/store/chain-schema.d.ts.map +1 -0
- package/dist/store/converters.d.ts +19 -0
- package/dist/store/converters.d.ts.map +1 -0
- package/dist/store/data-accessor.d.ts +20 -0
- package/dist/store/data-accessor.d.ts.map +1 -0
- package/dist/store/data-safety-central.d.ts +101 -0
- package/dist/store/data-safety-central.d.ts.map +1 -0
- package/dist/store/data-safety.d.ts +92 -0
- package/dist/store/data-safety.d.ts.map +1 -0
- package/dist/store/db-helpers.d.ts +61 -0
- package/dist/store/db-helpers.d.ts.map +1 -0
- package/dist/store/export.d.ts +88 -0
- package/dist/store/export.d.ts.map +1 -0
- package/dist/store/file-utils.d.ts +72 -0
- package/dist/store/file-utils.d.ts.map +1 -0
- package/dist/store/git-checkpoint.d.ts +93 -0
- package/dist/store/git-checkpoint.d.ts.map +1 -0
- package/dist/store/import-logging.d.ts +58 -0
- package/dist/store/import-logging.d.ts.map +1 -0
- package/dist/store/import-remap.d.ts +50 -0
- package/dist/store/import-remap.d.ts.map +1 -0
- package/dist/store/import-sort.d.ts +35 -0
- package/dist/store/import-sort.d.ts.map +1 -0
- package/dist/store/index.d.ts +28 -0
- package/dist/store/index.d.ts.map +1 -0
- package/dist/store/json.d.ts +57 -0
- package/dist/store/json.d.ts.map +1 -0
- package/dist/store/lifecycle-store.d.ts +125 -0
- package/dist/store/lifecycle-store.d.ts.map +1 -0
- package/dist/store/lock.d.ts +29 -0
- package/dist/store/lock.d.ts.map +1 -0
- package/dist/store/migration-sqlite.d.ts +67 -0
- package/dist/store/migration-sqlite.d.ts.map +1 -0
- package/dist/store/nexus-schema.d.ts +503 -0
- package/dist/store/nexus-schema.d.ts.map +1 -0
- package/dist/store/nexus-sqlite.d.ts +58 -0
- package/dist/store/nexus-sqlite.d.ts.map +1 -0
- package/dist/store/nexus-validation-schemas.d.ts +970 -0
- package/dist/store/nexus-validation-schemas.d.ts.map +1 -0
- package/dist/store/parsers.d.ts +16 -0
- package/dist/store/parsers.d.ts.map +1 -0
- package/dist/store/project-detect.d.ts +56 -0
- package/dist/store/project-detect.d.ts.map +1 -0
- package/dist/store/provider.d.ts +147 -0
- package/dist/store/provider.d.ts.map +1 -0
- package/dist/store/safety-data-accessor.d.ts +123 -0
- package/dist/store/safety-data-accessor.d.ts.map +1 -0
- package/dist/store/schema.d.ts +7 -0
- package/dist/store/schema.d.ts.map +1 -0
- package/dist/store/session-store.d.ts +42 -0
- package/dist/store/session-store.d.ts.map +1 -0
- package/dist/store/sqlite-backup.d.ts +34 -0
- package/dist/store/sqlite-backup.d.ts.map +1 -0
- package/dist/store/sqlite-data-accessor.d.ts +26 -0
- package/dist/store/sqlite-data-accessor.d.ts.map +1 -0
- package/dist/store/sqlite.d.ts +106 -0
- package/dist/store/sqlite.d.ts.map +1 -0
- package/dist/store/status-registry.d.ts +9 -0
- package/dist/store/status-registry.d.ts.map +1 -0
- package/dist/store/task-store.d.ts +69 -0
- package/dist/store/task-store.d.ts.map +1 -0
- package/dist/store/tasks-schema.d.ts +4077 -0
- package/dist/store/tasks-schema.d.ts.map +1 -0
- package/dist/store/typed-query.d.ts +12 -0
- package/dist/store/typed-query.d.ts.map +1 -0
- package/dist/store/validation-schemas.d.ts +9042 -0
- package/dist/store/validation-schemas.d.ts.map +1 -0
- package/dist/system/archive-analytics.d.ts +148 -0
- package/dist/system/archive-analytics.d.ts.map +1 -0
- package/dist/system/archive-stats.d.ts +21 -0
- package/dist/system/archive-stats.d.ts.map +1 -0
- package/dist/system/audit.d.ts +25 -0
- package/dist/system/audit.d.ts.map +1 -0
- package/dist/system/backup.d.ts +28 -0
- package/dist/system/backup.d.ts.map +1 -0
- package/dist/system/cleanup.d.ts +20 -0
- package/dist/system/cleanup.d.ts.map +1 -0
- package/dist/system/health.d.ts +124 -0
- package/dist/system/health.d.ts.map +1 -0
- package/dist/system/index.d.ts +31 -0
- package/dist/system/index.d.ts.map +1 -0
- package/dist/system/inject-generate.d.ts +13 -0
- package/dist/system/inject-generate.d.ts.map +1 -0
- package/dist/system/labels.d.ts +18 -0
- package/dist/system/labels.d.ts.map +1 -0
- package/dist/system/metrics.d.ts +30 -0
- package/dist/system/metrics.d.ts.map +1 -0
- package/dist/system/migrate.d.ts +19 -0
- package/dist/system/migrate.d.ts.map +1 -0
- package/dist/system/platform-paths.d.ts +61 -0
- package/dist/system/platform-paths.d.ts.map +1 -0
- package/dist/system/runtime.d.ts +38 -0
- package/dist/system/runtime.d.ts.map +1 -0
- package/dist/system/safestop.d.ts +35 -0
- package/dist/system/safestop.d.ts.map +1 -0
- package/dist/system/storage-preflight.d.ts +42 -0
- package/dist/system/storage-preflight.d.ts.map +1 -0
- package/dist/task-work/index.d.ts +58 -0
- package/dist/task-work/index.d.ts.map +1 -0
- package/dist/tasks/add.d.ts +123 -0
- package/dist/tasks/add.d.ts.map +1 -0
- package/dist/tasks/analyze.d.ts +16 -0
- package/dist/tasks/analyze.d.ts.map +1 -0
- package/dist/tasks/archive.d.ts +31 -0
- package/dist/tasks/archive.d.ts.map +1 -0
- package/dist/tasks/atomicity.d.ts +21 -0
- package/dist/tasks/atomicity.d.ts.map +1 -0
- package/dist/tasks/cancel-ops.d.ts +42 -0
- package/dist/tasks/cancel-ops.d.ts.map +1 -0
- package/dist/tasks/complete.d.ts +26 -0
- package/dist/tasks/complete.d.ts.map +1 -0
- package/dist/tasks/crossref-extract.d.ts +39 -0
- package/dist/tasks/crossref-extract.d.ts.map +1 -0
- package/dist/tasks/delete-preview.d.ts +69 -0
- package/dist/tasks/delete-preview.d.ts.map +1 -0
- package/dist/tasks/delete.d.ts +24 -0
- package/dist/tasks/delete.d.ts.map +1 -0
- package/dist/tasks/deletion-strategy.d.ts +46 -0
- package/dist/tasks/deletion-strategy.d.ts.map +1 -0
- package/dist/tasks/dependency-check.d.ts +82 -0
- package/dist/tasks/dependency-check.d.ts.map +1 -0
- package/dist/tasks/deps-ready.d.ts +22 -0
- package/dist/tasks/deps-ready.d.ts.map +1 -0
- package/dist/tasks/find.d.ts +48 -0
- package/dist/tasks/find.d.ts.map +1 -0
- package/dist/tasks/graph-cache.d.ts +70 -0
- package/dist/tasks/graph-cache.d.ts.map +1 -0
- package/dist/tasks/graph-ops.d.ts +36 -0
- package/dist/tasks/graph-ops.d.ts.map +1 -0
- package/dist/tasks/graph-rag.d.ts +49 -0
- package/dist/tasks/graph-rag.d.ts.map +1 -0
- package/dist/tasks/hierarchy-policy.d.ts +61 -0
- package/dist/tasks/hierarchy-policy.d.ts.map +1 -0
- package/dist/tasks/hierarchy.d.ts +85 -0
- package/dist/tasks/hierarchy.d.ts.map +1 -0
- package/dist/tasks/id-generator.d.ts +28 -0
- package/dist/tasks/id-generator.d.ts.map +1 -0
- package/dist/tasks/index.d.ts +14 -0
- package/dist/tasks/index.d.ts.map +1 -0
- package/dist/tasks/labels.d.ts +19 -0
- package/dist/tasks/labels.d.ts.map +1 -0
- package/dist/tasks/list.d.ts +49 -0
- package/dist/tasks/list.d.ts.map +1 -0
- package/dist/tasks/phase-tracking.d.ts +61 -0
- package/dist/tasks/phase-tracking.d.ts.map +1 -0
- package/dist/tasks/plan.d.ts +53 -0
- package/dist/tasks/plan.d.ts.map +1 -0
- package/dist/tasks/relates.d.ts +18 -0
- package/dist/tasks/relates.d.ts.map +1 -0
- package/dist/tasks/show.d.ts +23 -0
- package/dist/tasks/show.d.ts.map +1 -0
- package/dist/tasks/size-weighting.d.ts +38 -0
- package/dist/tasks/size-weighting.d.ts.map +1 -0
- package/dist/tasks/staleness.d.ts +56 -0
- package/dist/tasks/staleness.d.ts.map +1 -0
- package/dist/tasks/task-ops.d.ts +322 -0
- package/dist/tasks/task-ops.d.ts.map +1 -0
- package/dist/tasks/update.d.ts +41 -0
- package/dist/tasks/update.d.ts.map +1 -0
- package/dist/templates/index.d.ts +11 -0
- package/dist/templates/index.d.ts.map +1 -0
- package/dist/templates/parser.d.ts +84 -0
- package/dist/templates/parser.d.ts.map +1 -0
- package/dist/ui/aliases.d.ts +43 -0
- package/dist/ui/aliases.d.ts.map +1 -0
- package/dist/ui/changelog.d.ts +58 -0
- package/dist/ui/changelog.d.ts.map +1 -0
- package/dist/ui/command-registry.d.ts +44 -0
- package/dist/ui/command-registry.d.ts.map +1 -0
- package/dist/ui/flags.d.ts +34 -0
- package/dist/ui/flags.d.ts.map +1 -0
- package/dist/ui/index.d.ts +16 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/injection-legacy.d.ts +26 -0
- package/dist/ui/injection-legacy.d.ts.map +1 -0
- package/dist/upgrade.d.ts +59 -0
- package/dist/upgrade.d.ts.map +1 -0
- package/dist/validation/chain-validation.d.ts +43 -0
- package/dist/validation/chain-validation.d.ts.map +1 -0
- package/dist/validation/compliance.d.ts +94 -0
- package/dist/validation/compliance.d.ts.map +1 -0
- package/dist/validation/docs-sync.d.ts +66 -0
- package/dist/validation/docs-sync.d.ts.map +1 -0
- package/dist/validation/doctor/checks.d.ts +130 -0
- package/dist/validation/doctor/checks.d.ts.map +1 -0
- package/dist/validation/doctor/index.d.ts +9 -0
- package/dist/validation/doctor/index.d.ts.map +1 -0
- package/dist/validation/doctor/project-cache.d.ts +77 -0
- package/dist/validation/doctor/project-cache.d.ts.map +1 -0
- package/dist/validation/doctor/utils.d.ts +68 -0
- package/dist/validation/doctor/utils.d.ts.map +1 -0
- package/dist/validation/engine.d.ts +171 -0
- package/dist/validation/engine.d.ts.map +1 -0
- package/dist/validation/gap-check.d.ts +74 -0
- package/dist/validation/gap-check.d.ts.map +1 -0
- package/dist/validation/index.d.ts +22 -0
- package/dist/validation/index.d.ts.map +1 -0
- package/dist/validation/manifest.d.ts +81 -0
- package/dist/validation/manifest.d.ts.map +1 -0
- package/dist/validation/operation-gate-validators.d.ts +96 -0
- package/dist/validation/operation-gate-validators.d.ts.map +1 -0
- package/dist/validation/operation-verification-gates.d.ts +274 -0
- package/dist/validation/operation-verification-gates.d.ts.map +1 -0
- package/dist/validation/param-utils.d.ts +121 -0
- package/dist/validation/param-utils.d.ts.map +1 -0
- package/dist/validation/protocol-common.d.ts +85 -0
- package/dist/validation/protocol-common.d.ts.map +1 -0
- package/dist/validation/protocols/consensus.d.ts +28 -0
- package/dist/validation/protocols/consensus.d.ts.map +1 -0
- package/dist/validation/protocols/contribution.d.ts +26 -0
- package/dist/validation/protocols/contribution.d.ts.map +1 -0
- package/dist/validation/protocols/decomposition.d.ts +28 -0
- package/dist/validation/protocols/decomposition.d.ts.map +1 -0
- package/dist/validation/protocols/implementation.d.ts +26 -0
- package/dist/validation/protocols/implementation.d.ts.map +1 -0
- package/dist/validation/protocols/release-protocol.d.ts +27 -0
- package/dist/validation/protocols/release-protocol.d.ts.map +1 -0
- package/dist/validation/protocols/research.d.ts +26 -0
- package/dist/validation/protocols/research.d.ts.map +1 -0
- package/dist/validation/protocols/specification.d.ts +28 -0
- package/dist/validation/protocols/specification.d.ts.map +1 -0
- package/dist/validation/protocols/testing-protocol.d.ts +27 -0
- package/dist/validation/protocols/testing-protocol.d.ts.map +1 -0
- package/dist/validation/protocols/validation-protocol.d.ts +27 -0
- package/dist/validation/protocols/validation-protocol.d.ts.map +1 -0
- package/dist/validation/schema-integrity.d.ts +42 -0
- package/dist/validation/schema-integrity.d.ts.map +1 -0
- package/dist/validation/schema-validator.d.ts +52 -0
- package/dist/validation/schema-validator.d.ts.map +1 -0
- package/dist/validation/validate-ops.d.ts +247 -0
- package/dist/validation/validate-ops.d.ts.map +1 -0
- package/dist/validation/validation-rules.d.ts +85 -0
- package/dist/validation/validation-rules.d.ts.map +1 -0
- package/dist/validation/verification.d.ts +153 -0
- package/dist/validation/verification.d.ts.map +1 -0
- package/migrations/drizzle-tasks/20260320013731_wave0-schema-hardening/migration.sql +84 -0
- package/migrations/drizzle-tasks/20260320013731_wave0-schema-hardening/snapshot.json +4060 -0
- package/migrations/drizzle-tasks/20260320020000_agent-dimension/migration.sql +35 -0
- package/migrations/drizzle-tasks/20260320020000_agent-dimension/snapshot.json +4312 -0
- package/package.json +2 -2
- package/src/admin/export-tasks.ts +2 -5
- package/src/agents/__tests__/capacity.test.ts +219 -0
- package/src/agents/__tests__/registry.test.ts +457 -0
- package/src/agents/__tests__/retry.test.ts +289 -0
- package/src/agents/agent-schema.ts +107 -0
- package/src/agents/capacity.ts +151 -0
- package/src/agents/index.ts +68 -0
- package/src/agents/registry.ts +449 -0
- package/src/agents/retry.ts +255 -0
- package/src/hooks/index.ts +20 -1
- package/src/hooks/payload-schemas.ts +199 -0
- package/src/index.ts +69 -0
- package/src/inject/index.ts +14 -14
- package/src/intelligence/__tests__/impact.test.ts +453 -0
- package/src/intelligence/__tests__/patterns.test.ts +450 -0
- package/src/intelligence/__tests__/prediction.test.ts +418 -0
- package/src/intelligence/impact.ts +638 -0
- package/src/intelligence/index.ts +47 -0
- package/src/intelligence/patterns.ts +621 -0
- package/src/intelligence/prediction.ts +621 -0
- package/src/intelligence/types.ts +273 -0
- package/src/internal.ts +82 -1
- package/src/issue/template-parser.ts +65 -4
- package/src/lifecycle/pipeline.ts +14 -7
- package/src/lifecycle/state-machine.ts +6 -2
- package/src/memory/brain-lifecycle.ts +5 -11
- package/src/memory/brain-retrieval.ts +44 -38
- package/src/memory/brain-row-types.ts +43 -6
- package/src/memory/brain-search.ts +53 -32
- package/src/memory/brain-similarity.ts +9 -8
- package/src/memory/claude-mem-migration.ts +4 -3
- package/src/nexus/__tests__/nexus-e2e.test.ts +1481 -0
- package/src/nexus/discover.ts +1 -0
- package/src/orchestration/bootstrap.ts +11 -17
- package/src/orchestration/skill-ops.ts +52 -32
- package/src/otel/index.ts +48 -4
- package/src/sessions/__tests__/briefing.test.ts +31 -2
- package/src/sessions/briefing.ts +27 -42
- package/src/sessions/handoff.ts +52 -86
- package/src/sessions/index.ts +5 -1
- package/src/sessions/types.ts +9 -43
- package/src/signaldock/signaldock-transport.ts +5 -2
- package/src/skills/injection/subagent.ts +10 -16
- package/src/skills/manifests/contribution.ts +5 -13
- package/src/skills/orchestrator/__tests__/spawn-tier.test.ts +44 -30
- package/src/skills/orchestrator/spawn.ts +18 -31
- package/src/skills/orchestrator/startup.ts +78 -65
- package/src/skills/orchestrator/validator.ts +26 -31
- package/src/skills/precedence-types.ts +24 -1
- package/src/skills/types.ts +72 -5
- package/src/store/__tests__/test-db-helper.d.ts +4 -4
- package/src/store/__tests__/test-db-helper.js +5 -16
- package/src/store/__tests__/test-db-helper.ts +5 -18
- package/src/store/chain-schema.ts +1 -1
- package/src/store/export.ts +22 -12
- package/src/store/tasks-schema.ts +65 -8
- package/src/store/typed-query.ts +17 -0
- package/src/store/validation-schemas.ts +347 -23
- package/src/system/inject-generate.ts +9 -23
- package/src/validation/doctor/checks.ts +24 -2
- package/src/validation/engine.ts +11 -11
- package/src/validation/index.ts +131 -3
- package/src/validation/protocol-common.ts +54 -3
- package/src/tasks/reparent.ts +0 -134
package/src/store/export.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { createHash } from 'node:crypto';
|
|
10
|
-
import type { Task
|
|
10
|
+
import type { Task } from '@cleocode/contracts';
|
|
11
11
|
|
|
12
12
|
/** Export format version. */
|
|
13
13
|
const EXPORT_FORMAT_VERSION = '1.0.0';
|
|
@@ -137,17 +137,17 @@ export function buildRelationshipGraph(tasks: Task[]): RelationshipGraph {
|
|
|
137
137
|
*/
|
|
138
138
|
export function buildExportPackage(
|
|
139
139
|
tasks: Task[],
|
|
140
|
-
taskData: TaskFile,
|
|
141
140
|
options: {
|
|
142
141
|
mode: string;
|
|
143
142
|
rootTaskIds: string[];
|
|
144
143
|
includeChildren: boolean;
|
|
145
144
|
cleoVersion?: string;
|
|
146
145
|
filters?: unknown;
|
|
146
|
+
projectName?: string;
|
|
147
147
|
},
|
|
148
148
|
): ExportPackage {
|
|
149
149
|
const now = new Date().toISOString();
|
|
150
|
-
const projectName =
|
|
150
|
+
const projectName = options.projectName ?? 'unknown';
|
|
151
151
|
const maxId = tasks.reduce((max, t) => {
|
|
152
152
|
const num = parseInt(t.id.replace('T', ''), 10);
|
|
153
153
|
return num > max ? num : max;
|
|
@@ -188,41 +188,51 @@ export function buildExportPackage(
|
|
|
188
188
|
/**
|
|
189
189
|
* Export a single task.
|
|
190
190
|
*/
|
|
191
|
-
export function exportSingle(
|
|
192
|
-
|
|
191
|
+
export function exportSingle(
|
|
192
|
+
taskId: string,
|
|
193
|
+
allTasks: Task[],
|
|
194
|
+
projectName?: string,
|
|
195
|
+
): ExportPackage | null {
|
|
196
|
+
const task = allTasks.find((t) => t.id === taskId);
|
|
193
197
|
if (!task) return null;
|
|
194
198
|
|
|
195
|
-
return buildExportPackage([task],
|
|
199
|
+
return buildExportPackage([task], {
|
|
196
200
|
mode: 'single',
|
|
197
201
|
rootTaskIds: [taskId],
|
|
198
202
|
includeChildren: false,
|
|
203
|
+
projectName,
|
|
199
204
|
});
|
|
200
205
|
}
|
|
201
206
|
|
|
202
207
|
/**
|
|
203
208
|
* Export a subtree (task + all descendants).
|
|
204
209
|
*/
|
|
205
|
-
export function exportSubtree(
|
|
206
|
-
|
|
210
|
+
export function exportSubtree(
|
|
211
|
+
rootId: string,
|
|
212
|
+
allTasks: Task[],
|
|
213
|
+
projectName?: string,
|
|
214
|
+
): ExportPackage | null {
|
|
215
|
+
const root = allTasks.find((t) => t.id === rootId);
|
|
207
216
|
if (!root) return null;
|
|
208
217
|
|
|
209
|
-
// Collect all descendants
|
|
218
|
+
// Collect all descendants via BFS
|
|
210
219
|
const collected = new Map<string, Task>();
|
|
211
220
|
const queue = [rootId];
|
|
212
221
|
|
|
213
222
|
while (queue.length > 0) {
|
|
214
223
|
const id = queue.shift()!;
|
|
215
|
-
const task =
|
|
224
|
+
const task = allTasks.find((t) => t.id === id);
|
|
216
225
|
if (!task || collected.has(id)) continue;
|
|
217
226
|
collected.set(id, task);
|
|
218
|
-
const children =
|
|
227
|
+
const children = allTasks.filter((t) => t.parentId === id);
|
|
219
228
|
queue.push(...children.map((c) => c.id));
|
|
220
229
|
}
|
|
221
230
|
|
|
222
231
|
const tasks = [...collected.values()];
|
|
223
|
-
return buildExportPackage(tasks,
|
|
232
|
+
return buildExportPackage(tasks, {
|
|
224
233
|
mode: 'subtree',
|
|
225
234
|
rootTaskIds: [rootId],
|
|
226
235
|
includeChildren: true,
|
|
236
|
+
projectName,
|
|
227
237
|
});
|
|
228
238
|
}
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
primaryKey,
|
|
17
17
|
sqliteTable,
|
|
18
18
|
text,
|
|
19
|
+
unique,
|
|
19
20
|
} from 'drizzle-orm/sqlite-core';
|
|
20
21
|
import {
|
|
21
22
|
ADR_STATUSES,
|
|
@@ -27,6 +28,22 @@ import {
|
|
|
27
28
|
TASK_STATUSES,
|
|
28
29
|
} from './status-registry.js';
|
|
29
30
|
|
|
31
|
+
export type {
|
|
32
|
+
AgentErrorLogRow,
|
|
33
|
+
AgentErrorType,
|
|
34
|
+
AgentInstanceRow,
|
|
35
|
+
AgentInstanceStatus,
|
|
36
|
+
AgentType,
|
|
37
|
+
NewAgentErrorLogRow,
|
|
38
|
+
NewAgentInstanceRow,
|
|
39
|
+
} from '../agents/agent-schema.js';
|
|
40
|
+
// Re-export agent schema tables so drizzle-kit picks them up for migrations.
|
|
41
|
+
export {
|
|
42
|
+
AGENT_INSTANCE_STATUSES,
|
|
43
|
+
AGENT_TYPES,
|
|
44
|
+
agentErrorLog,
|
|
45
|
+
agentInstances,
|
|
46
|
+
} from '../agents/agent-schema.js';
|
|
30
47
|
export type {
|
|
31
48
|
NewWarpChainInstanceRow,
|
|
32
49
|
NewWarpChainRow,
|
|
@@ -95,6 +112,26 @@ export const TOKEN_USAGE_CONFIDENCE = ['real', 'high', 'estimated', 'coarse'] as
|
|
|
95
112
|
/** Transport types for token telemetry. */
|
|
96
113
|
export const TOKEN_USAGE_TRANSPORTS = ['cli', 'mcp', 'api', 'agent', 'unknown'] as const;
|
|
97
114
|
|
|
115
|
+
/** Task relation types matching DB CHECK constraint on task_relations.relation_type. */
|
|
116
|
+
export const TASK_RELATION_TYPES = [
|
|
117
|
+
'related',
|
|
118
|
+
'blocks',
|
|
119
|
+
'duplicates',
|
|
120
|
+
'absorbs',
|
|
121
|
+
'fixes',
|
|
122
|
+
'extends',
|
|
123
|
+
'supersedes',
|
|
124
|
+
] as const;
|
|
125
|
+
|
|
126
|
+
/** Lifecycle transition types matching DB CHECK constraint on lifecycle_transitions.transition_type. */
|
|
127
|
+
export const LIFECYCLE_TRANSITION_TYPES = ['automatic', 'manual', 'forced'] as const;
|
|
128
|
+
|
|
129
|
+
/** External task link types matching DB constraint on external_task_links.link_type. */
|
|
130
|
+
export const EXTERNAL_LINK_TYPES = ['created', 'matched', 'manual'] as const;
|
|
131
|
+
|
|
132
|
+
/** Sync direction types matching DB constraint on external_task_links.sync_direction. */
|
|
133
|
+
export const SYNC_DIRECTIONS = ['inbound', 'outbound', 'bidirectional'] as const;
|
|
134
|
+
|
|
98
135
|
// === TASKS TABLE ===
|
|
99
136
|
|
|
100
137
|
export const tasks = sqliteTable(
|
|
@@ -160,6 +197,7 @@ export const tasks = sqliteTable(
|
|
|
160
197
|
index('idx_tasks_phase').on(table.phase),
|
|
161
198
|
index('idx_tasks_type').on(table.type),
|
|
162
199
|
index('idx_tasks_priority').on(table.priority),
|
|
200
|
+
index('idx_tasks_session_id').on(table.sessionId),
|
|
163
201
|
],
|
|
164
202
|
);
|
|
165
203
|
|
|
@@ -193,13 +231,16 @@ export const taskRelations = sqliteTable(
|
|
|
193
231
|
.notNull()
|
|
194
232
|
.references(() => tasks.id, { onDelete: 'cascade' }),
|
|
195
233
|
relationType: text('relation_type', {
|
|
196
|
-
enum:
|
|
234
|
+
enum: TASK_RELATION_TYPES,
|
|
197
235
|
})
|
|
198
236
|
.notNull()
|
|
199
237
|
.default('related'),
|
|
200
238
|
reason: text('reason'),
|
|
201
239
|
},
|
|
202
|
-
(table) => [
|
|
240
|
+
(table) => [
|
|
241
|
+
primaryKey({ columns: [table.taskId, table.relatedTo] }),
|
|
242
|
+
index('idx_task_relations_related_to').on(table.relatedTo),
|
|
243
|
+
],
|
|
203
244
|
);
|
|
204
245
|
|
|
205
246
|
// === SESSIONS ===
|
|
@@ -225,8 +266,12 @@ export const sessions = sqliteTable(
|
|
|
225
266
|
startedAt: text('started_at').notNull().default(sql`(datetime('now'))`),
|
|
226
267
|
endedAt: text('ended_at'),
|
|
227
268
|
// Session chain columns (T4959)
|
|
228
|
-
previousSessionId: text('previous_session_id'),
|
|
229
|
-
|
|
269
|
+
previousSessionId: text('previous_session_id').references((): AnySQLiteColumn => sessions.id, {
|
|
270
|
+
onDelete: 'set null',
|
|
271
|
+
}),
|
|
272
|
+
nextSessionId: text('next_session_id').references((): AnySQLiteColumn => sessions.id, {
|
|
273
|
+
onDelete: 'set null',
|
|
274
|
+
}),
|
|
230
275
|
agentIdentifier: text('agent_identifier'),
|
|
231
276
|
handoffConsumedAt: text('handoff_consumed_at'),
|
|
232
277
|
handoffConsumedBy: text('handoff_consumed_by'),
|
|
@@ -242,6 +287,7 @@ export const sessions = sqliteTable(
|
|
|
242
287
|
index('idx_sessions_status').on(table.status),
|
|
243
288
|
index('idx_sessions_previous').on(table.previousSessionId),
|
|
244
289
|
index('idx_sessions_agent_identifier').on(table.agentIdentifier),
|
|
290
|
+
index('idx_sessions_started_at').on(table.startedAt),
|
|
245
291
|
],
|
|
246
292
|
);
|
|
247
293
|
|
|
@@ -325,6 +371,7 @@ export const lifecycleStages = sqliteTable(
|
|
|
325
371
|
index('idx_lifecycle_stages_pipeline_id').on(table.pipelineId),
|
|
326
372
|
index('idx_lifecycle_stages_stage_name').on(table.stageName),
|
|
327
373
|
index('idx_lifecycle_stages_status').on(table.status),
|
|
374
|
+
index('idx_lifecycle_stages_validated_by').on(table.validatedBy),
|
|
328
375
|
],
|
|
329
376
|
);
|
|
330
377
|
|
|
@@ -381,7 +428,7 @@ export const lifecycleTransitions = sqliteTable(
|
|
|
381
428
|
fromStageId: text('from_stage_id').notNull(),
|
|
382
429
|
toStageId: text('to_stage_id').notNull(),
|
|
383
430
|
transitionType: text('transition_type', {
|
|
384
|
-
enum:
|
|
431
|
+
enum: LIFECYCLE_TRANSITION_TYPES,
|
|
385
432
|
})
|
|
386
433
|
.notNull()
|
|
387
434
|
.default('automatic'),
|
|
@@ -524,6 +571,7 @@ export const auditLog = sqliteTable(
|
|
|
524
571
|
index('idx_audit_log_domain').on(table.domain),
|
|
525
572
|
index('idx_audit_log_request_id').on(table.requestId),
|
|
526
573
|
index('idx_audit_log_project_hash').on(table.projectHash),
|
|
574
|
+
index('idx_audit_log_actor').on(table.actor),
|
|
527
575
|
],
|
|
528
576
|
);
|
|
529
577
|
|
|
@@ -567,6 +615,7 @@ export const tokenUsage = sqliteTable(
|
|
|
567
615
|
index('idx_token_usage_transport').on(table.transport),
|
|
568
616
|
index('idx_token_usage_domain_operation').on(table.domain, table.operation),
|
|
569
617
|
index('idx_token_usage_method').on(table.method),
|
|
618
|
+
index('idx_token_usage_gateway').on(table.gateway),
|
|
570
619
|
],
|
|
571
620
|
);
|
|
572
621
|
|
|
@@ -603,7 +652,10 @@ export const architectureDecisions = sqliteTable(
|
|
|
603
652
|
keywords: text('keywords'),
|
|
604
653
|
topics: text('topics'),
|
|
605
654
|
},
|
|
606
|
-
(table) => [
|
|
655
|
+
(table) => [
|
|
656
|
+
index('idx_arch_decisions_status').on(table.status),
|
|
657
|
+
index('idx_arch_decisions_amends_id').on(table.amendsId),
|
|
658
|
+
],
|
|
607
659
|
);
|
|
608
660
|
|
|
609
661
|
// === ADR JUNCTION TABLES (ADR-017 §5.3) ===
|
|
@@ -673,11 +725,11 @@ export const externalTaskLinks = sqliteTable(
|
|
|
673
725
|
externalTitle: text('external_title'),
|
|
674
726
|
/** How this link was established. */
|
|
675
727
|
linkType: text('link_type', {
|
|
676
|
-
enum:
|
|
728
|
+
enum: EXTERNAL_LINK_TYPES,
|
|
677
729
|
}).notNull(),
|
|
678
730
|
/** Direction of the sync that created this link. */
|
|
679
731
|
syncDirection: text('sync_direction', {
|
|
680
|
-
enum:
|
|
732
|
+
enum: SYNC_DIRECTIONS,
|
|
681
733
|
})
|
|
682
734
|
.notNull()
|
|
683
735
|
.default('inbound'),
|
|
@@ -692,6 +744,11 @@ export const externalTaskLinks = sqliteTable(
|
|
|
692
744
|
index('idx_ext_links_task_id').on(table.taskId),
|
|
693
745
|
index('idx_ext_links_provider_external').on(table.providerId, table.externalId),
|
|
694
746
|
index('idx_ext_links_provider_id').on(table.providerId),
|
|
747
|
+
unique('uq_ext_links_task_provider_external').on(
|
|
748
|
+
table.taskId,
|
|
749
|
+
table.providerId,
|
|
750
|
+
table.externalId,
|
|
751
|
+
),
|
|
695
752
|
],
|
|
696
753
|
);
|
|
697
754
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { SQLInputValue, StatementSync } from 'node:sqlite';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Type-safe wrapper for {@link StatementSync.all} — centralizes the
|
|
5
|
+
* `as unknown as` cast required by node:sqlite's untyped return type.
|
|
6
|
+
*/
|
|
7
|
+
export function typedAll<T>(stmt: StatementSync, ...params: SQLInputValue[]): T[] {
|
|
8
|
+
return stmt.all(...params) as unknown as T[];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Type-safe wrapper for {@link StatementSync.get} — centralizes the
|
|
13
|
+
* `as unknown as` cast required by node:sqlite's untyped return type.
|
|
14
|
+
*/
|
|
15
|
+
export function typedGet<T>(stmt: StatementSync, ...params: SQLInputValue[]): T | undefined {
|
|
16
|
+
return stmt.get(...params) as unknown as T | undefined;
|
|
17
|
+
}
|