@jakkrichm/create-nexus-devflow 2.17.0 → 2.17.2

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.
Files changed (58) hide show
  1. package/dist/bin/create-nexus-devflow.d.ts +1 -1
  2. package/dist/bin/create-nexus-devflow.js +0 -37
  3. package/dist/bin/create-nexus-devflow.js.map +1 -1
  4. package/dist/lib/tooling/commands/summarize-run-status.js +1 -3
  5. package/dist/lib/tooling/commands/summarize-run-status.js.map +1 -1
  6. package/dist/lib/tooling/registry.js +0 -2
  7. package/dist/lib/tooling/registry.js.map +1 -1
  8. package/dist/lib/update.d.ts +3 -8
  9. package/dist/lib/update.js.map +1 -1
  10. package/dist/scripts/prepare-template.js +15 -75
  11. package/dist/scripts/prepare-template.js.map +1 -1
  12. package/package.json +1 -1
  13. package/template/AGENTS.md +9 -10
  14. package/template/devflow/{30-planning/build-plan.md → build-plan.md} +2 -9
  15. package/dist/lib/tooling/commands/migrate-structure.d.ts +0 -8
  16. package/dist/lib/tooling/commands/migrate-structure.js +0 -197
  17. package/dist/lib/tooling/commands/migrate-structure.js.map +0 -1
  18. package/dist/lib/workspace-paths.d.ts +0 -15
  19. package/dist/lib/workspace-paths.js +0 -61
  20. package/dist/lib/workspace-paths.js.map +0 -1
  21. package/template/devflow/40-tasks/.gitkeep +0 -0
  22. package/template/devflow/40-tasks/README.md +0 -11
  23. package/template/devflow/60-docs/migration-guide-decade-numbered.md +0 -93
  24. /package/template/devflow/{00-context → context}/ai-interaction.md +0 -0
  25. /package/template/devflow/{00-context → context}/coding-standards.md +0 -0
  26. /package/template/devflow/{00-context → context}/glossary.md +0 -0
  27. /package/template/devflow/{00-context → context}/project-overview.md +0 -0
  28. /package/template/devflow/{20-discovery/decisions → decisions}/.gitkeep +0 -0
  29. /package/template/devflow/{20-discovery/decisions → decisions}/README.md +0 -0
  30. /package/template/devflow/{20-discovery/discoveries → discoveries}/.gitkeep +0 -0
  31. /package/template/devflow/{60-docs → docs}/USAGE.md +0 -0
  32. /package/template/devflow/{60-docs → docs}/diagrams/nexus-devflow-architecture.html +0 -0
  33. /package/template/devflow/{60-docs → docs}/diagrams/nexus-devflow-architecture.json +0 -0
  34. /package/template/devflow/{60-docs → docs}/diagrams/nexus-devflow-lifecycle.html +0 -0
  35. /package/template/devflow/{60-docs → docs}/diagrams/nexus-devflow-lifecycle.json +0 -0
  36. /package/template/devflow/{60-docs → docs}/examples/living-spec/adr.example.md +0 -0
  37. /package/template/devflow/{60-docs → docs}/examples/living-spec/current-feature.example.md +0 -0
  38. /package/template/devflow/{60-docs → docs}/examples/living-spec/discovery.example.md +0 -0
  39. /package/template/devflow/{60-docs → docs}/examples/living-spec/ideas.example.md +0 -0
  40. /package/template/devflow/{60-docs → docs}/governance-rules.md +0 -0
  41. /package/template/devflow/{60-docs → docs}/manual-review-workflow-spec.md +0 -0
  42. /package/template/devflow/{60-docs → docs}/markdown-metadata-contract.md +0 -0
  43. /package/template/devflow/{60-docs → docs}/quickstart.md +0 -0
  44. /package/template/devflow/{60-docs → docs}/release-process.md +0 -0
  45. /package/template/devflow/{60-docs → docs}/skill-selection-policy.md +0 -0
  46. /package/template/devflow/{60-docs → docs}/workflow-surface-map.md +0 -0
  47. /package/template/devflow/{50-history → history}/HISTORY.md +0 -0
  48. /package/template/devflow/{50-history → history}/features/README.md +0 -0
  49. /package/template/devflow/{50-history → history}/fixes/README.md +0 -0
  50. /package/template/devflow/{50-history → history}/rollbacks/README.md +0 -0
  51. /package/template/devflow/{10-ideation/ideas.md → ideas.md} +0 -0
  52. /package/template/devflow/{30-planning/project-plan.md → project-plan.md} +0 -0
  53. /package/template/devflow/{10-ideation/reference → reference}/build-plan-template.md +0 -0
  54. /package/template/devflow/{10-ideation/reference → reference}/feature-spec-template.md +0 -0
  55. /package/template/devflow/{10-ideation/reference → reference}/mockup.html +0 -0
  56. /package/template/devflow/{10-ideation/reference → reference}/project-overview-template.md +0 -0
  57. /package/template/devflow/{10-ideation/reference → reference}/project-plan-template.md +0 -0
  58. /package/template/devflow/{10-ideation/reference → reference}/running-id-contract.md +0 -0
@@ -1,93 +0,0 @@
1
- # คู่มือการย้ายโครงสร้างโฟลเดอร์สู่ Decade-Numbered Stages (Migration Guide)
2
-
3
- > **DevFlow Version**: 2.16.5+
4
- > **Topic**: การจัดระเบียบโฟลเดอร์ `devflow/` ตามลำดับขั้นตอนด้วย Decade-Numbered Stages และการอัปเกรดจากโครงสร้างเดิม
5
-
6
- ---
7
-
8
- ## 🌟 1. สถาปัตยกรรมโฟลเดอร์ Decade-Numbered Stages
9
-
10
- เพื่อแก้ปัญหาโฟลเดอร์ใน `devflow/` กระจัดกระจายและไม่มีตัวเลขจัดเรียงสายตาใน IDE ทาง DevFlow ได้แนะนำโครงสร้าง **Decade-Numbered Stages Structure** (`00-`, `10-`, `20-`, ...) ที่ช่วยให้ทั้งผู้ใช้งานและ AI Agent ไล่ลำดับขั้นตอนการพัฒนาได้อย่างเป็นธรรมชาติ:
11
-
12
- ```text
13
- devflow/
14
- ├── config.json # Root configuration
15
- ├── .state/ # Runtime state (run.json - Git ignored)
16
- ├── .vendor/ # External vendor skills (bughunter, ponytail, ฯลฯ)
17
- │
18
- ├── 00-context/ # [Foundation & Source of Truth]
19
- │ ├── project-overview.md # Living overview (สถาปัตยกรรม & tech stack ล่าสุด)
20
- │ ├── coding-standards.md # กฎระเบียบและมาตรฐานการเขียนโค้ด
21
- │ ├── ai-interaction.md # ข้อกำหนดการทำงานร่วมกับ AI Agent
22
- │ └── glossary.md # พจนานุกรมศัพท์เฉพาะของระบบ
23
- │
24
- ├── 10-ideation/ # [Input & Reference Ingestion]
25
- │ ├── ideas.md # บันทึกไอเดียใหม่ (Idea Inbox)
26
- │ ├── inbox/ # ไฟล์ดิบจากภายนอก (PDF, Excel, Word, ภาพ)
27
- │ └── reference/ # เอกสารที่แปลงเป็น Markdown สะอาดพร้อมใช้งาน
28
- │
29
- ├── 20-discovery/ # [Analysis, Exploration & Architecture]
30
- │ ├── analysis/ # ผลการวิเคราะห์ System Analyst (/analyze)
31
- │ ├── discoveries/ # Pre-flight Spikes & Research (/discovery)
32
- │ ├── decisions/ # บันทึกการตัดสินใจ ADRs (/grill)
33
- │ ├── research/ # เอกสารวิจัยเชิงลึกและ Benchmark
34
- │ ├── 21-prototype/ # (Optional: Static UI mockups / prototype)
35
- │ └── 22-diagrams/ # (Optional: System & Architecture Diagrams)
36
- │
37
- ├── 30-planning/ # [Roadmap & Master Plans]
38
- │ ├── project-plan.md # Master Roadmap & Milestones
39
- │ └── build-plan.md # Master Delivery Checklist
40
- │
41
- ├── 40-tasks/ # [Active Living Spec Workspaces]
42
- │ └── {xxx-slug}/ # Active task workspace (สร้างตอนทำฟีเจอร์/แก้บั๊ก)
43
- │ ├── spec.md # Task-Isolated Living Spec
44
- │ ├── stage.md # ตัวชี้สถานะ Stage
45
- │ ├── findings.md # บันทึกบั๊ก/Audit ประจำงาน
46
- │ └── tickets/ # Tracer-bullet tickets ย่อย
47
- │
48
- ├── 50-history/ # [Shipped & Delivered Archives]
49
- │ ├── HISTORY.md # Release Ledger สรุปภาพรวมประวัติ
50
- │ ├── features/ # ฟีเจอร์ที่ส่งมอบแล้ว
51
- │ ├── fixes/ # บั๊กที่แก้แล้ว
52
- │ └── rollbacks/ # ฟีเจอร์ที่ถูก rollback
53
- │
54
- └── 60-docs/ # [Documentation & System Playbooks]
55
- └── playbooks/ # Interactive HTML Playbooks (5W1H)
56
- ```
57
-
58
- ---
59
-
60
- ## ⚡ 2. จุดเด่นของการใช้เลขทศวรรษ (Decade Convention: `00-`, `10-`, `20-`)
61
-
62
- 1. **ลำดับสายตาใน Editor สวยงาม**: เรียงตามลำดับความก้าวหน้าของโครงการ
63
- 2. **ขยาย Sub-stages ในอนาคตได้ง่าย (Future-Proof)**: สามารถสร้างโฟลเดอร์แทรก เช่น `21-prototype`, `22-diagrams` ได้โดยไม่ต้องแก้เลขนำหน้าของโฟลเดอร์อื่น
64
- 3. **ตัดโฟลเดอร์ Legacy ออก 100%**: ลบโฟลเดอร์ `devflow/runs/` ที่ไม่ได้ใช้งานตั้งแต่ v1.x ออกอย่างปลอดภัย
65
-
66
- ---
67
-
68
- ## 🚀 3. วิธีการ Migrate อัตโนมัติ
69
-
70
- ### 1) รันอัตโนมัติผ่านคำสั่ง `update` (แนะนำที่สุด):
71
- เมื่อโปรเจกต์ Client สั่งอัปเดตเวอร์ชัน DevFlow ด้วยคำสั่ง:
72
- ```bash
73
- npx nexus-devflow update
74
- ```
75
- ระบบจะตรวจจับโครงสร้างโฟลเดอร์อัตโนมัติ:
76
- * **หากยังเป็นโครงสร้างเดิม (Legacy)**: ระบบจะรันกระบวนการ `migrate-structure` ให้อัตโนมัติทันที พร้อมย้ายไฟล์เข้า `00-`, `10-`, `20-`, `30-`, `40-`, `50-`, `60-` และลบ `devflow/runs/`
77
- * **หากเป็นโครงสร้าง Decade-Numbered อยู่แล้ว**: ระบบจะไม่ทำอะไรกับโฟลเดอร์ (No-op) และดำเนินการอัปเดตโค้ดต่อไปอย่างปลอดภัย
78
-
79
- ### 2) สั่ง Migrate ด้วยตัวเองโดยตรง:
80
- หากต้องการย้ายโครงสร้างทันทีโดยไม่อัปเดตส่วนอื่น สามารถสั่งได้ผ่านคำสั่ง:
81
- ```bash
82
- npx nexus-devflow migrate-structure
83
- ```
84
-
85
-
86
- ---
87
-
88
- ## 🛡️ 4. การรองรับ Client เวอร์ชันเก่า (Zero-Breaking Compatibility)
89
-
90
- ระบบ DevFlow มีกลไก **Dynamic Workspace Path Resolver** (`resolveWorkspacePaths`) ที่จะ:
91
- 1. ตรวจสอบว่าโปรเจกต์ใช้โครงสร้าง Decade-Numbered หรือไม่ (มี `devflow/00-context` หรือไม่)
92
- 2. หากไม่พบ จะ **Fallback กลับไปหา Path เดิม (`devflow/context/`, `devflow/history/`) อัตโนมัติ 100%**
93
- 3. โปรเจกต์เก่าที่ยังไม่ได้ Migrate จึงยังคงรันคำสั่งสถานะ, ตรวจสอบคุณภาพ, และบิวด์ได้ตามปกติโดยไม่มีข้อผิดพลาด
File without changes