mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-11 02:33:51 +08:00
refactor(session): 移除旧的操作参考,简化文档内容
This commit is contained in:
@@ -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) |
|
|
||||||
|
|||||||
@@ -112,11 +112,3 @@ ccw tool exec session_manager '{"operation":"list","location":"active","include_
|
|||||||
```bash
|
```bash
|
||||||
ccw tool exec session_manager '{"operation":"read","session_id":"WFS-xxx","content_type":"session"}'
|
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"}` |
|
|
||||||
|
|||||||
@@ -77,10 +77,3 @@ ccw tool exec session_manager '{
|
|||||||
```bash
|
```bash
|
||||||
ccw tool exec session_manager '{"operation":"read","session_id":"WFS-xxx","content_type":"session"}'
|
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":"..."}}` |
|
|
||||||
|
|||||||
@@ -217,11 +217,3 @@ ccw tool exec session_manager '{
|
|||||||
```bash
|
```bash
|
||||||
ccw tool exec session_manager '{"operation":"read","session_id":"WFS-xxx","content_type":"session"}'
|
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"}` |
|
|
||||||
Reference in New Issue
Block a user