Commit Graph

77 Commits

Author SHA1 Message Date
Pierre Martin
51544cab0b docs(02): phase 2 plans 2026-03-23 17:37:09 +01:00
Pierre Martin
1d78b7dc3a docs(phase-2): add research and validation strategy 2026-03-23 15:33:41 +01:00
Pierre Martin
be223468bc docs(02): research daemon et i3 bridge phase domain 2026-03-23 15:32:48 +01:00
Pierre Martin
e1c42e2029 docs(state): record phase 2 context session 2026-03-23 15:22:11 +01:00
Pierre Martin
e84fb71812 docs(02): capture phase context 2026-03-23 15:22:05 +01:00
Pierre Martin
a6eb9f1406 chore: add Makefile and .envrc for dev environment 2026-03-23 14:44:36 +01:00
Pierre Martin
205499c00d docs(phase-01): evolve PROJECT.md after phase completion 2026-03-23 14:44:30 +01:00
Pierre Martin
f9a53632a3 docs(phase-01): complete phase execution 2026-03-23 14:44:06 +01:00
Pierre Martin
766ce541a1 chore(01-02): add .gitignore for vmux binary
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 13:31:25 +01:00
Pierre Martin
f1dcee0ae2 feat(01-02): add CLI display and main.go for vmux list
- DisplaySessions: colored output with state, cwd, branch, preview
- display_test.go: 5 tests covering color, noColor, empty, worktree, noBranch
- main.go: full pipeline FindClaudeProcesses -> FindSession -> DetectState -> Display
- Supports --no-color flag and NO_COLOR env var
- resolveWorktree via git rev-parse --show-toplevel

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 13:30:55 +01:00
Pierre Martin
e7ced9c3a3 test(01-02): add failing tests then implement session + state
- TailReadJSONL: reverse-read JSONL without loading entire file
- FindSessionForProcess: match PID to most recent JSONL via EncodePath
- DetectState: heuristic based on last message stop_reason + tool name
- ExtractPreview: extract first 3 lines of last assistant text
- All 17 tests pass (session_test.go + state_test.go)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 13:29:19 +01:00
Pierre Martin
d1c1239e1e docs(01-01): complete scaffolding + process detection plan
- SUMMARY.md with execution results
- STATE.md advanced to plan 2/2
- ROADMAP.md and REQUIREMENTS.md updated (DISC-01, DISC-02 complete)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 13:26:38 +01:00
Pierre Martin
166e44161d feat(01-01): implement FindClaudeProcesses and EncodePath
- Scan /proc for PIDs with "claude" in cmdline
- Read cwd via os.Readlink, skip errors silently
- EncodePath replaces / and . with - for ~/.claude/projects/ folder names

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 13:25:27 +01:00
Pierre Martin
81ee7dc49d test(01-01): add failing tests for proc scanning and path encoding
- TestFindClaudeProcesses with fake /proc (2 claude + 1 bash)
- TestFindClaudeProcesses_PermissionDenied (silent skip)
- TestFindClaudeProcesses_EmptyProc (empty slice)
- TestEncodePath and TestEncodePath_DotDir

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 13:24:59 +01:00
Pierre Martin
12e1ba79ba feat(01-01): scaffold Go project with types
- shell.nix with go and gopls for NixOS dev environment
- go.mod for github.com/pieMusic/vmux module
- types.go with Process, Session, SessionState (Working/NeedsInput/Idle/Unknown)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 13:24:24 +01:00
Pierre Martin
929ee4ce7d docs(01): phase 1 plans and research 2026-03-23 13:16:15 +01:00
Pierre Martin
1b81b56ae7 fix(01): revise plan 01-01 based on checker feedback 2026-03-23 13:14:33 +01:00
Pierre Martin
4916a75011 docs(01-session-discovery): create phase plan 2026-03-23 13:09:19 +01:00
Pierre Martin
3faba89614 docs(phase-1): add validation strategy 2026-03-23 13:05:17 +01:00
Pierre Martin
e5ee3635bb docs(01): research phase session discovery 2026-03-23 13:04:40 +01:00
Pierre Martin
16b42777e3 docs(state): record phase 1 context session 2026-03-23 12:53:36 +01:00
Pierre Martin
33e35e71db docs(01): capture phase context 2026-03-23 12:52:57 +01:00
Pierre Martin
699007b3f7 docs: create roadmap (4 phases) 2026-03-23 12:20:49 +01:00
Pierre Martin
2d21a199a4 docs: define v1 requirements 2026-03-23 11:33:50 +01:00
Pierre Martin
3030b88057 docs: complete project research 2026-03-23 11:25:05 +01:00
Pierre Martin
ec1e6134eb chore: add project config 2026-03-23 11:02:50 +01:00
Pierre Martin
7bedb08301 docs: initialize project 2026-03-23 10:57:35 +01:00