Rename slash command and add permissions/cooldown

This commit is contained in:
nav
2026-03-05 09:00:47 +00:00
parent 455ea26039
commit 10d7e8a6c2
2 changed files with 7 additions and 5 deletions

View File

@@ -71,9 +71,9 @@
--- ---
## 4.1 功能开关Slash Commands ## 4.1 功能开关Slash Commands
- **T-4101**:实现 `/padded-cell` 命令status/enable/disable - **T-4101**:实现 `/padded-cell-ctrl` 命令status/enable/disable
- Deps: — - Deps: —
- **T-4102**:开关状态持久化权限限制 - **T-4102**:开关状态持久化权限限制(授权用户)与 10 秒冷却
- Deps: T-4101 - Deps: T-4101
--- ---

View File

@@ -45,9 +45,11 @@
### 1.4 安全重启CalmGate-like已并入 PaddedCell ### 1.4 安全重启CalmGate-like已并入 PaddedCell
- PaddedCell **完整承接 CalmGate 的所有功能**,不再单独开发 CalmGate。 - PaddedCell **完整承接 CalmGate 的所有功能**,不再单独开发 CalmGate。
- 提供 slash command 以启用/禁用重启功能与密码管理功能: - 提供 slash command 以启用/禁用重启功能与密码管理功能:
- `/padded-cell status`:展示两项功能状态 - `/padded-cell-ctrl status`:展示两项功能状态
- `/padded-cell enable pass-mgr|safe-restart` - `/padded-cell-ctrl enable pass-mgr|safe-restart`
- `/padded-cell disable pass-mgr|safe-restart` - `/padded-cell-ctrl disable pass-mgr|safe-restart`
- 权限仅授权用户可执行agent 不可自主调用)。
- 冷却:每个功能开关后**锁定 10 秒**10 秒内再次尝试改变状态需返回提示“最近刚被修改过”。
#### 1.4.1 Agent 全局状态管理 #### 1.4.1 Agent 全局状态管理
- 状态集合:`idle | busy | focus | freeze | pre-freeze | pre-freeze-focus` - 状态集合:`idle | busy | focus | freeze | pre-freeze | pre-freeze-focus`