From cfcd277a58f75f69d19e91a0c50be079fa6db625 Mon Sep 17 00:00:00 2001 From: catlog22 Date: Thu, 11 Dec 2025 16:07:57 +0800 Subject: [PATCH] =?UTF-8?q?refactor(session):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E6=97=A7=E7=9A=84=E6=93=8D=E4=BD=9C=E5=8F=82=E8=80=83=EF=BC=8C?= =?UTF-8?q?=E7=AE=80=E5=8C=96=E6=96=87=E6=A1=A3=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/commands/workflow/session/complete.md | 9 --------- .claude/commands/workflow/session/list.md | 8 -------- .claude/commands/workflow/session/resume.md | 7 ------- .claude/commands/workflow/session/start.md | 8 -------- 4 files changed, 32 deletions(-) diff --git a/.claude/commands/workflow/session/complete.md b/.claude/commands/workflow/session/complete.md index 5676573f..96501dab 100644 --- a/.claude/commands/workflow/session/complete.md +++ b/.claude/commands/workflow/session/complete.md @@ -550,12 +550,3 @@ ccw tool exec session_manager '{ }' ``` -### Operation Reference -| Old Pattern | session_manager | -|------------|-----------------| -| `find .workflow/active/ -name "WFS-*"` | `{"operation":"list","location":"active"}` | -| `jq '.status = "completed"' ...` | `{"operation":"update","content":{"status":"completed"}}` | -| `mv .workflow/active/WFS-xxx .workflow/archives/` | `{"operation":"archive","session_id":"WFS-xxx"}` | -| `touch .archiving` | `{"operation":"write","content_type":"process","path_params":{"filename":".archiving"}}` | -| `rm .archiving` | Use bash `rm` directly (no delete operation in tool) | -| `cat manifest.json` | Read manifest directly with bash (outside session scope) | diff --git a/.claude/commands/workflow/session/list.md b/.claude/commands/workflow/session/list.md index 1f9d8c2d..6ba221a3 100644 --- a/.claude/commands/workflow/session/list.md +++ b/.claude/commands/workflow/session/list.md @@ -112,11 +112,3 @@ ccw tool exec session_manager '{"operation":"list","location":"active","include_ ```bash ccw tool exec session_manager '{"operation":"read","session_id":"WFS-xxx","content_type":"session"}' ``` - -### Operation Reference -| Old Pattern | session_manager | -|------------|-----------------| -| `ls .workflow/active/WFS-*` | `{"operation":"list","location":"active"}` | -| `find ... -type d` | `{"operation":"list"}` returns session_id list | -| `jq -r '.status' session.json` | `{"operation":"read","content_type":"session"}` | -| `cat workflow-session.json` | `{"operation":"read","content_type":"session"}` | diff --git a/.claude/commands/workflow/session/resume.md b/.claude/commands/workflow/session/resume.md index 11f4b6ec..6780cef2 100644 --- a/.claude/commands/workflow/session/resume.md +++ b/.claude/commands/workflow/session/resume.md @@ -77,10 +77,3 @@ ccw tool exec session_manager '{ ```bash ccw tool exec session_manager '{"operation":"read","session_id":"WFS-xxx","content_type":"session"}' ``` - -### Operation Reference -| Old Pattern | session_manager | -|------------|-----------------| -| `jq -r '.status' session.json` | `{"operation":"read","content_type":"session"}` | -| `jq '.status = "active"' ... > temp.json && mv` | `{"operation":"update","content":{"status":"active"}}` | -| `jq '.resumed_at = "..."'` | `{"operation":"update","content":{"resumed_at":"..."}}` | diff --git a/.claude/commands/workflow/session/start.md b/.claude/commands/workflow/session/start.md index f848b21a..ec053208 100644 --- a/.claude/commands/workflow/session/start.md +++ b/.claude/commands/workflow/session/start.md @@ -217,11 +217,3 @@ ccw tool exec session_manager '{ ```bash ccw tool exec session_manager '{"operation":"read","session_id":"WFS-xxx","content_type":"session"}' ``` - -### Operation Reference -| Old Pattern | session_manager | -|------------|-----------------| -| `ls .workflow/active/` | `{"operation":"list","location":"active"}` | -| `mkdir -p .../.process .../.task .../.summaries` | `{"operation":"init","session_id":"WFS-xxx"}` | -| `echo '{...}' > workflow-session.json` | `{"operation":"write","content_type":"session","content":{...}}` | -| `cat workflow-session.json` | `{"operation":"read","content_type":"session"}` | \ No newline at end of file