feat: expand session adapter registry with structured targets

- Registry accepts { type, value } structured targets
- Add --list-adapters and --target-type CLI flags to session-inspect
- Export adapter type from claude-history and dmux-tmux adapters
- 71 new session adapter tests, 34 new session-inspect tests
- All 1142 tests passing
This commit is contained in:
Affaan Mustafa
2026-03-14 19:09:26 -07:00
parent fcaf78e449
commit 2b2777915e
7 changed files with 221 additions and 24 deletions

View File

@@ -45,6 +45,8 @@ function createDmuxTmuxAdapter(options = {}) {
return {
id: 'dmux-tmux',
description: 'Tmux/worktree orchestration snapshots from plan files or session names',
targetTypes: ['plan', 'session'],
canOpen(target, context = {}) {
if (context.adapterId && context.adapterId !== 'dmux-tmux') {
return false;