docs: 新增执行安全规范,防止命令挂起阻塞会话

This commit is contained in:
empty
2025-12-16 10:58:34 +08:00
parent cc6e137994
commit 3d1677bdb1

View File

@@ -50,6 +50,13 @@ xcodebuild -scheme to-live-photo -configuration Release -destination 'generic/pl
- 不重构: 与当前任务无关的代码
- 不执行: 破坏性删除命令(如 rm -rf 涉及 ~ 或 / 路径)
## 执行安全
- 执行前评估: 命令是否可能挂起(交互式、网络依赖、长耗时)
- 禁止交互式: 不使用 `-i` 标志或需要 stdin 输入的命令
- 长任务策略: 后台执行 + 超时设置 + 进度监控
- 阻塞处理: 若命令超过预期时间无响应,主动中断而非无限等待
## 代码规范
- 遵循 `DesignSystem.swift` 令牌,禁止硬编码颜色/间距