@cleocode/core 2026.3.76 → 2026.4.2
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/agents/agent-schema.d.ts.map +1 -1
- package/dist/audit.d.ts +1 -1
- package/dist/audit.d.ts.map +1 -1
- package/dist/bootstrap.d.ts +2 -2
- package/dist/bootstrap.d.ts.map +1 -1
- package/dist/caamp/adapter.d.ts +6 -49
- package/dist/caamp/adapter.d.ts.map +1 -1
- package/dist/caamp/index.d.ts +2 -2
- package/dist/caamp/index.d.ts.map +1 -1
- package/dist/code/index.d.ts +10 -0
- package/dist/code/index.d.ts.map +1 -0
- package/dist/code/outline.d.ts +51 -0
- package/dist/code/outline.d.ts.map +1 -0
- package/dist/code/parser.d.ts +32 -0
- package/dist/code/parser.d.ts.map +1 -0
- package/dist/code/search.d.ts +42 -0
- package/dist/code/search.d.ts.map +1 -0
- package/dist/code/unfold.d.ts +44 -0
- package/dist/code/unfold.d.ts.map +1 -0
- package/dist/compliance/protocol-enforcement.d.ts +1 -1
- package/dist/compliance/protocol-rules.d.ts +1 -1
- package/dist/compliance/protocol-types.d.ts +2 -3
- package/dist/compliance/protocol-types.d.ts.map +1 -1
- package/dist/conduit/conduit-client.d.ts +14 -0
- package/dist/conduit/conduit-client.d.ts.map +1 -1
- package/dist/conduit/factory.d.ts +11 -1
- package/dist/conduit/factory.d.ts.map +1 -1
- package/dist/conduit/http-transport.d.ts +17 -5
- package/dist/conduit/http-transport.d.ts.map +1 -1
- package/dist/conduit/index.d.ts +5 -2
- package/dist/conduit/index.d.ts.map +1 -1
- package/dist/conduit/local-transport.d.ts +91 -0
- package/dist/conduit/local-transport.d.ts.map +1 -0
- package/dist/conduit/sse-transport.d.ts +68 -0
- package/dist/conduit/sse-transport.d.ts.map +1 -0
- package/dist/crypto/credentials.d.ts.map +1 -1
- package/dist/error-catalog.d.ts +3 -3
- package/dist/error-catalog.d.ts.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/hooks/handlers/index.d.ts +2 -2
- package/dist/hooks/handlers/index.d.ts.map +1 -1
- package/dist/hooks/handlers/notification-hooks.d.ts +31 -0
- package/dist/hooks/handlers/notification-hooks.d.ts.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4646 -3476
- package/dist/index.js.map +4 -4
- package/dist/init.d.ts +6 -6
- package/dist/init.d.ts.map +1 -1
- package/dist/injection.d.ts.map +1 -1
- package/dist/internal.d.ts +7 -5
- package/dist/internal.d.ts.map +1 -1
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/tree-sitter-languages.d.ts +29 -0
- package/dist/lib/tree-sitter-languages.d.ts.map +1 -0
- package/dist/logger.d.ts +3 -3
- package/dist/memory/brain-links.d.ts.map +1 -1
- package/dist/memory/brain-maintenance.d.ts +13 -0
- package/dist/memory/brain-maintenance.d.ts.map +1 -1
- package/dist/memory/brain-retrieval.d.ts +1 -1
- package/dist/memory/brain-retrieval.d.ts.map +1 -1
- package/dist/memory/decisions.d.ts.map +1 -1
- package/dist/memory/engine-compat.d.ts +392 -25
- package/dist/memory/engine-compat.d.ts.map +1 -1
- package/dist/memory/index.d.ts +416 -3
- package/dist/memory/index.d.ts.map +1 -1
- package/dist/metrics/token-service.d.ts +3 -3
- package/dist/metrics/token-service.d.ts.map +1 -1
- package/dist/orchestration/hierarchy.d.ts +32 -0
- package/dist/orchestration/hierarchy.d.ts.map +1 -0
- package/dist/orchestration/index.d.ts +1 -0
- package/dist/orchestration/index.d.ts.map +1 -1
- package/dist/paths.d.ts +335 -2
- package/dist/paths.d.ts.map +1 -1
- package/dist/routing/capability-matrix.d.ts +3 -3
- package/dist/routing/capability-matrix.d.ts.map +1 -1
- package/dist/scaffold.d.ts +422 -11
- package/dist/scaffold.d.ts.map +1 -1
- package/dist/security/input-sanitization.d.ts +2 -2
- package/dist/skills/dynamic-skill-generator.d.ts +3 -2
- package/dist/skills/dynamic-skill-generator.d.ts.map +1 -1
- package/dist/skills/routing-table.d.ts +4 -4
- package/dist/skills/routing-table.d.ts.map +1 -1
- package/dist/store/agent-registry-accessor.d.ts +10 -433
- package/dist/store/agent-registry-accessor.d.ts.map +1 -1
- package/dist/store/cross-db-cleanup.d.ts +34 -0
- package/dist/store/cross-db-cleanup.d.ts.map +1 -1
- package/dist/store/provider.d.ts +1 -1
- package/dist/store/signaldock-sqlite.d.ts.map +1 -1
- package/dist/store/sqlite-data-accessor.d.ts.map +1 -1
- package/dist/store/sqlite.d.ts +1 -1
- package/dist/store/task-store.d.ts.map +1 -1
- package/dist/store/tasks-schema.d.ts +4 -228
- package/dist/store/tasks-schema.d.ts.map +1 -1
- package/dist/store/validation-schemas.d.ts +4 -5
- package/dist/store/validation-schemas.d.ts.map +1 -1
- package/dist/system/archive-analytics.d.ts +1 -1
- package/dist/system/health.d.ts +2 -2
- package/dist/system/health.d.ts.map +1 -1
- package/dist/system/runtime.d.ts +2 -1
- package/dist/system/runtime.d.ts.map +1 -1
- package/dist/tasks/list.d.ts +1 -1
- package/dist/tasks/list.d.ts.map +1 -1
- package/dist/tasks/task-ops.d.ts +415 -3
- package/dist/tasks/task-ops.d.ts.map +1 -1
- package/dist/templates/parser.d.ts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/upgrade.d.ts +1 -1
- package/dist/upgrade.d.ts.map +1 -1
- package/dist/validation/operation-gate-validators.d.ts +1 -1
- package/dist/validation/operation-verification-gates.d.ts +3 -3
- package/dist/validation/param-utils.d.ts +6 -5
- package/dist/validation/param-utils.d.ts.map +1 -1
- package/dist/validation/validate-ops.d.ts +1 -1
- package/dist/validation/validate-ops.d.ts.map +1 -1
- package/package.json +19 -7
- package/src/__tests__/caamp-skill-install.test.js +0 -15
- package/src/__tests__/caamp-skill-install.test.js.map +1 -1
- package/src/__tests__/caamp-skill-install.test.ts +0 -16
- package/src/__tests__/injection-mvi-tiers.test.js +7 -7
- package/src/__tests__/injection-mvi-tiers.test.js.map +1 -1
- package/src/__tests__/injection-mvi-tiers.test.ts +55 -103
- package/src/agents/agent-schema.ts +2 -5
- package/src/audit.ts +2 -2
- package/src/bootstrap.ts +5 -39
- package/src/caamp/adapter.ts +3 -219
- package/src/caamp/index.ts +1 -13
- package/src/cant/__tests__/cant-agent-parse.test.d.ts.map +1 -0
- package/src/cant/__tests__/cant-agent-parse.test.js +77 -0
- package/src/cant/__tests__/cant-agent-parse.test.js.map +1 -0
- package/src/code/index.ts +10 -0
- package/src/code/outline.ts +214 -0
- package/src/code/parser.ts +331 -0
- package/src/code/search.ts +173 -0
- package/src/code/unfold.ts +204 -0
- package/src/codebase-map/analyzers/architecture.ts +2 -2
- package/src/compliance/protocol-enforcement.ts +1 -1
- package/src/compliance/protocol-rules.ts +1 -1
- package/src/compliance/protocol-types.ts +2 -3
- package/src/conduit/__tests__/dual-api-e2e.test.d.ts.map +1 -0
- package/src/conduit/__tests__/dual-api-e2e.test.js +178 -0
- package/src/conduit/__tests__/dual-api-e2e.test.js.map +1 -0
- package/src/conduit/__tests__/dual-api-e2e.test.ts +212 -0
- package/src/conduit/__tests__/local-credential-flow.test.d.ts.map +1 -0
- package/src/conduit/__tests__/local-credential-flow.test.js +185 -0
- package/src/conduit/__tests__/local-credential-flow.test.js.map +1 -0
- package/src/conduit/__tests__/local-credential-flow.test.ts +230 -0
- package/src/conduit/__tests__/local-transport.test.d.ts.map +1 -0
- package/src/conduit/__tests__/local-transport.test.js +404 -0
- package/src/conduit/__tests__/local-transport.test.js.map +1 -0
- package/src/conduit/__tests__/local-transport.test.ts +509 -0
- package/src/conduit/__tests__/sse-transport.test.d.ts.map +1 -0
- package/src/conduit/__tests__/sse-transport.test.js +291 -0
- package/src/conduit/__tests__/sse-transport.test.js.map +1 -0
- package/src/conduit/__tests__/sse-transport.test.ts +344 -0
- package/src/conduit/conduit-client.ts +14 -0
- package/src/conduit/factory.ts +29 -8
- package/src/conduit/http-transport.ts +78 -16
- package/src/conduit/index.ts +5 -2
- package/src/conduit/local-transport.ts +309 -0
- package/src/conduit/sse-transport.ts +382 -0
- package/src/crypto/credentials.ts +59 -13
- package/src/error-catalog.ts +3 -3
- package/src/errors.ts +1 -1
- package/src/hooks/__tests__/provider-hooks.test.js +4 -4
- package/src/hooks/__tests__/provider-hooks.test.js.map +1 -1
- package/src/hooks/__tests__/provider-hooks.test.ts +4 -4
- package/src/hooks/handlers/__tests__/hook-automation-e2e.test.js +2 -2
- package/src/hooks/handlers/__tests__/hook-automation-e2e.test.js.map +1 -1
- package/src/hooks/handlers/__tests__/hook-automation-e2e.test.ts +6 -4
- package/src/hooks/handlers/index.ts +2 -6
- package/src/hooks/handlers/notification-hooks.ts +65 -0
- package/src/index.ts +2 -1
- package/src/init.ts +14 -54
- package/src/injection.ts +4 -3
- package/src/internal.ts +7 -5
- package/src/lib/index.ts +8 -0
- package/src/lib/tree-sitter-languages.ts +88 -0
- package/src/logger.ts +5 -5
- package/src/memory/__tests__/brain-links.test.js +13 -0
- package/src/memory/__tests__/brain-links.test.js.map +1 -1
- package/src/memory/__tests__/brain-links.test.ts +14 -0
- package/src/memory/__tests__/brain-retrieval.test.js +9 -0
- package/src/memory/__tests__/brain-retrieval.test.js.map +1 -1
- package/src/memory/__tests__/brain-retrieval.test.ts +10 -0
- package/src/memory/__tests__/session-memory.test.js +16 -0
- package/src/memory/__tests__/session-memory.test.js.map +1 -1
- package/src/memory/__tests__/session-memory.test.ts +17 -0
- package/src/memory/brain-links.ts +17 -0
- package/src/memory/brain-maintenance.ts +33 -1
- package/src/memory/brain-retrieval.ts +19 -3
- package/src/memory/decisions.ts +18 -2
- package/src/memory/engine-compat.ts +392 -25
- package/src/memory/index.ts +417 -4
- package/src/metrics/token-service.ts +4 -4
- package/src/migration/index.ts +1 -1
- package/src/orchestration/hierarchy.ts +202 -0
- package/src/orchestration/index.ts +1 -0
- package/src/paths.ts +340 -5
- package/src/routing/capability-matrix.ts +49 -49
- package/src/scaffold.ts +428 -70
- package/src/security/input-sanitization.ts +4 -4
- package/src/sessions/__tests__/session-grade.integration.test.js +9 -9
- package/src/sessions/__tests__/session-grade.integration.test.ts +9 -9
- package/src/sessions/__tests__/session-grade.test.js +10 -10
- package/src/sessions/__tests__/session-grade.test.js.map +1 -1
- package/src/sessions/__tests__/session-grade.test.ts +10 -10
- package/src/sessions/session-grade.ts +4 -4
- package/src/skills/__tests__/dynamic-skill-generator.test.js +24 -26
- package/src/skills/__tests__/dynamic-skill-generator.test.js.map +1 -1
- package/src/skills/__tests__/dynamic-skill-generator.test.ts +24 -26
- package/src/skills/__tests__/routing-table.test.js +22 -22
- package/src/skills/__tests__/routing-table.test.js.map +1 -1
- package/src/skills/__tests__/routing-table.test.ts +23 -23
- package/src/skills/dynamic-skill-generator.ts +13 -24
- package/src/skills/routing-table.ts +4 -4
- package/src/store/__tests__/data-safety-central.test.js +8 -0
- package/src/store/__tests__/data-safety-central.test.js.map +1 -1
- package/src/store/__tests__/data-safety-central.test.ts +8 -0
- package/src/store/__tests__/safety-accessor.test.js +8 -0
- package/src/store/__tests__/safety-accessor.test.js.map +1 -1
- package/src/store/__tests__/safety-accessor.test.ts +8 -0
- package/src/store/agent-registry-accessor.ts +284 -108
- package/src/store/cross-db-cleanup.ts +175 -1
- package/src/store/provider.ts +2 -2
- package/src/store/signaldock-sqlite.ts +262 -60
- package/src/store/sqlite-data-accessor.ts +3 -0
- package/src/store/sqlite.ts +2 -2
- package/src/store/task-store.ts +8 -1
- package/src/store/tasks-schema.ts +5 -40
- package/src/system/__tests__/health.test.js +2 -2
- package/src/system/__tests__/health.test.js.map +1 -1
- package/src/system/__tests__/health.test.ts +2 -2
- package/src/system/archive-analytics.ts +1 -1
- package/src/system/health.ts +43 -19
- package/src/system/inject-generate.ts +20 -20
- package/src/system/runtime.ts +5 -4
- package/src/tasks/atomicity.ts +1 -1
- package/src/tasks/list.ts +1 -1
- package/src/tasks/task-ops.ts +415 -3
- package/src/templates/parser.ts +1 -1
- package/src/ui/index.ts +4 -4
- package/src/upgrade.ts +3 -14
- package/src/validation/operation-gate-validators.ts +1 -1
- package/src/validation/operation-verification-gates.ts +3 -3
- package/src/validation/param-utils.ts +11 -10
- package/src/validation/validate-ops.ts +6 -6
- package/templates/CLEO-INJECTION.md +38 -110
- package/dist/hooks/handlers/mcp-hooks.d.ts +0 -48
- package/dist/hooks/handlers/mcp-hooks.d.ts.map +0 -1
- package/dist/mcp/index.d.ts +0 -42
- package/dist/mcp/index.d.ts.map +0 -1
- package/src/__tests__/audit-prune.test.d.ts +0 -2
- package/src/__tests__/caamp-skill-install.test.d.ts +0 -14
- package/src/__tests__/cli-mcp-parity.integration.test.d.ts +0 -34
- package/src/__tests__/cli-mcp-parity.integration.test.d.ts.map +0 -1
- package/src/__tests__/cli-mcp-parity.integration.test.js +0 -898
- package/src/__tests__/cli-mcp-parity.integration.test.js.map +0 -1
- package/src/__tests__/cli-parity.test.d.ts +0 -9
- package/src/__tests__/config.test.d.ts +0 -7
- package/src/__tests__/core-parity.test.d.ts +0 -17
- package/src/__tests__/error-catalog.test.d.ts +0 -2
- package/src/__tests__/golden-parity.test.d.ts +0 -12
- package/src/__tests__/hooks.test.d.ts +0 -5
- package/src/__tests__/human-output.test.d.ts +0 -12
- package/src/__tests__/index-api-compat.test.d.ts +0 -2
- package/src/__tests__/init-e2e.test.d.ts +0 -12
- package/src/__tests__/injection-chain.test.d.ts +0 -18
- package/src/__tests__/injection-mvi-tiers.test.d.ts +0 -14
- package/src/__tests__/injection-shared.test.d.ts +0 -10
- package/src/__tests__/lafs-conformance.test.d.ts +0 -18
- package/src/__tests__/logger.test.d.ts +0 -2
- package/src/__tests__/mcp-install-verify.test.d.ts +0 -13
- package/src/__tests__/mcp-install-verify.test.d.ts.map +0 -1
- package/src/__tests__/mcp-install-verify.test.js +0 -177
- package/src/__tests__/mcp-install-verify.test.js.map +0 -1
- package/src/__tests__/mcp-install-verify.test.ts +0 -217
- package/src/__tests__/paths.test.d.ts +0 -7
- package/src/__tests__/project-info.test.d.ts +0 -2
- package/src/__tests__/rcsd-pipeline-e2e.test.d.ts +0 -14
- package/src/__tests__/remote.test.d.ts +0 -6
- package/src/__tests__/scaffold.test.d.ts +0 -6
- package/src/__tests__/schema-management.test.d.ts +0 -5
- package/src/__tests__/schema.test.d.ts +0 -2
- package/src/__tests__/sharing.test.d.ts +0 -6
- package/src/__tests__/snapshot.test.d.ts +0 -6
- package/src/__tests__/upgrade.test.d.ts +0 -7
- package/src/adapters/__tests__/discovery.test.d.ts +0 -6
- package/src/adapters/__tests__/manager.test.d.ts +0 -6
- package/src/agents/__tests__/agent-registry.test.d.ts +0 -12
- package/src/agents/__tests__/capacity.test.d.ts +0 -7
- package/src/agents/__tests__/execution-learning.test.d.ts +0 -14
- package/src/agents/__tests__/health-monitor.test.d.ts +0 -10
- package/src/agents/__tests__/registry.test.d.ts +0 -8
- package/src/agents/__tests__/retry.test.d.ts +0 -7
- package/src/compliance/__tests__/sync.test.d.ts +0 -5
- package/src/hooks/__tests__/provider-hooks.test.d.ts +0 -2
- package/src/hooks/__tests__/registry.test.d.ts +0 -2
- package/src/hooks/handlers/__tests__/error-hooks.test.d.ts +0 -2
- package/src/hooks/handlers/__tests__/file-hooks.test.d.ts +0 -2
- package/src/hooks/handlers/__tests__/hook-automation-e2e.test.d.ts +0 -13
- package/src/hooks/handlers/__tests__/mcp-hooks.test.d.ts +0 -2
- package/src/hooks/handlers/__tests__/mcp-hooks.test.d.ts.map +0 -1
- package/src/hooks/handlers/__tests__/mcp-hooks.test.js +0 -119
- package/src/hooks/handlers/__tests__/mcp-hooks.test.js.map +0 -1
- package/src/hooks/handlers/__tests__/mcp-hooks.test.ts +0 -150
- package/src/hooks/handlers/__tests__/session-hooks.test.d.ts +0 -2
- package/src/hooks/handlers/__tests__/task-hooks.test.d.ts +0 -2
- package/src/hooks/handlers/mcp-hooks.ts +0 -162
- package/src/intelligence/__tests__/adaptive-validation.test.d.ts +0 -11
- package/src/intelligence/__tests__/impact.test.d.ts +0 -16
- package/src/intelligence/__tests__/patterns.test.d.ts +0 -8
- package/src/intelligence/__tests__/prediction.test.d.ts +0 -8
- package/src/lib/__tests__/retry.test.d.ts +0 -7
- package/src/lifecycle/__tests__/chain-store.test.d.ts +0 -10
- package/src/lifecycle/__tests__/consolidate-rcasd.test.d.ts +0 -7
- package/src/lifecycle/__tests__/default-chain.test.d.ts +0 -7
- package/src/lifecycle/__tests__/frontmatter.test.d.ts +0 -7
- package/src/lifecycle/__tests__/lifecycle.test.d.ts +0 -7
- package/src/lifecycle/__tests__/pipeline.integration.test.d.ts +0 -19
- package/src/lifecycle/__tests__/rcasd-paths.test.d.ts +0 -7
- package/src/lifecycle/__tests__/resume-schema-contract.test.d.ts +0 -16
- package/src/lifecycle/__tests__/stage-record-provenance.integration.test.d.ts +0 -7
- package/src/lifecycle/__tests__/tessera-engine.test.d.ts +0 -10
- package/src/mcp/index.ts +0 -163
- package/src/memory/__tests__/auto-extract.test.d.ts +0 -7
- package/src/memory/__tests__/brain-automation.test.d.ts +0 -11
- package/src/memory/__tests__/brain-embedding.test.d.ts +0 -2
- package/src/memory/__tests__/brain-links.test.d.ts +0 -8
- package/src/memory/__tests__/brain-migration.test.d.ts +0 -8
- package/src/memory/__tests__/brain-retrieval.test.d.ts +0 -10
- package/src/memory/__tests__/brain-search.test.d.ts +0 -8
- package/src/memory/__tests__/claude-mem-migration.test.d.ts +0 -12
- package/src/memory/__tests__/decisions.test.d.ts +0 -8
- package/src/memory/__tests__/engine-compat.test.d.ts +0 -12
- package/src/memory/__tests__/memory-bridge.test.d.ts +0 -10
- package/src/memory/__tests__/pipeline-manifest-sqlite.test.d.ts +0 -13
- package/src/memory/__tests__/session-memory.test.d.ts +0 -9
- package/src/metrics/__tests__/model-provider-registry.test.d.ts +0 -2
- package/src/metrics/__tests__/provider-detection.test.d.ts +0 -2
- package/src/migration/__tests__/checksum.test.d.ts +0 -8
- package/src/migration/__tests__/logger.test.d.ts +0 -5
- package/src/migration/__tests__/migration-failure.integration.test.d.ts +0 -15
- package/src/migration/__tests__/migration.test.d.ts +0 -13
- package/src/migration/__tests__/state.test.d.ts +0 -8
- package/src/migration/__tests__/validate.test.d.ts +0 -8
- package/src/nexus/__tests__/deps.test.d.ts +0 -7
- package/src/nexus/__tests__/nexus-e2e.test.d.ts +0 -12
- package/src/nexus/__tests__/permissions.test.d.ts +0 -7
- package/src/nexus/__tests__/query.test.d.ts +0 -7
- package/src/nexus/__tests__/reconcile.test.d.ts +0 -7
- package/src/nexus/__tests__/registry.test.d.ts +0 -7
- package/src/nexus/__tests__/transfer.test.d.ts +0 -8
- package/src/observability/__tests__/index.test.d.ts +0 -7
- package/src/observability/__tests__/log-filter.test.d.ts +0 -7
- package/src/observability/__tests__/log-parser.test.d.ts +0 -7
- package/src/observability/__tests__/log-reader.test.d.ts +0 -7
- package/src/orchestration/__tests__/autonomous-spec.test.d.ts +0 -9
- package/src/orchestration/__tests__/orchestration.test.d.ts +0 -7
- package/src/orchestration/__tests__/protocol-validators.test.d.ts +0 -9
- package/src/phases/__tests__/deps.test.d.ts +0 -7
- package/src/phases/__tests__/phases.test.d.ts +0 -7
- package/src/release/__tests__/artifacts.test.d.ts +0 -7
- package/src/release/__tests__/cancel-release.test.d.ts +0 -10
- package/src/release/__tests__/changelog-writer.test.d.ts +0 -6
- package/src/release/__tests__/push-policy.test.d.ts +0 -14
- package/src/release/__tests__/release.test.d.ts +0 -11
- package/src/sequence/__tests__/allocate.test.d.ts +0 -6
- package/src/sessions/__tests__/briefing-blocked.test.d.ts +0 -6
- package/src/sessions/__tests__/briefing.test.d.ts +0 -11
- package/src/sessions/__tests__/handoff-integration.test.d.ts +0 -8
- package/src/sessions/__tests__/handoff.test.d.ts +0 -11
- package/src/sessions/__tests__/index.test.d.ts +0 -2
- package/src/sessions/__tests__/session-cleanup.test.d.ts +0 -7
- package/src/sessions/__tests__/session-edge-cases.test.d.ts +0 -9
- package/src/sessions/__tests__/session-find.test.d.ts +0 -9
- package/src/sessions/__tests__/session-grade.integration.test.d.ts +0 -11
- package/src/sessions/__tests__/session-grade.test.d.ts +0 -6
- package/src/sessions/__tests__/session-memory-bridge.test.d.ts +0 -2
- package/src/sessions/__tests__/sessions.test.d.ts +0 -7
- package/src/skills/__tests__/discovery.test.d.ts +0 -6
- package/src/skills/__tests__/dispatch.test.d.ts +0 -6
- package/src/skills/__tests__/dynamic-skill-generator.test.d.ts +0 -2
- package/src/skills/__tests__/manifests.test.d.ts +0 -6
- package/src/skills/__tests__/precedence.test.d.ts +0 -6
- package/src/skills/__tests__/routing-table.test.d.ts +0 -2
- package/src/skills/__tests__/skill-paths.test.d.ts +0 -7
- package/src/skills/__tests__/test-utility.test.d.ts +0 -7
- package/src/skills/__tests__/token.test.d.ts +0 -6
- package/src/skills/__tests__/validation.test.d.ts +0 -6
- package/src/skills/__tests__/version.test.d.ts +0 -5
- package/src/skills/injection/__tests__/subagent.test.d.ts +0 -2
- package/src/skills/orchestrator/__tests__/spawn-tier.test.d.ts +0 -2
- package/src/spawn/__tests__/adapter-registry.test.d.ts +0 -2
- package/src/stats/__tests__/stats.test.d.ts +0 -7
- package/src/sticky/__tests__/purge.test.d.ts +0 -9
- package/src/store/__tests__/atomic.test.d.ts +0 -7
- package/src/store/__tests__/backup.test.d.ts +0 -7
- package/src/store/__tests__/brain-accessor-pageindex.test.d.ts +0 -12
- package/src/store/__tests__/brain-accessor.test.d.ts +0 -10
- package/src/store/__tests__/brain-pageindex.test.d.ts +0 -11
- package/src/store/__tests__/brain-schema.test.d.ts +0 -11
- package/src/store/__tests__/brain-vec.test.d.ts +0 -11
- package/src/store/__tests__/collision-detection.test.d.ts +0 -11
- package/src/store/__tests__/data-safety-central.test.d.ts +0 -20
- package/src/store/__tests__/db-helpers.test.d.ts +0 -7
- package/src/store/__tests__/e2e-safety-integration.test.d.ts +0 -13
- package/src/store/__tests__/git-checkpoint.test.d.ts +0 -7
- package/src/store/__tests__/idempotent-migration.test.d.ts +0 -5
- package/src/store/__tests__/import-logging.test.d.ts +0 -7
- package/src/store/__tests__/import-sort.test.d.ts +0 -7
- package/src/store/__tests__/json.test.d.ts +0 -7
- package/src/store/__tests__/lifecycle-schema-parity.test.d.ts +0 -2
- package/src/store/__tests__/migration-integration.test.d.ts +0 -15
- package/src/store/__tests__/migration-retry.test.d.ts +0 -10
- package/src/store/__tests__/migration-safety.test.d.ts +0 -21
- package/src/store/__tests__/migration-sqlite.test.d.ts +0 -11
- package/src/store/__tests__/performance-safety.test.d.ts +0 -17
- package/src/store/__tests__/project-detect.test.d.ts +0 -6
- package/src/store/__tests__/project-registry.test.d.ts +0 -7
- package/src/store/__tests__/provider.test.d.ts +0 -9
- package/src/store/__tests__/relations.test.d.ts +0 -9
- package/src/store/__tests__/safety-accessor.test.d.ts +0 -18
- package/src/store/__tests__/sequence-validation.test.d.ts +0 -11
- package/src/store/__tests__/session-store.test.d.ts +0 -11
- package/src/store/__tests__/sqlite-backup.test.d.ts +0 -14
- package/src/store/__tests__/sqlite.test.d.ts +0 -11
- package/src/store/__tests__/task-store.test.d.ts +0 -11
- package/src/store/__tests__/test-db-helper.d.ts +0 -61
- package/src/store/__tests__/write-verification.test.d.ts +0 -11
- package/src/system/__tests__/cleanup.test.d.ts +0 -2
- package/src/system/__tests__/health.test.d.ts +0 -2
- package/src/task-work/__tests__/start-deps.test.d.ts +0 -6
- package/src/tasks/__tests__/add.test.d.ts +0 -7
- package/src/tasks/__tests__/archive.test.d.ts +0 -7
- package/src/tasks/__tests__/assignee.test.d.ts +0 -14
- package/src/tasks/__tests__/atomicity.test.d.ts +0 -6
- package/src/tasks/__tests__/cancel-ops.test.d.ts +0 -7
- package/src/tasks/__tests__/complete-unblocks.test.d.ts +0 -6
- package/src/tasks/__tests__/complete.test.d.ts +0 -7
- package/src/tasks/__tests__/delete.test.d.ts +0 -7
- package/src/tasks/__tests__/dependency-check.test.d.ts +0 -7
- package/src/tasks/__tests__/deps-ready.test.d.ts +0 -6
- package/src/tasks/__tests__/epic-enforcement.test.d.ts +0 -15
- package/src/tasks/__tests__/find.test.d.ts +0 -7
- package/src/tasks/__tests__/graph-ops.test.d.ts +0 -7
- package/src/tasks/__tests__/hierarchy-policy.test.d.ts +0 -6
- package/src/tasks/__tests__/hierarchy.test.d.ts +0 -7
- package/src/tasks/__tests__/id-generator.test.d.ts +0 -2
- package/src/tasks/__tests__/labels.test.d.ts +0 -7
- package/src/tasks/__tests__/list.test.d.ts +0 -7
- package/src/tasks/__tests__/minimal-test.test.d.ts +0 -2
- package/src/tasks/__tests__/phase-tracking.test.d.ts +0 -7
- package/src/tasks/__tests__/pipeline-stage.test.d.ts +0 -14
- package/src/tasks/__tests__/plan-priority.test.d.ts +0 -10
- package/src/tasks/__tests__/priority-normalization.test.d.ts +0 -7
- package/src/tasks/__tests__/relates.test.d.ts +0 -9
- package/src/tasks/__tests__/show-deps.test.d.ts +0 -6
- package/src/tasks/__tests__/show.test.d.ts +0 -7
- package/src/tasks/__tests__/staleness.test.d.ts +0 -7
- package/src/tasks/__tests__/task-ops-depends.test.d.ts +0 -6
- package/src/tasks/__tests__/update.test.d.ts +0 -7
- package/src/validation/__tests__/chain-validation.test.d.ts +0 -7
- package/src/validation/__tests__/compliance.test.d.ts +0 -7
- package/src/validation/__tests__/docs-sync.test.d.ts +0 -7
- package/src/validation/__tests__/doctor-gitignore.test.d.ts +0 -7
- package/src/validation/__tests__/doctor-injection.test.d.ts +0 -11
- package/src/validation/__tests__/doctor.test.d.ts +0 -7
- package/src/validation/__tests__/engine.test.d.ts +0 -7
- package/src/validation/__tests__/manifest.test.d.ts +0 -7
- package/src/validation/__tests__/protocol-common.test.d.ts +0 -7
- package/src/validation/__tests__/verification.test.d.ts +0 -7
package/dist/tasks/task-ops.d.ts
CHANGED
|
@@ -15,20 +15,48 @@
|
|
|
15
15
|
import type { BottleneckTask, TaskAnalysisResult, TaskDepsResult, TaskRef } from '@cleocode/contracts';
|
|
16
16
|
/** Tree node representation for task hierarchy. */
|
|
17
17
|
export interface FlatTreeNode {
|
|
18
|
+
/** Unique task identifier (e.g. "T001"). */
|
|
18
19
|
id: string;
|
|
20
|
+
/** Human-readable task title. */
|
|
19
21
|
title: string;
|
|
22
|
+
/** Current task status (e.g. "pending", "done"). */
|
|
20
23
|
status: string;
|
|
24
|
+
/**
|
|
25
|
+
* Task type classification.
|
|
26
|
+
* @defaultValue "task"
|
|
27
|
+
*/
|
|
21
28
|
type?: string;
|
|
29
|
+
/** Child nodes in the hierarchy tree. */
|
|
22
30
|
children: FlatTreeNode[];
|
|
23
31
|
}
|
|
24
|
-
/** Complexity factor. */
|
|
32
|
+
/** Complexity factor contributing to a task's size estimate. */
|
|
25
33
|
export interface ComplexityFactor {
|
|
34
|
+
/** Factor name (e.g. "descriptionLength", "dependencyDepth"). */
|
|
26
35
|
name: string;
|
|
36
|
+
/** Numeric score contribution from this factor. */
|
|
27
37
|
value: number;
|
|
38
|
+
/** Human-readable explanation of the score (e.g. "short (42 chars)"). */
|
|
28
39
|
detail: string;
|
|
29
40
|
}
|
|
30
41
|
/**
|
|
31
42
|
* Suggest next task to work on based on priority, phase, age, and deps.
|
|
43
|
+
*
|
|
44
|
+
* @param projectRoot - Absolute path to the CLEO project root directory
|
|
45
|
+
* @param params - Optional scoring configuration
|
|
46
|
+
* @param params.count - Number of suggestions to return (default: 1)
|
|
47
|
+
* @param params.explain - When true, include scoring reasons in each suggestion
|
|
48
|
+
* @returns Ranked suggestions with scores and the total number of eligible candidates
|
|
49
|
+
*
|
|
50
|
+
* @remarks
|
|
51
|
+
* Scoring considers priority weight, current phase alignment, dependency readiness,
|
|
52
|
+
* task age, and brain success/failure pattern matches. Results are sorted descending by score.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```typescript
|
|
56
|
+
* const { suggestions } = await coreTaskNext('/project', { count: 3, explain: true });
|
|
57
|
+
* console.log(suggestions[0].id, suggestions[0].score);
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
32
60
|
* @task T4790
|
|
33
61
|
*/
|
|
34
62
|
export declare function coreTaskNext(projectRoot: string, params?: {
|
|
@@ -47,6 +75,23 @@ export declare function coreTaskNext(projectRoot: string, params?: {
|
|
|
47
75
|
}>;
|
|
48
76
|
/**
|
|
49
77
|
* Show blocked tasks and analyze blocking chains.
|
|
78
|
+
*
|
|
79
|
+
* @param projectRoot - Absolute path to the CLEO project root directory
|
|
80
|
+
* @param params - Optional analysis configuration
|
|
81
|
+
* @param params.analyze - When true, compute transitive blocking chains
|
|
82
|
+
* @param params.limit - Maximum number of blocked tasks to return (default: 20)
|
|
83
|
+
* @returns Blocked tasks with optional blocking chains, critical bottleneck tasks, and a summary
|
|
84
|
+
*
|
|
85
|
+
* @remarks
|
|
86
|
+
* Collects both explicitly blocked tasks and dependency-blocked pending tasks.
|
|
87
|
+
* Critical blockers are the top 5 tasks that appear most frequently in blocking chains.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```typescript
|
|
91
|
+
* const result = await coreTaskBlockers('/project', { analyze: true, limit: 10 });
|
|
92
|
+
* console.log(result.summary, result.criticalBlockers);
|
|
93
|
+
* ```
|
|
94
|
+
*
|
|
50
95
|
* @task T4790
|
|
51
96
|
*/
|
|
52
97
|
export declare function coreTaskBlockers(projectRoot: string, params?: {
|
|
@@ -66,7 +111,22 @@ export declare function coreTaskBlockers(projectRoot: string, params?: {
|
|
|
66
111
|
limit: number;
|
|
67
112
|
}>;
|
|
68
113
|
/**
|
|
69
|
-
* Build hierarchy tree.
|
|
114
|
+
* Build hierarchy tree for tasks.
|
|
115
|
+
*
|
|
116
|
+
* @param projectRoot - Absolute path to the CLEO project root directory
|
|
117
|
+
* @param taskId - Optional root task ID; when provided, builds the subtree rooted at this task
|
|
118
|
+
* @returns The tree nodes and total node count
|
|
119
|
+
*
|
|
120
|
+
* @remarks
|
|
121
|
+
* When no taskId is given, returns all root-level tasks with their full subtrees.
|
|
122
|
+
* When a taskId is given, returns that single task as the root with its descendants.
|
|
123
|
+
*
|
|
124
|
+
* @example
|
|
125
|
+
* ```typescript
|
|
126
|
+
* const { tree, totalNodes } = await coreTaskTree('/project', 'T042');
|
|
127
|
+
* console.log(`${totalNodes} nodes in subtree`);
|
|
128
|
+
* ```
|
|
129
|
+
*
|
|
70
130
|
* @task T4790
|
|
71
131
|
*/
|
|
72
132
|
export declare function coreTaskTree(projectRoot: string, taskId?: string): Promise<{
|
|
@@ -75,11 +135,41 @@ export declare function coreTaskTree(projectRoot: string, taskId?: string): Prom
|
|
|
75
135
|
}>;
|
|
76
136
|
/**
|
|
77
137
|
* Show dependencies for a task.
|
|
138
|
+
*
|
|
139
|
+
* @param projectRoot - Absolute path to the CLEO project root directory
|
|
140
|
+
* @param taskId - The task ID to inspect dependencies for
|
|
141
|
+
* @returns Upstream and downstream dependencies, unresolved deps, and readiness flag
|
|
142
|
+
*
|
|
143
|
+
* @remarks
|
|
144
|
+
* Returns both the tasks this task depends on (upstream) and the tasks that depend
|
|
145
|
+
* on it (downstream). Unresolved deps are those not yet done or cancelled.
|
|
146
|
+
*
|
|
147
|
+
* @example
|
|
148
|
+
* ```typescript
|
|
149
|
+
* const deps = await coreTaskDeps('/project', 'T100');
|
|
150
|
+
* if (!deps.allDepsReady) console.log('Blocked by:', deps.unresolvedDeps);
|
|
151
|
+
* ```
|
|
152
|
+
*
|
|
78
153
|
* @task T4790
|
|
79
154
|
*/
|
|
80
155
|
export declare function coreTaskDeps(projectRoot: string, taskId: string): Promise<TaskDepsResult>;
|
|
81
156
|
/**
|
|
82
157
|
* Show task relations.
|
|
158
|
+
*
|
|
159
|
+
* @param projectRoot - Absolute path to the CLEO project root directory
|
|
160
|
+
* @param taskId - The task ID to retrieve relations for
|
|
161
|
+
* @returns The task's relations array and count
|
|
162
|
+
*
|
|
163
|
+
* @remarks
|
|
164
|
+
* Relations are non-dependency links between tasks (e.g. "related-to", "duplicates").
|
|
165
|
+
* Unlike dependencies, relations do not affect blocking or scheduling.
|
|
166
|
+
*
|
|
167
|
+
* @example
|
|
168
|
+
* ```typescript
|
|
169
|
+
* const { relations, count } = await coreTaskRelates('/project', 'T050');
|
|
170
|
+
* console.log(`${count} relations found`);
|
|
171
|
+
* ```
|
|
172
|
+
*
|
|
83
173
|
* @task T4790
|
|
84
174
|
*/
|
|
85
175
|
export declare function coreTaskRelates(projectRoot: string, taskId: string): Promise<{
|
|
@@ -93,6 +183,24 @@ export declare function coreTaskRelates(projectRoot: string, taskId: string): Pr
|
|
|
93
183
|
}>;
|
|
94
184
|
/**
|
|
95
185
|
* Add a relation between two tasks.
|
|
186
|
+
*
|
|
187
|
+
* @param projectRoot - Absolute path to the CLEO project root directory
|
|
188
|
+
* @param taskId - The source task ID
|
|
189
|
+
* @param relatedId - The target task ID to relate to
|
|
190
|
+
* @param type - Relation type (e.g. "related-to", "duplicates", "blocks")
|
|
191
|
+
* @param reason - Optional human-readable reason for the relation
|
|
192
|
+
* @returns Confirmation of the added relation with source, target, and type
|
|
193
|
+
*
|
|
194
|
+
* @remarks
|
|
195
|
+
* Persists the relation both on the task's `relates` array and in the
|
|
196
|
+
* `task_relations` table for bidirectional querying.
|
|
197
|
+
*
|
|
198
|
+
* @example
|
|
199
|
+
* ```typescript
|
|
200
|
+
* const result = await coreTaskRelatesAdd('/project', 'T010', 'T020', 'related-to', 'Shared scope');
|
|
201
|
+
* console.log(result.added); // true
|
|
202
|
+
* ```
|
|
203
|
+
*
|
|
96
204
|
* @task T4790
|
|
97
205
|
*/
|
|
98
206
|
export declare function coreTaskRelatesAdd(projectRoot: string, taskId: string, relatedId: string, type: string, reason?: string): Promise<{
|
|
@@ -104,6 +212,24 @@ export declare function coreTaskRelatesAdd(projectRoot: string, taskId: string,
|
|
|
104
212
|
}>;
|
|
105
213
|
/**
|
|
106
214
|
* Analyze tasks for priority and leverage.
|
|
215
|
+
*
|
|
216
|
+
* @param projectRoot - Absolute path to the CLEO project root directory
|
|
217
|
+
* @param taskId - Optional task or epic ID to scope the analysis; omit for project-wide
|
|
218
|
+
* @param params - Optional analysis configuration
|
|
219
|
+
* @param params.tierLimit - Maximum tasks per priority tier in the response (default: 10)
|
|
220
|
+
* @returns Analysis with recommended next task, bottlenecks, priority tiers, and aggregate metrics
|
|
221
|
+
*
|
|
222
|
+
* @remarks
|
|
223
|
+
* Computes a leverage score per task (how many other tasks it unblocks) and combines
|
|
224
|
+
* it with priority to produce a ranked recommendation. Bottlenecks are the top 5
|
|
225
|
+
* incomplete tasks that block the most others.
|
|
226
|
+
*
|
|
227
|
+
* @example
|
|
228
|
+
* ```typescript
|
|
229
|
+
* const analysis = await coreTaskAnalyze('/project', undefined, { tierLimit: 5 });
|
|
230
|
+
* if (analysis.recommended) console.log('Work on:', analysis.recommended.id);
|
|
231
|
+
* ```
|
|
232
|
+
*
|
|
107
233
|
* @task T4790
|
|
108
234
|
*/
|
|
109
235
|
export declare function coreTaskAnalyze(projectRoot: string, taskId?: string, params?: {
|
|
@@ -113,6 +239,24 @@ export declare function coreTaskAnalyze(projectRoot: string, taskId?: string, pa
|
|
|
113
239
|
}>;
|
|
114
240
|
/**
|
|
115
241
|
* Restore a cancelled task back to pending.
|
|
242
|
+
*
|
|
243
|
+
* @param projectRoot - Absolute path to the CLEO project root directory
|
|
244
|
+
* @param taskId - The cancelled task ID to restore
|
|
245
|
+
* @param params - Optional restore options
|
|
246
|
+
* @param params.cascade - When true, also restores cancelled child tasks recursively
|
|
247
|
+
* @param params.notes - Optional note appended to each restored task's notes array
|
|
248
|
+
* @returns The task ID, list of restored task IDs, and total count
|
|
249
|
+
*
|
|
250
|
+
* @remarks
|
|
251
|
+
* Only tasks with status "cancelled" can be restored. Restored tasks are set to
|
|
252
|
+
* "pending" with cancellation metadata cleared. A timestamped note is appended.
|
|
253
|
+
*
|
|
254
|
+
* @example
|
|
255
|
+
* ```typescript
|
|
256
|
+
* const { restored, count } = await coreTaskRestore('/project', 'T099', { cascade: true });
|
|
257
|
+
* console.log(`Restored ${count} tasks:`, restored);
|
|
258
|
+
* ```
|
|
259
|
+
*
|
|
116
260
|
* @task T4790
|
|
117
261
|
*/
|
|
118
262
|
export declare function coreTaskRestore(projectRoot: string, taskId: string, params?: {
|
|
@@ -126,6 +270,24 @@ export declare function coreTaskRestore(projectRoot: string, taskId: string, par
|
|
|
126
270
|
/**
|
|
127
271
|
* Cancel a task (sets status to 'cancelled', a soft terminal state).
|
|
128
272
|
* Use restore to reverse. Use delete for permanent removal.
|
|
273
|
+
*
|
|
274
|
+
* @param projectRoot - Absolute path to the CLEO project root directory
|
|
275
|
+
* @param taskId - The task ID to cancel
|
|
276
|
+
* @param params - Optional cancel options
|
|
277
|
+
* @param params.reason - Human-readable cancellation reason stored on the task
|
|
278
|
+
* @returns Confirmation with cancelled flag and timestamp
|
|
279
|
+
*
|
|
280
|
+
* @remarks
|
|
281
|
+
* Cancellation is a soft terminal state -- the task remains in the database and
|
|
282
|
+
* can be restored via {@link coreTaskRestore}. Not all statuses are cancellable;
|
|
283
|
+
* the `canCancel` guard determines eligibility.
|
|
284
|
+
*
|
|
285
|
+
* @example
|
|
286
|
+
* ```typescript
|
|
287
|
+
* const result = await coreTaskCancel('/project', 'T077', { reason: 'Superseded by T080' });
|
|
288
|
+
* console.log(result.cancelledAt);
|
|
289
|
+
* ```
|
|
290
|
+
*
|
|
129
291
|
* @task T4529
|
|
130
292
|
*/
|
|
131
293
|
export declare function coreTaskCancel(projectRoot: string, taskId: string, params?: {
|
|
@@ -138,6 +300,24 @@ export declare function coreTaskCancel(projectRoot: string, taskId: string, para
|
|
|
138
300
|
}>;
|
|
139
301
|
/**
|
|
140
302
|
* Move an archived task back to active tasks.
|
|
303
|
+
*
|
|
304
|
+
* @param projectRoot - Absolute path to the CLEO project root directory
|
|
305
|
+
* @param taskId - The archived task ID to unarchive
|
|
306
|
+
* @param params - Optional unarchive options
|
|
307
|
+
* @param params.status - Target status for the restored task (default: "pending")
|
|
308
|
+
* @param params.preserveStatus - When true, keeps the task's original archived status
|
|
309
|
+
* @returns Confirmation with task ID, title, and resulting status
|
|
310
|
+
*
|
|
311
|
+
* @remarks
|
|
312
|
+
* Removes the task from the archive file and upserts it into the active task store.
|
|
313
|
+
* Throws if the task already exists in active tasks or is not found in the archive.
|
|
314
|
+
*
|
|
315
|
+
* @example
|
|
316
|
+
* ```typescript
|
|
317
|
+
* const result = await coreTaskUnarchive('/project', 'T055', { status: 'active' });
|
|
318
|
+
* console.log(`${result.title} is now ${result.status}`);
|
|
319
|
+
* ```
|
|
320
|
+
*
|
|
141
321
|
* @task T4790
|
|
142
322
|
*/
|
|
143
323
|
export declare function coreTaskUnarchive(projectRoot: string, taskId: string, params?: {
|
|
@@ -151,6 +331,22 @@ export declare function coreTaskUnarchive(projectRoot: string, taskId: string, p
|
|
|
151
331
|
}>;
|
|
152
332
|
/**
|
|
153
333
|
* Change task position within its sibling group.
|
|
334
|
+
*
|
|
335
|
+
* @param projectRoot - Absolute path to the CLEO project root directory
|
|
336
|
+
* @param taskId - The task ID to reorder
|
|
337
|
+
* @param position - Target 1-based position within the sibling group
|
|
338
|
+
* @returns Confirmation with the new position and total sibling count
|
|
339
|
+
*
|
|
340
|
+
* @remarks
|
|
341
|
+
* Reorders by adjusting `position` and `positionVersion` fields on all siblings.
|
|
342
|
+
* Position is clamped to valid bounds. Uses bulk field updates for efficiency.
|
|
343
|
+
*
|
|
344
|
+
* @example
|
|
345
|
+
* ```typescript
|
|
346
|
+
* const result = await coreTaskReorder('/project', 'T012', 1);
|
|
347
|
+
* console.log(`Moved to position ${result.newPosition} of ${result.totalSiblings}`);
|
|
348
|
+
* ```
|
|
349
|
+
*
|
|
154
350
|
* @task T4790
|
|
155
351
|
*/
|
|
156
352
|
export declare function coreTaskReorder(projectRoot: string, taskId: string, position: number): Promise<{
|
|
@@ -161,6 +357,23 @@ export declare function coreTaskReorder(projectRoot: string, taskId: string, pos
|
|
|
161
357
|
}>;
|
|
162
358
|
/**
|
|
163
359
|
* Move task under a different parent.
|
|
360
|
+
*
|
|
361
|
+
* @param projectRoot - Absolute path to the CLEO project root directory
|
|
362
|
+
* @param taskId - The task ID to reparent
|
|
363
|
+
* @param newParentId - The new parent task ID, or null to promote to root level
|
|
364
|
+
* @returns Confirmation with old and new parent IDs and optional type change
|
|
365
|
+
*
|
|
366
|
+
* @remarks
|
|
367
|
+
* Validates against circular references, depth limits, and sibling limits from
|
|
368
|
+
* the project hierarchy config. Automatically adjusts task type based on new depth
|
|
369
|
+
* (depth 1 = "task", depth >= 2 = "subtask").
|
|
370
|
+
*
|
|
371
|
+
* @example
|
|
372
|
+
* ```typescript
|
|
373
|
+
* const result = await coreTaskReparent('/project', 'T015', 'T010');
|
|
374
|
+
* console.log(`Moved from ${result.oldParent} to ${result.newParent}`);
|
|
375
|
+
* ```
|
|
376
|
+
*
|
|
164
377
|
* @task T4790
|
|
165
378
|
*/
|
|
166
379
|
export declare function coreTaskReparent(projectRoot: string, taskId: string, newParentId: string | null): Promise<{
|
|
@@ -172,6 +385,21 @@ export declare function coreTaskReparent(projectRoot: string, taskId: string, ne
|
|
|
172
385
|
}>;
|
|
173
386
|
/**
|
|
174
387
|
* Promote a subtask to task or task to root.
|
|
388
|
+
*
|
|
389
|
+
* @param projectRoot - Absolute path to the CLEO project root directory
|
|
390
|
+
* @param taskId - The task ID to promote
|
|
391
|
+
* @returns Confirmation with previous parent and whether the type changed
|
|
392
|
+
*
|
|
393
|
+
* @remarks
|
|
394
|
+
* Removes the task's parentId, making it a root-level task. If the task was
|
|
395
|
+
* a "subtask", its type is changed to "task". No-op if the task is already root-level.
|
|
396
|
+
*
|
|
397
|
+
* @example
|
|
398
|
+
* ```typescript
|
|
399
|
+
* const result = await coreTaskPromote('/project', 'T025');
|
|
400
|
+
* if (result.promoted) console.log('Detached from', result.previousParent);
|
|
401
|
+
* ```
|
|
402
|
+
*
|
|
175
403
|
* @task T4790
|
|
176
404
|
*/
|
|
177
405
|
export declare function coreTaskPromote(projectRoot: string, taskId: string): Promise<{
|
|
@@ -182,6 +410,24 @@ export declare function coreTaskPromote(projectRoot: string, taskId: string): Pr
|
|
|
182
410
|
}>;
|
|
183
411
|
/**
|
|
184
412
|
* Reopen a completed task.
|
|
413
|
+
*
|
|
414
|
+
* @param projectRoot - Absolute path to the CLEO project root directory
|
|
415
|
+
* @param taskId - The completed task ID to reopen
|
|
416
|
+
* @param params - Optional reopen options
|
|
417
|
+
* @param params.status - Target status after reopening ("pending" or "active", default: "pending")
|
|
418
|
+
* @param params.reason - Optional reason appended to the task's notes
|
|
419
|
+
* @returns Confirmation with previous and new status
|
|
420
|
+
*
|
|
421
|
+
* @remarks
|
|
422
|
+
* Only tasks with status "done" can be reopened. Clears the `completedAt` timestamp
|
|
423
|
+
* and appends a timestamped note recording the reopen event.
|
|
424
|
+
*
|
|
425
|
+
* @example
|
|
426
|
+
* ```typescript
|
|
427
|
+
* const result = await coreTaskReopen('/project', 'T033', { status: 'active', reason: 'Tests failed' });
|
|
428
|
+
* console.log(`${result.previousStatus} -> ${result.newStatus}`);
|
|
429
|
+
* ```
|
|
430
|
+
*
|
|
185
431
|
* @task T4790
|
|
186
432
|
*/
|
|
187
433
|
export declare function coreTaskReopen(projectRoot: string, taskId: string, params?: {
|
|
@@ -195,6 +441,23 @@ export declare function coreTaskReopen(projectRoot: string, taskId: string, para
|
|
|
195
441
|
}>;
|
|
196
442
|
/**
|
|
197
443
|
* Deterministic complexity scoring from task metadata.
|
|
444
|
+
*
|
|
445
|
+
* @param projectRoot - Absolute path to the CLEO project root directory
|
|
446
|
+
* @param params - Parameters containing the task ID to estimate
|
|
447
|
+
* @param params.taskId - The task ID to compute complexity for
|
|
448
|
+
* @returns Complexity size ("small"/"medium"/"large"), numeric score, contributing factors, and metadata counts
|
|
449
|
+
*
|
|
450
|
+
* @remarks
|
|
451
|
+
* Scores are computed from description length, acceptance criteria count, dependency depth,
|
|
452
|
+
* subtask count, and file reference count. Each factor contributes 0-3 points.
|
|
453
|
+
* Total score 0-3 = small, 4-7 = medium, 8+ = large.
|
|
454
|
+
*
|
|
455
|
+
* @example
|
|
456
|
+
* ```typescript
|
|
457
|
+
* const est = await coreTaskComplexityEstimate('/project', { taskId: 'T042' });
|
|
458
|
+
* console.log(`${est.size} (score: ${est.score})`);
|
|
459
|
+
* ```
|
|
460
|
+
*
|
|
198
461
|
* @task T4790
|
|
199
462
|
*/
|
|
200
463
|
export declare function coreTaskComplexityEstimate(projectRoot: string, params: {
|
|
@@ -209,6 +472,20 @@ export declare function coreTaskComplexityEstimate(projectRoot: string, params:
|
|
|
209
472
|
}>;
|
|
210
473
|
/**
|
|
211
474
|
* Overview of all dependencies across the project.
|
|
475
|
+
*
|
|
476
|
+
* @param projectRoot - Absolute path to the CLEO project root directory
|
|
477
|
+
* @returns Project-wide dependency summary including blocked tasks, ready tasks, and validation results
|
|
478
|
+
*
|
|
479
|
+
* @remarks
|
|
480
|
+
* Aggregates dependency data across all tasks to provide a high-level view of
|
|
481
|
+
* the dependency graph health, including which tasks are blocked and what would unblock them.
|
|
482
|
+
*
|
|
483
|
+
* @example
|
|
484
|
+
* ```typescript
|
|
485
|
+
* const overview = await coreTaskDepsOverview('/project');
|
|
486
|
+
* console.log(`${overview.blockedTasks.length} blocked, ${overview.readyTasks.length} ready`);
|
|
487
|
+
* ```
|
|
488
|
+
*
|
|
212
489
|
* @task T5157
|
|
213
490
|
*/
|
|
214
491
|
export declare function coreTaskDepsOverview(projectRoot: string): Promise<{
|
|
@@ -226,6 +503,21 @@ export declare function coreTaskDepsOverview(projectRoot: string): Promise<{
|
|
|
226
503
|
}>;
|
|
227
504
|
/**
|
|
228
505
|
* Detect circular dependencies across the project.
|
|
506
|
+
*
|
|
507
|
+
* @param projectRoot - Absolute path to the CLEO project root directory
|
|
508
|
+
* @returns Whether cycles exist and the list of detected cycles with their task paths
|
|
509
|
+
*
|
|
510
|
+
* @remarks
|
|
511
|
+
* Iterates through all tasks with dependencies and uses cycle detection to find
|
|
512
|
+
* circular chains. Each cycle includes the full path (e.g. [A, B, C, A]) and
|
|
513
|
+
* the tasks involved with their titles.
|
|
514
|
+
*
|
|
515
|
+
* @example
|
|
516
|
+
* ```typescript
|
|
517
|
+
* const { hasCycles, cycles } = await coreTaskDepsCycles('/project');
|
|
518
|
+
* if (hasCycles) console.log('Circular deps:', cycles.map(c => c.path.join(' -> ')));
|
|
519
|
+
* ```
|
|
520
|
+
*
|
|
229
521
|
* @task T5157
|
|
230
522
|
*/
|
|
231
523
|
export declare function coreTaskDepsCycles(projectRoot: string): Promise<{
|
|
@@ -237,6 +529,25 @@ export declare function coreTaskDepsCycles(projectRoot: string): Promise<{
|
|
|
237
529
|
}>;
|
|
238
530
|
/**
|
|
239
531
|
* List dependencies for a task in a given direction.
|
|
532
|
+
*
|
|
533
|
+
* @param projectRoot - Absolute path to the CLEO project root directory
|
|
534
|
+
* @param taskId - The task ID to inspect
|
|
535
|
+
* @param direction - Direction to traverse: "upstream" (what this task depends on), "downstream" (what depends on it), or "both"
|
|
536
|
+
* @param options - Optional display configuration
|
|
537
|
+
* @param options.tree - When true, includes a recursive upstream dependency tree
|
|
538
|
+
* @returns Upstream and downstream deps, transitive chain length, leaf blockers, and readiness status
|
|
539
|
+
*
|
|
540
|
+
* @remarks
|
|
541
|
+
* Combines direct dependency lookups with transitive analysis. Leaf blockers are
|
|
542
|
+
* the deepest unresolved tasks in the dependency chain -- resolving them first
|
|
543
|
+
* has the most impact on unblocking.
|
|
544
|
+
*
|
|
545
|
+
* @example
|
|
546
|
+
* ```typescript
|
|
547
|
+
* const deps = await coreTaskDepends('/project', 'T100', 'both', { tree: true });
|
|
548
|
+
* console.log('Leaf blockers:', deps.leafBlockers.map(b => b.id));
|
|
549
|
+
* ```
|
|
550
|
+
*
|
|
240
551
|
* @task T4790
|
|
241
552
|
*/
|
|
242
553
|
export declare function coreTaskDepends(projectRoot: string, taskId: string, direction?: 'upstream' | 'downstream' | 'both', options?: {
|
|
@@ -254,6 +565,21 @@ export declare function coreTaskDepends(projectRoot: string, taskId: string, dir
|
|
|
254
565
|
}>;
|
|
255
566
|
/**
|
|
256
567
|
* Compute task statistics.
|
|
568
|
+
*
|
|
569
|
+
* @param projectRoot - Absolute path to the CLEO project root directory
|
|
570
|
+
* @param epicId - Optional epic ID to scope stats to that subtree
|
|
571
|
+
* @returns Status counts, priority distribution, and type distribution
|
|
572
|
+
*
|
|
573
|
+
* @remarks
|
|
574
|
+
* When an epicId is provided, statistics are scoped to that epic and all its
|
|
575
|
+
* transitive children. Without an epicId, stats cover the entire project.
|
|
576
|
+
*
|
|
577
|
+
* @example
|
|
578
|
+
* ```typescript
|
|
579
|
+
* const stats = await coreTaskStats('/project', 'T001');
|
|
580
|
+
* console.log(`${stats.done}/${stats.total} complete`);
|
|
581
|
+
* ```
|
|
582
|
+
*
|
|
257
583
|
* @task T4790
|
|
258
584
|
*/
|
|
259
585
|
export declare function coreTaskStats(projectRoot: string, epicId?: string): Promise<{
|
|
@@ -268,6 +594,24 @@ export declare function coreTaskStats(projectRoot: string, epicId?: string): Pro
|
|
|
268
594
|
}>;
|
|
269
595
|
/**
|
|
270
596
|
* Export tasks as JSON or CSV.
|
|
597
|
+
*
|
|
598
|
+
* @param projectRoot - Absolute path to the CLEO project root directory
|
|
599
|
+
* @param params - Optional export configuration
|
|
600
|
+
* @param params.format - Output format: "json" (default) or "csv"
|
|
601
|
+
* @param params.status - Filter to only tasks with this status
|
|
602
|
+
* @param params.parent - Filter to tasks under this parent ID (recursive)
|
|
603
|
+
* @returns Export payload with format, content/tasks, and task count
|
|
604
|
+
*
|
|
605
|
+
* @remarks
|
|
606
|
+
* CSV output includes columns: id, title, status, priority, type, parentId, createdAt.
|
|
607
|
+
* JSON output returns the full task objects. Both formats support status and parent filtering.
|
|
608
|
+
*
|
|
609
|
+
* @example
|
|
610
|
+
* ```typescript
|
|
611
|
+
* const result = await coreTaskExport('/project', { format: 'csv', status: 'done' });
|
|
612
|
+
* console.log(result.content); // CSV string
|
|
613
|
+
* ```
|
|
614
|
+
*
|
|
271
615
|
* @task T4790
|
|
272
616
|
*/
|
|
273
617
|
export declare function coreTaskExport(projectRoot: string, params?: {
|
|
@@ -276,12 +620,45 @@ export declare function coreTaskExport(projectRoot: string, params?: {
|
|
|
276
620
|
parent?: string;
|
|
277
621
|
}): Promise<unknown>;
|
|
278
622
|
/**
|
|
279
|
-
* Get task history from the log
|
|
623
|
+
* Get task history from the audit log.
|
|
624
|
+
*
|
|
625
|
+
* @param projectRoot - Absolute path to the CLEO project root directory
|
|
626
|
+
* @param taskId - The task ID to retrieve history for
|
|
627
|
+
* @param limit - Maximum number of history entries to return (default: 100)
|
|
628
|
+
* @returns Array of audit log entries ordered by timestamp descending
|
|
629
|
+
*
|
|
630
|
+
* @remarks
|
|
631
|
+
* Queries the SQLite audit_log table for all operations on the given task.
|
|
632
|
+
* Returns an empty array if the database is unavailable or no entries exist.
|
|
633
|
+
*
|
|
634
|
+
* @example
|
|
635
|
+
* ```typescript
|
|
636
|
+
* const history = await coreTaskHistory('/project', 'T042', 10);
|
|
637
|
+
* for (const entry of history) console.log(entry.timestamp, entry.operation);
|
|
638
|
+
* ```
|
|
639
|
+
*
|
|
280
640
|
* @task T4790
|
|
281
641
|
*/
|
|
282
642
|
export declare function coreTaskHistory(projectRoot: string, taskId: string, limit?: number): Promise<Array<Record<string, unknown>>>;
|
|
283
643
|
/**
|
|
284
644
|
* Lint tasks for common issues.
|
|
645
|
+
*
|
|
646
|
+
* @param projectRoot - Absolute path to the CLEO project root directory
|
|
647
|
+
* @param taskId - Optional task ID to lint; omit to lint all tasks
|
|
648
|
+
* @returns Array of lint issues with severity, rule name, and descriptive message
|
|
649
|
+
*
|
|
650
|
+
* @remarks
|
|
651
|
+
* Checks for: duplicate IDs, missing titles, missing descriptions, identical
|
|
652
|
+
* title/description, duplicate descriptions, invalid statuses, future timestamps,
|
|
653
|
+
* invalid parent references, and invalid dependency references.
|
|
654
|
+
*
|
|
655
|
+
* @example
|
|
656
|
+
* ```typescript
|
|
657
|
+
* const issues = await coreTaskLint('/project');
|
|
658
|
+
* const errors = issues.filter(i => i.severity === 'error');
|
|
659
|
+
* console.log(`${errors.length} errors found`);
|
|
660
|
+
* ```
|
|
661
|
+
*
|
|
285
662
|
* @task T4790
|
|
286
663
|
*/
|
|
287
664
|
export declare function coreTaskLint(projectRoot: string, taskId?: string): Promise<Array<{
|
|
@@ -292,6 +669,23 @@ export declare function coreTaskLint(projectRoot: string, taskId?: string): Prom
|
|
|
292
669
|
}>>;
|
|
293
670
|
/**
|
|
294
671
|
* Validate multiple tasks at once.
|
|
672
|
+
*
|
|
673
|
+
* @param projectRoot - Absolute path to the CLEO project root directory
|
|
674
|
+
* @param taskIds - Array of task IDs to validate
|
|
675
|
+
* @param checkMode - Validation depth: "full" runs all checks, "quick" checks only title/description/status
|
|
676
|
+
* @returns Per-task validation results and an aggregate summary with error/warning counts
|
|
677
|
+
*
|
|
678
|
+
* @remarks
|
|
679
|
+
* In "full" mode, additional checks include title-description equality, parent existence,
|
|
680
|
+
* dependency existence, and future timestamp detection. Tasks that are not found are
|
|
681
|
+
* reported as errors.
|
|
682
|
+
*
|
|
683
|
+
* @example
|
|
684
|
+
* ```typescript
|
|
685
|
+
* const { summary } = await coreTaskBatchValidate('/project', ['T001', 'T002'], 'full');
|
|
686
|
+
* console.log(`${summary.validTasks}/${summary.totalTasks} valid`);
|
|
687
|
+
* ```
|
|
688
|
+
*
|
|
295
689
|
* @task T4790
|
|
296
690
|
*/
|
|
297
691
|
export declare function coreTaskBatchValidate(projectRoot: string, taskIds: string[], checkMode?: 'full' | 'quick'): Promise<{
|
|
@@ -311,6 +705,24 @@ export declare function coreTaskBatchValidate(projectRoot: string, taskIds: stri
|
|
|
311
705
|
}>;
|
|
312
706
|
/**
|
|
313
707
|
* Import tasks from a JSON source string.
|
|
708
|
+
*
|
|
709
|
+
* @param projectRoot - Absolute path to the CLEO project root directory
|
|
710
|
+
* @param source - JSON string containing an array of tasks or an object with a `tasks` array
|
|
711
|
+
* @param overwrite - When true, overwrites existing tasks with matching IDs; otherwise skips them
|
|
712
|
+
* @returns Import summary with counts of imported, skipped, errors, and optional ID remap table
|
|
713
|
+
*
|
|
714
|
+
* @remarks
|
|
715
|
+
* When a task ID collides with an existing one and overwrite is false, a new sequential
|
|
716
|
+
* ID is assigned and recorded in the remapTable. Tasks missing required id or title
|
|
717
|
+
* fields are skipped with an error message.
|
|
718
|
+
*
|
|
719
|
+
* @example
|
|
720
|
+
* ```typescript
|
|
721
|
+
* const json = JSON.stringify([{ id: 'T500', title: 'New task', status: 'pending', priority: 'medium' }]);
|
|
722
|
+
* const result = await coreTaskImport('/project', json, false);
|
|
723
|
+
* console.log(`Imported ${result.imported}, skipped ${result.skipped}`);
|
|
724
|
+
* ```
|
|
725
|
+
*
|
|
314
726
|
* @task T4790
|
|
315
727
|
*/
|
|
316
728
|
export declare function coreTaskImport(projectRoot: string, source: string, overwrite?: boolean): Promise<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-ops.d.ts","sourceRoot":"","sources":["../../src/tasks/task-ops.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EACV,cAAc,EAGd,kBAAkB,EAClB,cAAc,EACd,OAAO,EAER,MAAM,qBAAqB,CAAC;AAsB7B,mDAAmD;AACnD,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,YAAY,EAAE,CAAC;CAC1B;AAED,
|
|
1
|
+
{"version":3,"file":"task-ops.d.ts","sourceRoot":"","sources":["../../src/tasks/task-ops.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EACV,cAAc,EAGd,kBAAkB,EAClB,cAAc,EACd,OAAO,EAER,MAAM,qBAAqB,CAAC;AAsB7B,mDAAmD;AACnD,MAAM,WAAW,YAAY;IAC3B,4CAA4C;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,iC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WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,EACd,SAAS,CAAC,EAAE,OAAO,GAClB,OAAO,CAAC;IACT,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC,CAAC,CAgFD"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* GitHub Issue Template Parser (Core Logic)
|
|
3
3
|
*
|
|
4
4
|
* Native TypeScript implementation for parsing GitHub issue template YAML files
|
|
5
|
-
* and producing structured JSON config.
|
|
5
|
+
* and producing structured JSON config. The CLI
|
|
6
6
|
* can consume the generated config at .cleo/issue-templates.json.
|
|
7
7
|
*
|
|
8
8
|
* Supports: parseIssueTemplates, getTemplateForSubcommand, generateTemplateConfig, validateLabels
|
package/dist/ui/index.d.ts
CHANGED
package/dist/upgrade.d.ts
CHANGED
package/dist/upgrade.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade.d.ts","sourceRoot":"","sources":["../src/upgrade.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;
|
|
1
|
+
{"version":3,"file":"upgrade.d.ts","sourceRoot":"","sources":["../src/upgrade.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAmCH,2CAA2C;AAC3C,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IACpD,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,2BAA2B;AAC3B,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IA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OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;CACT,GACL,OAAO,CAAC,aAAa,CAAC,CA05BxB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,eAAe,CAAC,OAAO,GAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,OAAO,CAAC,cAAc,CAAC,CA0O7F"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* - Layer 3: Referential validation (cross-entity integrity)
|
|
8
8
|
* - Layer 4: Protocol validation (RCASD-IVTR+C lifecycle)
|
|
9
9
|
*
|
|
10
|
-
* Moved
|
|
10
|
+
* Moved to core for proper layering (formerly in dispatch).
|
|
11
11
|
*
|
|
12
12
|
* @task T2936
|
|
13
13
|
* @task T3138
|