Rename slash command and add permissions/cooldown
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -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`
|
||||||
|
|||||||
Reference in New Issue
Block a user