chore: push all design docs, V2 plan specs, and current working state

Includes AirPlan design documents, AircOding-alpha1-plan, AirPlanV2,
AirPlan-ParaV2, AirPlan-Para V1 reference docs, and all working code
changes across packages.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
AirCoding
2026-06-12 17:12:29 +08:00
parent 8f55c962bb
commit ae44be31d5
364 changed files with 46779 additions and 2812 deletions

View File

@@ -0,0 +1,53 @@
---
description: "AirPlan tst mode - unified test runner for CTest/GoogleTest/pytest/jest/go test/cargo test"
argument-hint: "[run|status]"
allowed-tools: "[Read, Glob, Grep, Bash, Write, Edit]"
---
# /tst
AirTst 是测试运行器。支持多框架统一执行和结构化结果报告。
## 支持的框架
| 框架 | --framework 值 | 语言 |
|------|---------------|------|
| CTest / GoogleTest | `googletest` | C++ |
| pytest | `pytest` | Python |
| jest / vitest | `jest` | TypeScript |
| go test | `go` | Go |
| cargo test | `cargo` | Rust |
## 子命令
### run — 执行测试
```bash
python scripts/airplan.py --mode tst --project . --sub run --task-id T-001 --framework googletest
```
参数:
- `--task-id`:关联任务 ID
- `--framework`:测试框架(见上表)
返回 `{task_id, framework, total, passed, failed}`。emit `test.run` 事件。
制品:`AirPlan/state/airtst/reports/{task_id}-{ts}.json`
### status — 查看测试状态
```bash
python scripts/airplan.py --mode tst --project . --sub status
```
## 集成路径
**Arc 注入的边界测试任务执行**Arc 规划的 `T-TEST-*` 任务执行时调 tst run
```bash
python scripts/airplan.py --mode tst --project . --sub run --task-id T-TEST-001 --framework googletest
```
**Do Worker 完成前自测**Worker finish 前可调 tst 验证:
```bash
python scripts/airplan.py --mode tst --project . --sub run --task-id {tid} --framework {fw}
```