@jakkrichm/create-nexus-devflow 2.6.2 → 2.8.0

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 (89) hide show
  1. package/README.md +5 -5
  2. package/dist/lib/antigravity-artifacts.d.ts +52 -0
  3. package/dist/lib/antigravity-artifacts.js +170 -0
  4. package/dist/lib/antigravity-artifacts.js.map +1 -0
  5. package/dist/lib/antigravity-hooks.d.ts +31 -0
  6. package/dist/lib/antigravity-hooks.js +85 -0
  7. package/dist/lib/antigravity-hooks.js.map +1 -0
  8. package/dist/lib/antigravity-plugin.d.ts +51 -0
  9. package/dist/lib/antigravity-plugin.js +179 -0
  10. package/dist/lib/antigravity-plugin.js.map +1 -0
  11. package/dist/lib/antigravity-scheduler.d.ts +39 -0
  12. package/dist/lib/antigravity-scheduler.js +95 -0
  13. package/dist/lib/antigravity-scheduler.js.map +1 -0
  14. package/dist/lib/branch-context.d.ts +1 -0
  15. package/dist/lib/branch-context.js +14 -9
  16. package/dist/lib/branch-context.js.map +1 -1
  17. package/dist/lib/current-work.js +10 -22
  18. package/dist/lib/current-work.js.map +1 -1
  19. package/dist/lib/doctor.js +34 -6
  20. package/dist/lib/doctor.js.map +1 -1
  21. package/dist/lib/findings.js +14 -10
  22. package/dist/lib/findings.js.map +1 -1
  23. package/dist/lib/mcp.js +3 -3
  24. package/dist/lib/mcp.js.map +1 -1
  25. package/dist/lib/openai-tools.d.ts +34 -0
  26. package/dist/lib/openai-tools.js +57 -0
  27. package/dist/lib/openai-tools.js.map +1 -0
  28. package/dist/lib/project-config.d.ts +55 -0
  29. package/dist/lib/project-config.js +228 -0
  30. package/dist/lib/project-config.js.map +1 -0
  31. package/dist/lib/status.d.ts +7 -0
  32. package/dist/lib/status.js +23 -1
  33. package/dist/lib/status.js.map +1 -1
  34. package/dist/lib/swarm-orchestrator.js +14 -8
  35. package/dist/lib/swarm-orchestrator.js.map +1 -1
  36. package/dist/lib/visual-subagent.d.ts +32 -0
  37. package/dist/lib/visual-subagent.js +98 -0
  38. package/dist/lib/visual-subagent.js.map +1 -0
  39. package/dist/lib/workflow-state.js +3 -1
  40. package/dist/lib/workflow-state.js.map +1 -1
  41. package/dist/scripts/prepare-template.js +0 -19
  42. package/dist/scripts/prepare-template.js.map +1 -1
  43. package/package.json +1 -1
  44. package/template/.agents/skills/audit/SKILL.md +7 -7
  45. package/template/.agents/skills/autopilot/SKILL.md +34 -58
  46. package/template/.agents/skills/brief/SKILL.md +1 -1
  47. package/template/.agents/skills/check/SKILL.md +4 -4
  48. package/template/.agents/skills/complete/SKILL.md +13 -46
  49. package/template/.agents/skills/continuous/SKILL.md +117 -0
  50. package/template/.agents/skills/convert-any-to-md/scripts/__pycache__/convert_any_to_md.cpython-314.pyc +0 -0
  51. package/template/.agents/skills/devflow/SKILL.md +12 -12
  52. package/template/.agents/skills/discovery/SKILL.md +2 -2
  53. package/template/.agents/skills/doctor/SKILL.md +15 -11
  54. package/template/.agents/skills/feature/SKILL.md +5 -6
  55. package/template/.agents/skills/fix/SKILL.md +2 -2
  56. package/template/.agents/skills/implement/SKILL.md +11 -12
  57. package/template/.agents/skills/release/SKILL.md +1 -1
  58. package/template/.agents/skills/report-html/SKILL.md +3 -3
  59. package/template/.agents/skills/rollback/SKILL.md +4 -6
  60. package/template/.agents/skills/status/SKILL.md +20 -27
  61. package/template/.agents/skills/try/SKILL.md +5 -6
  62. package/template/.claude/skills/audit/SKILL.md +7 -7
  63. package/template/.claude/skills/autopilot/SKILL.md +34 -58
  64. package/template/.claude/skills/brief/SKILL.md +1 -1
  65. package/template/.claude/skills/check/SKILL.md +4 -4
  66. package/template/.claude/skills/complete/SKILL.md +13 -46
  67. package/template/.claude/skills/continuous/SKILL.md +117 -0
  68. package/template/.claude/skills/convert-any-to-md/scripts/__pycache__/convert_any_to_md.cpython-314.pyc +0 -0
  69. package/template/.claude/skills/devflow/SKILL.md +12 -12
  70. package/template/.claude/skills/discovery/SKILL.md +2 -2
  71. package/template/.claude/skills/doctor/SKILL.md +15 -11
  72. package/template/.claude/skills/feature/SKILL.md +5 -6
  73. package/template/.claude/skills/fix/SKILL.md +2 -2
  74. package/template/.claude/skills/implement/SKILL.md +11 -12
  75. package/template/.claude/skills/release/SKILL.md +1 -1
  76. package/template/.claude/skills/report-html/SKILL.md +3 -3
  77. package/template/.claude/skills/rollback/SKILL.md +4 -6
  78. package/template/.claude/skills/status/SKILL.md +20 -27
  79. package/template/.claude/skills/try/SKILL.md +5 -6
  80. package/template/AGENTS.md +29 -23
  81. package/template/LICENSE +21 -21
  82. package/template/devflow/build-plan.md +18 -0
  83. package/template/devflow/config.json +33 -0
  84. package/template/devflow/context/ai-interaction.md +30 -16
  85. package/template/devflow/reference/feature-spec-template.md +2 -2
  86. package/template/devflow/reference/running-id-contract.md +0 -3
  87. package/template/devflow/context/current-feature.md +0 -3
  88. package/template/devflow/context/current-stage.md +0 -11
  89. package/template/devflow/context/findings.md +0 -10
@@ -0,0 +1,33 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "workflow": {
4
+ "stepReview": "every",
5
+ "checkpointCommits": "enabled"
6
+ },
7
+ "git": {
8
+ "featureBranchPrefix": "feature/",
9
+ "fixBranchPrefix": "fix/",
10
+ "rollbackBranchPrefix": "rollback/"
11
+ },
12
+ "verification": {
13
+ "logicTests": "when-configured",
14
+ "uiEvidence": "when-available"
15
+ },
16
+ "qualityGates": {
17
+ "regular": {
18
+ "audit": "manual",
19
+ "check": "manual",
20
+ "tryGuide": "manual"
21
+ },
22
+ "continuous": {
23
+ "audit": "manual",
24
+ "check": "manual",
25
+ "tryGuide": "manual"
26
+ }
27
+ },
28
+ "continuous": {
29
+ "maxFeatures": null,
30
+ "maxRepairAttempts": 2,
31
+ "finalIntegrationAudit": false
32
+ }
33
+ }
@@ -27,46 +27,60 @@ Format every response for fast scanning and readability:
27
27
 
28
28
  ---
29
29
 
30
- ## 3. The 3-Pillars Unified Architecture (DevFlow 2.5.0)
30
+ ## 3. The 3-Pillars Unified Architecture
31
31
 
32
32
  ```text
33
33
  devflow/
34
- ├── 🔮 ideas.md # [Future] Idea Inbox with AI Feasibility Scoring
35
- ├── context/ # [Present] Single Living Spec (current-feature.md) & Active State
36
- └── 📦 history/ # [Past] features/, fixes/, rollbacks/, and HISTORY.md
34
+ ├── 🔮 ideas.md # [Future] Idea Inbox with AI Feasibility Scoring
35
+ ├── 🗺️ project-plan.md # [Future] Master Roadmap
36
+ ├── 📋 build-plan.md # [Future] Master Build Plan & Sizing
37
+
38
+ ├── ⚡ context/ # [Present] Living Source of Truth & Active Tasks
39
+ │ ├── project-overview.md # 🌐 Global Architecture & Stack
40
+ │ ├── coding-standards.md # 🌐 Global Coding & TDD Standards
41
+ │ ├── ai-interaction.md # 🌐 Global AI Interaction Rules
42
+ │ ├── glossary.md # 🌐 Domain Terms & Glossary
43
+ │ │
44
+ │ └── {xxx-slug}/ # ⚡ Active Task Workspace
45
+ │ ├── spec.md # Living Spec + TDD Checklist
46
+ │ ├── stage.md # Runtime Stage & Branch Reference
47
+ │ └── findings.md # Dedicated Audit Ledger (P0-P3)
48
+
49
+ └── 📦 history/ # [Past] features/, fixes/, rollbacks/, and HISTORY.md
37
50
  ```
38
51
 
39
- ### ⚡ The Unified 4-Stage Living Spec Lifecycle
40
- *ขับเคลื่อนการพัฒนาทุกระดับ (ตั้งแต่ Fast Fix จนถึง Architectural Epic) ด้วยเอกสารฉบับเดียว **Single Living Spec (`devflow/context/current-feature.md`)** ที่รวมความลึกระดับ Architect Mode เข้ากับความคล่องตัวระดับ Lean Velocity:*
52
+ ### ⚡ The Unified 4-Stage Task-Isolated Living Spec Lifecycle
53
+ *ขับเคลื่อนการพัฒนาทุกระดับด้วย **Task-Isolated Living Spec (`devflow/context/{xxx-slug}/spec.md`)** ที่รวมความลึกระดับ Architect Mode เข้ากับความคล่องตัวระดับ Lean Velocity โดยแยก Workspace ของแต่ละงานออกจากกัน 100%:*
41
54
 
42
55
  ```text
43
56
  /feature (หรือ /fix) ──▶ /implement ──▶ /check ──▶ /complete
44
57
  ```
45
58
 
46
59
  1. **Stage 1: Spec (`/feature` หรือ `/fix`)**:
47
- - ตรวจสอบ **Single Active Run Guardrail** (บล็อกการเปิดงานซ้อนถ้ามีงานที่ยังไม่เสร็จ)
48
60
  - ดึงบริบทจาก `devflow/discoveries/`, `devflow/ideas.md`, หรือคำขอของผู้ใช้
49
- - จัดสรร Running ID (`xxx-slug`) และสร้าง Branch `feature/{xxx-slug}` หรือ `fix/{xxx-slug}`
50
- - เขียน **Single Living Spec (`current-feature.md`)** ครอบคลุม:
61
+ - จัดสรร Running ID (`xxx-slug`) และสร้างโฟลเดอร์ `devflow/context/{xxx-slug}/`
62
+ - เขียน **Task-Isolated Living Spec (`spec.md`)**, `stage.md`, และ `findings.md` ครอบคลุม:
51
63
  - `## 🎯 1. Define & Boundaries` (Problem, In/Out Scope, Risks, Success Criteria)
52
64
  - `## 📐 2. Technical Spec & Contracts` (Architecture, Models, Interface Contracts, Non-functional, ACs)
53
65
  - `## 📋 3. Execution Plan & TDD Checklist` (Atomic tasks, `[TDD-Red/Green/Refactor]` Triplets)
54
66
 
55
- 2. **Stage 2: Implement (`/implement`)**:
67
+ 2. **Stage 2: Implement (`/implement [id]`)**:
68
+ - สลับไปยัง Branch `feature/{xxx-slug}` (หรือ Auto-detect จาก Current Branch / Task Queue)
56
69
  - ดำเนินการ Task-by-task ตาม Checklist อย่างเคร่งครัดด้วย **TDD (Red-Green-Refactor)**
57
- - ติ๊กเครื่องหมาย `- [x]` และบันทึก `## ⚡ 4. Implementation Log & Evidence` (Diff summary, Checkpoints) ลงใน `current-feature.md`
70
+ - ติ๊กเครื่องหมาย `- [x]` และบันทึก `## ⚡ 4. Implementation Log & Evidence` (Diff summary, Checkpoints) ลงใน `devflow/context/{xxx-slug}/spec.md`
58
71
 
59
- 3. **Stage 3: Check (`/check`)**:
72
+ 3. **Stage 3: Check (`/check [id]`)**:
60
73
  - Senior QA Multi-Lane Verification (Typecheck, Lint, Test Suites, Manual Proof)
61
- - บันทึกผลการพิสูจน์เชิงประจักษ์ลงใน `## 🧪 5. Multi-Lane Verification Matrix` ใน `current-feature.md`
74
+ - บันทึกผลการพิสูจน์เชิงประจักษ์ลงใน `## 🧪 5. Multi-Lane Verification Matrix` ใน `spec.md` และบันทึก Finding ลงใน `findings.md` เฉพาะงาน
62
75
 
63
- 4. **Stage 4: Complete (`/complete`)**:
76
+ 4. **Stage 4: Complete (`/complete [id]`)**:
64
77
  - สรุปผล `## 📦 6. Release Digest & Retrospective` (Changelog, Lessons Learned, ADRs)
65
- - ทำการ Archive `current-feature.md` ไปเป็นไฟล์เดี่ยวที่ `devflow/history/{features|fixes|rollbacks}/{xxx-slug}.md`
78
+ - ทำการ Archive `spec.md` ไปเป็นไฟล์เดี่ยวที่ `devflow/history/{features|fixes|rollbacks}/{xxx-slug}.md`
79
+ - ลบโฟลเดอร์เฉพาะกิจ `devflow/context/{xxx-slug}/` ออกอย่างหมดจด
66
80
  - **Mandatory Delivery Gate**: บังคับถามผู้ใช้ก่อนเสมอว่าต้องการ Delivery รูปแบบใด:
67
81
  - **Option 1 (Team MR/PR Flow)**: Pull master/main ล่าสุดมารวมกับ Feature/Dev Branch แล้ว push branch ขึ้นไปเพื่อเปิด MR/PR (ไม่ merge เข้า main/master ในเครื่อง และไม่แตะ protected branch)
68
82
  - **Option 2 (Direct Squash-Merge)**: ทำการ Squash-merge เข้า main/master ในเครื่องเฉพาะเมื่อผู้ใช้สั่งโดยตรงเท่านั้น
69
- - รีเซ็ต `current-feature.md` กลับเป็น Idle stub เมื่อปิดรอบงานเรียบร้อย
83
+ - อัปเดต `devflow/history/HISTORY.md` และ `devflow/build-plan.md` ให้เป็น `[x]` เรียบร้อย
70
84
 
71
85
  ---
72
86
 
@@ -1,7 +1,7 @@
1
1
  # [ID-slug] Feature Title
2
2
 
3
- > **Template Type**: Single Living Spec (DevFlow 2.5.0)
4
- > **Active Location**: `devflow/context/current-feature.md`
3
+ > **Template Type**: Task-Isolated Living Spec
4
+ > **Active Location**: `devflow/context/{xxx-slug}/spec.md`
5
5
  > **Archive Location**: `devflow/history/{features|fixes|rollbacks}/{ID-slug}.md`
6
6
 
7
7
  - **Feature ID**: `{xxx-slug}`
@@ -15,9 +15,6 @@ devflow/
15
15
  │ ├── coding-standards.md # Engineering, code quality, TDD, and testing standards
16
16
  │ ├── ai-interaction.md # AI agent interaction rules, unified living spec flow, and Thai defaults
17
17
  │ ├── glossary.md # Domain glossary and architecture vocabulary
18
- │ ├── current-feature.md # Active Living Spec pointer / legacy fallback
19
- │ ├── current-stage.md # Active state pointer and run tracker
20
- │ ├── findings.md # Shared/default audit findings ledger (P0-P3)
21
18
  │ │
22
19
  │ ├── {xxx-slug}/ # Active Run Workspace & Spec Queue (Multi-Run Active Task)
23
20
  │ │ ├── spec.md # Living Spec + Checklist for this run
@@ -1,3 +0,0 @@
1
- # Current Feature
2
-
3
- _Nothing in progress. Run /feature, /fix, or /rollback to start._
@@ -1,11 +0,0 @@
1
- # Current Stage
2
-
3
- - Active Discovery ID: `None`
4
- - Active Running ID: `None`
5
- - Track: `idle`
6
- - Current Stage: `idle`
7
- - Active Branch: `main`
8
- - Living Spec: `devflow/context/current-feature.md`
9
- - Next Action: `Run /feature, /fix, or /discovery to start new work.`
10
- - Last Completed Run: `None`
11
- - Last Updated: `None`
@@ -1,10 +0,0 @@
1
- # Findings
2
-
3
- > **Generated file.** The findings ledger: review findings raised by `/audit`
4
- > against the work in progress, each with a durable ID, severity (P0-P3), and
5
- > status. `/implement` marks repaired findings `fixed`, a later `/audit` pass
6
- > moves them to `closed`, and `/complete` refuses to merge while any P0 or P1
7
- > finding is `open` or `fixed`, then archives resolved findings with the work
8
- > and resets this file.
9
-
10
- _No findings recorded. `/audit` appends findings here when it finds them._