feat: AirPlan V2 — 全专家插件强制路由 + 事件系统规范化
P0-8 扩大: do_mode.py finish_worker 全专家插件强制路由 - GUI→XDB, network→NDB, C/C++→SDB, done→Rvr, blocked/failed→Dbg - 证据去重: 已有 xdbSessions/ndbSessions/sdbReports/rvrReviewed 则跳过 P1-GAP17: 事件 emit 规范化 - 新增 7 个事件常量 (TASK_ENTERED, TASK_FINISHED, ENGINE_ENTERED 等) - 全部 emit 调用替换字符串字面量为常量,零残留 - 30 个事件类型常量全部定义且唯一 P1-GAP18: 事件日志原子轮转 - emit 计数器每 128 次检查轮转,避免每次 emit 读文件 - 清除未使用的 _emit_with_completion/_pending_merge_complete - 原子轮转: tempfile+os.replace 保证不损坏 eng 极端接管: 强制调用全部专家插件 (Dbg/XDB/NDB/SDB/Rvr) commands/do.md: 更新为全专家插件路由文档 全量测试: 69 通过, 0 失败 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
31
commands/ndb.md
Executable file
31
commands/ndb.md
Executable file
@@ -0,0 +1,31 @@
|
||||
---
|
||||
description: "AirPlan ndb mode - network debugger for packet capture and analysis"
|
||||
argument-hint: "[enter|status]"
|
||||
allowed-tools: "[Read, Glob, Grep, Bash, Write, Edit]"
|
||||
---
|
||||
|
||||
# /ndb
|
||||
|
||||
AirNDB 是网络调试器。抓包分析、TLS 解密、pcapng 支持。
|
||||
|
||||
## 子命令
|
||||
|
||||
### enter — 初始化网络调试器
|
||||
|
||||
```bash
|
||||
python scripts/airplan.py --mode ndb --project . --sub enter
|
||||
```
|
||||
|
||||
返回 `{state_path}`。初始化 `AirPlan/state/airndb/` 目录结构。
|
||||
|
||||
### status — 查看调试器状态
|
||||
|
||||
```bash
|
||||
python scripts/airplan.py --mode ndb --project . --sub status
|
||||
```
|
||||
|
||||
制品:`AirPlan/state/airndb/captures/`
|
||||
|
||||
## 集成路径
|
||||
|
||||
**Dbg 取证**:Dbg 在 `locate_root_cause` 步骤可调 ndb 获取网络证据。涉及 network/rtsp/http/tcp 的任务需要抓包证据。
|
||||
Reference in New Issue
Block a user