@cleocode/cleo 2026.4.161 → 2026.5.1
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/backfill/audit-columns.d.ts +105 -0
- package/dist/backfill/audit-columns.d.ts.map +1 -0
- package/dist/backfill/audit-columns.js +258 -0
- package/dist/backfill/audit-columns.js.map +1 -0
- package/dist/cli/commands/adapter.d.ts +28 -0
- package/dist/cli/commands/adapter.d.ts.map +1 -0
- package/dist/cli/commands/adapter.js +119 -0
- package/dist/cli/commands/adapter.js.map +1 -0
- package/dist/cli/commands/add-batch.d.ts +33 -0
- package/dist/cli/commands/add-batch.d.ts.map +1 -0
- package/dist/cli/commands/add-batch.js +148 -0
- package/dist/cli/commands/add-batch.js.map +1 -0
- package/dist/cli/commands/add.d.ts +162 -0
- package/dist/cli/commands/add.d.ts.map +1 -0
- package/dist/cli/commands/add.js +279 -0
- package/dist/cli/commands/add.js.map +1 -0
- package/dist/cli/commands/admin.d.ts +24 -0
- package/dist/cli/commands/admin.d.ts.map +1 -0
- package/dist/cli/commands/admin.js +283 -0
- package/dist/cli/commands/admin.js.map +1 -0
- package/dist/cli/commands/adr.d.ts +33 -0
- package/dist/cli/commands/adr.d.ts.map +1 -0
- package/dist/cli/commands/adr.js +147 -0
- package/dist/cli/commands/adr.js.map +1 -0
- package/dist/cli/commands/agent-profile-status.d.ts +98 -0
- package/dist/cli/commands/agent-profile-status.d.ts.map +1 -0
- package/dist/cli/commands/agent-profile-status.js +71 -0
- package/dist/cli/commands/agent-profile-status.js.map +1 -0
- package/dist/cli/commands/agent.d.ts +47 -0
- package/dist/cli/commands/agent.d.ts.map +1 -0
- package/dist/cli/commands/agent.js +2976 -0
- package/dist/cli/commands/agent.js.map +1 -0
- package/dist/cli/commands/analyze.d.ts +21 -0
- package/dist/cli/commands/analyze.d.ts.map +1 -0
- package/dist/cli/commands/analyze.js +32 -0
- package/dist/cli/commands/analyze.js.map +1 -0
- package/dist/cli/commands/archive-stats.d.ts +66 -0
- package/dist/cli/commands/archive-stats.d.ts.map +1 -0
- package/dist/cli/commands/archive-stats.js +93 -0
- package/dist/cli/commands/archive-stats.js.map +1 -0
- package/dist/cli/commands/archive.d.ts +42 -0
- package/dist/cli/commands/archive.d.ts.map +1 -0
- package/dist/cli/commands/archive.js +59 -0
- package/dist/cli/commands/archive.js.map +1 -0
- package/dist/cli/commands/audit.d.ts +22 -0
- package/dist/cli/commands/audit.d.ts.map +1 -0
- package/dist/cli/commands/audit.js +137 -0
- package/dist/cli/commands/audit.js.map +1 -0
- package/dist/cli/commands/backfill.d.ts +56 -0
- package/dist/cli/commands/backfill.d.ts.map +1 -0
- package/dist/cli/commands/backfill.js +161 -0
- package/dist/cli/commands/backfill.js.map +1 -0
- package/dist/cli/commands/backup-inspect.d.ts +33 -0
- package/dist/cli/commands/backup-inspect.d.ts.map +1 -0
- package/dist/cli/commands/backup-inspect.js +430 -0
- package/dist/cli/commands/backup-inspect.js.map +1 -0
- package/dist/cli/commands/backup.d.ts +23 -0
- package/dist/cli/commands/backup.d.ts.map +1 -0
- package/dist/cli/commands/backup.js +564 -0
- package/dist/cli/commands/backup.js.map +1 -0
- package/dist/cli/commands/blockers.d.ts +20 -0
- package/dist/cli/commands/blockers.d.ts.map +1 -0
- package/dist/cli/commands/blockers.js +31 -0
- package/dist/cli/commands/blockers.js.map +1 -0
- package/dist/cli/commands/brain.d.ts +37 -0
- package/dist/cli/commands/brain.d.ts.map +1 -0
- package/dist/cli/commands/brain.js +445 -0
- package/dist/cli/commands/brain.js.map +1 -0
- package/dist/cli/commands/briefing.d.ts +52 -0
- package/dist/cli/commands/briefing.d.ts.map +1 -0
- package/dist/cli/commands/briefing.js +69 -0
- package/dist/cli/commands/briefing.js.map +1 -0
- package/dist/cli/commands/bug.d.ts +61 -0
- package/dist/cli/commands/bug.d.ts.map +1 -0
- package/dist/cli/commands/bug.js +198 -0
- package/dist/cli/commands/bug.js.map +1 -0
- package/dist/cli/commands/cancel.d.ts +26 -0
- package/dist/cli/commands/cancel.d.ts.map +1 -0
- package/dist/cli/commands/cancel.js +40 -0
- package/dist/cli/commands/cancel.js.map +1 -0
- package/dist/cli/commands/cant.d.ts +13 -0
- package/dist/cli/commands/cant.d.ts.map +1 -0
- package/dist/cli/commands/cant.js +245 -0
- package/dist/cli/commands/cant.js.map +1 -0
- package/dist/cli/commands/chain.d.ts +24 -0
- package/dist/cli/commands/chain.d.ts.map +1 -0
- package/dist/cli/commands/chain.js +116 -0
- package/dist/cli/commands/chain.js.map +1 -0
- package/dist/cli/commands/check.d.ts +18 -0
- package/dist/cli/commands/check.d.ts.map +1 -0
- package/dist/cli/commands/check.js +280 -0
- package/dist/cli/commands/check.js.map +1 -0
- package/dist/cli/commands/checkpoint.d.ts +27 -0
- package/dist/cli/commands/checkpoint.d.ts.map +1 -0
- package/dist/cli/commands/checkpoint.js +105 -0
- package/dist/cli/commands/checkpoint.js.map +1 -0
- package/dist/cli/commands/claim.d.ts +35 -0
- package/dist/cli/commands/claim.d.ts.map +1 -0
- package/dist/cli/commands/claim.js +35 -0
- package/dist/cli/commands/claim.js.map +1 -0
- package/dist/cli/commands/code.d.ts +22 -0
- package/dist/cli/commands/code.d.ts.map +1 -0
- package/dist/cli/commands/code.js +161 -0
- package/dist/cli/commands/code.js.map +1 -0
- package/dist/cli/commands/complete.d.ts +58 -0
- package/dist/cli/commands/complete.d.ts.map +1 -0
- package/dist/cli/commands/complete.js +83 -0
- package/dist/cli/commands/complete.js.map +1 -0
- package/dist/cli/commands/complexity.d.ts +13 -0
- package/dist/cli/commands/complexity.d.ts.map +1 -0
- package/dist/cli/commands/complexity.js +32 -0
- package/dist/cli/commands/complexity.js.map +1 -0
- package/dist/cli/commands/compliance.d.ts +27 -0
- package/dist/cli/commands/compliance.d.ts.map +1 -0
- package/dist/cli/commands/compliance.js +233 -0
- package/dist/cli/commands/compliance.js.map +1 -0
- package/dist/cli/commands/conduit.d.ts +28 -0
- package/dist/cli/commands/conduit.d.ts.map +1 -0
- package/dist/cli/commands/conduit.js +279 -0
- package/dist/cli/commands/conduit.js.map +1 -0
- package/dist/cli/commands/config.d.ts +25 -0
- package/dist/cli/commands/config.d.ts.map +1 -0
- package/dist/cli/commands/config.js +132 -0
- package/dist/cli/commands/config.js.map +1 -0
- package/dist/cli/commands/consensus.d.ts +21 -0
- package/dist/cli/commands/consensus.d.ts.map +1 -0
- package/dist/cli/commands/consensus.js +100 -0
- package/dist/cli/commands/consensus.js.map +1 -0
- package/dist/cli/commands/context.d.ts +19 -0
- package/dist/cli/commands/context.d.ts.map +1 -0
- package/dist/cli/commands/context.js +111 -0
- package/dist/cli/commands/context.js.map +1 -0
- package/dist/cli/commands/contribution.d.ts +21 -0
- package/dist/cli/commands/contribution.d.ts.map +1 -0
- package/dist/cli/commands/contribution.js +90 -0
- package/dist/cli/commands/contribution.js.map +1 -0
- package/dist/cli/commands/current.d.ts +18 -0
- package/dist/cli/commands/current.d.ts.map +1 -0
- package/dist/cli/commands/current.js +28 -0
- package/dist/cli/commands/current.js.map +1 -0
- package/dist/cli/commands/daemon.d.ts +36 -0
- package/dist/cli/commands/daemon.d.ts.map +1 -0
- package/dist/cli/commands/daemon.js +223 -0
- package/dist/cli/commands/daemon.js.map +1 -0
- package/dist/cli/commands/dash.d.ts +23 -0
- package/dist/cli/commands/dash.d.ts.map +1 -0
- package/dist/cli/commands/dash.js +38 -0
- package/dist/cli/commands/dash.js.map +1 -0
- package/dist/cli/commands/decomposition.d.ts +13 -0
- package/dist/cli/commands/decomposition.d.ts.map +1 -0
- package/dist/cli/commands/decomposition.js +92 -0
- package/dist/cli/commands/decomposition.js.map +1 -0
- package/dist/cli/commands/delete.d.ts +29 -0
- package/dist/cli/commands/delete.d.ts.map +1 -0
- package/dist/cli/commands/delete.js +55 -0
- package/dist/cli/commands/delete.js.map +1 -0
- package/dist/cli/commands/deps.d.ts +45 -0
- package/dist/cli/commands/deps.d.ts.map +1 -0
- package/dist/cli/commands/deps.js +170 -0
- package/dist/cli/commands/deps.js.map +1 -0
- package/dist/cli/commands/detect-drift.d.ts +23 -0
- package/dist/cli/commands/detect-drift.d.ts.map +1 -0
- package/dist/cli/commands/detect-drift.js +440 -0
- package/dist/cli/commands/detect-drift.js.map +1 -0
- package/dist/cli/commands/detect.d.ts +3 -0
- package/dist/cli/commands/detect.d.ts.map +1 -0
- package/dist/cli/commands/detect.js +14 -0
- package/dist/cli/commands/detect.js.map +1 -0
- package/dist/cli/commands/diagnostics.d.ts +19 -0
- package/dist/cli/commands/diagnostics.d.ts.map +1 -0
- package/dist/cli/commands/diagnostics.js +109 -0
- package/dist/cli/commands/diagnostics.js.map +1 -0
- package/dist/cli/commands/docs.d.ts +25 -0
- package/dist/cli/commands/docs.d.ts.map +1 -0
- package/dist/cli/commands/docs.js +798 -0
- package/dist/cli/commands/docs.js.map +1 -0
- package/dist/cli/commands/doctor-projects.d.ts +101 -0
- package/dist/cli/commands/doctor-projects.d.ts.map +1 -0
- package/dist/cli/commands/doctor-projects.js +188 -0
- package/dist/cli/commands/doctor-projects.js.map +1 -0
- package/dist/cli/commands/doctor.d.ts +66 -0
- package/dist/cli/commands/doctor.d.ts.map +1 -0
- package/dist/cli/commands/doctor.js +178 -0
- package/dist/cli/commands/doctor.js.map +1 -0
- package/dist/cli/commands/dynamic.d.ts +15 -0
- package/dist/cli/commands/dynamic.d.ts.map +1 -0
- package/dist/cli/commands/dynamic.js +21 -0
- package/dist/cli/commands/dynamic.js.map +1 -0
- package/dist/cli/commands/exists.d.ts +13 -0
- package/dist/cli/commands/exists.d.ts.map +1 -0
- package/dist/cli/commands/exists.js +40 -0
- package/dist/cli/commands/exists.js.map +1 -0
- package/dist/cli/commands/export-tasks.d.ts +46 -0
- package/dist/cli/commands/export-tasks.d.ts.map +1 -0
- package/dist/cli/commands/export-tasks.js +81 -0
- package/dist/cli/commands/export-tasks.js.map +1 -0
- package/dist/cli/commands/export.d.ts +35 -0
- package/dist/cli/commands/export.d.ts.map +1 -0
- package/dist/cli/commands/export.js +68 -0
- package/dist/cli/commands/export.js.map +1 -0
- package/dist/cli/commands/find.d.ts +54 -0
- package/dist/cli/commands/find.d.ts.map +1 -0
- package/dist/cli/commands/find.js +92 -0
- package/dist/cli/commands/find.js.map +1 -0
- package/dist/cli/commands/gc.d.ts +25 -0
- package/dist/cli/commands/gc.d.ts.map +1 -0
- package/dist/cli/commands/gc.js +165 -0
- package/dist/cli/commands/gc.js.map +1 -0
- package/dist/cli/commands/generate-changelog.d.ts +30 -0
- package/dist/cli/commands/generate-changelog.d.ts.map +1 -0
- package/dist/cli/commands/generate-changelog.js +270 -0
- package/dist/cli/commands/generate-changelog.js.map +1 -0
- package/dist/cli/commands/grade.d.ts +13 -0
- package/dist/cli/commands/grade.d.ts.map +1 -0
- package/dist/cli/commands/grade.js +27 -0
- package/dist/cli/commands/grade.js.map +1 -0
- package/dist/cli/commands/history.d.ts +13 -0
- package/dist/cli/commands/history.d.ts.map +1 -0
- package/dist/cli/commands/history.js +65 -0
- package/dist/cli/commands/history.js.map +1 -0
- package/dist/cli/commands/import-tasks.d.ts +60 -0
- package/dist/cli/commands/import-tasks.d.ts.map +1 -0
- package/dist/cli/commands/import-tasks.js +83 -0
- package/dist/cli/commands/import-tasks.js.map +1 -0
- package/dist/cli/commands/import.d.ts +42 -0
- package/dist/cli/commands/import.d.ts.map +1 -0
- package/dist/cli/commands/import.js +64 -0
- package/dist/cli/commands/import.js.map +1 -0
- package/dist/cli/commands/init.d.ts +65 -0
- package/dist/cli/commands/init.d.ts.map +1 -0
- package/dist/cli/commands/init.js +122 -0
- package/dist/cli/commands/init.js.map +1 -0
- package/dist/cli/commands/inject.d.ts +41 -0
- package/dist/cli/commands/inject.d.ts.map +1 -0
- package/dist/cli/commands/inject.js +56 -0
- package/dist/cli/commands/inject.js.map +1 -0
- package/dist/cli/commands/install-global.d.ts +48 -0
- package/dist/cli/commands/install-global.d.ts.map +1 -0
- package/dist/cli/commands/install-global.js +104 -0
- package/dist/cli/commands/install-global.js.map +1 -0
- package/dist/cli/commands/intelligence.d.ts +21 -0
- package/dist/cli/commands/intelligence.d.ts.map +1 -0
- package/dist/cli/commands/intelligence.js +145 -0
- package/dist/cli/commands/intelligence.js.map +1 -0
- package/dist/cli/commands/issue.d.ts +23 -0
- package/dist/cli/commands/issue.d.ts.map +1 -0
- package/dist/cli/commands/issue.js +152 -0
- package/dist/cli/commands/issue.js.map +1 -0
- package/dist/cli/commands/labels.d.ts +21 -0
- package/dist/cli/commands/labels.d.ts.map +1 -0
- package/dist/cli/commands/labels.js +65 -0
- package/dist/cli/commands/labels.js.map +1 -0
- package/dist/cli/commands/lifecycle.d.ts +25 -0
- package/dist/cli/commands/lifecycle.d.ts.map +1 -0
- package/dist/cli/commands/lifecycle.js +221 -0
- package/dist/cli/commands/lifecycle.js.map +1 -0
- package/dist/cli/commands/list.d.ts +28 -0
- package/dist/cli/commands/list.d.ts.map +1 -0
- package/dist/cli/commands/list.js +81 -0
- package/dist/cli/commands/list.js.map +1 -0
- package/dist/cli/commands/log.d.ts +36 -0
- package/dist/cli/commands/log.d.ts.map +1 -0
- package/dist/cli/commands/log.js +50 -0
- package/dist/cli/commands/log.js.map +1 -0
- package/dist/cli/commands/manifest.d.ts +15 -0
- package/dist/cli/commands/manifest.d.ts.map +1 -0
- package/dist/cli/commands/manifest.js +334 -0
- package/dist/cli/commands/manifest.js.map +1 -0
- package/dist/cli/commands/map.d.ts +25 -0
- package/dist/cli/commands/map.d.ts.map +1 -0
- package/dist/cli/commands/map.js +37 -0
- package/dist/cli/commands/map.js.map +1 -0
- package/dist/cli/commands/memory.d.ts +48 -0
- package/dist/cli/commands/memory.d.ts.map +1 -0
- package/dist/cli/commands/memory.js +2439 -0
- package/dist/cli/commands/memory.js.map +1 -0
- package/dist/cli/commands/migrate-claude-mem.d.ts +23 -0
- package/dist/cli/commands/migrate-claude-mem.d.ts.map +1 -0
- package/dist/cli/commands/migrate-claude-mem.js +181 -0
- package/dist/cli/commands/migrate-claude-mem.js.map +1 -0
- package/dist/cli/commands/next.d.ts +27 -0
- package/dist/cli/commands/next.d.ts.map +1 -0
- package/dist/cli/commands/next.js +40 -0
- package/dist/cli/commands/next.js.map +1 -0
- package/dist/cli/commands/nexus.d.ts +15 -0
- package/dist/cli/commands/nexus.d.ts.map +1 -0
- package/dist/cli/commands/nexus.js +3377 -0
- package/dist/cli/commands/nexus.js.map +1 -0
- package/dist/cli/commands/ops.d.ts +23 -0
- package/dist/cli/commands/ops.d.ts.map +1 -0
- package/dist/cli/commands/ops.js +35 -0
- package/dist/cli/commands/ops.js.map +1 -0
- package/dist/cli/commands/orchestrate.d.ts +48 -0
- package/dist/cli/commands/orchestrate.d.ts.map +1 -0
- package/dist/cli/commands/orchestrate.js +774 -0
- package/dist/cli/commands/orchestrate.js.map +1 -0
- package/dist/cli/commands/otel.d.ts +30 -0
- package/dist/cli/commands/otel.d.ts.map +1 -0
- package/dist/cli/commands/otel.js +193 -0
- package/dist/cli/commands/otel.js.map +1 -0
- package/dist/cli/commands/phase.d.ts +29 -0
- package/dist/cli/commands/phase.d.ts.map +1 -0
- package/dist/cli/commands/phase.js +189 -0
- package/dist/cli/commands/phase.js.map +1 -0
- package/dist/cli/commands/pivot.d.ts +34 -0
- package/dist/cli/commands/pivot.d.ts.map +1 -0
- package/dist/cli/commands/pivot.js +50 -0
- package/dist/cli/commands/pivot.js.map +1 -0
- package/dist/cli/commands/plan.d.ts +17 -0
- package/dist/cli/commands/plan.d.ts.map +1 -0
- package/dist/cli/commands/plan.js +27 -0
- package/dist/cli/commands/plan.js.map +1 -0
- package/dist/cli/commands/playbook.d.ts +26 -0
- package/dist/cli/commands/playbook.d.ts.map +1 -0
- package/dist/cli/commands/playbook.js +220 -0
- package/dist/cli/commands/playbook.js.map +1 -0
- package/dist/cli/commands/promote.d.ts +19 -0
- package/dist/cli/commands/promote.d.ts.map +1 -0
- package/dist/cli/commands/promote.js +27 -0
- package/dist/cli/commands/promote.js.map +1 -0
- package/dist/cli/commands/provider.d.ts +23 -0
- package/dist/cli/commands/provider.d.ts.map +1 -0
- package/dist/cli/commands/provider.js +168 -0
- package/dist/cli/commands/provider.js.map +1 -0
- package/dist/cli/commands/reason.d.ts +18 -0
- package/dist/cli/commands/reason.d.ts.map +1 -0
- package/dist/cli/commands/reason.js +102 -0
- package/dist/cli/commands/reason.js.map +1 -0
- package/dist/cli/commands/reconcile.d.ts +35 -0
- package/dist/cli/commands/reconcile.d.ts.map +1 -0
- package/dist/cli/commands/reconcile.js +102 -0
- package/dist/cli/commands/reconcile.js.map +1 -0
- package/dist/cli/commands/refresh-memory.d.ts +16 -0
- package/dist/cli/commands/refresh-memory.d.ts.map +1 -0
- package/dist/cli/commands/refresh-memory.js +34 -0
- package/dist/cli/commands/refresh-memory.js.map +1 -0
- package/dist/cli/commands/relates.d.ts +19 -0
- package/dist/cli/commands/relates.d.ts.map +1 -0
- package/dist/cli/commands/relates.js +129 -0
- package/dist/cli/commands/relates.js.map +1 -0
- package/dist/cli/commands/release.d.ts +27 -0
- package/dist/cli/commands/release.d.ts.map +1 -0
- package/dist/cli/commands/release.js +300 -0
- package/dist/cli/commands/release.js.map +1 -0
- package/dist/cli/commands/remote.d.ts +49 -0
- package/dist/cli/commands/remote.d.ts.map +1 -0
- package/dist/cli/commands/remote.js +265 -0
- package/dist/cli/commands/remote.js.map +1 -0
- package/dist/cli/commands/reorder.d.ts +31 -0
- package/dist/cli/commands/reorder.d.ts.map +1 -0
- package/dist/cli/commands/reorder.js +57 -0
- package/dist/cli/commands/reorder.js.map +1 -0
- package/dist/cli/commands/reparent.d.ts +27 -0
- package/dist/cli/commands/reparent.d.ts.map +1 -0
- package/dist/cli/commands/reparent.js +36 -0
- package/dist/cli/commands/reparent.js.map +1 -0
- package/dist/cli/commands/req.d.ts +37 -0
- package/dist/cli/commands/req.d.ts.map +1 -0
- package/dist/cli/commands/req.js +121 -0
- package/dist/cli/commands/req.js.map +1 -0
- package/dist/cli/commands/research.d.ts +25 -0
- package/dist/cli/commands/research.d.ts.map +1 -0
- package/dist/cli/commands/research.js +327 -0
- package/dist/cli/commands/research.js.map +1 -0
- package/dist/cli/commands/restore.d.ts +64 -0
- package/dist/cli/commands/restore.d.ts.map +1 -0
- package/dist/cli/commands/restore.js +539 -0
- package/dist/cli/commands/restore.js.map +1 -0
- package/dist/cli/commands/revert.d.ts +79 -0
- package/dist/cli/commands/revert.d.ts.map +1 -0
- package/dist/cli/commands/revert.js +300 -0
- package/dist/cli/commands/revert.js.map +1 -0
- package/dist/cli/commands/roadmap.d.ts +29 -0
- package/dist/cli/commands/roadmap.d.ts.map +1 -0
- package/dist/cli/commands/roadmap.js +43 -0
- package/dist/cli/commands/roadmap.js.map +1 -0
- package/dist/cli/commands/safestop.d.ts +41 -0
- package/dist/cli/commands/safestop.d.ts.map +1 -0
- package/dist/cli/commands/safestop.js +62 -0
- package/dist/cli/commands/safestop.js.map +1 -0
- package/dist/cli/commands/schema.d.ts +44 -0
- package/dist/cli/commands/schema.d.ts.map +1 -0
- package/dist/cli/commands/schema.js +177 -0
- package/dist/cli/commands/schema.js.map +1 -0
- package/dist/cli/commands/self-update.d.ts +81 -0
- package/dist/cli/commands/self-update.d.ts.map +1 -0
- package/dist/cli/commands/self-update.js +483 -0
- package/dist/cli/commands/self-update.js.map +1 -0
- package/dist/cli/commands/sentient.d.ts +44 -0
- package/dist/cli/commands/sentient.d.ts.map +1 -0
- package/dist/cli/commands/sentient.js +687 -0
- package/dist/cli/commands/sentient.js.map +1 -0
- package/dist/cli/commands/sequence.d.ts +15 -0
- package/dist/cli/commands/sequence.d.ts.map +1 -0
- package/dist/cli/commands/sequence.js +68 -0
- package/dist/cli/commands/sequence.js.map +1 -0
- package/dist/cli/commands/session.d.ts +32 -0
- package/dist/cli/commands/session.d.ts.map +1 -0
- package/dist/cli/commands/session.js +583 -0
- package/dist/cli/commands/session.js.map +1 -0
- package/dist/cli/commands/show.d.ts +21 -0
- package/dist/cli/commands/show.d.ts.map +1 -0
- package/dist/cli/commands/show.js +37 -0
- package/dist/cli/commands/show.js.map +1 -0
- package/dist/cli/commands/skills.d.ts +31 -0
- package/dist/cli/commands/skills.d.ts.map +1 -0
- package/dist/cli/commands/skills.js +303 -0
- package/dist/cli/commands/skills.js.map +1 -0
- package/dist/cli/commands/snapshot.d.ts +17 -0
- package/dist/cli/commands/snapshot.d.ts.map +1 -0
- package/dist/cli/commands/snapshot.js +95 -0
- package/dist/cli/commands/snapshot.js.map +1 -0
- package/dist/cli/commands/start.d.ts +21 -0
- package/dist/cli/commands/start.d.ts.map +1 -0
- package/dist/cli/commands/start.js +32 -0
- package/dist/cli/commands/start.js.map +1 -0
- package/dist/cli/commands/stats.d.ts +30 -0
- package/dist/cli/commands/stats.d.ts.map +1 -0
- package/dist/cli/commands/stats.js +71 -0
- package/dist/cli/commands/stats.js.map +1 -0
- package/dist/cli/commands/sticky.d.ts +23 -0
- package/dist/cli/commands/sticky.d.ts.map +1 -0
- package/dist/cli/commands/sticky.js +315 -0
- package/dist/cli/commands/sticky.js.map +1 -0
- package/dist/cli/commands/stop.d.ts +15 -0
- package/dist/cli/commands/stop.d.ts.map +1 -0
- package/dist/cli/commands/stop.js +25 -0
- package/dist/cli/commands/stop.js.map +1 -0
- package/dist/cli/commands/sync.d.ts +25 -0
- package/dist/cli/commands/sync.d.ts.map +1 -0
- package/dist/cli/commands/sync.js +125 -0
- package/dist/cli/commands/sync.js.map +1 -0
- package/dist/cli/commands/testing.d.ts +22 -0
- package/dist/cli/commands/testing.d.ts.map +1 -0
- package/dist/cli/commands/testing.js +111 -0
- package/dist/cli/commands/testing.js.map +1 -0
- package/dist/cli/commands/token.d.ts +22 -0
- package/dist/cli/commands/token.d.ts.map +1 -0
- package/dist/cli/commands/token.js +197 -0
- package/dist/cli/commands/token.js.map +1 -0
- package/dist/cli/commands/transcript.d.ts +32 -0
- package/dist/cli/commands/transcript.d.ts.map +1 -0
- package/dist/cli/commands/transcript.js +526 -0
- package/dist/cli/commands/transcript.js.map +1 -0
- package/dist/cli/commands/update.d.ts +164 -0
- package/dist/cli/commands/update.d.ts.map +1 -0
- package/dist/cli/commands/update.js +234 -0
- package/dist/cli/commands/update.js.map +1 -0
- package/dist/cli/commands/upgrade.d.ts +76 -0
- package/dist/cli/commands/upgrade.d.ts.map +1 -0
- package/dist/cli/commands/upgrade.js +154 -0
- package/dist/cli/commands/upgrade.js.map +1 -0
- package/dist/cli/commands/verify.d.ts +83 -0
- package/dist/cli/commands/verify.d.ts.map +1 -0
- package/dist/cli/commands/verify.js +108 -0
- package/dist/cli/commands/verify.js.map +1 -0
- package/dist/cli/commands/web.d.ts +27 -0
- package/dist/cli/commands/web.d.ts.map +1 -0
- package/dist/cli/commands/web.js +414 -0
- package/dist/cli/commands/web.js.map +1 -0
- package/dist/cli/field-context.d.ts +32 -0
- package/dist/cli/field-context.d.ts.map +1 -0
- package/dist/cli/field-context.js +47 -0
- package/dist/cli/field-context.js.map +1 -0
- package/dist/cli/format-context.d.ts +32 -0
- package/dist/cli/format-context.d.ts.map +1 -0
- package/dist/cli/format-context.js +50 -0
- package/dist/cli/format-context.js.map +1 -0
- package/dist/cli/help-renderer.d.ts +40 -0
- package/dist/cli/help-renderer.d.ts.map +1 -0
- package/dist/cli/help-renderer.js +325 -0
- package/dist/cli/help-renderer.js.map +1 -0
- package/dist/cli/index.d.ts +14 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +1712 -9777
- package/dist/cli/index.js.map +4 -4
- package/dist/cli/infer-files-via-gitnexus.d.ts +12 -0
- package/dist/cli/infer-files-via-gitnexus.d.ts.map +1 -0
- package/dist/cli/infer-files-via-gitnexus.js +12 -0
- package/dist/cli/infer-files-via-gitnexus.js.map +1 -0
- package/dist/cli/lib/did-you-mean.d.ts +30 -0
- package/dist/cli/lib/did-you-mean.d.ts.map +1 -0
- package/dist/cli/lib/did-you-mean.js +63 -0
- package/dist/cli/lib/did-you-mean.js.map +1 -0
- package/dist/cli/lib/registry-args.d.ts +36 -0
- package/dist/cli/lib/registry-args.d.ts.map +1 -0
- package/dist/cli/lib/registry-args.js +37 -0
- package/dist/cli/lib/registry-args.js.map +1 -0
- package/dist/cli/lib/subcommand-guard.d.ts +45 -0
- package/dist/cli/lib/subcommand-guard.d.ts.map +1 -0
- package/dist/cli/lib/subcommand-guard.js +55 -0
- package/dist/cli/lib/subcommand-guard.js.map +1 -0
- package/dist/cli/logger-bootstrap.d.ts +6 -0
- package/dist/cli/logger-bootstrap.d.ts.map +1 -0
- package/dist/cli/logger-bootstrap.js +10 -0
- package/dist/cli/logger-bootstrap.js.map +1 -0
- package/dist/cli/middleware/output-format.d.ts +30 -0
- package/dist/cli/middleware/output-format.d.ts.map +1 -0
- package/dist/cli/middleware/output-format.js +35 -0
- package/dist/cli/middleware/output-format.js.map +1 -0
- package/dist/cli/paths.d.ts +85 -0
- package/dist/cli/paths.d.ts.map +1 -0
- package/dist/cli/paths.js +108 -0
- package/dist/cli/paths.js.map +1 -0
- package/dist/cli/progress.d.ts +89 -0
- package/dist/cli/progress.d.ts.map +1 -0
- package/dist/cli/progress.js +185 -0
- package/dist/cli/progress.js.map +1 -0
- package/dist/cli/renderers/colors.d.ts +32 -0
- package/dist/cli/renderers/colors.d.ts.map +1 -0
- package/dist/cli/renderers/colors.js +141 -0
- package/dist/cli/renderers/colors.js.map +1 -0
- package/dist/cli/renderers/error.d.ts +13 -0
- package/dist/cli/renderers/error.d.ts.map +1 -0
- package/dist/cli/renderers/error.js +42 -0
- package/dist/cli/renderers/error.js.map +1 -0
- package/dist/cli/renderers/index.d.ts +90 -0
- package/dist/cli/renderers/index.d.ts.map +1 -0
- package/dist/cli/renderers/index.js +268 -0
- package/dist/cli/renderers/index.js.map +1 -0
- package/dist/cli/renderers/lafs-validator.d.ts +91 -0
- package/dist/cli/renderers/lafs-validator.d.ts.map +1 -0
- package/dist/cli/renderers/lafs-validator.js +176 -0
- package/dist/cli/renderers/lafs-validator.js.map +1 -0
- package/dist/cli/renderers/normalizer.d.ts +21 -0
- package/dist/cli/renderers/normalizer.d.ts.map +1 -0
- package/dist/cli/renderers/normalizer.js +106 -0
- package/dist/cli/renderers/normalizer.js.map +1 -0
- package/dist/cli/renderers/system.d.ts +110 -0
- package/dist/cli/renderers/system.d.ts.map +1 -0
- package/dist/cli/renderers/system.js +662 -0
- package/dist/cli/renderers/system.js.map +1 -0
- package/dist/cli/renderers/tasks.d.ts +28 -0
- package/dist/cli/renderers/tasks.d.ts.map +1 -0
- package/dist/cli/renderers/tasks.js +306 -0
- package/dist/cli/renderers/tasks.js.map +1 -0
- package/dist/cli/tree-context.d.ts +53 -0
- package/dist/cli/tree-context.d.ts.map +1 -0
- package/dist/cli/tree-context.js +43 -0
- package/dist/cli/tree-context.js.map +1 -0
- package/dist/dispatch/adapters/cli.d.ts +67 -0
- package/dist/dispatch/adapters/cli.d.ts.map +1 -0
- package/dist/dispatch/adapters/cli.js +331 -0
- package/dist/dispatch/adapters/cli.js.map +1 -0
- package/dist/dispatch/adapters/typed.d.ts +362 -0
- package/dist/dispatch/adapters/typed.d.ts.map +1 -0
- package/dist/dispatch/adapters/typed.js +278 -0
- package/dist/dispatch/adapters/typed.js.map +1 -0
- package/dist/dispatch/context/session-context.d.ts +108 -0
- package/dist/dispatch/context/session-context.d.ts.map +1 -0
- package/dist/dispatch/context/session-context.js +111 -0
- package/dist/dispatch/context/session-context.js.map +1 -0
- package/dist/dispatch/dispatcher.d.ts +37 -0
- package/dist/dispatch/dispatcher.d.ts.map +1 -0
- package/dist/dispatch/dispatcher.js +172 -0
- package/dist/dispatch/dispatcher.js.map +1 -0
- package/dist/dispatch/domains/_base.d.ts +104 -0
- package/dist/dispatch/domains/_base.d.ts.map +1 -0
- package/dist/dispatch/domains/_base.js +147 -0
- package/dist/dispatch/domains/_base.js.map +1 -0
- package/dist/dispatch/domains/_meta.d.ts +23 -0
- package/dist/dispatch/domains/_meta.d.ts.map +1 -0
- package/dist/dispatch/domains/_meta.js +25 -0
- package/dist/dispatch/domains/_meta.js.map +1 -0
- package/dist/dispatch/domains/_routing.d.ts +8 -0
- package/dist/dispatch/domains/_routing.d.ts.map +1 -0
- package/dist/dispatch/domains/_routing.js +20 -0
- package/dist/dispatch/domains/_routing.js.map +1 -0
- package/dist/dispatch/domains/admin/smoke-provider.d.ts +54 -0
- package/dist/dispatch/domains/admin/smoke-provider.d.ts.map +1 -0
- package/dist/dispatch/domains/admin/smoke-provider.js +309 -0
- package/dist/dispatch/domains/admin/smoke-provider.js.map +1 -0
- package/dist/dispatch/domains/admin.d.ts +51 -0
- package/dist/dispatch/domains/admin.d.ts.map +1 -0
- package/dist/dispatch/domains/admin.js +1163 -0
- package/dist/dispatch/domains/admin.js.map +1 -0
- package/dist/dispatch/domains/check/canon.d.ts +65 -0
- package/dist/dispatch/domains/check/canon.d.ts.map +1 -0
- package/dist/dispatch/domains/check/canon.js +193 -0
- package/dist/dispatch/domains/check/canon.js.map +1 -0
- package/dist/dispatch/domains/check.d.ts +37 -0
- package/dist/dispatch/domains/check.d.ts.map +1 -0
- package/dist/dispatch/domains/check.js +562 -0
- package/dist/dispatch/domains/check.js.map +1 -0
- package/dist/dispatch/domains/conduit.d.ts +61 -0
- package/dist/dispatch/domains/conduit.d.ts.map +1 -0
- package/dist/dispatch/domains/conduit.js +609 -0
- package/dist/dispatch/domains/conduit.js.map +1 -0
- package/dist/dispatch/domains/diagnostics.d.ts +25 -0
- package/dist/dispatch/domains/diagnostics.d.ts.map +1 -0
- package/dist/dispatch/domains/diagnostics.js +82 -0
- package/dist/dispatch/domains/diagnostics.js.map +1 -0
- package/dist/dispatch/domains/docs.d.ts +63 -0
- package/dist/dispatch/domains/docs.d.ts.map +1 -0
- package/dist/dispatch/domains/docs.js +539 -0
- package/dist/dispatch/domains/docs.js.map +1 -0
- package/dist/dispatch/domains/index.d.ts +33 -0
- package/dist/dispatch/domains/index.d.ts.map +1 -0
- package/dist/dispatch/domains/index.js +58 -0
- package/dist/dispatch/domains/index.js.map +1 -0
- package/dist/dispatch/domains/intelligence.d.ts +26 -0
- package/dist/dispatch/domains/intelligence.d.ts.map +1 -0
- package/dist/dispatch/domains/intelligence.js +154 -0
- package/dist/dispatch/domains/intelligence.js.map +1 -0
- package/dist/dispatch/domains/ivtr.d.ts +182 -0
- package/dist/dispatch/domains/ivtr.d.ts.map +1 -0
- package/dist/dispatch/domains/ivtr.js +430 -0
- package/dist/dispatch/domains/ivtr.js.map +1 -0
- package/dist/dispatch/domains/memory.d.ts +22 -0
- package/dist/dispatch/domains/memory.d.ts.map +1 -0
- package/dist/dispatch/domains/memory.js +1281 -0
- package/dist/dispatch/domains/memory.js.map +1 -0
- package/dist/dispatch/domains/nexus.d.ts +78 -0
- package/dist/dispatch/domains/nexus.d.ts.map +1 -0
- package/dist/dispatch/domains/nexus.js +938 -0
- package/dist/dispatch/domains/nexus.js.map +1 -0
- package/dist/dispatch/domains/orchestrate.d.ts +307 -0
- package/dist/dispatch/domains/orchestrate.d.ts.map +1 -0
- package/dist/dispatch/domains/orchestrate.js +986 -0
- package/dist/dispatch/domains/orchestrate.js.map +1 -0
- package/dist/dispatch/domains/pipeline.d.ts +276 -0
- package/dist/dispatch/domains/pipeline.d.ts.map +1 -0
- package/dist/dispatch/domains/pipeline.js +689 -0
- package/dist/dispatch/domains/pipeline.js.map +1 -0
- package/dist/dispatch/domains/playbook.d.ts +131 -0
- package/dist/dispatch/domains/playbook.d.ts.map +1 -0
- package/dist/dispatch/domains/playbook.js +633 -0
- package/dist/dispatch/domains/playbook.js.map +1 -0
- package/dist/dispatch/domains/release.d.ts +97 -0
- package/dist/dispatch/domains/release.d.ts.map +1 -0
- package/dist/dispatch/domains/release.js +177 -0
- package/dist/dispatch/domains/release.js.map +1 -0
- package/dist/dispatch/domains/sentient.d.ts +60 -0
- package/dist/dispatch/domains/sentient.d.ts.map +1 -0
- package/dist/dispatch/domains/sentient.js +270 -0
- package/dist/dispatch/domains/sentient.js.map +1 -0
- package/dist/dispatch/domains/session.d.ts +49 -0
- package/dist/dispatch/domains/session.d.ts.map +1 -0
- package/dist/dispatch/domains/session.js +459 -0
- package/dist/dispatch/domains/session.js.map +1 -0
- package/dist/dispatch/domains/sticky.d.ts +82 -0
- package/dist/dispatch/domains/sticky.d.ts.map +1 -0
- package/dist/dispatch/domains/sticky.js +287 -0
- package/dist/dispatch/domains/sticky.js.map +1 -0
- package/dist/dispatch/domains/tasks.d.ts +58 -0
- package/dist/dispatch/domains/tasks.d.ts.map +1 -0
- package/dist/dispatch/domains/tasks.js +497 -0
- package/dist/dispatch/domains/tasks.js.map +1 -0
- package/dist/dispatch/domains/tools.d.ts +37 -0
- package/dist/dispatch/domains/tools.d.ts.map +1 -0
- package/dist/dispatch/domains/tools.js +481 -0
- package/dist/dispatch/domains/tools.js.map +1 -0
- package/dist/dispatch/engines/_error.d.ts +114 -0
- package/dist/dispatch/engines/_error.d.ts.map +1 -0
- package/dist/dispatch/engines/_error.js +290 -0
- package/dist/dispatch/engines/_error.js.map +1 -0
- package/dist/dispatch/engines/admin-engine.d.ts +386 -0
- package/dist/dispatch/engines/admin-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/admin-engine.js +270 -0
- package/dist/dispatch/engines/admin-engine.js.map +1 -0
- package/dist/dispatch/engines/code-engine.d.ts +14 -0
- package/dist/dispatch/engines/code-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/code-engine.js +14 -0
- package/dist/dispatch/engines/code-engine.js.map +1 -0
- package/dist/dispatch/engines/codebase-map-engine.d.ts +31 -0
- package/dist/dispatch/engines/codebase-map-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/codebase-map-engine.js +43 -0
- package/dist/dispatch/engines/codebase-map-engine.js.map +1 -0
- package/dist/dispatch/engines/config-engine.d.ts +14 -0
- package/dist/dispatch/engines/config-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/config-engine.js +14 -0
- package/dist/dispatch/engines/config-engine.js.map +1 -0
- package/dist/dispatch/engines/diagnostics-engine.d.ts +13 -0
- package/dist/dispatch/engines/diagnostics-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/diagnostics-engine.js +12 -0
- package/dist/dispatch/engines/diagnostics-engine.js.map +1 -0
- package/dist/dispatch/engines/hooks-engine.d.ts +13 -0
- package/dist/dispatch/engines/hooks-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/hooks-engine.js +12 -0
- package/dist/dispatch/engines/hooks-engine.js.map +1 -0
- package/dist/dispatch/engines/init-engine.d.ts +14 -0
- package/dist/dispatch/engines/init-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/init-engine.js +14 -0
- package/dist/dispatch/engines/init-engine.js.map +1 -0
- package/dist/dispatch/engines/lifecycle-engine.d.ts +13 -0
- package/dist/dispatch/engines/lifecycle-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/lifecycle-engine.js +12 -0
- package/dist/dispatch/engines/lifecycle-engine.js.map +1 -0
- package/dist/dispatch/engines/memory-engine.d.ts +10 -0
- package/dist/dispatch/engines/memory-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/memory-engine.js +10 -0
- package/dist/dispatch/engines/memory-engine.js.map +1 -0
- package/dist/dispatch/engines/nexus-engine.d.ts +603 -0
- package/dist/dispatch/engines/nexus-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/nexus-engine.js +1438 -0
- package/dist/dispatch/engines/nexus-engine.js.map +1 -0
- package/dist/dispatch/engines/orchestrate-engine.d.ts +252 -0
- package/dist/dispatch/engines/orchestrate-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/orchestrate-engine.js +1526 -0
- package/dist/dispatch/engines/orchestrate-engine.js.map +1 -0
- package/dist/dispatch/engines/pipeline-engine.d.ts +13 -0
- package/dist/dispatch/engines/pipeline-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/pipeline-engine.js +12 -0
- package/dist/dispatch/engines/pipeline-engine.js.map +1 -0
- package/dist/dispatch/engines/release-engine.d.ts +13 -0
- package/dist/dispatch/engines/release-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/release-engine.js +13 -0
- package/dist/dispatch/engines/release-engine.js.map +1 -0
- package/dist/dispatch/engines/session-engine.d.ts +15 -0
- package/dist/dispatch/engines/session-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/session-engine.js +12 -0
- package/dist/dispatch/engines/session-engine.js.map +1 -0
- package/dist/dispatch/engines/sticky-engine.d.ts +13 -0
- package/dist/dispatch/engines/sticky-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/sticky-engine.js +12 -0
- package/dist/dispatch/engines/sticky-engine.js.map +1 -0
- package/dist/dispatch/engines/system-engine.d.ts +543 -0
- package/dist/dispatch/engines/system-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/system-engine.js +1278 -0
- package/dist/dispatch/engines/system-engine.js.map +1 -0
- package/dist/dispatch/engines/task-engine.d.ts +1161 -0
- package/dist/dispatch/engines/task-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/task-engine.js +1599 -0
- package/dist/dispatch/engines/task-engine.js.map +1 -0
- package/dist/dispatch/engines/template-parser.d.ts +85 -0
- package/dist/dispatch/engines/template-parser.d.ts.map +1 -0
- package/dist/dispatch/engines/template-parser.js +114 -0
- package/dist/dispatch/engines/template-parser.js.map +1 -0
- package/dist/dispatch/engines/tools-engine.d.ts +13 -0
- package/dist/dispatch/engines/tools-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/tools-engine.js +12 -0
- package/dist/dispatch/engines/tools-engine.js.map +1 -0
- package/dist/dispatch/engines/validate-engine.d.ts +13 -0
- package/dist/dispatch/engines/validate-engine.d.ts.map +1 -0
- package/dist/dispatch/engines/validate-engine.js +13 -0
- package/dist/dispatch/engines/validate-engine.js.map +1 -0
- package/dist/dispatch/index.d.ts +20 -0
- package/dist/dispatch/index.d.ts.map +1 -0
- package/dist/dispatch/index.js +19 -0
- package/dist/dispatch/index.js.map +1 -0
- package/dist/dispatch/lib/background-jobs.d.ts +162 -0
- package/dist/dispatch/lib/background-jobs.d.ts.map +1 -0
- package/dist/dispatch/lib/background-jobs.js +360 -0
- package/dist/dispatch/lib/background-jobs.js.map +1 -0
- package/dist/dispatch/lib/budget.d.ts +36 -0
- package/dist/dispatch/lib/budget.d.ts.map +1 -0
- package/dist/dispatch/lib/budget.js +109 -0
- package/dist/dispatch/lib/budget.js.map +1 -0
- package/dist/dispatch/lib/capability-matrix.d.ts +11 -0
- package/dist/dispatch/lib/capability-matrix.d.ts.map +1 -0
- package/dist/dispatch/lib/capability-matrix.js +10 -0
- package/dist/dispatch/lib/capability-matrix.js.map +1 -0
- package/dist/dispatch/lib/config-loader.d.ts +42 -0
- package/dist/dispatch/lib/config-loader.d.ts.map +1 -0
- package/dist/dispatch/lib/config-loader.js +218 -0
- package/dist/dispatch/lib/config-loader.js.map +1 -0
- package/dist/dispatch/lib/config.d.ts +11 -0
- package/dist/dispatch/lib/config.d.ts.map +1 -0
- package/dist/dispatch/lib/config.js +10 -0
- package/dist/dispatch/lib/config.js.map +1 -0
- package/dist/dispatch/lib/defaults.d.ts +115 -0
- package/dist/dispatch/lib/defaults.d.ts.map +1 -0
- package/dist/dispatch/lib/defaults.js +61 -0
- package/dist/dispatch/lib/defaults.js.map +1 -0
- package/dist/dispatch/lib/engine.d.ts +17 -0
- package/dist/dispatch/lib/engine.d.ts.map +1 -0
- package/dist/dispatch/lib/engine.js +36 -0
- package/dist/dispatch/lib/engine.js.map +1 -0
- package/dist/dispatch/lib/exit-codes.d.ts +35 -0
- package/dist/dispatch/lib/exit-codes.d.ts.map +1 -0
- package/dist/dispatch/lib/exit-codes.js +60 -0
- package/dist/dispatch/lib/exit-codes.js.map +1 -0
- package/dist/dispatch/lib/gateway-meta.d.ts +37 -0
- package/dist/dispatch/lib/gateway-meta.d.ts.map +1 -0
- package/dist/dispatch/lib/gateway-meta.js +50 -0
- package/dist/dispatch/lib/gateway-meta.js.map +1 -0
- package/dist/dispatch/lib/job-manager-accessor.d.ts +9 -0
- package/dist/dispatch/lib/job-manager-accessor.d.ts.map +1 -0
- package/dist/dispatch/lib/job-manager-accessor.js +13 -0
- package/dist/dispatch/lib/job-manager-accessor.js.map +1 -0
- package/dist/dispatch/lib/meta.d.ts +26 -0
- package/dist/dispatch/lib/meta.d.ts.map +1 -0
- package/dist/dispatch/lib/meta.js +37 -0
- package/dist/dispatch/lib/meta.js.map +1 -0
- package/dist/dispatch/lib/param-utils.d.ts +11 -0
- package/dist/dispatch/lib/param-utils.d.ts.map +1 -0
- package/dist/dispatch/lib/param-utils.js +10 -0
- package/dist/dispatch/lib/param-utils.js.map +1 -0
- package/dist/dispatch/lib/projections.d.ts +56 -0
- package/dist/dispatch/lib/projections.d.ts.map +1 -0
- package/dist/dispatch/lib/projections.js +65 -0
- package/dist/dispatch/lib/projections.js.map +1 -0
- package/dist/dispatch/lib/proto-envelope.d.ts +56 -0
- package/dist/dispatch/lib/proto-envelope.d.ts.map +1 -0
- package/dist/dispatch/lib/proto-envelope.js +17 -0
- package/dist/dispatch/lib/proto-envelope.js.map +1 -0
- package/dist/dispatch/lib/schema-utils.d.ts +39 -0
- package/dist/dispatch/lib/schema-utils.d.ts.map +1 -0
- package/dist/dispatch/lib/schema-utils.js +88 -0
- package/dist/dispatch/lib/schema-utils.js.map +1 -0
- package/dist/dispatch/lib/security.d.ts +11 -0
- package/dist/dispatch/lib/security.d.ts.map +1 -0
- package/dist/dispatch/lib/security.js +10 -0
- package/dist/dispatch/lib/security.js.map +1 -0
- package/dist/dispatch/middleware/audit.d.ts +23 -0
- package/dist/dispatch/middleware/audit.d.ts.map +1 -0
- package/dist/dispatch/middleware/audit.js +169 -0
- package/dist/dispatch/middleware/audit.js.map +1 -0
- package/dist/dispatch/middleware/field-filter.d.ts +25 -0
- package/dist/dispatch/middleware/field-filter.d.ts.map +1 -0
- package/dist/dispatch/middleware/field-filter.js +70 -0
- package/dist/dispatch/middleware/field-filter.js.map +1 -0
- package/dist/dispatch/middleware/pipeline.d.ts +33 -0
- package/dist/dispatch/middleware/pipeline.d.ts.map +1 -0
- package/dist/dispatch/middleware/pipeline.js +60 -0
- package/dist/dispatch/middleware/pipeline.js.map +1 -0
- package/dist/dispatch/middleware/projection.d.ts +35 -0
- package/dist/dispatch/middleware/projection.d.ts.map +1 -0
- package/dist/dispatch/middleware/projection.js +146 -0
- package/dist/dispatch/middleware/projection.js.map +1 -0
- package/dist/dispatch/middleware/protocol-enforcement.d.ts +30 -0
- package/dist/dispatch/middleware/protocol-enforcement.d.ts.map +1 -0
- package/dist/dispatch/middleware/protocol-enforcement.js +56 -0
- package/dist/dispatch/middleware/protocol-enforcement.js.map +1 -0
- package/dist/dispatch/middleware/rate-limiter.d.ts +72 -0
- package/dist/dispatch/middleware/rate-limiter.d.ts.map +1 -0
- package/dist/dispatch/middleware/rate-limiter.js +127 -0
- package/dist/dispatch/middleware/rate-limiter.js.map +1 -0
- package/dist/dispatch/middleware/sanitizer.d.ts +24 -0
- package/dist/dispatch/middleware/sanitizer.d.ts.map +1 -0
- package/dist/dispatch/middleware/sanitizer.js +56 -0
- package/dist/dispatch/middleware/sanitizer.js.map +1 -0
- package/dist/dispatch/middleware/session-resolver.d.ts +26 -0
- package/dist/dispatch/middleware/session-resolver.d.ts.map +1 -0
- package/dist/dispatch/middleware/session-resolver.js +65 -0
- package/dist/dispatch/middleware/session-resolver.js.map +1 -0
- package/dist/dispatch/middleware/telemetry.d.ts +21 -0
- package/dist/dispatch/middleware/telemetry.d.ts.map +1 -0
- package/dist/dispatch/middleware/telemetry.js +50 -0
- package/dist/dispatch/middleware/telemetry.js.map +1 -0
- package/dist/dispatch/middleware/verification-gates.d.ts +22 -0
- package/dist/dispatch/middleware/verification-gates.d.ts.map +1 -0
- package/dist/dispatch/middleware/verification-gates.js +59 -0
- package/dist/dispatch/middleware/verification-gates.js.map +1 -0
- package/dist/dispatch/registry.d.ts +91 -0
- package/dist/dispatch/registry.d.ts.map +1 -0
- package/dist/dispatch/registry.js +6430 -0
- package/dist/dispatch/registry.js.map +1 -0
- package/dist/dispatch/types.d.ts +150 -0
- package/dist/dispatch/types.d.ts.map +1 -0
- package/dist/dispatch/types.js +38 -0
- package/dist/dispatch/types.js.map +1 -0
- package/dist/migrations/2026-04-25-t991-parent-link-repair.d.ts +88 -0
- package/dist/migrations/2026-04-25-t991-parent-link-repair.d.ts.map +1 -0
- package/dist/migrations/2026-04-25-t991-parent-link-repair.js +76 -0
- package/dist/migrations/2026-04-25-t991-parent-link-repair.js.map +1 -0
- package/package.json +9 -9
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Backfill audit columns (modified_by / session_id) for pre-ADR-051 completed tasks.
|
|
3
|
+
*
|
|
4
|
+
* 176 completed tasks shipped before ADR-051 have `modified_by=NULL` and
|
|
5
|
+
* `session_id=NULL`. This module uses the T1322 `reconstructLineage` SDK
|
|
6
|
+
* to mine git history for Co-Authored-By trailers, infers the modifying agent,
|
|
7
|
+
* and writes the result back via `accessor.updateTaskFields`.
|
|
8
|
+
*
|
|
9
|
+
* **Inference strategy (in order)**:
|
|
10
|
+
* 1. Get direct commits via `reconstructLineage(taskId, repoRoot)`.
|
|
11
|
+
* 2. For each direct commit SHA, fetch the full commit body and parse
|
|
12
|
+
* `Co-Authored-By:` trailers → agent name.
|
|
13
|
+
* 3. Use the earliest Co-Authored-By agent as `modified_by`.
|
|
14
|
+
* 4. Match `completedAt` against known sessions (±60 min window).
|
|
15
|
+
* 5. Fall back to `"unknown-pre-adr-051"` when no evidence is found.
|
|
16
|
+
*
|
|
17
|
+
* Security: git subprocess uses `execFileSync` with strict `argv` arrays —
|
|
18
|
+
* no shell interpolation or user-controlled string concatenation in the
|
|
19
|
+
* command string.
|
|
20
|
+
*
|
|
21
|
+
* **Idempotency**: tasks already having a non-null `modified_by` are skipped.
|
|
22
|
+
*
|
|
23
|
+
* @task T1321
|
|
24
|
+
* @epic T1415
|
|
25
|
+
*/
|
|
26
|
+
/** Outcome record for a single task. */
|
|
27
|
+
export interface AuditColumnBackfillEntry {
|
|
28
|
+
/** Task ID. */
|
|
29
|
+
taskId: string;
|
|
30
|
+
/** Task title (for human-readable reports). */
|
|
31
|
+
title: string;
|
|
32
|
+
/** Inferred agent name, or null on no-evidence gap. */
|
|
33
|
+
modifiedBy: string | null;
|
|
34
|
+
/** Inferred session ID, or null. */
|
|
35
|
+
sessionId: string | null;
|
|
36
|
+
/** True if git evidence was found (at least one direct commit). */
|
|
37
|
+
hasGitEvidence: boolean;
|
|
38
|
+
/** Number of direct commits found. */
|
|
39
|
+
directCommitCount: number;
|
|
40
|
+
/** The Co-Authored-By value extracted from git, if any. */
|
|
41
|
+
coAuthoredBy: string | null;
|
|
42
|
+
/** True when this task was skipped because modified_by was already set. */
|
|
43
|
+
alreadySet: boolean;
|
|
44
|
+
/** True when changes were written (not dry-run, not already-set). */
|
|
45
|
+
written: boolean;
|
|
46
|
+
/** Error message if something went wrong. */
|
|
47
|
+
error?: string;
|
|
48
|
+
}
|
|
49
|
+
/** Summary returned by `backfillAuditColumns`. */
|
|
50
|
+
export interface AuditColumnBackfillResult {
|
|
51
|
+
/** True when run in preview mode (no writes). */
|
|
52
|
+
dryRun: boolean;
|
|
53
|
+
/** Total tasks in scope (done + archived with null modified_by). */
|
|
54
|
+
tasksInScope: number;
|
|
55
|
+
/** Tasks already having modified_by — skipped. */
|
|
56
|
+
alreadySet: number;
|
|
57
|
+
/** Tasks where git evidence was found and modified_by was inferred. */
|
|
58
|
+
inferred: number;
|
|
59
|
+
/** Tasks where no git evidence existed — fell back to unknown marker. */
|
|
60
|
+
gapCount: number;
|
|
61
|
+
/** IDs of gap tasks (no inference possible). */
|
|
62
|
+
gapTaskIds: string[];
|
|
63
|
+
/** Full per-task results. */
|
|
64
|
+
entries: AuditColumnBackfillEntry[];
|
|
65
|
+
}
|
|
66
|
+
/** Options for `backfillAuditColumns`. */
|
|
67
|
+
export interface AuditColumnBackfillOptions {
|
|
68
|
+
/** Preview mode: compute inference but do not write. Default: false. */
|
|
69
|
+
dryRun?: boolean;
|
|
70
|
+
/** Restrict processing to these task IDs (default: all eligible tasks). */
|
|
71
|
+
taskIds?: string[];
|
|
72
|
+
/** Absolute path to the git repo root. Defaults to projectRoot. */
|
|
73
|
+
repoRoot?: string;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Backfill `modified_by` and `session_id` for pre-ADR-051 completed tasks.
|
|
77
|
+
*
|
|
78
|
+
* Processes all tasks whose `status` is `done` or `archived` and whose
|
|
79
|
+
* `provenance.modifiedBy` is null. For each, calls `reconstructLineage` to
|
|
80
|
+
* mine git commit history, extracts the `Co-Authored-By` agent, and writes
|
|
81
|
+
* the inferred values via `accessor.updateTaskFields`.
|
|
82
|
+
*
|
|
83
|
+
* Tasks with no git evidence receive the fallback marker
|
|
84
|
+
* `"unknown-pre-adr-051"` as `modified_by` so they are no longer in the
|
|
85
|
+
* null cohort (and the gap is documented).
|
|
86
|
+
*
|
|
87
|
+
* @param projectRoot - Absolute path to the CLEO project root.
|
|
88
|
+
* @param options - Backfill options (dryRun, taskIds, repoRoot).
|
|
89
|
+
* @returns Full summary including per-task entries and gap list.
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* ```ts
|
|
93
|
+
* // Dry run — preview only
|
|
94
|
+
* const result = await backfillAuditColumns('/my/project', { dryRun: true });
|
|
95
|
+
* console.log(`Would backfill ${result.inferred} tasks, ${result.gapCount} gaps`);
|
|
96
|
+
*
|
|
97
|
+
* // Apply
|
|
98
|
+
* await backfillAuditColumns('/my/project');
|
|
99
|
+
* ```
|
|
100
|
+
*
|
|
101
|
+
* @task T1321
|
|
102
|
+
* @epic T1415
|
|
103
|
+
*/
|
|
104
|
+
export declare function backfillAuditColumns(projectRoot: string, options?: AuditColumnBackfillOptions): Promise<AuditColumnBackfillResult>;
|
|
105
|
+
//# sourceMappingURL=audit-columns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-columns.d.ts","sourceRoot":"","sources":["../../src/backfill/audit-columns.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;G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GAAE,0BAA+B,GACvC,OAAO,CAAC,yBAAyB,CAAC,CAuIpC"}
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Backfill audit columns (modified_by / session_id) for pre-ADR-051 completed tasks.
|
|
3
|
+
*
|
|
4
|
+
* 176 completed tasks shipped before ADR-051 have `modified_by=NULL` and
|
|
5
|
+
* `session_id=NULL`. This module uses the T1322 `reconstructLineage` SDK
|
|
6
|
+
* to mine git history for Co-Authored-By trailers, infers the modifying agent,
|
|
7
|
+
* and writes the result back via `accessor.updateTaskFields`.
|
|
8
|
+
*
|
|
9
|
+
* **Inference strategy (in order)**:
|
|
10
|
+
* 1. Get direct commits via `reconstructLineage(taskId, repoRoot)`.
|
|
11
|
+
* 2. For each direct commit SHA, fetch the full commit body and parse
|
|
12
|
+
* `Co-Authored-By:` trailers → agent name.
|
|
13
|
+
* 3. Use the earliest Co-Authored-By agent as `modified_by`.
|
|
14
|
+
* 4. Match `completedAt` against known sessions (±60 min window).
|
|
15
|
+
* 5. Fall back to `"unknown-pre-adr-051"` when no evidence is found.
|
|
16
|
+
*
|
|
17
|
+
* Security: git subprocess uses `execFileSync` with strict `argv` arrays —
|
|
18
|
+
* no shell interpolation or user-controlled string concatenation in the
|
|
19
|
+
* command string.
|
|
20
|
+
*
|
|
21
|
+
* **Idempotency**: tasks already having a non-null `modified_by` are skipped.
|
|
22
|
+
*
|
|
23
|
+
* @task T1321
|
|
24
|
+
* @epic T1415
|
|
25
|
+
*/
|
|
26
|
+
import { execFileSync } from 'node:child_process';
|
|
27
|
+
import { getAccessor, reconstructLineage } from '@cleocode/core/internal';
|
|
28
|
+
// ---------------------------------------------------------------------------
|
|
29
|
+
// Internal helpers — git subprocess (strict argv, no shell interpolation)
|
|
30
|
+
// ---------------------------------------------------------------------------
|
|
31
|
+
/**
|
|
32
|
+
* Run a git command with strict argv (no shell interpolation).
|
|
33
|
+
*
|
|
34
|
+
* @param cwd - Working directory.
|
|
35
|
+
* @param args - Argument list passed directly to git.
|
|
36
|
+
* @returns stdout as a trimmed UTF-8 string, or `""` on error.
|
|
37
|
+
*/
|
|
38
|
+
function runGit(cwd, args) {
|
|
39
|
+
try {
|
|
40
|
+
const output = execFileSync('git', [...args], {
|
|
41
|
+
cwd,
|
|
42
|
+
encoding: 'utf-8',
|
|
43
|
+
stdio: ['pipe', 'pipe', 'pipe'],
|
|
44
|
+
maxBuffer: 4 * 1024 * 1024,
|
|
45
|
+
});
|
|
46
|
+
return output.trim();
|
|
47
|
+
}
|
|
48
|
+
catch {
|
|
49
|
+
return '';
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Fetch the full commit body for a SHA and extract `Co-Authored-By:` trailers.
|
|
54
|
+
*
|
|
55
|
+
* Returns the first Co-Authored-By name found (e.g. `"Claude Sonnet 4.6"`),
|
|
56
|
+
* or `null` when none is present.
|
|
57
|
+
*
|
|
58
|
+
* @param repoRoot - Absolute path to the git repository.
|
|
59
|
+
* @param sha - Full commit SHA.
|
|
60
|
+
*/
|
|
61
|
+
function extractCoAuthoredBy(repoRoot, sha) {
|
|
62
|
+
const body = runGit(repoRoot, ['log', '-1', '--format=%B', sha]);
|
|
63
|
+
if (!body)
|
|
64
|
+
return null;
|
|
65
|
+
for (const line of body.split('\n')) {
|
|
66
|
+
const trimmed = line.trim();
|
|
67
|
+
// Match both "Co-Authored-By:" and "Co-authored-by:" (case-insensitive)
|
|
68
|
+
const match = trimmed.match(/^Co-Authored-By:\s*(.+?)\s*<[^>]+>\s*$/i);
|
|
69
|
+
if (match?.[1]) {
|
|
70
|
+
return match[1].trim();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return null;
|
|
74
|
+
}
|
|
75
|
+
// ---------------------------------------------------------------------------
|
|
76
|
+
// Session lookup helpers
|
|
77
|
+
// ---------------------------------------------------------------------------
|
|
78
|
+
/**
|
|
79
|
+
* Find a session whose `endedAt` or `startedAt` window overlaps the given
|
|
80
|
+
* task `completedAt` timestamp (±60 minutes tolerance).
|
|
81
|
+
*
|
|
82
|
+
* Returns the session ID string, or `null` when no match is found.
|
|
83
|
+
*
|
|
84
|
+
* @param sessions - All sessions loaded from the accessor.
|
|
85
|
+
* @param completedAt - ISO-8601 timestamp of when the task was completed.
|
|
86
|
+
*/
|
|
87
|
+
function findSessionForCompletedAt(sessions, completedAt) {
|
|
88
|
+
if (!completedAt)
|
|
89
|
+
return null;
|
|
90
|
+
const completedMs = Date.parse(completedAt);
|
|
91
|
+
if (Number.isNaN(completedMs))
|
|
92
|
+
return null;
|
|
93
|
+
const WINDOW_MS = 60 * 60 * 1000; // 60 minutes
|
|
94
|
+
for (const session of sessions) {
|
|
95
|
+
const startMs = Date.parse(session.startedAt);
|
|
96
|
+
const endMs = session.endedAt ? Date.parse(session.endedAt) : null;
|
|
97
|
+
// Task was completed inside or near this session's time range
|
|
98
|
+
if (!Number.isNaN(startMs)) {
|
|
99
|
+
const sessionEnd = endMs ?? startMs + 24 * 60 * 60 * 1000; // 24h fallback
|
|
100
|
+
if (completedMs >= startMs - WINDOW_MS && completedMs <= sessionEnd + WINDOW_MS) {
|
|
101
|
+
return session.id;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return null;
|
|
106
|
+
}
|
|
107
|
+
// ---------------------------------------------------------------------------
|
|
108
|
+
// Public API
|
|
109
|
+
// ---------------------------------------------------------------------------
|
|
110
|
+
/**
|
|
111
|
+
* Backfill `modified_by` and `session_id` for pre-ADR-051 completed tasks.
|
|
112
|
+
*
|
|
113
|
+
* Processes all tasks whose `status` is `done` or `archived` and whose
|
|
114
|
+
* `provenance.modifiedBy` is null. For each, calls `reconstructLineage` to
|
|
115
|
+
* mine git commit history, extracts the `Co-Authored-By` agent, and writes
|
|
116
|
+
* the inferred values via `accessor.updateTaskFields`.
|
|
117
|
+
*
|
|
118
|
+
* Tasks with no git evidence receive the fallback marker
|
|
119
|
+
* `"unknown-pre-adr-051"` as `modified_by` so they are no longer in the
|
|
120
|
+
* null cohort (and the gap is documented).
|
|
121
|
+
*
|
|
122
|
+
* @param projectRoot - Absolute path to the CLEO project root.
|
|
123
|
+
* @param options - Backfill options (dryRun, taskIds, repoRoot).
|
|
124
|
+
* @returns Full summary including per-task entries and gap list.
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* ```ts
|
|
128
|
+
* // Dry run — preview only
|
|
129
|
+
* const result = await backfillAuditColumns('/my/project', { dryRun: true });
|
|
130
|
+
* console.log(`Would backfill ${result.inferred} tasks, ${result.gapCount} gaps`);
|
|
131
|
+
*
|
|
132
|
+
* // Apply
|
|
133
|
+
* await backfillAuditColumns('/my/project');
|
|
134
|
+
* ```
|
|
135
|
+
*
|
|
136
|
+
* @task T1321
|
|
137
|
+
* @epic T1415
|
|
138
|
+
*/
|
|
139
|
+
export async function backfillAuditColumns(projectRoot, options = {}) {
|
|
140
|
+
const { dryRun = false, taskIds, repoRoot = projectRoot } = options;
|
|
141
|
+
const accessor = await getAccessor(projectRoot);
|
|
142
|
+
// --- Load sessions for window-based session_id lookup ---
|
|
143
|
+
const sessions = await accessor.loadSessions();
|
|
144
|
+
// --- Collect eligible tasks: done + archived, NULL modified_by ---
|
|
145
|
+
// Query done tasks
|
|
146
|
+
const { tasks: doneTasks } = await accessor.queryTasks({ status: 'done' });
|
|
147
|
+
// Query archived tasks (need to include archived in status)
|
|
148
|
+
const { tasks: archivedTasks } = await accessor.queryTasks({ status: 'archived' });
|
|
149
|
+
const allCompletedTasks = [...doneTasks, ...archivedTasks];
|
|
150
|
+
// Filter: null or missing modifiedBy only
|
|
151
|
+
const eligible = allCompletedTasks.filter((t) => !t.provenance?.modifiedBy);
|
|
152
|
+
// Optionally restrict to provided task IDs
|
|
153
|
+
const inScope = taskIds ? eligible.filter((t) => taskIds.includes(t.id)) : eligible;
|
|
154
|
+
const entries = [];
|
|
155
|
+
let alreadySetCount = 0;
|
|
156
|
+
let inferredCount = 0;
|
|
157
|
+
let gapCount = 0;
|
|
158
|
+
const gapTaskIds = [];
|
|
159
|
+
const now = new Date().toISOString();
|
|
160
|
+
for (const task of inScope) {
|
|
161
|
+
// Double-check: skip if already set (idempotent guard)
|
|
162
|
+
if (task.provenance?.modifiedBy) {
|
|
163
|
+
entries.push({
|
|
164
|
+
taskId: task.id,
|
|
165
|
+
title: task.title,
|
|
166
|
+
modifiedBy: task.provenance.modifiedBy,
|
|
167
|
+
sessionId: task.provenance.sessionId ?? null,
|
|
168
|
+
hasGitEvidence: false,
|
|
169
|
+
directCommitCount: 0,
|
|
170
|
+
coAuthoredBy: null,
|
|
171
|
+
alreadySet: true,
|
|
172
|
+
written: false,
|
|
173
|
+
});
|
|
174
|
+
alreadySetCount++;
|
|
175
|
+
continue;
|
|
176
|
+
}
|
|
177
|
+
let coAuthoredBy = null;
|
|
178
|
+
let hasGitEvidence = false;
|
|
179
|
+
let directCommitCount = 0;
|
|
180
|
+
let errorMsg;
|
|
181
|
+
try {
|
|
182
|
+
// Mine git history via T1322 reconstructLineage SDK
|
|
183
|
+
const lineage = await reconstructLineage(task.id, repoRoot);
|
|
184
|
+
directCommitCount = lineage.directCommits.length;
|
|
185
|
+
hasGitEvidence = directCommitCount > 0;
|
|
186
|
+
// Extract Co-Authored-By from earliest direct commit
|
|
187
|
+
if (hasGitEvidence) {
|
|
188
|
+
// Sort by authorDate ascending to get the earliest commit first
|
|
189
|
+
const sorted = [...lineage.directCommits].sort((a, b) => a.authorDate < b.authorDate ? -1 : a.authorDate > b.authorDate ? 1 : 0);
|
|
190
|
+
for (const commit of sorted) {
|
|
191
|
+
const coAuthor = extractCoAuthoredBy(repoRoot, commit.sha);
|
|
192
|
+
if (coAuthor) {
|
|
193
|
+
coAuthoredBy = coAuthor;
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
// If no Co-Authored-By trailer found, use the commit author as fallback
|
|
198
|
+
if (!coAuthoredBy && sorted[0]) {
|
|
199
|
+
coAuthoredBy = sorted[0].author;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
catch (err) {
|
|
204
|
+
errorMsg = err instanceof Error ? err.message : String(err);
|
|
205
|
+
}
|
|
206
|
+
// Determine final modifiedBy value
|
|
207
|
+
const modifiedBy = coAuthoredBy ?? 'unknown-pre-adr-051';
|
|
208
|
+
const isGap = !hasGitEvidence || !coAuthoredBy;
|
|
209
|
+
if (isGap) {
|
|
210
|
+
gapCount++;
|
|
211
|
+
gapTaskIds.push(task.id);
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
inferredCount++;
|
|
215
|
+
}
|
|
216
|
+
// Session ID: window-based lookup against task completedAt
|
|
217
|
+
const sessionId = findSessionForCompletedAt(sessions, task.completedAt ?? null);
|
|
218
|
+
const entry = {
|
|
219
|
+
taskId: task.id,
|
|
220
|
+
title: task.title,
|
|
221
|
+
modifiedBy,
|
|
222
|
+
sessionId,
|
|
223
|
+
hasGitEvidence,
|
|
224
|
+
directCommitCount,
|
|
225
|
+
coAuthoredBy,
|
|
226
|
+
alreadySet: false,
|
|
227
|
+
written: false,
|
|
228
|
+
error: errorMsg,
|
|
229
|
+
};
|
|
230
|
+
// Write unless dry-run
|
|
231
|
+
if (!dryRun) {
|
|
232
|
+
try {
|
|
233
|
+
await accessor.updateTaskFields(task.id, {
|
|
234
|
+
modifiedBy,
|
|
235
|
+
sessionId: sessionId ?? null,
|
|
236
|
+
updatedAt: now,
|
|
237
|
+
});
|
|
238
|
+
entry.written = true;
|
|
239
|
+
}
|
|
240
|
+
catch (writeErr) {
|
|
241
|
+
entry.error =
|
|
242
|
+
(entry.error ? `${entry.error}; ` : '') +
|
|
243
|
+
`write failed: ${writeErr instanceof Error ? writeErr.message : String(writeErr)}`;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
entries.push(entry);
|
|
247
|
+
}
|
|
248
|
+
return {
|
|
249
|
+
dryRun,
|
|
250
|
+
tasksInScope: inScope.length,
|
|
251
|
+
alreadySet: alreadySetCount,
|
|
252
|
+
inferred: inferredCount,
|
|
253
|
+
gapCount,
|
|
254
|
+
gapTaskIds,
|
|
255
|
+
entries,
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
//# sourceMappingURL=audit-columns.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-columns.js","sourceRoot":"","sources":["../../src/backfill/audit-columns.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AA0D1E,8EAA8E;AAC9E,0EAA0E;AAC1E,8EAA8E;AAE9E;;;;;;GAMG;AACH,SAAS,MAAM,CAAC,GAAW,EAAE,IAAuB;IAClD,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,YAAY,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC,EAAE;YAC5C,GAAG;YACH,QAAQ,EAAE,OAAO;YACjB,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;YAC/B,SAAS,EAAE,CAAC,GAAG,IAAI,GAAG,IAAI;SAC3B,CAAC,CAAC;QACH,OAAO,MAAM,CAAC,IAAI,EAAE,CAAC;IACvB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC;AAED;;;;;;;;GAQG;AACH,SAAS,mBAAmB,CAAC,QAAgB,EAAE,GAAW;IACxD,MAAM,IAAI,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,CAAC,CAAC,CAAC;IACjE,IAAI,CAAC,IAAI;QAAE,OAAO,IAAI,CAAC;IAEvB,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;QACp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I,IAAI,CAAC,CAAC;QAEhF,MAAM,KAAK,GAA6B;YACtC,MAAM,EAAE,IAAI,CAAC,EAAE;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,UAAU;YACV,SAAS;YACT,cAAc;YACd,iBAAiB;YACjB,YAAY;YACZ,UAAU,EAAE,KAAK;YACjB,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,QAAQ;SAChB,CAAC;QAEF,uBAAuB;QACvB,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,IAAI,CAAC;gBACH,MAAM,QAAQ,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,EAAE;oBACvC,UAAU;oBACV,SAAS,EAAE,SAAS,IAAI,IAAI;oBAC5B,SAAS,EAAE,GAAG;iBACf,CAAC,CAAC;gBACH,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;YACvB,CAAC;YAAC,OAAO,QAAQ,EAAE,CAAC;gBAClB,KAAK,CAAC,KAAK;oBACT,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;wBACvC,iBAAiB,QAAQ,YAAY,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;YACvF,CAAC;QACH,CAAC;QAED,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC;IAED,OAAO;QACL,MAAM;QACN,YAAY,EAAE,OAAO,CAAC,MAAM;QAC5B,UAAU,EAAE,eAAe;QAC3B,QAAQ,EAAE,aAAa;QACvB,QAAQ;QACR,UAAU;QACV,OAAO;KACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI command group for provider adapter management operations.
|
|
3
|
+
*
|
|
4
|
+
* Exposes all tools.adapter.* operations as a native citty subcommand group:
|
|
5
|
+
*
|
|
6
|
+
* cleo adapter list — list all discovered provider adapters
|
|
7
|
+
* cleo adapter show — show details for a specific adapter
|
|
8
|
+
* cleo adapter detect — detect active providers in current environment
|
|
9
|
+
* cleo adapter health — health status for adapters
|
|
10
|
+
* cleo adapter activate — load and activate a provider adapter
|
|
11
|
+
* cleo adapter dispose — dispose one or all adapters
|
|
12
|
+
*
|
|
13
|
+
* Default action (no subcommand) delegates to adapter.list.
|
|
14
|
+
*
|
|
15
|
+
* @task T479
|
|
16
|
+
* @epic T443
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Root adapter command group — registers all adapter subcommands.
|
|
20
|
+
*
|
|
21
|
+
* Default run (no subcommand) delegates to adapter.list.
|
|
22
|
+
* Dispatches to `tools.adapter.*` registry operations.
|
|
23
|
+
*
|
|
24
|
+
* @task T479
|
|
25
|
+
* @epic T443
|
|
26
|
+
*/
|
|
27
|
+
export declare const adapterCommand: import("citty").CommandDef<import("citty").ArgsDef>;
|
|
28
|
+
//# sourceMappingURL=adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAoHH;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,qDAyBzB,CAAC"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI command group for provider adapter management operations.
|
|
3
|
+
*
|
|
4
|
+
* Exposes all tools.adapter.* operations as a native citty subcommand group:
|
|
5
|
+
*
|
|
6
|
+
* cleo adapter list — list all discovered provider adapters
|
|
7
|
+
* cleo adapter show — show details for a specific adapter
|
|
8
|
+
* cleo adapter detect — detect active providers in current environment
|
|
9
|
+
* cleo adapter health — health status for adapters
|
|
10
|
+
* cleo adapter activate — load and activate a provider adapter
|
|
11
|
+
* cleo adapter dispose — dispose one or all adapters
|
|
12
|
+
*
|
|
13
|
+
* Default action (no subcommand) delegates to adapter.list.
|
|
14
|
+
*
|
|
15
|
+
* @task T479
|
|
16
|
+
* @epic T443
|
|
17
|
+
*/
|
|
18
|
+
import { defineCommand } from 'citty';
|
|
19
|
+
import { dispatchFromCli } from '../../dispatch/adapters/cli.js';
|
|
20
|
+
import { isSubCommandDispatch } from '../lib/subcommand-guard.js';
|
|
21
|
+
/** cleo adapter list — list all discovered provider adapters */
|
|
22
|
+
const listCommand = defineCommand({
|
|
23
|
+
meta: { name: 'list', description: 'List all discovered provider adapters' },
|
|
24
|
+
async run() {
|
|
25
|
+
await dispatchFromCli('query', 'tools', 'adapter.list', {}, { command: 'adapter', operation: 'tools.adapter.list' });
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
/** cleo adapter show — show details for a specific adapter */
|
|
29
|
+
const showCommand = defineCommand({
|
|
30
|
+
meta: { name: 'show', description: 'Show details for a specific adapter' },
|
|
31
|
+
args: {
|
|
32
|
+
adapterId: {
|
|
33
|
+
type: 'positional',
|
|
34
|
+
description: 'Adapter ID to inspect',
|
|
35
|
+
required: true,
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
async run({ args }) {
|
|
39
|
+
await dispatchFromCli('query', 'tools', 'adapter.show', { id: args.adapterId }, { command: 'adapter', operation: 'tools.adapter.show' });
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
/** cleo adapter detect — detect active providers in the current environment */
|
|
43
|
+
const detectCommand = defineCommand({
|
|
44
|
+
meta: { name: 'detect', description: 'Detect active providers in the current environment' },
|
|
45
|
+
async run() {
|
|
46
|
+
await dispatchFromCli('query', 'tools', 'adapter.detect', {}, { command: 'adapter', operation: 'tools.adapter.detect' });
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
/** cleo adapter health — show health status for adapters */
|
|
50
|
+
const healthCommand = defineCommand({
|
|
51
|
+
meta: { name: 'health', description: 'Show health status for adapters' },
|
|
52
|
+
args: {
|
|
53
|
+
id: {
|
|
54
|
+
type: 'string',
|
|
55
|
+
description: 'Specific adapter ID (omit for all adapters)',
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
async run({ args }) {
|
|
59
|
+
await dispatchFromCli('query', 'tools', 'adapter.health', { id: args.id }, { command: 'adapter', operation: 'tools.adapter.health' });
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
/** cleo adapter activate — load and activate a provider adapter */
|
|
63
|
+
const activateCommand = defineCommand({
|
|
64
|
+
meta: { name: 'activate', description: 'Load and activate a provider adapter' },
|
|
65
|
+
args: {
|
|
66
|
+
adapterId: {
|
|
67
|
+
type: 'positional',
|
|
68
|
+
description: 'Adapter ID to activate',
|
|
69
|
+
required: true,
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
async run({ args }) {
|
|
73
|
+
await dispatchFromCli('mutate', 'tools', 'adapter.activate', { id: args.adapterId }, { command: 'adapter', operation: 'tools.adapter.activate' });
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
/** cleo adapter dispose — dispose one or all adapters */
|
|
77
|
+
const disposeCommand = defineCommand({
|
|
78
|
+
meta: { name: 'dispose', description: 'Dispose one or all adapters' },
|
|
79
|
+
args: {
|
|
80
|
+
id: {
|
|
81
|
+
type: 'string',
|
|
82
|
+
description: 'Specific adapter ID to dispose (omit to dispose all)',
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
async run({ args }) {
|
|
86
|
+
await dispatchFromCli('mutate', 'tools', 'adapter.dispose', { id: args.id }, { command: 'adapter', operation: 'tools.adapter.dispose' });
|
|
87
|
+
},
|
|
88
|
+
});
|
|
89
|
+
/**
|
|
90
|
+
* Root adapter command group — registers all adapter subcommands.
|
|
91
|
+
*
|
|
92
|
+
* Default run (no subcommand) delegates to adapter.list.
|
|
93
|
+
* Dispatches to `tools.adapter.*` registry operations.
|
|
94
|
+
*
|
|
95
|
+
* @task T479
|
|
96
|
+
* @epic T443
|
|
97
|
+
*/
|
|
98
|
+
export const adapterCommand = defineCommand({
|
|
99
|
+
meta: {
|
|
100
|
+
name: 'adapter',
|
|
101
|
+
description: 'Provider adapter management: list, show, detect, health, activate, dispose',
|
|
102
|
+
},
|
|
103
|
+
subCommands: {
|
|
104
|
+
list: listCommand,
|
|
105
|
+
show: showCommand,
|
|
106
|
+
detect: detectCommand,
|
|
107
|
+
health: healthCommand,
|
|
108
|
+
activate: activateCommand,
|
|
109
|
+
dispose: disposeCommand,
|
|
110
|
+
},
|
|
111
|
+
async run({ cmd, rawArgs }) {
|
|
112
|
+
// Skip default dispatch when citty routes to a subcommand
|
|
113
|
+
// (parent run() fires AFTER subcommand per citty@0.2.x). T1187-followup.
|
|
114
|
+
if (isSubCommandDispatch(rawArgs, cmd.subCommands))
|
|
115
|
+
return;
|
|
116
|
+
await dispatchFromCli('query', 'tools', 'adapter.list', {}, { command: 'adapter', operation: 'tools.adapter.list' });
|
|
117
|
+
},
|
|
118
|
+
});
|
|
119
|
+
//# sourceMappingURL=adapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../../../src/cli/commands/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,gEAAgE;AAChE,MAAM,WAAW,GAAG,aAAa,CAAC;IAChC,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,uCAAuC,EAAE;IAC5E,KAAK,CAAC,GAAG;QACP,MAAM,eAAe,CACnB,OAAO,EACP,OAAO,EACP,cAAc,EACd,EAAE,EACF,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,oBAAoB,EAAE,CACxD,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,8DAA8D;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WAAW;QACjB,MAAM,EAAE,aAAa;QACrB,MAAM,EAAE,aAAa;QACrB,QAAQ,EAAE,eAAe;QACzB,OAAO,EAAE,cAAc;KACxB;IACD,KAAK,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE;QACxB,0DAA0D;QAC1D,yEAAyE;QACzE,IAAI,oBAAoB,CAAC,OAAO,EAAE,GAAG,CAAC,WAAW,CAAC;YAAE,OAAO;QAC3D,MAAM,eAAe,CACnB,OAAO,EACP,OAAO,EACP,cAAc,EACd,EAAE,EACF,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,oBAAoB,EAAE,CACxD,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI add-batch command — atomic batch creation of multiple tasks.
|
|
3
|
+
*
|
|
4
|
+
* Reads a JSON array of task definitions from a file or stdin and creates
|
|
5
|
+
* them atomically. More reliable than N sequential `cleo add` calls during
|
|
6
|
+
* epic decomposition.
|
|
7
|
+
*
|
|
8
|
+
* @task T090
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Native citty command for atomic batch creation of multiple tasks.
|
|
12
|
+
*
|
|
13
|
+
* Reads a JSON array of task definitions from a file or stdin and dispatches
|
|
14
|
+
* each as a `tasks.add` mutation. Partial failures are reported with a
|
|
15
|
+
* non-zero exit code while still reporting successful creations.
|
|
16
|
+
*
|
|
17
|
+
* @task T090
|
|
18
|
+
*/
|
|
19
|
+
export declare const addBatchCommand: import("citty").CommandDef<{
|
|
20
|
+
readonly file: {
|
|
21
|
+
readonly type: "string";
|
|
22
|
+
readonly description: "Path to JSON file (array of task objects). Use - for stdin.";
|
|
23
|
+
};
|
|
24
|
+
readonly parent: {
|
|
25
|
+
readonly type: "string";
|
|
26
|
+
readonly description: "Default parent for all tasks (overridden by per-task parent)";
|
|
27
|
+
};
|
|
28
|
+
readonly 'dry-run': {
|
|
29
|
+
readonly type: "boolean";
|
|
30
|
+
readonly description: "Preview what would be created without making changes";
|
|
31
|
+
};
|
|
32
|
+
}>;
|
|
33
|
+
//# sourceMappingURL=add-batch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-batch.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/add-batch.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAuBH;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;EAqJ1B,CAAC"}
|