refactor(session): 移除旧的操作参考,简化文档内容

This commit is contained in:
catlog22
2025-12-11 16:07:57 +08:00
parent c256fd9379
commit cfcd277a58
4 changed files with 0 additions and 32 deletions

View File

@@ -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) |

View File

@@ -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"}` |

View File

@@ -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":"..."}}` |

View File

@@ -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"}` |