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:
45
AirPlan/docs/spec/AirPlanV2/commands/dep.md
Executable file
45
AirPlan/docs/spec/AirPlanV2/commands/dep.md
Executable file
@@ -0,0 +1,45 @@
|
||||
---
|
||||
description: "AirPlan dep mode - SSH remote build + deploy + systemd management"
|
||||
argument-hint: "[deploy|status]"
|
||||
allowed-tools: "[Read, Glob, Grep, Bash, Write, Edit]"
|
||||
---
|
||||
|
||||
# /dep
|
||||
|
||||
AirDep 是部署器。SSH 远程构建 → 二进制传输(scp + MD5 校验)→ systemd 生命周期管理 → 部署验证。
|
||||
|
||||
## 硬规则
|
||||
|
||||
1. **部署前必须已有构建产物** — 本地 `--binary` 路径文件必须存在
|
||||
2. **传输后 MD5 校验** — scp 后远程 MD5 必须与本地一致
|
||||
3. **部署后验证** — systemd `is-active` 检查服务状态
|
||||
|
||||
## 子命令
|
||||
|
||||
### deploy — 执行部署
|
||||
|
||||
```bash
|
||||
python scripts/airplan.py --mode dep --project . --sub deploy --task-id T-001 --host 192.168.1.100 --binary ./build/myapp
|
||||
```
|
||||
|
||||
参数:
|
||||
- `--task-id`:关联任务 ID
|
||||
- `--host`:远程主机地址
|
||||
- `--binary`:本地二进制文件路径
|
||||
|
||||
返回 `{task_id, success, md5, service_status}`。emit `deploy.completed` 事件。
|
||||
|
||||
制品:`AirPlan/state/airdep/sessions/{session_id}.json`
|
||||
|
||||
### status — 查看部署状态
|
||||
|
||||
```bash
|
||||
python scripts/airplan.py --mode dep --project . --sub status
|
||||
```
|
||||
|
||||
## 集成路径
|
||||
|
||||
**Do Worker 完成后部署**:Worker finish → Eng merge 检测 `deployRequired` 字段 → 调 dep deploy:
|
||||
```bash
|
||||
python scripts/airplan.py --mode dep --project . --sub deploy --task-id T-001 --host <host> --binary <path>
|
||||
```
|
||||
Reference in New Issue
Block a user