Commit 0820805
committed
scripts(refactor[mcp_swap]): rename state dir to libtmux-mcp-dev under XDG_STATE_HOME
Old path ~/.local/state/libtmux-mcp/mcp_swap.json shared its directory
name with the runtime package even though this is dev-only tooling.
New path resolves $XDG_STATE_HOME (defaulting to ~/.local/state) and
namespaces under libtmux-mcp-dev/swap/state.json. State (vs.
cache/config/data) is the correct XDG bucket: the file is
machine-written, must persist across runs so revert can find the right
backup, but is neither safely deletable like cache nor user-edited
like config.
No migration shim: pre-alpha, dev-only, single-user surface. Anyone
holding state from the old path should run revert before pulling, or
manually move ~/.local/state/libtmux-mcp/mcp_swap.json to
~/.local/state/libtmux-mcp-dev/swap/state.json.1 parent 7216f25 commit 0820805
3 files changed
Lines changed: 25 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
75 | 93 | | |
76 | 94 | | |
77 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
0 commit comments