@cleocode/cleo 2026.5.4 → 2026.5.5
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/cli/index.js +61 -87
- package/dist/cli/index.js.map +3 -3
- package/package.json +9 -9
- package/dist/backfill/audit-columns.d.ts +0 -105
- package/dist/backfill/audit-columns.d.ts.map +0 -1
- package/dist/backfill/audit-columns.js +0 -258
- package/dist/backfill/audit-columns.js.map +0 -1
- package/dist/cli/commands/adapter.d.ts +0 -28
- package/dist/cli/commands/adapter.d.ts.map +0 -1
- package/dist/cli/commands/adapter.js +0 -119
- package/dist/cli/commands/adapter.js.map +0 -1
- package/dist/cli/commands/add-batch.d.ts +0 -33
- package/dist/cli/commands/add-batch.d.ts.map +0 -1
- package/dist/cli/commands/add-batch.js +0 -148
- package/dist/cli/commands/add-batch.js.map +0 -1
- package/dist/cli/commands/add.d.ts +0 -162
- package/dist/cli/commands/add.d.ts.map +0 -1
- package/dist/cli/commands/add.js +0 -279
- package/dist/cli/commands/add.js.map +0 -1
- package/dist/cli/commands/admin.d.ts +0 -24
- package/dist/cli/commands/admin.d.ts.map +0 -1
- package/dist/cli/commands/admin.js +0 -283
- package/dist/cli/commands/admin.js.map +0 -1
- package/dist/cli/commands/adr.d.ts +0 -33
- package/dist/cli/commands/adr.d.ts.map +0 -1
- package/dist/cli/commands/adr.js +0 -147
- package/dist/cli/commands/adr.js.map +0 -1
- package/dist/cli/commands/agent-profile-status.d.ts +0 -98
- package/dist/cli/commands/agent-profile-status.d.ts.map +0 -1
- package/dist/cli/commands/agent-profile-status.js +0 -71
- package/dist/cli/commands/agent-profile-status.js.map +0 -1
- package/dist/cli/commands/agent.d.ts +0 -47
- package/dist/cli/commands/agent.d.ts.map +0 -1
- package/dist/cli/commands/agent.js +0 -2976
- package/dist/cli/commands/agent.js.map +0 -1
- package/dist/cli/commands/analyze.d.ts +0 -21
- package/dist/cli/commands/analyze.d.ts.map +0 -1
- package/dist/cli/commands/analyze.js +0 -32
- package/dist/cli/commands/analyze.js.map +0 -1
- package/dist/cli/commands/archive-stats.d.ts +0 -66
- package/dist/cli/commands/archive-stats.d.ts.map +0 -1
- package/dist/cli/commands/archive-stats.js +0 -93
- package/dist/cli/commands/archive-stats.js.map +0 -1
- package/dist/cli/commands/archive.d.ts +0 -42
- package/dist/cli/commands/archive.d.ts.map +0 -1
- package/dist/cli/commands/archive.js +0 -59
- package/dist/cli/commands/archive.js.map +0 -1
- package/dist/cli/commands/audit.d.ts +0 -22
- package/dist/cli/commands/audit.d.ts.map +0 -1
- package/dist/cli/commands/audit.js +0 -137
- package/dist/cli/commands/audit.js.map +0 -1
- package/dist/cli/commands/backfill.d.ts +0 -56
- package/dist/cli/commands/backfill.d.ts.map +0 -1
- package/dist/cli/commands/backfill.js +0 -161
- package/dist/cli/commands/backfill.js.map +0 -1
- package/dist/cli/commands/backup-inspect.d.ts +0 -33
- package/dist/cli/commands/backup-inspect.d.ts.map +0 -1
- package/dist/cli/commands/backup-inspect.js +0 -430
- package/dist/cli/commands/backup-inspect.js.map +0 -1
- package/dist/cli/commands/backup.d.ts +0 -23
- package/dist/cli/commands/backup.d.ts.map +0 -1
- package/dist/cli/commands/backup.js +0 -564
- package/dist/cli/commands/backup.js.map +0 -1
- package/dist/cli/commands/blockers.d.ts +0 -20
- package/dist/cli/commands/blockers.d.ts.map +0 -1
- package/dist/cli/commands/blockers.js +0 -31
- package/dist/cli/commands/blockers.js.map +0 -1
- package/dist/cli/commands/brain.d.ts +0 -37
- package/dist/cli/commands/brain.d.ts.map +0 -1
- package/dist/cli/commands/brain.js +0 -445
- package/dist/cli/commands/brain.js.map +0 -1
- package/dist/cli/commands/briefing.d.ts +0 -52
- package/dist/cli/commands/briefing.d.ts.map +0 -1
- package/dist/cli/commands/briefing.js +0 -69
- package/dist/cli/commands/briefing.js.map +0 -1
- package/dist/cli/commands/bug.d.ts +0 -61
- package/dist/cli/commands/bug.d.ts.map +0 -1
- package/dist/cli/commands/bug.js +0 -198
- package/dist/cli/commands/bug.js.map +0 -1
- package/dist/cli/commands/cancel.d.ts +0 -26
- package/dist/cli/commands/cancel.d.ts.map +0 -1
- package/dist/cli/commands/cancel.js +0 -40
- package/dist/cli/commands/cancel.js.map +0 -1
- package/dist/cli/commands/cant.d.ts +0 -13
- package/dist/cli/commands/cant.d.ts.map +0 -1
- package/dist/cli/commands/cant.js +0 -245
- package/dist/cli/commands/cant.js.map +0 -1
- package/dist/cli/commands/chain.d.ts +0 -24
- package/dist/cli/commands/chain.d.ts.map +0 -1
- package/dist/cli/commands/chain.js +0 -116
- package/dist/cli/commands/chain.js.map +0 -1
- package/dist/cli/commands/check.d.ts +0 -18
- package/dist/cli/commands/check.d.ts.map +0 -1
- package/dist/cli/commands/check.js +0 -280
- package/dist/cli/commands/check.js.map +0 -1
- package/dist/cli/commands/checkpoint.d.ts +0 -27
- package/dist/cli/commands/checkpoint.d.ts.map +0 -1
- package/dist/cli/commands/checkpoint.js +0 -105
- package/dist/cli/commands/checkpoint.js.map +0 -1
- package/dist/cli/commands/claim.d.ts +0 -35
- package/dist/cli/commands/claim.d.ts.map +0 -1
- package/dist/cli/commands/claim.js +0 -35
- package/dist/cli/commands/claim.js.map +0 -1
- package/dist/cli/commands/code.d.ts +0 -22
- package/dist/cli/commands/code.d.ts.map +0 -1
- package/dist/cli/commands/code.js +0 -161
- package/dist/cli/commands/code.js.map +0 -1
- package/dist/cli/commands/complete.d.ts +0 -58
- package/dist/cli/commands/complete.d.ts.map +0 -1
- package/dist/cli/commands/complete.js +0 -83
- package/dist/cli/commands/complete.js.map +0 -1
- package/dist/cli/commands/complexity.d.ts +0 -13
- package/dist/cli/commands/complexity.d.ts.map +0 -1
- package/dist/cli/commands/complexity.js +0 -32
- package/dist/cli/commands/complexity.js.map +0 -1
- package/dist/cli/commands/compliance.d.ts +0 -27
- package/dist/cli/commands/compliance.d.ts.map +0 -1
- package/dist/cli/commands/compliance.js +0 -233
- package/dist/cli/commands/compliance.js.map +0 -1
- package/dist/cli/commands/conduit.d.ts +0 -28
- package/dist/cli/commands/conduit.d.ts.map +0 -1
- package/dist/cli/commands/conduit.js +0 -279
- package/dist/cli/commands/conduit.js.map +0 -1
- package/dist/cli/commands/config.d.ts +0 -25
- package/dist/cli/commands/config.d.ts.map +0 -1
- package/dist/cli/commands/config.js +0 -132
- package/dist/cli/commands/config.js.map +0 -1
- package/dist/cli/commands/consensus.d.ts +0 -21
- package/dist/cli/commands/consensus.d.ts.map +0 -1
- package/dist/cli/commands/consensus.js +0 -100
- package/dist/cli/commands/consensus.js.map +0 -1
- package/dist/cli/commands/context.d.ts +0 -19
- package/dist/cli/commands/context.d.ts.map +0 -1
- package/dist/cli/commands/context.js +0 -111
- package/dist/cli/commands/context.js.map +0 -1
- package/dist/cli/commands/contribution.d.ts +0 -21
- package/dist/cli/commands/contribution.d.ts.map +0 -1
- package/dist/cli/commands/contribution.js +0 -90
- package/dist/cli/commands/contribution.js.map +0 -1
- package/dist/cli/commands/current.d.ts +0 -18
- package/dist/cli/commands/current.d.ts.map +0 -1
- package/dist/cli/commands/current.js +0 -28
- package/dist/cli/commands/current.js.map +0 -1
- package/dist/cli/commands/daemon.d.ts +0 -36
- package/dist/cli/commands/daemon.d.ts.map +0 -1
- package/dist/cli/commands/daemon.js +0 -223
- package/dist/cli/commands/daemon.js.map +0 -1
- package/dist/cli/commands/dash.d.ts +0 -23
- package/dist/cli/commands/dash.d.ts.map +0 -1
- package/dist/cli/commands/dash.js +0 -38
- package/dist/cli/commands/dash.js.map +0 -1
- package/dist/cli/commands/decomposition.d.ts +0 -13
- package/dist/cli/commands/decomposition.d.ts.map +0 -1
- package/dist/cli/commands/decomposition.js +0 -92
- package/dist/cli/commands/decomposition.js.map +0 -1
- package/dist/cli/commands/delete.d.ts +0 -29
- package/dist/cli/commands/delete.d.ts.map +0 -1
- package/dist/cli/commands/delete.js +0 -55
- package/dist/cli/commands/delete.js.map +0 -1
- package/dist/cli/commands/deps.d.ts +0 -45
- package/dist/cli/commands/deps.d.ts.map +0 -1
- package/dist/cli/commands/deps.js +0 -170
- package/dist/cli/commands/deps.js.map +0 -1
- package/dist/cli/commands/detect-drift.d.ts +0 -23
- package/dist/cli/commands/detect-drift.d.ts.map +0 -1
- package/dist/cli/commands/detect-drift.js +0 -440
- package/dist/cli/commands/detect-drift.js.map +0 -1
- package/dist/cli/commands/detect.d.ts +0 -3
- package/dist/cli/commands/detect.d.ts.map +0 -1
- package/dist/cli/commands/detect.js +0 -14
- package/dist/cli/commands/detect.js.map +0 -1
- package/dist/cli/commands/diagnostics.d.ts +0 -19
- package/dist/cli/commands/diagnostics.d.ts.map +0 -1
- package/dist/cli/commands/diagnostics.js +0 -109
- package/dist/cli/commands/diagnostics.js.map +0 -1
- package/dist/cli/commands/docs.d.ts +0 -25
- package/dist/cli/commands/docs.d.ts.map +0 -1
- package/dist/cli/commands/docs.js +0 -798
- package/dist/cli/commands/docs.js.map +0 -1
- package/dist/cli/commands/doctor-projects.d.ts +0 -101
- package/dist/cli/commands/doctor-projects.d.ts.map +0 -1
- package/dist/cli/commands/doctor-projects.js +0 -188
- package/dist/cli/commands/doctor-projects.js.map +0 -1
- package/dist/cli/commands/doctor.d.ts +0 -66
- package/dist/cli/commands/doctor.d.ts.map +0 -1
- package/dist/cli/commands/doctor.js +0 -178
- package/dist/cli/commands/doctor.js.map +0 -1
- package/dist/cli/commands/dynamic.d.ts +0 -15
- package/dist/cli/commands/dynamic.d.ts.map +0 -1
- package/dist/cli/commands/dynamic.js +0 -21
- package/dist/cli/commands/dynamic.js.map +0 -1
- package/dist/cli/commands/exists.d.ts +0 -13
- package/dist/cli/commands/exists.d.ts.map +0 -1
- package/dist/cli/commands/exists.js +0 -40
- package/dist/cli/commands/exists.js.map +0 -1
- package/dist/cli/commands/export-tasks.d.ts +0 -46
- package/dist/cli/commands/export-tasks.d.ts.map +0 -1
- package/dist/cli/commands/export-tasks.js +0 -81
- package/dist/cli/commands/export-tasks.js.map +0 -1
- package/dist/cli/commands/export.d.ts +0 -35
- package/dist/cli/commands/export.d.ts.map +0 -1
- package/dist/cli/commands/export.js +0 -68
- package/dist/cli/commands/export.js.map +0 -1
- package/dist/cli/commands/find.d.ts +0 -54
- package/dist/cli/commands/find.d.ts.map +0 -1
- package/dist/cli/commands/find.js +0 -92
- package/dist/cli/commands/find.js.map +0 -1
- package/dist/cli/commands/gc.d.ts +0 -25
- package/dist/cli/commands/gc.d.ts.map +0 -1
- package/dist/cli/commands/gc.js +0 -165
- package/dist/cli/commands/gc.js.map +0 -1
- package/dist/cli/commands/generate-changelog.d.ts +0 -30
- package/dist/cli/commands/generate-changelog.d.ts.map +0 -1
- package/dist/cli/commands/generate-changelog.js +0 -270
- package/dist/cli/commands/generate-changelog.js.map +0 -1
- package/dist/cli/commands/grade.d.ts +0 -13
- package/dist/cli/commands/grade.d.ts.map +0 -1
- package/dist/cli/commands/grade.js +0 -27
- package/dist/cli/commands/grade.js.map +0 -1
- package/dist/cli/commands/history.d.ts +0 -13
- package/dist/cli/commands/history.d.ts.map +0 -1
- package/dist/cli/commands/history.js +0 -65
- package/dist/cli/commands/history.js.map +0 -1
- package/dist/cli/commands/import-tasks.d.ts +0 -60
- package/dist/cli/commands/import-tasks.d.ts.map +0 -1
- package/dist/cli/commands/import-tasks.js +0 -83
- package/dist/cli/commands/import-tasks.js.map +0 -1
- package/dist/cli/commands/import.d.ts +0 -42
- package/dist/cli/commands/import.d.ts.map +0 -1
- package/dist/cli/commands/import.js +0 -64
- package/dist/cli/commands/import.js.map +0 -1
- package/dist/cli/commands/init.d.ts +0 -65
- package/dist/cli/commands/init.d.ts.map +0 -1
- package/dist/cli/commands/init.js +0 -122
- package/dist/cli/commands/init.js.map +0 -1
- package/dist/cli/commands/inject.d.ts +0 -41
- package/dist/cli/commands/inject.d.ts.map +0 -1
- package/dist/cli/commands/inject.js +0 -56
- package/dist/cli/commands/inject.js.map +0 -1
- package/dist/cli/commands/install-global.d.ts +0 -48
- package/dist/cli/commands/install-global.d.ts.map +0 -1
- package/dist/cli/commands/install-global.js +0 -104
- package/dist/cli/commands/install-global.js.map +0 -1
- package/dist/cli/commands/intelligence.d.ts +0 -21
- package/dist/cli/commands/intelligence.d.ts.map +0 -1
- package/dist/cli/commands/intelligence.js +0 -145
- package/dist/cli/commands/intelligence.js.map +0 -1
- package/dist/cli/commands/issue.d.ts +0 -23
- package/dist/cli/commands/issue.d.ts.map +0 -1
- package/dist/cli/commands/issue.js +0 -152
- package/dist/cli/commands/issue.js.map +0 -1
- package/dist/cli/commands/labels.d.ts +0 -21
- package/dist/cli/commands/labels.d.ts.map +0 -1
- package/dist/cli/commands/labels.js +0 -65
- package/dist/cli/commands/labels.js.map +0 -1
- package/dist/cli/commands/lifecycle.d.ts +0 -25
- package/dist/cli/commands/lifecycle.d.ts.map +0 -1
- package/dist/cli/commands/lifecycle.js +0 -221
- package/dist/cli/commands/lifecycle.js.map +0 -1
- package/dist/cli/commands/list.d.ts +0 -28
- package/dist/cli/commands/list.d.ts.map +0 -1
- package/dist/cli/commands/list.js +0 -81
- package/dist/cli/commands/list.js.map +0 -1
- package/dist/cli/commands/log.d.ts +0 -36
- package/dist/cli/commands/log.d.ts.map +0 -1
- package/dist/cli/commands/log.js +0 -50
- package/dist/cli/commands/log.js.map +0 -1
- package/dist/cli/commands/manifest.d.ts +0 -15
- package/dist/cli/commands/manifest.d.ts.map +0 -1
- package/dist/cli/commands/manifest.js +0 -334
- package/dist/cli/commands/manifest.js.map +0 -1
- package/dist/cli/commands/map.d.ts +0 -25
- package/dist/cli/commands/map.d.ts.map +0 -1
- package/dist/cli/commands/map.js +0 -37
- package/dist/cli/commands/map.js.map +0 -1
- package/dist/cli/commands/memory.d.ts +0 -48
- package/dist/cli/commands/memory.d.ts.map +0 -1
- package/dist/cli/commands/memory.js +0 -2439
- package/dist/cli/commands/memory.js.map +0 -1
- package/dist/cli/commands/migrate-claude-mem.d.ts +0 -23
- package/dist/cli/commands/migrate-claude-mem.d.ts.map +0 -1
- package/dist/cli/commands/migrate-claude-mem.js +0 -181
- package/dist/cli/commands/migrate-claude-mem.js.map +0 -1
- package/dist/cli/commands/next.d.ts +0 -27
- package/dist/cli/commands/next.d.ts.map +0 -1
- package/dist/cli/commands/next.js +0 -40
- package/dist/cli/commands/next.js.map +0 -1
- package/dist/cli/commands/nexus.d.ts +0 -15
- package/dist/cli/commands/nexus.d.ts.map +0 -1
- package/dist/cli/commands/nexus.js +0 -3377
- package/dist/cli/commands/nexus.js.map +0 -1
- package/dist/cli/commands/ops.d.ts +0 -23
- package/dist/cli/commands/ops.d.ts.map +0 -1
- package/dist/cli/commands/ops.js +0 -35
- package/dist/cli/commands/ops.js.map +0 -1
- package/dist/cli/commands/orchestrate.d.ts +0 -48
- package/dist/cli/commands/orchestrate.d.ts.map +0 -1
- package/dist/cli/commands/orchestrate.js +0 -774
- package/dist/cli/commands/orchestrate.js.map +0 -1
- package/dist/cli/commands/otel.d.ts +0 -30
- package/dist/cli/commands/otel.d.ts.map +0 -1
- package/dist/cli/commands/otel.js +0 -193
- package/dist/cli/commands/otel.js.map +0 -1
- package/dist/cli/commands/phase.d.ts +0 -29
- package/dist/cli/commands/phase.d.ts.map +0 -1
- package/dist/cli/commands/phase.js +0 -189
- package/dist/cli/commands/phase.js.map +0 -1
- package/dist/cli/commands/pivot.d.ts +0 -34
- package/dist/cli/commands/pivot.d.ts.map +0 -1
- package/dist/cli/commands/pivot.js +0 -50
- package/dist/cli/commands/pivot.js.map +0 -1
- package/dist/cli/commands/plan.d.ts +0 -17
- package/dist/cli/commands/plan.d.ts.map +0 -1
- package/dist/cli/commands/plan.js +0 -27
- package/dist/cli/commands/plan.js.map +0 -1
- package/dist/cli/commands/playbook.d.ts +0 -26
- package/dist/cli/commands/playbook.d.ts.map +0 -1
- package/dist/cli/commands/playbook.js +0 -220
- package/dist/cli/commands/playbook.js.map +0 -1
- package/dist/cli/commands/promote.d.ts +0 -19
- package/dist/cli/commands/promote.d.ts.map +0 -1
- package/dist/cli/commands/promote.js +0 -27
- package/dist/cli/commands/promote.js.map +0 -1
- package/dist/cli/commands/provider.d.ts +0 -23
- package/dist/cli/commands/provider.d.ts.map +0 -1
- package/dist/cli/commands/provider.js +0 -168
- package/dist/cli/commands/provider.js.map +0 -1
- package/dist/cli/commands/reason.d.ts +0 -18
- package/dist/cli/commands/reason.d.ts.map +0 -1
- package/dist/cli/commands/reason.js +0 -102
- package/dist/cli/commands/reason.js.map +0 -1
- package/dist/cli/commands/reconcile.d.ts +0 -35
- package/dist/cli/commands/reconcile.d.ts.map +0 -1
- package/dist/cli/commands/reconcile.js +0 -102
- package/dist/cli/commands/reconcile.js.map +0 -1
- package/dist/cli/commands/refresh-memory.d.ts +0 -16
- package/dist/cli/commands/refresh-memory.d.ts.map +0 -1
- package/dist/cli/commands/refresh-memory.js +0 -34
- package/dist/cli/commands/refresh-memory.js.map +0 -1
- package/dist/cli/commands/relates.d.ts +0 -19
- package/dist/cli/commands/relates.d.ts.map +0 -1
- package/dist/cli/commands/relates.js +0 -129
- package/dist/cli/commands/relates.js.map +0 -1
- package/dist/cli/commands/release.d.ts +0 -27
- package/dist/cli/commands/release.d.ts.map +0 -1
- package/dist/cli/commands/release.js +0 -300
- package/dist/cli/commands/release.js.map +0 -1
- package/dist/cli/commands/remote.d.ts +0 -49
- package/dist/cli/commands/remote.d.ts.map +0 -1
- package/dist/cli/commands/remote.js +0 -265
- package/dist/cli/commands/remote.js.map +0 -1
- package/dist/cli/commands/reorder.d.ts +0 -31
- package/dist/cli/commands/reorder.d.ts.map +0 -1
- package/dist/cli/commands/reorder.js +0 -57
- package/dist/cli/commands/reorder.js.map +0 -1
- package/dist/cli/commands/reparent.d.ts +0 -27
- package/dist/cli/commands/reparent.d.ts.map +0 -1
- package/dist/cli/commands/reparent.js +0 -36
- package/dist/cli/commands/reparent.js.map +0 -1
- package/dist/cli/commands/req.d.ts +0 -37
- package/dist/cli/commands/req.d.ts.map +0 -1
- package/dist/cli/commands/req.js +0 -121
- package/dist/cli/commands/req.js.map +0 -1
- package/dist/cli/commands/research.d.ts +0 -25
- package/dist/cli/commands/research.d.ts.map +0 -1
- package/dist/cli/commands/research.js +0 -327
- package/dist/cli/commands/research.js.map +0 -1
- package/dist/cli/commands/restore.d.ts +0 -64
- package/dist/cli/commands/restore.d.ts.map +0 -1
- package/dist/cli/commands/restore.js +0 -539
- package/dist/cli/commands/restore.js.map +0 -1
- package/dist/cli/commands/revert.d.ts +0 -79
- package/dist/cli/commands/revert.d.ts.map +0 -1
- package/dist/cli/commands/revert.js +0 -300
- package/dist/cli/commands/revert.js.map +0 -1
- package/dist/cli/commands/roadmap.d.ts +0 -29
- package/dist/cli/commands/roadmap.d.ts.map +0 -1
- package/dist/cli/commands/roadmap.js +0 -43
- package/dist/cli/commands/roadmap.js.map +0 -1
- package/dist/cli/commands/safestop.d.ts +0 -41
- package/dist/cli/commands/safestop.d.ts.map +0 -1
- package/dist/cli/commands/safestop.js +0 -62
- package/dist/cli/commands/safestop.js.map +0 -1
- package/dist/cli/commands/schema.d.ts +0 -44
- package/dist/cli/commands/schema.d.ts.map +0 -1
- package/dist/cli/commands/schema.js +0 -177
- package/dist/cli/commands/schema.js.map +0 -1
- package/dist/cli/commands/self-update.d.ts +0 -81
- package/dist/cli/commands/self-update.d.ts.map +0 -1
- package/dist/cli/commands/self-update.js +0 -483
- package/dist/cli/commands/self-update.js.map +0 -1
- package/dist/cli/commands/sentient.d.ts +0 -44
- package/dist/cli/commands/sentient.d.ts.map +0 -1
- package/dist/cli/commands/sentient.js +0 -687
- package/dist/cli/commands/sentient.js.map +0 -1
- package/dist/cli/commands/sequence.d.ts +0 -15
- package/dist/cli/commands/sequence.d.ts.map +0 -1
- package/dist/cli/commands/sequence.js +0 -68
- package/dist/cli/commands/sequence.js.map +0 -1
- package/dist/cli/commands/session.d.ts +0 -32
- package/dist/cli/commands/session.d.ts.map +0 -1
- package/dist/cli/commands/session.js +0 -583
- package/dist/cli/commands/session.js.map +0 -1
- package/dist/cli/commands/show.d.ts +0 -21
- package/dist/cli/commands/show.d.ts.map +0 -1
- package/dist/cli/commands/show.js +0 -37
- package/dist/cli/commands/show.js.map +0 -1
- package/dist/cli/commands/skills.d.ts +0 -31
- package/dist/cli/commands/skills.d.ts.map +0 -1
- package/dist/cli/commands/skills.js +0 -303
- package/dist/cli/commands/skills.js.map +0 -1
- package/dist/cli/commands/snapshot.d.ts +0 -17
- package/dist/cli/commands/snapshot.d.ts.map +0 -1
- package/dist/cli/commands/snapshot.js +0 -95
- package/dist/cli/commands/snapshot.js.map +0 -1
- package/dist/cli/commands/start.d.ts +0 -21
- package/dist/cli/commands/start.d.ts.map +0 -1
- package/dist/cli/commands/start.js +0 -32
- package/dist/cli/commands/start.js.map +0 -1
- package/dist/cli/commands/stats.d.ts +0 -30
- package/dist/cli/commands/stats.d.ts.map +0 -1
- package/dist/cli/commands/stats.js +0 -71
- package/dist/cli/commands/stats.js.map +0 -1
- package/dist/cli/commands/sticky.d.ts +0 -23
- package/dist/cli/commands/sticky.d.ts.map +0 -1
- package/dist/cli/commands/sticky.js +0 -315
- package/dist/cli/commands/sticky.js.map +0 -1
- package/dist/cli/commands/stop.d.ts +0 -15
- package/dist/cli/commands/stop.d.ts.map +0 -1
- package/dist/cli/commands/stop.js +0 -25
- package/dist/cli/commands/stop.js.map +0 -1
- package/dist/cli/commands/sync.d.ts +0 -25
- package/dist/cli/commands/sync.d.ts.map +0 -1
- package/dist/cli/commands/sync.js +0 -125
- package/dist/cli/commands/sync.js.map +0 -1
- package/dist/cli/commands/testing.d.ts +0 -22
- package/dist/cli/commands/testing.d.ts.map +0 -1
- package/dist/cli/commands/testing.js +0 -111
- package/dist/cli/commands/testing.js.map +0 -1
- package/dist/cli/commands/token.d.ts +0 -22
- package/dist/cli/commands/token.d.ts.map +0 -1
- package/dist/cli/commands/token.js +0 -197
- package/dist/cli/commands/token.js.map +0 -1
- package/dist/cli/commands/transcript.d.ts +0 -32
- package/dist/cli/commands/transcript.d.ts.map +0 -1
- package/dist/cli/commands/transcript.js +0 -526
- package/dist/cli/commands/transcript.js.map +0 -1
- package/dist/cli/commands/update.d.ts +0 -164
- package/dist/cli/commands/update.d.ts.map +0 -1
- package/dist/cli/commands/update.js +0 -234
- package/dist/cli/commands/update.js.map +0 -1
- package/dist/cli/commands/upgrade.d.ts +0 -76
- package/dist/cli/commands/upgrade.d.ts.map +0 -1
- package/dist/cli/commands/upgrade.js +0 -154
- package/dist/cli/commands/upgrade.js.map +0 -1
- package/dist/cli/commands/verify.d.ts +0 -83
- package/dist/cli/commands/verify.d.ts.map +0 -1
- package/dist/cli/commands/verify.js +0 -108
- package/dist/cli/commands/verify.js.map +0 -1
- package/dist/cli/commands/web.d.ts +0 -27
- package/dist/cli/commands/web.d.ts.map +0 -1
- package/dist/cli/commands/web.js +0 -414
- package/dist/cli/commands/web.js.map +0 -1
- package/dist/cli/field-context.d.ts +0 -32
- package/dist/cli/field-context.d.ts.map +0 -1
- package/dist/cli/field-context.js +0 -47
- package/dist/cli/field-context.js.map +0 -1
- package/dist/cli/format-context.d.ts +0 -32
- package/dist/cli/format-context.d.ts.map +0 -1
- package/dist/cli/format-context.js +0 -50
- package/dist/cli/format-context.js.map +0 -1
- package/dist/cli/help-renderer.d.ts +0 -40
- package/dist/cli/help-renderer.d.ts.map +0 -1
- package/dist/cli/help-renderer.js +0 -325
- package/dist/cli/help-renderer.js.map +0 -1
- package/dist/cli/index.d.ts +0 -14
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/infer-files-via-gitnexus.d.ts +0 -12
- package/dist/cli/infer-files-via-gitnexus.d.ts.map +0 -1
- package/dist/cli/infer-files-via-gitnexus.js +0 -12
- package/dist/cli/infer-files-via-gitnexus.js.map +0 -1
- package/dist/cli/lib/did-you-mean.d.ts +0 -30
- package/dist/cli/lib/did-you-mean.d.ts.map +0 -1
- package/dist/cli/lib/did-you-mean.js +0 -63
- package/dist/cli/lib/did-you-mean.js.map +0 -1
- package/dist/cli/lib/registry-args.d.ts +0 -36
- package/dist/cli/lib/registry-args.d.ts.map +0 -1
- package/dist/cli/lib/registry-args.js +0 -37
- package/dist/cli/lib/registry-args.js.map +0 -1
- package/dist/cli/lib/subcommand-guard.d.ts +0 -45
- package/dist/cli/lib/subcommand-guard.d.ts.map +0 -1
- package/dist/cli/lib/subcommand-guard.js +0 -55
- package/dist/cli/lib/subcommand-guard.js.map +0 -1
- package/dist/cli/logger-bootstrap.d.ts +0 -6
- package/dist/cli/logger-bootstrap.d.ts.map +0 -1
- package/dist/cli/logger-bootstrap.js +0 -10
- package/dist/cli/logger-bootstrap.js.map +0 -1
- package/dist/cli/middleware/output-format.d.ts +0 -30
- package/dist/cli/middleware/output-format.d.ts.map +0 -1
- package/dist/cli/middleware/output-format.js +0 -35
- package/dist/cli/middleware/output-format.js.map +0 -1
- package/dist/cli/paths.d.ts +0 -85
- package/dist/cli/paths.d.ts.map +0 -1
- package/dist/cli/paths.js +0 -108
- package/dist/cli/paths.js.map +0 -1
- package/dist/cli/progress.d.ts +0 -89
- package/dist/cli/progress.d.ts.map +0 -1
- package/dist/cli/progress.js +0 -185
- package/dist/cli/progress.js.map +0 -1
- package/dist/cli/renderers/colors.d.ts +0 -32
- package/dist/cli/renderers/colors.d.ts.map +0 -1
- package/dist/cli/renderers/colors.js +0 -141
- package/dist/cli/renderers/colors.js.map +0 -1
- package/dist/cli/renderers/error.d.ts +0 -13
- package/dist/cli/renderers/error.d.ts.map +0 -1
- package/dist/cli/renderers/error.js +0 -42
- package/dist/cli/renderers/error.js.map +0 -1
- package/dist/cli/renderers/index.d.ts +0 -90
- package/dist/cli/renderers/index.d.ts.map +0 -1
- package/dist/cli/renderers/index.js +0 -268
- package/dist/cli/renderers/index.js.map +0 -1
- package/dist/cli/renderers/lafs-validator.d.ts +0 -91
- package/dist/cli/renderers/lafs-validator.d.ts.map +0 -1
- package/dist/cli/renderers/lafs-validator.js +0 -176
- package/dist/cli/renderers/lafs-validator.js.map +0 -1
- package/dist/cli/renderers/normalizer.d.ts +0 -21
- package/dist/cli/renderers/normalizer.d.ts.map +0 -1
- package/dist/cli/renderers/normalizer.js +0 -106
- package/dist/cli/renderers/normalizer.js.map +0 -1
- package/dist/cli/renderers/system.d.ts +0 -110
- package/dist/cli/renderers/system.d.ts.map +0 -1
- package/dist/cli/renderers/system.js +0 -662
- package/dist/cli/renderers/system.js.map +0 -1
- package/dist/cli/renderers/tasks.d.ts +0 -28
- package/dist/cli/renderers/tasks.d.ts.map +0 -1
- package/dist/cli/renderers/tasks.js +0 -306
- package/dist/cli/renderers/tasks.js.map +0 -1
- package/dist/cli/tree-context.d.ts +0 -53
- package/dist/cli/tree-context.d.ts.map +0 -1
- package/dist/cli/tree-context.js +0 -43
- package/dist/cli/tree-context.js.map +0 -1
- package/dist/dispatch/adapters/cli.d.ts +0 -67
- package/dist/dispatch/adapters/cli.d.ts.map +0 -1
- package/dist/dispatch/adapters/cli.js +0 -331
- package/dist/dispatch/adapters/cli.js.map +0 -1
- package/dist/dispatch/adapters/typed.d.ts +0 -362
- package/dist/dispatch/adapters/typed.d.ts.map +0 -1
- package/dist/dispatch/adapters/typed.js +0 -278
- package/dist/dispatch/adapters/typed.js.map +0 -1
- package/dist/dispatch/context/session-context.d.ts +0 -108
- package/dist/dispatch/context/session-context.d.ts.map +0 -1
- package/dist/dispatch/context/session-context.js +0 -111
- package/dist/dispatch/context/session-context.js.map +0 -1
- package/dist/dispatch/dispatcher.d.ts +0 -37
- package/dist/dispatch/dispatcher.d.ts.map +0 -1
- package/dist/dispatch/dispatcher.js +0 -172
- package/dist/dispatch/dispatcher.js.map +0 -1
- package/dist/dispatch/domains/_base.d.ts +0 -104
- package/dist/dispatch/domains/_base.d.ts.map +0 -1
- package/dist/dispatch/domains/_base.js +0 -147
- package/dist/dispatch/domains/_base.js.map +0 -1
- package/dist/dispatch/domains/_meta.d.ts +0 -23
- package/dist/dispatch/domains/_meta.d.ts.map +0 -1
- package/dist/dispatch/domains/_meta.js +0 -25
- package/dist/dispatch/domains/_meta.js.map +0 -1
- package/dist/dispatch/domains/_routing.d.ts +0 -8
- package/dist/dispatch/domains/_routing.d.ts.map +0 -1
- package/dist/dispatch/domains/_routing.js +0 -20
- package/dist/dispatch/domains/_routing.js.map +0 -1
- package/dist/dispatch/domains/admin/smoke-provider.d.ts +0 -54
- package/dist/dispatch/domains/admin/smoke-provider.d.ts.map +0 -1
- package/dist/dispatch/domains/admin/smoke-provider.js +0 -309
- package/dist/dispatch/domains/admin/smoke-provider.js.map +0 -1
- package/dist/dispatch/domains/admin.d.ts +0 -51
- package/dist/dispatch/domains/admin.d.ts.map +0 -1
- package/dist/dispatch/domains/admin.js +0 -1163
- package/dist/dispatch/domains/admin.js.map +0 -1
- package/dist/dispatch/domains/check/canon.d.ts +0 -65
- package/dist/dispatch/domains/check/canon.d.ts.map +0 -1
- package/dist/dispatch/domains/check/canon.js +0 -193
- package/dist/dispatch/domains/check/canon.js.map +0 -1
- package/dist/dispatch/domains/check.d.ts +0 -37
- package/dist/dispatch/domains/check.d.ts.map +0 -1
- package/dist/dispatch/domains/check.js +0 -562
- package/dist/dispatch/domains/check.js.map +0 -1
- package/dist/dispatch/domains/conduit.d.ts +0 -61
- package/dist/dispatch/domains/conduit.d.ts.map +0 -1
- package/dist/dispatch/domains/conduit.js +0 -609
- package/dist/dispatch/domains/conduit.js.map +0 -1
- package/dist/dispatch/domains/diagnostics.d.ts +0 -25
- package/dist/dispatch/domains/diagnostics.d.ts.map +0 -1
- package/dist/dispatch/domains/diagnostics.js +0 -82
- package/dist/dispatch/domains/diagnostics.js.map +0 -1
- package/dist/dispatch/domains/docs.d.ts +0 -63
- package/dist/dispatch/domains/docs.d.ts.map +0 -1
- package/dist/dispatch/domains/docs.js +0 -539
- package/dist/dispatch/domains/docs.js.map +0 -1
- package/dist/dispatch/domains/index.d.ts +0 -33
- package/dist/dispatch/domains/index.d.ts.map +0 -1
- package/dist/dispatch/domains/index.js +0 -58
- package/dist/dispatch/domains/index.js.map +0 -1
- package/dist/dispatch/domains/intelligence.d.ts +0 -26
- package/dist/dispatch/domains/intelligence.d.ts.map +0 -1
- package/dist/dispatch/domains/intelligence.js +0 -154
- package/dist/dispatch/domains/intelligence.js.map +0 -1
- package/dist/dispatch/domains/ivtr.d.ts +0 -182
- package/dist/dispatch/domains/ivtr.d.ts.map +0 -1
- package/dist/dispatch/domains/ivtr.js +0 -430
- package/dist/dispatch/domains/ivtr.js.map +0 -1
- package/dist/dispatch/domains/memory.d.ts +0 -22
- package/dist/dispatch/domains/memory.d.ts.map +0 -1
- package/dist/dispatch/domains/memory.js +0 -1281
- package/dist/dispatch/domains/memory.js.map +0 -1
- package/dist/dispatch/domains/nexus.d.ts +0 -78
- package/dist/dispatch/domains/nexus.d.ts.map +0 -1
- package/dist/dispatch/domains/nexus.js +0 -938
- package/dist/dispatch/domains/nexus.js.map +0 -1
- package/dist/dispatch/domains/orchestrate.d.ts +0 -307
- package/dist/dispatch/domains/orchestrate.d.ts.map +0 -1
- package/dist/dispatch/domains/orchestrate.js +0 -986
- package/dist/dispatch/domains/orchestrate.js.map +0 -1
- package/dist/dispatch/domains/pipeline.d.ts +0 -276
- package/dist/dispatch/domains/pipeline.d.ts.map +0 -1
- package/dist/dispatch/domains/pipeline.js +0 -689
- package/dist/dispatch/domains/pipeline.js.map +0 -1
- package/dist/dispatch/domains/playbook.d.ts +0 -131
- package/dist/dispatch/domains/playbook.d.ts.map +0 -1
- package/dist/dispatch/domains/playbook.js +0 -633
- package/dist/dispatch/domains/playbook.js.map +0 -1
- package/dist/dispatch/domains/release.d.ts +0 -97
- package/dist/dispatch/domains/release.d.ts.map +0 -1
- package/dist/dispatch/domains/release.js +0 -177
- package/dist/dispatch/domains/release.js.map +0 -1
- package/dist/dispatch/domains/sentient.d.ts +0 -60
- package/dist/dispatch/domains/sentient.d.ts.map +0 -1
- package/dist/dispatch/domains/sentient.js +0 -270
- package/dist/dispatch/domains/sentient.js.map +0 -1
- package/dist/dispatch/domains/session.d.ts +0 -49
- package/dist/dispatch/domains/session.d.ts.map +0 -1
- package/dist/dispatch/domains/session.js +0 -459
- package/dist/dispatch/domains/session.js.map +0 -1
- package/dist/dispatch/domains/sticky.d.ts +0 -82
- package/dist/dispatch/domains/sticky.d.ts.map +0 -1
- package/dist/dispatch/domains/sticky.js +0 -287
- package/dist/dispatch/domains/sticky.js.map +0 -1
- package/dist/dispatch/domains/tasks.d.ts +0 -58
- package/dist/dispatch/domains/tasks.d.ts.map +0 -1
- package/dist/dispatch/domains/tasks.js +0 -497
- package/dist/dispatch/domains/tasks.js.map +0 -1
- package/dist/dispatch/domains/tools.d.ts +0 -37
- package/dist/dispatch/domains/tools.d.ts.map +0 -1
- package/dist/dispatch/domains/tools.js +0 -481
- package/dist/dispatch/domains/tools.js.map +0 -1
- package/dist/dispatch/engines/_error.d.ts +0 -114
- package/dist/dispatch/engines/_error.d.ts.map +0 -1
- package/dist/dispatch/engines/_error.js +0 -290
- package/dist/dispatch/engines/_error.js.map +0 -1
- package/dist/dispatch/engines/admin-engine.d.ts +0 -386
- package/dist/dispatch/engines/admin-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/admin-engine.js +0 -270
- package/dist/dispatch/engines/admin-engine.js.map +0 -1
- package/dist/dispatch/engines/code-engine.d.ts +0 -14
- package/dist/dispatch/engines/code-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/code-engine.js +0 -14
- package/dist/dispatch/engines/code-engine.js.map +0 -1
- package/dist/dispatch/engines/codebase-map-engine.d.ts +0 -31
- package/dist/dispatch/engines/codebase-map-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/codebase-map-engine.js +0 -43
- package/dist/dispatch/engines/codebase-map-engine.js.map +0 -1
- package/dist/dispatch/engines/config-engine.d.ts +0 -14
- package/dist/dispatch/engines/config-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/config-engine.js +0 -14
- package/dist/dispatch/engines/config-engine.js.map +0 -1
- package/dist/dispatch/engines/diagnostics-engine.d.ts +0 -13
- package/dist/dispatch/engines/diagnostics-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/diagnostics-engine.js +0 -12
- package/dist/dispatch/engines/diagnostics-engine.js.map +0 -1
- package/dist/dispatch/engines/hooks-engine.d.ts +0 -13
- package/dist/dispatch/engines/hooks-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/hooks-engine.js +0 -12
- package/dist/dispatch/engines/hooks-engine.js.map +0 -1
- package/dist/dispatch/engines/init-engine.d.ts +0 -14
- package/dist/dispatch/engines/init-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/init-engine.js +0 -14
- package/dist/dispatch/engines/init-engine.js.map +0 -1
- package/dist/dispatch/engines/lifecycle-engine.d.ts +0 -13
- package/dist/dispatch/engines/lifecycle-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/lifecycle-engine.js +0 -12
- package/dist/dispatch/engines/lifecycle-engine.js.map +0 -1
- package/dist/dispatch/engines/memory-engine.d.ts +0 -10
- package/dist/dispatch/engines/memory-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/memory-engine.js +0 -10
- package/dist/dispatch/engines/memory-engine.js.map +0 -1
- package/dist/dispatch/engines/nexus-engine.d.ts +0 -603
- package/dist/dispatch/engines/nexus-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/nexus-engine.js +0 -1438
- package/dist/dispatch/engines/nexus-engine.js.map +0 -1
- package/dist/dispatch/engines/orchestrate-engine.d.ts +0 -252
- package/dist/dispatch/engines/orchestrate-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/orchestrate-engine.js +0 -1526
- package/dist/dispatch/engines/orchestrate-engine.js.map +0 -1
- package/dist/dispatch/engines/pipeline-engine.d.ts +0 -13
- package/dist/dispatch/engines/pipeline-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/pipeline-engine.js +0 -12
- package/dist/dispatch/engines/pipeline-engine.js.map +0 -1
- package/dist/dispatch/engines/release-engine.d.ts +0 -13
- package/dist/dispatch/engines/release-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/release-engine.js +0 -13
- package/dist/dispatch/engines/release-engine.js.map +0 -1
- package/dist/dispatch/engines/session-engine.d.ts +0 -15
- package/dist/dispatch/engines/session-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/session-engine.js +0 -12
- package/dist/dispatch/engines/session-engine.js.map +0 -1
- package/dist/dispatch/engines/sticky-engine.d.ts +0 -13
- package/dist/dispatch/engines/sticky-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/sticky-engine.js +0 -12
- package/dist/dispatch/engines/sticky-engine.js.map +0 -1
- package/dist/dispatch/engines/system-engine.d.ts +0 -543
- package/dist/dispatch/engines/system-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/system-engine.js +0 -1278
- package/dist/dispatch/engines/system-engine.js.map +0 -1
- package/dist/dispatch/engines/task-engine.d.ts +0 -1161
- package/dist/dispatch/engines/task-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/task-engine.js +0 -1599
- package/dist/dispatch/engines/task-engine.js.map +0 -1
- package/dist/dispatch/engines/template-parser.d.ts +0 -85
- package/dist/dispatch/engines/template-parser.d.ts.map +0 -1
- package/dist/dispatch/engines/template-parser.js +0 -114
- package/dist/dispatch/engines/template-parser.js.map +0 -1
- package/dist/dispatch/engines/tools-engine.d.ts +0 -13
- package/dist/dispatch/engines/tools-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/tools-engine.js +0 -12
- package/dist/dispatch/engines/tools-engine.js.map +0 -1
- package/dist/dispatch/engines/validate-engine.d.ts +0 -13
- package/dist/dispatch/engines/validate-engine.d.ts.map +0 -1
- package/dist/dispatch/engines/validate-engine.js +0 -13
- package/dist/dispatch/engines/validate-engine.js.map +0 -1
- package/dist/dispatch/index.d.ts +0 -20
- package/dist/dispatch/index.d.ts.map +0 -1
- package/dist/dispatch/index.js +0 -19
- package/dist/dispatch/index.js.map +0 -1
- package/dist/dispatch/lib/background-jobs.d.ts +0 -162
- package/dist/dispatch/lib/background-jobs.d.ts.map +0 -1
- package/dist/dispatch/lib/background-jobs.js +0 -360
- package/dist/dispatch/lib/background-jobs.js.map +0 -1
- package/dist/dispatch/lib/budget.d.ts +0 -36
- package/dist/dispatch/lib/budget.d.ts.map +0 -1
- package/dist/dispatch/lib/budget.js +0 -109
- package/dist/dispatch/lib/budget.js.map +0 -1
- package/dist/dispatch/lib/capability-matrix.d.ts +0 -11
- package/dist/dispatch/lib/capability-matrix.d.ts.map +0 -1
- package/dist/dispatch/lib/capability-matrix.js +0 -10
- package/dist/dispatch/lib/capability-matrix.js.map +0 -1
- package/dist/dispatch/lib/config-loader.d.ts +0 -42
- package/dist/dispatch/lib/config-loader.d.ts.map +0 -1
- package/dist/dispatch/lib/config-loader.js +0 -218
- package/dist/dispatch/lib/config-loader.js.map +0 -1
- package/dist/dispatch/lib/config.d.ts +0 -11
- package/dist/dispatch/lib/config.d.ts.map +0 -1
- package/dist/dispatch/lib/config.js +0 -10
- package/dist/dispatch/lib/config.js.map +0 -1
- package/dist/dispatch/lib/defaults.d.ts +0 -115
- package/dist/dispatch/lib/defaults.d.ts.map +0 -1
- package/dist/dispatch/lib/defaults.js +0 -61
- package/dist/dispatch/lib/defaults.js.map +0 -1
- package/dist/dispatch/lib/engine.d.ts +0 -17
- package/dist/dispatch/lib/engine.d.ts.map +0 -1
- package/dist/dispatch/lib/engine.js +0 -36
- package/dist/dispatch/lib/engine.js.map +0 -1
- package/dist/dispatch/lib/exit-codes.d.ts +0 -35
- package/dist/dispatch/lib/exit-codes.d.ts.map +0 -1
- package/dist/dispatch/lib/exit-codes.js +0 -60
- package/dist/dispatch/lib/exit-codes.js.map +0 -1
- package/dist/dispatch/lib/gateway-meta.d.ts +0 -37
- package/dist/dispatch/lib/gateway-meta.d.ts.map +0 -1
- package/dist/dispatch/lib/gateway-meta.js +0 -50
- package/dist/dispatch/lib/gateway-meta.js.map +0 -1
- package/dist/dispatch/lib/job-manager-accessor.d.ts +0 -9
- package/dist/dispatch/lib/job-manager-accessor.d.ts.map +0 -1
- package/dist/dispatch/lib/job-manager-accessor.js +0 -13
- package/dist/dispatch/lib/job-manager-accessor.js.map +0 -1
- package/dist/dispatch/lib/meta.d.ts +0 -26
- package/dist/dispatch/lib/meta.d.ts.map +0 -1
- package/dist/dispatch/lib/meta.js +0 -37
- package/dist/dispatch/lib/meta.js.map +0 -1
- package/dist/dispatch/lib/param-utils.d.ts +0 -11
- package/dist/dispatch/lib/param-utils.d.ts.map +0 -1
- package/dist/dispatch/lib/param-utils.js +0 -10
- package/dist/dispatch/lib/param-utils.js.map +0 -1
- package/dist/dispatch/lib/projections.d.ts +0 -56
- package/dist/dispatch/lib/projections.d.ts.map +0 -1
- package/dist/dispatch/lib/projections.js +0 -65
- package/dist/dispatch/lib/projections.js.map +0 -1
- package/dist/dispatch/lib/proto-envelope.d.ts +0 -56
- package/dist/dispatch/lib/proto-envelope.d.ts.map +0 -1
- package/dist/dispatch/lib/proto-envelope.js +0 -17
- package/dist/dispatch/lib/proto-envelope.js.map +0 -1
- package/dist/dispatch/lib/schema-utils.d.ts +0 -39
- package/dist/dispatch/lib/schema-utils.d.ts.map +0 -1
- package/dist/dispatch/lib/schema-utils.js +0 -88
- package/dist/dispatch/lib/schema-utils.js.map +0 -1
- package/dist/dispatch/lib/security.d.ts +0 -11
- package/dist/dispatch/lib/security.d.ts.map +0 -1
- package/dist/dispatch/lib/security.js +0 -10
- package/dist/dispatch/lib/security.js.map +0 -1
- package/dist/dispatch/middleware/audit.d.ts +0 -23
- package/dist/dispatch/middleware/audit.d.ts.map +0 -1
- package/dist/dispatch/middleware/audit.js +0 -169
- package/dist/dispatch/middleware/audit.js.map +0 -1
- package/dist/dispatch/middleware/field-filter.d.ts +0 -25
- package/dist/dispatch/middleware/field-filter.d.ts.map +0 -1
- package/dist/dispatch/middleware/field-filter.js +0 -70
- package/dist/dispatch/middleware/field-filter.js.map +0 -1
- package/dist/dispatch/middleware/pipeline.d.ts +0 -33
- package/dist/dispatch/middleware/pipeline.d.ts.map +0 -1
- package/dist/dispatch/middleware/pipeline.js +0 -60
- package/dist/dispatch/middleware/pipeline.js.map +0 -1
- package/dist/dispatch/middleware/projection.d.ts +0 -35
- package/dist/dispatch/middleware/projection.d.ts.map +0 -1
- package/dist/dispatch/middleware/projection.js +0 -146
- package/dist/dispatch/middleware/projection.js.map +0 -1
- package/dist/dispatch/middleware/protocol-enforcement.d.ts +0 -30
- package/dist/dispatch/middleware/protocol-enforcement.d.ts.map +0 -1
- package/dist/dispatch/middleware/protocol-enforcement.js +0 -56
- package/dist/dispatch/middleware/protocol-enforcement.js.map +0 -1
- package/dist/dispatch/middleware/rate-limiter.d.ts +0 -72
- package/dist/dispatch/middleware/rate-limiter.d.ts.map +0 -1
- package/dist/dispatch/middleware/rate-limiter.js +0 -127
- package/dist/dispatch/middleware/rate-limiter.js.map +0 -1
- package/dist/dispatch/middleware/sanitizer.d.ts +0 -24
- package/dist/dispatch/middleware/sanitizer.d.ts.map +0 -1
- package/dist/dispatch/middleware/sanitizer.js +0 -56
- package/dist/dispatch/middleware/sanitizer.js.map +0 -1
- package/dist/dispatch/middleware/session-resolver.d.ts +0 -26
- package/dist/dispatch/middleware/session-resolver.d.ts.map +0 -1
- package/dist/dispatch/middleware/session-resolver.js +0 -65
- package/dist/dispatch/middleware/session-resolver.js.map +0 -1
- package/dist/dispatch/middleware/telemetry.d.ts +0 -21
- package/dist/dispatch/middleware/telemetry.d.ts.map +0 -1
- package/dist/dispatch/middleware/telemetry.js +0 -50
- package/dist/dispatch/middleware/telemetry.js.map +0 -1
- package/dist/dispatch/middleware/verification-gates.d.ts +0 -22
- package/dist/dispatch/middleware/verification-gates.d.ts.map +0 -1
- package/dist/dispatch/middleware/verification-gates.js +0 -59
- package/dist/dispatch/middleware/verification-gates.js.map +0 -1
- package/dist/dispatch/registry.d.ts +0 -91
- package/dist/dispatch/registry.d.ts.map +0 -1
- package/dist/dispatch/registry.js +0 -6430
- package/dist/dispatch/registry.js.map +0 -1
- package/dist/dispatch/types.d.ts +0 -150
- package/dist/dispatch/types.d.ts.map +0 -1
- package/dist/dispatch/types.js +0 -38
- package/dist/dispatch/types.js.map +0 -1
- package/dist/migrations/2026-04-25-t991-parent-link-repair.d.ts +0 -88
- package/dist/migrations/2026-04-25-t991-parent-link-repair.d.ts.map +0 -1
- package/dist/migrations/2026-04-25-t991-parent-link-repair.js +0 -76
- package/dist/migrations/2026-04-25-t991-parent-link-repair.js.map +0 -1
|
@@ -1,539 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Docs Domain Handler (Dispatch Layer)
|
|
3
|
-
*
|
|
4
|
-
* Handles attachment management operations exposed via `cleo docs`:
|
|
5
|
-
* - add — attach a local file or URL to a CLEO owner entity
|
|
6
|
-
* - list — list attachments for an owner entity
|
|
7
|
-
* - fetch — retrieve attachment bytes and metadata by ID or SHA-256
|
|
8
|
-
* - remove — remove an attachment ref; purges blob when refCount hits zero
|
|
9
|
-
*
|
|
10
|
-
* All storage delegates to `AttachmentStore` from `@cleocode/core/internal`.
|
|
11
|
-
* Owner type is auto-detected from the owner ID prefix:
|
|
12
|
-
* T### → 'task'
|
|
13
|
-
* ses_* → 'session'
|
|
14
|
-
* O-* → 'observation'
|
|
15
|
-
* (default) → 'task'
|
|
16
|
-
*
|
|
17
|
-
* Type-safe dispatch via `TypedDomainHandler<DocsTypedOps>` per ADR-058.
|
|
18
|
-
* Param extraction uses manually-wired `DocsTypedOps` (not OpsFromCore —
|
|
19
|
-
* docs operations delegate directly to store methods, not Core functions).
|
|
20
|
-
* Zero `as string` / `as any` param casts at call sites.
|
|
21
|
-
*
|
|
22
|
-
* `attachmentBackend` is included in typed result payloads and lifted into
|
|
23
|
-
* `meta` by the envelope-to-response converter for backward compatibility
|
|
24
|
-
* with T947 Wave B observability consumers.
|
|
25
|
-
*
|
|
26
|
-
* @epic T760
|
|
27
|
-
* @task T797
|
|
28
|
-
* @see ADR-058 — Dispatch type inference
|
|
29
|
-
*/
|
|
30
|
-
import { readFile } from 'node:fs/promises';
|
|
31
|
-
import { resolve } from 'node:path';
|
|
32
|
-
import { createAttachmentStore, createAttachmentStoreV2, generateDocsLlmsTxt, getCleoDirAbsolute, getProjectRoot, resolveAttachmentBackend, } from '@cleocode/core/internal';
|
|
33
|
-
import { defineTypedHandler, lafsError, lafsSuccess, typedDispatch } from '../adapters/typed.js';
|
|
34
|
-
import { handleErrorResult, unsupportedOp } from './_base.js';
|
|
35
|
-
import { dispatchMeta } from './_meta.js';
|
|
36
|
-
// ─── Owner type inference ─────────────────────────────────────────────────────
|
|
37
|
-
/**
|
|
38
|
-
* Infer the {@link AttachmentRef.ownerType} from an owner ID string.
|
|
39
|
-
*
|
|
40
|
-
* Heuristics:
|
|
41
|
-
* `T<digits>` → 'task'
|
|
42
|
-
* `ses_` → 'session'
|
|
43
|
-
* `O-` → 'observation'
|
|
44
|
-
* (fallback) → 'task'
|
|
45
|
-
*
|
|
46
|
-
* @param ownerId - Raw owner entity ID string
|
|
47
|
-
*/
|
|
48
|
-
function inferOwnerType(ownerId) {
|
|
49
|
-
if (/^T\d+$/i.test(ownerId))
|
|
50
|
-
return 'task';
|
|
51
|
-
if (ownerId.startsWith('ses_'))
|
|
52
|
-
return 'session';
|
|
53
|
-
if (ownerId.startsWith('O-'))
|
|
54
|
-
return 'observation';
|
|
55
|
-
// Broader prefixes for other BRAIN entity types
|
|
56
|
-
if (ownerId.startsWith('D-') || ownerId.startsWith('dec_'))
|
|
57
|
-
return 'decision';
|
|
58
|
-
if (ownerId.startsWith('L-') || ownerId.startsWith('lrn_'))
|
|
59
|
-
return 'learning';
|
|
60
|
-
if (ownerId.startsWith('P-') || ownerId.startsWith('pat_'))
|
|
61
|
-
return 'pattern';
|
|
62
|
-
return 'task';
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Parse a raw labels string (comma-separated) into a string array.
|
|
66
|
-
*
|
|
67
|
-
* @param raw - Comma-separated label string or undefined
|
|
68
|
-
*/
|
|
69
|
-
function parseLabels(raw) {
|
|
70
|
-
if (typeof raw !== 'string' || !raw.trim())
|
|
71
|
-
return undefined;
|
|
72
|
-
return raw
|
|
73
|
-
.split(',')
|
|
74
|
-
.map((l) => l.trim())
|
|
75
|
-
.filter(Boolean);
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Detect MIME type from a file extension.
|
|
79
|
-
*
|
|
80
|
-
* Minimal set — falls back to 'application/octet-stream'.
|
|
81
|
-
*
|
|
82
|
-
* @param filePath - Absolute or relative path to the file
|
|
83
|
-
*/
|
|
84
|
-
function mimeFromPath(filePath) {
|
|
85
|
-
const lower = filePath.toLowerCase();
|
|
86
|
-
if (lower.endsWith('.md') || lower.endsWith('.markdown'))
|
|
87
|
-
return 'text/markdown';
|
|
88
|
-
if (lower.endsWith('.txt'))
|
|
89
|
-
return 'text/plain';
|
|
90
|
-
if (lower.endsWith('.html') || lower.endsWith('.htm'))
|
|
91
|
-
return 'text/html';
|
|
92
|
-
if (lower.endsWith('.json'))
|
|
93
|
-
return 'application/json';
|
|
94
|
-
if (lower.endsWith('.pdf'))
|
|
95
|
-
return 'application/pdf';
|
|
96
|
-
if (lower.endsWith('.zip'))
|
|
97
|
-
return 'application/zip';
|
|
98
|
-
if (lower.endsWith('.png'))
|
|
99
|
-
return 'image/png';
|
|
100
|
-
if (lower.endsWith('.jpg') || lower.endsWith('.jpeg'))
|
|
101
|
-
return 'image/jpeg';
|
|
102
|
-
if (lower.endsWith('.gif'))
|
|
103
|
-
return 'image/gif';
|
|
104
|
-
if (lower.endsWith('.svg'))
|
|
105
|
-
return 'image/svg+xml';
|
|
106
|
-
if (lower.endsWith('.ts') || lower.endsWith('.tsx'))
|
|
107
|
-
return 'text/plain';
|
|
108
|
-
if (lower.endsWith('.js'))
|
|
109
|
-
return 'text/javascript';
|
|
110
|
-
if (lower.endsWith('.css'))
|
|
111
|
-
return 'text/css';
|
|
112
|
-
return 'application/octet-stream';
|
|
113
|
-
}
|
|
114
|
-
// ─── Typed inner handler ──────────────────────────────────────────────────────
|
|
115
|
-
/**
|
|
116
|
-
* Typed inner handler for the docs domain.
|
|
117
|
-
*
|
|
118
|
-
* All per-op logic lives here with fully-narrowed params (no `as string` casts).
|
|
119
|
-
* The outer {@link DocsHandler} class delegates to this via `typedDispatch` +
|
|
120
|
-
* {@link docsEnvelopeToResponse} so the registry sees the expected
|
|
121
|
-
* `query`/`mutate` interface while every param access is type-safe.
|
|
122
|
-
*
|
|
123
|
-
* @see ADR-058 — typed-dispatch migration
|
|
124
|
-
* @task T1529 — docs typed-dispatch migration (P0)
|
|
125
|
-
*/
|
|
126
|
-
const _docsTypedHandler = defineTypedHandler('docs', {
|
|
127
|
-
// ── docs.list ──────────────────────────────────────────────────────────────
|
|
128
|
-
list: async (params) => {
|
|
129
|
-
// SSoT-EXEMPT:dispatch-normalize — docs.list accepts three aliased owner params;
|
|
130
|
-
// normalization to ownerId is a docs-domain concern, not a Core concern.
|
|
131
|
-
const ownerId = params.task ?? params.session ?? params.observation;
|
|
132
|
-
if (!ownerId) {
|
|
133
|
-
return lafsError('E_INVALID_INPUT', 'Provide one of --task, --session, or --observation to scope the list.', 'list');
|
|
134
|
-
}
|
|
135
|
-
const ownerType = inferOwnerType(ownerId);
|
|
136
|
-
// Legacy store still drives the envelope because it tracks URL and
|
|
137
|
-
// llms-txt kinds the v2 interface does not expose. `backend` metadata
|
|
138
|
-
// reports the path that FUTURE writes would take, so operators can
|
|
139
|
-
// observe llmtxt adoption without changing the data contract.
|
|
140
|
-
const store = createAttachmentStore();
|
|
141
|
-
const attachments = await store.listByOwner(ownerType, ownerId);
|
|
142
|
-
const backend = await resolveAttachmentBackend();
|
|
143
|
-
return lafsSuccess({
|
|
144
|
-
ownerId,
|
|
145
|
-
ownerType,
|
|
146
|
-
count: attachments.length,
|
|
147
|
-
attachments: attachments.map((m) => ({
|
|
148
|
-
id: m.id,
|
|
149
|
-
sha256: `${m.sha256.slice(0, 8)}…`,
|
|
150
|
-
// Cast: contracts AttachmentKind doesn't include 'llmtxt-doc' (contracts gap T1529)
|
|
151
|
-
kind: m.attachment.kind,
|
|
152
|
-
mime: m.attachment.kind === 'local-file' || m.attachment.kind === 'blob'
|
|
153
|
-
? m.attachment.mime
|
|
154
|
-
: (m.attachment.mime ?? '—'),
|
|
155
|
-
size: m.attachment.kind === 'local-file' || m.attachment.kind === 'blob'
|
|
156
|
-
? m.attachment.size
|
|
157
|
-
: undefined,
|
|
158
|
-
description: m.attachment.description,
|
|
159
|
-
labels: m.attachment.labels,
|
|
160
|
-
createdAt: m.createdAt,
|
|
161
|
-
refCount: m.refCount,
|
|
162
|
-
})),
|
|
163
|
-
// Cast: core returns 'llmtxt'|'legacy'; contracts uses 'legacy'|'llmstxt-v2' (drift T1529)
|
|
164
|
-
attachmentBackend: backend,
|
|
165
|
-
}, 'list');
|
|
166
|
-
},
|
|
167
|
-
// ── docs.generate ──────────────────────────────────────────────────────────
|
|
168
|
-
generate: async (params) => {
|
|
169
|
-
const forId = params.for;
|
|
170
|
-
if (!forId) {
|
|
171
|
-
return lafsError('E_INVALID_INPUT', '--for <taskId|epicId> is required', 'generate');
|
|
172
|
-
}
|
|
173
|
-
const cwd = getProjectRoot();
|
|
174
|
-
const result = await generateDocsLlmsTxt({ ownerId: forId, cwd });
|
|
175
|
-
let attachmentId;
|
|
176
|
-
let attachmentSha256;
|
|
177
|
-
if (params.attach) {
|
|
178
|
-
// Store the generated content back as an llms-txt attachment
|
|
179
|
-
const store = createAttachmentStore();
|
|
180
|
-
const ownerType = inferOwnerType(forId);
|
|
181
|
-
const contentBytes = Buffer.from(result.content, 'utf-8');
|
|
182
|
-
const llmsTxtDescriptor = {
|
|
183
|
-
kind: 'llms-txt',
|
|
184
|
-
source: 'generated',
|
|
185
|
-
content: result.content,
|
|
186
|
-
description: `llms.txt for ${forId} (${result.attachmentCount} docs)`,
|
|
187
|
-
labels: ['llms-txt', 'generated'],
|
|
188
|
-
};
|
|
189
|
-
const meta = await store.put(contentBytes, llmsTxtDescriptor, ownerType, forId, 'cleo-docs-generate', cwd);
|
|
190
|
-
attachmentId = meta.id;
|
|
191
|
-
attachmentSha256 = meta.sha256;
|
|
192
|
-
}
|
|
193
|
-
return lafsSuccess({
|
|
194
|
-
forId,
|
|
195
|
-
content: result.content,
|
|
196
|
-
attachmentCount: result.attachmentCount,
|
|
197
|
-
usedLlmtxtPackage: result.usedLlmtxtPackage,
|
|
198
|
-
...(attachmentId !== undefined
|
|
199
|
-
? {
|
|
200
|
-
attached: true,
|
|
201
|
-
attachmentId,
|
|
202
|
-
attachmentSha256,
|
|
203
|
-
}
|
|
204
|
-
: { attached: false }),
|
|
205
|
-
}, 'generate');
|
|
206
|
-
},
|
|
207
|
-
// ── docs.fetch ─────────────────────────────────────────────────────────────
|
|
208
|
-
fetch: async (params) => {
|
|
209
|
-
const ref = params.attachmentRef;
|
|
210
|
-
if (!ref) {
|
|
211
|
-
return lafsError('E_INVALID_INPUT', 'attachmentRef is required (attachment ID or SHA-256 hex)', 'fetch');
|
|
212
|
-
}
|
|
213
|
-
const store = createAttachmentStore();
|
|
214
|
-
// Try by attachment ID first, then by SHA-256.
|
|
215
|
-
const isSha256 = /^[0-9a-f]{64}$/i.test(ref);
|
|
216
|
-
let fetchResult = null;
|
|
217
|
-
let metadata = await store.getMetadata(ref);
|
|
218
|
-
if (metadata) {
|
|
219
|
-
// Resolved by ID — get bytes via sha256
|
|
220
|
-
fetchResult = await store.get(metadata.sha256);
|
|
221
|
-
}
|
|
222
|
-
else if (isSha256) {
|
|
223
|
-
fetchResult = await store.get(ref);
|
|
224
|
-
if (fetchResult) {
|
|
225
|
-
metadata = fetchResult.metadata;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
if (!fetchResult || !metadata) {
|
|
229
|
-
return lafsError('E_NOT_FOUND', `Attachment not found: ${ref}`, 'fetch');
|
|
230
|
-
}
|
|
231
|
-
const cwd = getProjectRoot();
|
|
232
|
-
const cleoDir = getCleoDirAbsolute(cwd);
|
|
233
|
-
// Derive storage path for local-file / blob kinds
|
|
234
|
-
let storagePath;
|
|
235
|
-
if (metadata.attachment.kind === 'local-file') {
|
|
236
|
-
storagePath = metadata.attachment.path;
|
|
237
|
-
}
|
|
238
|
-
else if (metadata.attachment.kind === 'blob') {
|
|
239
|
-
const prefix = metadata.sha256.slice(0, 2);
|
|
240
|
-
const rest = metadata.sha256.slice(2);
|
|
241
|
-
const extMap = {
|
|
242
|
-
'text/markdown': '.md',
|
|
243
|
-
'text/plain': '.txt',
|
|
244
|
-
'application/json': '.json',
|
|
245
|
-
'application/pdf': '.pdf',
|
|
246
|
-
};
|
|
247
|
-
const mime = metadata.attachment.kind === 'blob' ? metadata.attachment.mime : 'application/octet-stream';
|
|
248
|
-
const ext = extMap[mime] ?? '.bin';
|
|
249
|
-
storagePath = resolve(cleoDir, 'attachments', 'sha256', prefix, `${rest}${ext}`);
|
|
250
|
-
}
|
|
251
|
-
// Base64-encode bytes only for small attachments (<= 1 MB)
|
|
252
|
-
const MAX_INLINE = 1024 * 1024;
|
|
253
|
-
const bytesBase64 = fetchResult.bytes.length <= MAX_INLINE ? fetchResult.bytes.toString('base64') : undefined;
|
|
254
|
-
const backend = await resolveAttachmentBackend();
|
|
255
|
-
return lafsSuccess({
|
|
256
|
-
// Cast: core's AttachmentMetadata vs contracts/operations/docs AttachmentMetadata differ
|
|
257
|
-
// in their nested attachment field structure (T1529 contracts gap). The runtime
|
|
258
|
-
// value is compatible for all callers; the two interfaces diverged at the type level.
|
|
259
|
-
metadata: metadata,
|
|
260
|
-
path: storagePath,
|
|
261
|
-
sizeBytes: fetchResult.bytes.length,
|
|
262
|
-
...(bytesBase64 !== undefined ? { bytesBase64 } : {}),
|
|
263
|
-
inlined: bytesBase64 !== undefined,
|
|
264
|
-
// Cast: core returns 'llmtxt'|'legacy'; contracts uses 'legacy'|'llmstxt-v2' (T1529)
|
|
265
|
-
attachmentBackend: backend,
|
|
266
|
-
}, 'fetch');
|
|
267
|
-
},
|
|
268
|
-
// ── docs.add ───────────────────────────────────────────────────────────────
|
|
269
|
-
add: async (params) => {
|
|
270
|
-
const { ownerId, file: filePath, url, desc: description, labels: rawLabels, attachedBy: rawAttachedBy, } = params;
|
|
271
|
-
if (!ownerId) {
|
|
272
|
-
return lafsError('E_INVALID_INPUT', 'ownerId is required', 'add');
|
|
273
|
-
}
|
|
274
|
-
if (!filePath && !url) {
|
|
275
|
-
return lafsError('E_INVALID_INPUT', 'Provide either a file path (positional or --file) or --url', 'add');
|
|
276
|
-
}
|
|
277
|
-
const labels = parseLabels(rawLabels);
|
|
278
|
-
const attachedBy = rawAttachedBy ?? 'human';
|
|
279
|
-
const ownerType = inferOwnerType(ownerId);
|
|
280
|
-
const store = createAttachmentStore();
|
|
281
|
-
if (filePath) {
|
|
282
|
-
// Local file attachment
|
|
283
|
-
const absPath = resolve(filePath);
|
|
284
|
-
let bytes;
|
|
285
|
-
try {
|
|
286
|
-
bytes = await readFile(absPath);
|
|
287
|
-
}
|
|
288
|
-
catch {
|
|
289
|
-
return lafsError('E_FILE_ERROR', `Cannot read file: ${absPath}`, 'add');
|
|
290
|
-
}
|
|
291
|
-
const mime = mimeFromPath(absPath);
|
|
292
|
-
const attachment = {
|
|
293
|
-
kind: 'local-file',
|
|
294
|
-
path: absPath,
|
|
295
|
-
mime,
|
|
296
|
-
size: bytes.length,
|
|
297
|
-
...(description ? { description } : {}),
|
|
298
|
-
...(labels ? { labels } : {}),
|
|
299
|
-
};
|
|
300
|
-
const meta = await store.put(bytes, attachment, ownerType, ownerId, attachedBy);
|
|
301
|
-
// T947 Wave B — also mirror the write through the unified v2 store
|
|
302
|
-
// so llmtxt-backed manifests learn about the attachment. The v2
|
|
303
|
-
// store is the future SSoT; the legacy put above remains the
|
|
304
|
-
// authoritative write path until Wave C retires it.
|
|
305
|
-
let backend = 'legacy';
|
|
306
|
-
try {
|
|
307
|
-
const v2 = createAttachmentStoreV2(getProjectRoot());
|
|
308
|
-
const v2Result = await v2.put(ownerId, {
|
|
309
|
-
name: absPath.split(/[\\/]/).pop() ?? meta.sha256.slice(0, 12),
|
|
310
|
-
data: new Uint8Array(bytes),
|
|
311
|
-
contentType: mime,
|
|
312
|
-
});
|
|
313
|
-
backend = v2Result.backend;
|
|
314
|
-
}
|
|
315
|
-
catch {
|
|
316
|
-
// Mirror write is best-effort — never fail docs add on it.
|
|
317
|
-
backend = await resolveAttachmentBackend();
|
|
318
|
-
}
|
|
319
|
-
// T945 Stage A — mint `llmtxt:<sha256>` graph node + `embeds` edge
|
|
320
|
-
// from owner to blob. Best-effort: wrapped in fire-and-forget so
|
|
321
|
-
// graph-layer failure never blocks the attachment write path.
|
|
322
|
-
import('@cleocode/core/internal')
|
|
323
|
-
.then(({ ensureLlmtxtNode }) => ensureLlmtxtNode(getProjectRoot(), meta.sha256, `${ownerType}:${ownerId}`, absPath.split('/').pop() ?? meta.sha256.slice(0, 12)))
|
|
324
|
-
.catch(() => {
|
|
325
|
-
/* Graph population is best-effort — never fail docs add. */
|
|
326
|
-
});
|
|
327
|
-
return lafsSuccess({
|
|
328
|
-
attachmentId: meta.id,
|
|
329
|
-
sha256: meta.sha256,
|
|
330
|
-
refCount: meta.refCount,
|
|
331
|
-
kind: 'local-file',
|
|
332
|
-
ownerId,
|
|
333
|
-
ownerType,
|
|
334
|
-
// Cast: core returns 'llmtxt'|'legacy'; contracts uses 'legacy'|'llmstxt-v2' (T1529)
|
|
335
|
-
attachmentBackend: backend,
|
|
336
|
-
}, 'add');
|
|
337
|
-
}
|
|
338
|
-
// URL attachment — store metadata without caching bytes
|
|
339
|
-
if (url) {
|
|
340
|
-
const attachment = {
|
|
341
|
-
kind: 'url',
|
|
342
|
-
url,
|
|
343
|
-
...(description ? { description } : {}),
|
|
344
|
-
...(labels ? { labels } : {}),
|
|
345
|
-
};
|
|
346
|
-
// For URL-only attachments, use the URL as content so we have a sha256
|
|
347
|
-
const urlBytes = Buffer.from(url, 'utf-8');
|
|
348
|
-
const meta = await store.put(urlBytes, attachment, ownerType, ownerId, attachedBy);
|
|
349
|
-
// T945 Stage A — mint `llmtxt:<sha256>` node + `embeds` edge for the
|
|
350
|
-
// URL attachment (the URL itself is the content-addressable identity).
|
|
351
|
-
import('@cleocode/core/internal')
|
|
352
|
-
.then(({ ensureLlmtxtNode }) => ensureLlmtxtNode(getProjectRoot(), meta.sha256, `${ownerType}:${ownerId}`, url))
|
|
353
|
-
.catch(() => {
|
|
354
|
-
/* Graph population is best-effort — never fail docs add. */
|
|
355
|
-
});
|
|
356
|
-
// URL writes stay legacy-only; v2 focuses on local-file / blob kinds.
|
|
357
|
-
const backend = 'legacy';
|
|
358
|
-
return lafsSuccess({
|
|
359
|
-
attachmentId: meta.id,
|
|
360
|
-
sha256: meta.sha256,
|
|
361
|
-
refCount: meta.refCount,
|
|
362
|
-
kind: 'url',
|
|
363
|
-
url,
|
|
364
|
-
ownerId,
|
|
365
|
-
ownerType,
|
|
366
|
-
// Cast: core returns 'llmtxt'|'legacy'; contracts uses 'legacy'|'llmstxt-v2' (T1529)
|
|
367
|
-
attachmentBackend: backend,
|
|
368
|
-
}, 'add');
|
|
369
|
-
}
|
|
370
|
-
// Should not reach here
|
|
371
|
-
return lafsError('E_INVALID_INPUT', 'Unreachable: no file or url', 'add');
|
|
372
|
-
},
|
|
373
|
-
// ── docs.remove ────────────────────────────────────────────────────────────
|
|
374
|
-
remove: async (params) => {
|
|
375
|
-
const { attachmentRef: ref, from: fromOwner } = params;
|
|
376
|
-
if (!ref) {
|
|
377
|
-
return lafsError('E_INVALID_INPUT', 'attachmentRef is required (attachment ID or SHA-256 hex)', 'remove');
|
|
378
|
-
}
|
|
379
|
-
if (!fromOwner) {
|
|
380
|
-
return lafsError('E_INVALID_INPUT', '--from <ownerId> is required', 'remove');
|
|
381
|
-
}
|
|
382
|
-
const store = createAttachmentStore();
|
|
383
|
-
const ownerType = inferOwnerType(fromOwner);
|
|
384
|
-
// Resolve attachment ID if SHA-256 was given
|
|
385
|
-
let attachmentId = ref;
|
|
386
|
-
if (/^[0-9a-f]{64}$/i.test(ref)) {
|
|
387
|
-
const result = await store.get(ref);
|
|
388
|
-
if (!result) {
|
|
389
|
-
return lafsError('E_NOT_FOUND', `No attachment found with SHA-256: ${ref}`, 'remove');
|
|
390
|
-
}
|
|
391
|
-
attachmentId = result.metadata.id;
|
|
392
|
-
}
|
|
393
|
-
const derefResult = await store.deref(attachmentId, ownerType, fromOwner);
|
|
394
|
-
if (derefResult.status === 'not-found') {
|
|
395
|
-
return lafsError('E_NOT_FOUND', `Attachment ref not found: ${attachmentId} on owner ${fromOwner}`, 'remove');
|
|
396
|
-
}
|
|
397
|
-
const blobPurged = derefResult.status === 'removed';
|
|
398
|
-
const refCountAfter = derefResult.status === 'derefd' ? derefResult.refCountAfter : 0;
|
|
399
|
-
// T947 Wave B — mirror the remove through v2 so llmtxt manifests
|
|
400
|
-
// also soft-delete. Best-effort: the llmtxt path keys by blob name,
|
|
401
|
-
// and we only know the attachment id here, so the mirror only hits
|
|
402
|
-
// when v2 has already indexed this id (e.g. earlier put in same
|
|
403
|
-
// process). Legacy refcount remains the authoritative truth.
|
|
404
|
-
try {
|
|
405
|
-
const v2 = createAttachmentStoreV2(getProjectRoot());
|
|
406
|
-
await v2.remove(attachmentId, fromOwner);
|
|
407
|
-
}
|
|
408
|
-
catch {
|
|
409
|
-
/* Mirror remove is best-effort. */
|
|
410
|
-
}
|
|
411
|
-
const backend = await resolveAttachmentBackend();
|
|
412
|
-
return lafsSuccess({
|
|
413
|
-
removed: blobPurged,
|
|
414
|
-
attachmentId,
|
|
415
|
-
from: fromOwner,
|
|
416
|
-
refCountAfter,
|
|
417
|
-
blobPurged,
|
|
418
|
-
// Cast: core returns 'llmtxt'|'legacy'; contracts uses 'legacy'|'llmstxt-v2' (T1529)
|
|
419
|
-
attachmentBackend: backend,
|
|
420
|
-
}, 'remove');
|
|
421
|
-
},
|
|
422
|
-
});
|
|
423
|
-
// ─── Envelope-to-response converter ──────────────────────────────────────────
|
|
424
|
-
/**
|
|
425
|
-
* Convert a docs LAFS envelope to a {@link DispatchResponse}.
|
|
426
|
-
*
|
|
427
|
-
* Lifts `attachmentBackend` from `data` into `meta` for backward compatibility
|
|
428
|
-
* with T947 Wave B observability consumers that read `response.meta.attachmentBackend`.
|
|
429
|
-
*
|
|
430
|
-
* @param envelope - LAFS envelope returned by the typed op function.
|
|
431
|
-
* @param gateway - CQRS gateway ('query' | 'mutate').
|
|
432
|
-
* @param operation - Operation name forwarded to {@link dispatchMeta}.
|
|
433
|
-
* @param startTime - `Date.now()` captured at handler entry.
|
|
434
|
-
*
|
|
435
|
-
* @internal
|
|
436
|
-
*/
|
|
437
|
-
function docsEnvelopeToResponse(envelope, gateway, operation, startTime) {
|
|
438
|
-
if (!envelope.success) {
|
|
439
|
-
return {
|
|
440
|
-
meta: dispatchMeta(gateway, 'docs', operation, startTime),
|
|
441
|
-
success: false,
|
|
442
|
-
error: {
|
|
443
|
-
code: String(envelope.error?.code ?? 'E_INTERNAL'),
|
|
444
|
-
message: envelope.error?.message ?? 'Unknown error',
|
|
445
|
-
},
|
|
446
|
-
};
|
|
447
|
-
}
|
|
448
|
-
// Extract attachmentBackend from data (if present) and lift into meta.
|
|
449
|
-
let attachmentBackend;
|
|
450
|
-
let responseData = envelope.data;
|
|
451
|
-
if (responseData !== null && responseData !== undefined && typeof responseData === 'object') {
|
|
452
|
-
const dataObj = responseData;
|
|
453
|
-
if ('attachmentBackend' in dataObj && dataObj['attachmentBackend'] !== undefined) {
|
|
454
|
-
attachmentBackend = dataObj['attachmentBackend'];
|
|
455
|
-
// Remove from data so consumers don't see it doubled
|
|
456
|
-
const { attachmentBackend: _lifted, ...cleanData } = dataObj;
|
|
457
|
-
responseData = cleanData;
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
return {
|
|
461
|
-
meta: {
|
|
462
|
-
...dispatchMeta(gateway, 'docs', operation, startTime),
|
|
463
|
-
...(attachmentBackend !== undefined ? { attachmentBackend } : {}),
|
|
464
|
-
},
|
|
465
|
-
success: true,
|
|
466
|
-
data: responseData,
|
|
467
|
-
};
|
|
468
|
-
}
|
|
469
|
-
// ─── DocsHandler ──────────────────────────────────────────────────────────────
|
|
470
|
-
const QUERY_OPS = new Set(['list', 'fetch', 'generate']);
|
|
471
|
-
const MUTATE_OPS = new Set(['add', 'remove']);
|
|
472
|
-
/**
|
|
473
|
-
* Domain handler for `cleo docs` attachment operations.
|
|
474
|
-
*
|
|
475
|
-
* Delegates all per-op logic to the typed inner handler `_docsTypedHandler`
|
|
476
|
-
* (a `TypedDomainHandler<DocsTypedOps>`). This satisfies the registry's
|
|
477
|
-
* `DomainHandler` interface while keeping every param access fully type-safe
|
|
478
|
-
* per ADR-058.
|
|
479
|
-
*
|
|
480
|
-
* @see ADR-058 — Dispatch type inference
|
|
481
|
-
* @task T1529 — typed-dispatch migration (P0)
|
|
482
|
-
*/
|
|
483
|
-
export class DocsHandler {
|
|
484
|
-
// -----------------------------------------------------------------------
|
|
485
|
-
// Query
|
|
486
|
-
// -----------------------------------------------------------------------
|
|
487
|
-
/**
|
|
488
|
-
* Execute a read-only docs query operation.
|
|
489
|
-
*
|
|
490
|
-
* @param operation - The docs query op name (e.g. 'list', 'fetch', 'generate').
|
|
491
|
-
* @param params - Raw params from the dispatcher (narrowed internally).
|
|
492
|
-
*/
|
|
493
|
-
async query(operation, params) {
|
|
494
|
-
const startTime = Date.now();
|
|
495
|
-
if (!QUERY_OPS.has(operation)) {
|
|
496
|
-
return unsupportedOp('query', 'docs', operation, startTime);
|
|
497
|
-
}
|
|
498
|
-
try {
|
|
499
|
-
const envelope = await typedDispatch(_docsTypedHandler, operation, params ?? {});
|
|
500
|
-
return docsEnvelopeToResponse(envelope, 'query', operation, startTime);
|
|
501
|
-
}
|
|
502
|
-
catch (error) {
|
|
503
|
-
return handleErrorResult('query', 'docs', operation, error, startTime);
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
// -----------------------------------------------------------------------
|
|
507
|
-
// Mutate
|
|
508
|
-
// -----------------------------------------------------------------------
|
|
509
|
-
/**
|
|
510
|
-
* Execute a state-modifying docs mutation operation.
|
|
511
|
-
*
|
|
512
|
-
* @param operation - The docs mutate op name (e.g. 'add', 'remove').
|
|
513
|
-
* @param params - Raw params from the dispatcher (narrowed internally).
|
|
514
|
-
*/
|
|
515
|
-
async mutate(operation, params) {
|
|
516
|
-
const startTime = Date.now();
|
|
517
|
-
if (!MUTATE_OPS.has(operation)) {
|
|
518
|
-
return unsupportedOp('mutate', 'docs', operation, startTime);
|
|
519
|
-
}
|
|
520
|
-
try {
|
|
521
|
-
const envelope = await typedDispatch(_docsTypedHandler, operation, params ?? {});
|
|
522
|
-
return docsEnvelopeToResponse(envelope, 'mutate', operation, startTime);
|
|
523
|
-
}
|
|
524
|
-
catch (error) {
|
|
525
|
-
return handleErrorResult('mutate', 'docs', operation, error, startTime);
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
// -----------------------------------------------------------------------
|
|
529
|
-
// Supported operations
|
|
530
|
-
// -----------------------------------------------------------------------
|
|
531
|
-
/** Declared operations for introspection and validation. */
|
|
532
|
-
getSupportedOperations() {
|
|
533
|
-
return {
|
|
534
|
-
query: ['list', 'fetch', 'generate'],
|
|
535
|
-
mutate: ['add', 'remove'],
|
|
536
|
-
};
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
//# sourceMappingURL=docs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"docs.js","sourceRoot":"","sources":["../../../src/dispatch/domains/docs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmBpC,OAAO,EAEL,qBAAqB,EACrB,uBAAuB,EAEvB,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,wBAAwB,GACzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE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,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC;SAC1B,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Domain Handler Registry -- Maps canonical domain names to handler instances.
|
|
3
|
-
*
|
|
4
|
-
* Uses static imports. Will produce compile errors until all handler files
|
|
5
|
-
* are created by parallel agents -- that is expected.
|
|
6
|
-
*
|
|
7
|
-
* @epic T4820
|
|
8
|
-
* @task T5277 - sharing merged into nexus
|
|
9
|
-
*/
|
|
10
|
-
import type { DomainHandler } from '../types.js';
|
|
11
|
-
import { AdminHandler } from './admin.js';
|
|
12
|
-
import { CheckHandler } from './check.js';
|
|
13
|
-
import { ConduitHandler } from './conduit.js';
|
|
14
|
-
import { DiagnosticsHandler } from './diagnostics.js';
|
|
15
|
-
import { DocsHandler } from './docs.js';
|
|
16
|
-
import { IntelligenceHandler } from './intelligence.js';
|
|
17
|
-
import { MemoryHandler } from './memory.js';
|
|
18
|
-
import { NexusHandler } from './nexus.js';
|
|
19
|
-
import { OrchestrateHandler } from './orchestrate.js';
|
|
20
|
-
import { PipelineHandler } from './pipeline.js';
|
|
21
|
-
import { PlaybookHandler } from './playbook.js';
|
|
22
|
-
import { ReleaseHandler } from './release.js';
|
|
23
|
-
import { SentientHandler } from './sentient.js';
|
|
24
|
-
import { SessionHandler } from './session.js';
|
|
25
|
-
import { StickyHandler } from './sticky.js';
|
|
26
|
-
import { TasksHandler } from './tasks.js';
|
|
27
|
-
import { ToolsHandler } from './tools.js';
|
|
28
|
-
export { AdminHandler, CheckHandler, ConduitHandler, DiagnosticsHandler, DocsHandler, IntelligenceHandler, MemoryHandler, NexusHandler, OrchestrateHandler, PipelineHandler, PlaybookHandler, ReleaseHandler, SentientHandler, SessionHandler, StickyHandler, TasksHandler, ToolsHandler, };
|
|
29
|
-
/**
|
|
30
|
-
* Create a Map of all canonical domain handlers.
|
|
31
|
-
*/
|
|
32
|
-
export declare function createDomainHandlers(): Map<string, DomainHandler>;
|
|
33
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dispatch/domains/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,WAAW,EACX,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,cAAc,EACd,eAAe,EACf,cAAc,EACd,aAAa,EACb,YAAY,EACZ,YAAY,GACb,CAAC;AAEF;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CA2BjE"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Domain Handler Registry -- Maps canonical domain names to handler instances.
|
|
3
|
-
*
|
|
4
|
-
* Uses static imports. Will produce compile errors until all handler files
|
|
5
|
-
* are created by parallel agents -- that is expected.
|
|
6
|
-
*
|
|
7
|
-
* @epic T4820
|
|
8
|
-
* @task T5277 - sharing merged into nexus
|
|
9
|
-
*/
|
|
10
|
-
import { AdminHandler } from './admin.js';
|
|
11
|
-
import { CheckHandler } from './check.js';
|
|
12
|
-
import { ConduitHandler } from './conduit.js';
|
|
13
|
-
import { DiagnosticsHandler } from './diagnostics.js';
|
|
14
|
-
import { DocsHandler } from './docs.js';
|
|
15
|
-
import { IntelligenceHandler } from './intelligence.js';
|
|
16
|
-
import { MemoryHandler } from './memory.js';
|
|
17
|
-
import { NexusHandler } from './nexus.js';
|
|
18
|
-
import { OrchestrateHandler } from './orchestrate.js';
|
|
19
|
-
import { PipelineHandler } from './pipeline.js';
|
|
20
|
-
import { PlaybookHandler } from './playbook.js';
|
|
21
|
-
import { ReleaseHandler } from './release.js';
|
|
22
|
-
import { SentientHandler } from './sentient.js';
|
|
23
|
-
import { SessionHandler } from './session.js';
|
|
24
|
-
import { StickyHandler } from './sticky.js';
|
|
25
|
-
import { TasksHandler } from './tasks.js';
|
|
26
|
-
import { ToolsHandler } from './tools.js';
|
|
27
|
-
export { AdminHandler, CheckHandler, ConduitHandler, DiagnosticsHandler, DocsHandler, IntelligenceHandler, MemoryHandler, NexusHandler, OrchestrateHandler, PipelineHandler, PlaybookHandler, ReleaseHandler, SentientHandler, SessionHandler, StickyHandler, TasksHandler, ToolsHandler, };
|
|
28
|
-
/**
|
|
29
|
-
* Create a Map of all canonical domain handlers.
|
|
30
|
-
*/
|
|
31
|
-
export function createDomainHandlers() {
|
|
32
|
-
const handlers = new Map();
|
|
33
|
-
handlers.set('tasks', new TasksHandler());
|
|
34
|
-
handlers.set('session', new SessionHandler());
|
|
35
|
-
handlers.set('memory', new MemoryHandler());
|
|
36
|
-
handlers.set('intelligence', new IntelligenceHandler());
|
|
37
|
-
handlers.set('check', new CheckHandler());
|
|
38
|
-
handlers.set('pipeline', new PipelineHandler());
|
|
39
|
-
handlers.set('orchestrate', new OrchestrateHandler());
|
|
40
|
-
handlers.set('tools', new ToolsHandler());
|
|
41
|
-
handlers.set('admin', new AdminHandler());
|
|
42
|
-
handlers.set('nexus', new NexusHandler());
|
|
43
|
-
handlers.set('sticky', new StickyHandler());
|
|
44
|
-
handlers.set('diagnostics', new DiagnosticsHandler());
|
|
45
|
-
handlers.set('docs', new DocsHandler());
|
|
46
|
-
// T935: HITL playbook runtime + approvals surface
|
|
47
|
-
handlers.set('playbook', new PlaybookHandler());
|
|
48
|
-
// T964: conduit promoted to first-class canonical domain
|
|
49
|
-
// (supersedes ADR-042 Decision 1). ConduitHandler owns agent-to-agent
|
|
50
|
-
// messaging (status, peek, start, stop, send) via pluggable transports.
|
|
51
|
-
handlers.set('conduit', new ConduitHandler());
|
|
52
|
-
// T1008: sentient domain — Tier-2 proposal queue management.
|
|
53
|
-
handlers.set('sentient', new SentientHandler());
|
|
54
|
-
// T1416: release domain — IVTR gate check (RELEASE-03) + auto-suggest (RELEASE-07).
|
|
55
|
-
handlers.set('release', new ReleaseHandler());
|
|
56
|
-
return handlers;
|
|
57
|
-
}
|
|
58
|
-
//# sourceMappingURL=index.js.map
|