From 9c04d47c8eb06ed8a27ae4998b37648584c42d59 Mon Sep 17 00:00:00 2001 From: "Yuyao Huang (Sam)" Date: Mon, 30 Mar 2026 01:40:53 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E5=89=8D=E7=BC=80=E4=BB=8E`/`=E6=94=B9=E4=B8=BA`//`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新所有文档和代码中的命令前缀,从单斜杠`/`改为双斜杠`//`,以保持一致性 --- README.md | 50 ++++++++++++++++++++++++------------------------- ROADMAP.md | 32 +++++++++++++++---------------- bot/commands.py | 12 ++++++------ 3 files changed, 47 insertions(+), 47 deletions(-) diff --git a/README.md b/README.md index 04c621c..f524551 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ PhoneWork uses a **Router + Host Client** architecture that supports both single | Module | Purpose | |--------|---------| | `standalone.py` | Single-process entry point: runs router + host client together | -| `router/main.py` | FastAPI app factory, mounts `/ws/node` endpoint, can be run directly | +| `router/main.py` | FastAPI app factory, mounts `//ws/node` endpoint, can be run directly | | `shared/protocol.py` | Wire protocol for router-host communication | | `router/nodes.py` | Node registry, connection management, user-to-node mapping | | `router/ws.py` | WebSocket endpoint for host clients, heartbeat, message routing | @@ -51,7 +51,7 @@ PhoneWork uses a **Router + Host Client** architecture that supports both single | `host_client/config.py` | Host client configuration loader | | `bot/handler.py` | Receives Feishu events via long-connection WebSocket | | `bot/feishu.py` | Sends text/file replies back to Feishu | -| `bot/commands.py` | Slash command handler (`/new`, `/status`, `/shell`, `/remind`, `/tasks`, `/nodes`, `/node`) | +| `bot/commands.py` | Slash command handler (`//new`, `//status`, `//shell`, `//remind`, `//tasks`, `//nodes`, `//node`) | | `orchestrator/agent.py` | LangChain agent with per-user history + direct/smart mode + direct Q&A | | `orchestrator/tools.py` | Tools: session management, shell, file ops, web search, scheduler, task status | | `agent/manager.py` | Session registry with persistence, idle timeout, and auto-background tasks | @@ -281,30 +281,30 @@ GET /health | Command | Description | |---------|-------------| -| `/new [msg]` | Create a new Claude Code session in `` | -| `/new [msg] --timeout N` | Create with custom CC timeout (seconds) | -| `/new [msg] --idle N` | Create with custom idle timeout (seconds) | -| `/status` | Show your sessions and current mode | -| `/switch ` | Switch active session to number `` from `/status` | -| `/close [n]` | Close active session (or session ``) | -| `/direct` | Direct mode: messages go straight to Claude Code (no LLM overhead) | -| `/smart` | Smart mode: messages go through LLM for intelligent routing (default) | -| `/shell ` | Run a shell command directly (bypasses LLM) | -| `/remind