speccrew 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -146,13 +146,15 @@ flowchart LR
146
146
  PRD[階段一<br/>需求分析<br/>Product Manager] --> FD[階段二<br/>功能設計<br/>Feature Designer]
147
147
  FD --> SD[階段三<br/>系統設計<br/>System Designer]
148
148
  SD --> DEV[階段四<br/>開發實現<br/>System Developer]
149
- DEV --> TEST[階段五<br/>系統測試<br/>Test Manager]
150
- TEST --> ARCHIVE[階段六<br/>歸檔]
149
+ DEV --> DEPLOY[階段五<br/>部署實施<br/>System Deployer]
150
+ DEPLOY --> TEST[階段六<br/>系統測試<br/>Test Manager]
151
+ TEST --> ARCHIVE[階段七<br/>歸檔]
151
152
 
152
153
  KB[(知識庫<br/>貫穿始終)] -.-> PRD
153
154
  KB -.-> FD
154
155
  KB -.-> SD
155
156
  KB -.-> DEV
157
+ KB -.-> DEPLOY
156
158
  KB -.-> TEST
157
159
  ```
158
160
 
@@ -332,14 +334,49 @@ iterations/{iter}/04.development/
332
334
 
333
335
  ---
334
336
 
335
- ### 7.5 階段五:系統測試(Test Manager)
337
+ ### 7.5 階段五:部署實施(System Deployer)
336
338
 
337
- **如何啟動**:
339
+ **如何啟動**:
340
+
341
+ ```
342
+ @speccrew-system-deployer 開始部署
343
+ ```
344
+
345
+ **Agent 工作流程**:
346
+ 1. 驗證開發階段已完成(Stage Gate)
347
+ 2. 加載技術知識庫(構建配置、資料庫遷移配置、服務啟動命令)
348
+ 3. **Checkpoint**:環境預檢 — 驗證構建工具、運行時版本、依賴可用性
349
+ 4. 按順序執行部署技能:構建(Build)→ 資料庫遷移(Migrate)→ 服務啟動(Startup)→ 煙霧測試(Smoke Test)
350
+ 5. 輸出部署報告
351
+
352
+ > 💡 **提示**:對於無資料庫的專案,遷移步驟會自動跳過;對於客戶端應用(桌面/行動端),會使用程序驗證模式替代 HTTP 健康檢查。
353
+
354
+ **產出物**:
355
+
356
+ ```
357
+ iterations/{iter}/05.deployment/
358
+ ├── {platform-id}/
359
+ │ ├── deployment-plan.md # 部署計劃
360
+ │ └── deployment-log.md # 部署執行日誌
361
+ └── deployment-report.md # 部署完成報告
362
+ ```
363
+
364
+ **確認要點**:
365
+ - [ ] 構建是否成功完成
366
+ - [ ] 資料庫遷移腳本是否全部執行成功(如適用)
367
+ - [ ] 應用是否正常啟動並通過健康檢查
368
+ - [ ] 煙霧測試是否全部通過
369
+
370
+ ---
371
+
372
+ ### 7.6 階段六:系統測試(Test Manager)
373
+
374
+ **如何啟動**:
338
375
  ```
339
376
  @speccrew-test-manager 開始測試
340
377
  ```
341
378
 
342
- **三階段測試流程**:
379
+ **三階段測試流程**:
343
380
 
344
381
  | 階段 | 說明 | Checkpoint |
345
382
  |------|------|------------|
@@ -347,9 +384,9 @@ iterations/{iter}/04.development/
347
384
  | 測試程式碼生成 | 生成可執行的測試程式碼 | B:展示生成的測試檔案和用例映射,等待使用者確認 |
348
385
  | 測試執行與 Bug 報告 | 自動執行測試,生成報告 | 無(自動執行) |
349
386
 
350
- **產出物**:
387
+ **產出物**:
351
388
  ```
352
- iterations/{iter}/05.system-test/
389
+ iterations/{iter}/06.system-test/
353
390
  ├── cases/
354
391
  │ └── {platform-id}/ # 測試用例文檔
355
392
  ├── code/
@@ -360,14 +397,14 @@ iterations/{iter}/05.system-test/
360
397
  └── BUG-{id}-{title}.md # Bug 報告(每個 Bug 一個檔案)
361
398
  ```
362
399
 
363
- **確認要點**:
400
+ **確認要點**:
364
401
  - [ ] 用例覆蓋是否完整
365
402
  - [ ] 測試程式碼是否可運行
366
403
  - [ ] Bug 嚴重程度判定是否準確
367
404
 
368
405
  ---
369
406
 
370
- ### 7.6 階段六:歸檔
407
+ ### 7.7 階段七:歸檔
371
408
 
372
409
  迭代完成後自動歸檔:
373
410
 
@@ -378,7 +415,8 @@ speccrew-workspace/iteration-archives/
378
415
  ├── 02.feature-design/
379
416
  ├── 03.system-design/
380
417
  ├── 04.development/
381
- └── 05.system-test/
418
+ ├── 05.deployment/
419
+ └── 06.system-test/
382
420
  ```
383
421
 
384
422
  ---
@@ -469,7 +507,8 @@ Pipeline Status: i001-user-management
469
507
  02 Feature Design: 🔄 In Progress (Checkpoint A passed)
470
508
  03 System Design: ⏳ Pending
471
509
  04 Development: ⏳ Pending
472
- 05 System Test: ⏳ Pending
510
+ 05 Deployment: ⏳ Pending
511
+ 06 System Test: ⏳ Pending
473
512
  ```
474
513
 
475
514
  ### 9.5 向下相容
@@ -565,6 +604,7 @@ npm install -g speccrew@0.5.6
565
604
  | 功能設計 | Feature Designer | `@speccrew-feature-designer 開始功能設計` |
566
605
  | 系統設計 | System Designer | `@speccrew-system-designer 開始系統設計` |
567
606
  | 開發實現 | System Developer | `@speccrew-system-developer 開始開發` |
607
+ | 部署實施 | System Deployer | `@speccrew-system-deployer 開始部署` |
568
608
  | 系統測試 | Test Manager | `@speccrew-test-manager 開始測試` |
569
609
 
570
610
  ### Checkpoint 檢查清單
@@ -575,6 +615,7 @@ npm install -g speccrew@0.5.6
575
615
  | 功能設計 | 1 | 場景覆蓋、交互清晰度、資料完整性、異常處理 |
576
616
  | 系統設計 | 2 | A: 框架評估;B: 偽程式碼語法、跨端一致性、錯誤處理 |
577
617
  | 開發實現 | 1 | A: 環境就緒、集成問題、程式碼規約 |
618
+ | 部署實施 | 1 | 構建成功、遷移完成、服務啟動、煙霧測試通過 |
578
619
  | 系統測試 | 2 | A: 用例覆蓋;B: 測試程式碼可運行性 |
579
620
 
580
621
  ### 產出物路徑速查
@@ -585,7 +626,8 @@ npm install -g speccrew@0.5.6
585
626
  | 功能設計 | `iterations/{iter}/02.feature-design/` | `[name]-feature-spec.md` |
586
627
  | 系統設計 | `iterations/{iter}/03.system-design/` | `DESIGN-OVERVIEW.md`, `{platform}/INDEX.md`, `{platform}/{module}-design.md` |
587
628
  | 開發實現 | `iterations/{iter}/04.development/` | 源程式碼 + `delivery-report.md` |
588
- | 系統測試 | `iterations/{iter}/05.system-test/` | `cases/`, `code/`, `reports/`, `bugs/` |
629
+ | 部署實施 | `iterations/{iter}/05.deployment/` | `deployment-plan.md`, `deployment-log.md`, `deployment-report.md` |
630
+ | 系統測試 | `iterations/{iter}/06.system-test/` | `cases/`, `code/`, `reports/`, `bugs/` |
589
631
  | 歸檔 | `iteration-archives/{iter}-{date}/` | 完整迭代副本 |
590
632
 
591
633
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speccrew",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Spec-Driven Development toolkit for AI-powered IDEs",
5
5
  "author": "charlesmu99",
6
6
  "repository": {