@jakkrichm/create-nexus-devflow 2.12.1 → 2.12.3

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 (54) hide show
  1. package/dist/lib/current-work.d.ts +6 -1
  2. package/dist/lib/current-work.js +41 -4
  3. package/dist/lib/current-work.js.map +1 -1
  4. package/dist/lib/history.js +28 -15
  5. package/dist/lib/history.js.map +1 -1
  6. package/dist/lib/project-config.d.ts +5 -1
  7. package/dist/lib/project-config.js +11 -2
  8. package/dist/lib/project-config.js.map +1 -1
  9. package/dist/lib/review.d.ts +4 -1
  10. package/dist/lib/review.js +35 -4
  11. package/dist/lib/review.js.map +1 -1
  12. package/dist/lib/run-state.d.ts +1 -1
  13. package/dist/lib/run-state.js +1 -9
  14. package/dist/lib/run-state.js.map +1 -1
  15. package/dist/lib/status.d.ts +3 -1
  16. package/dist/lib/status.js +25 -6
  17. package/dist/lib/status.js.map +1 -1
  18. package/package.json +1 -1
  19. package/template/.agents/skills/audit/SKILL.md +65 -18
  20. package/template/.agents/skills/audit/reference/independent-review.md +31 -4
  21. package/template/.agents/skills/autopilot/SKILL.md +62 -18
  22. package/template/.agents/skills/ci/SKILL.md +8 -1
  23. package/template/.agents/skills/complete/SKILL.md +27 -2
  24. package/template/.agents/skills/continuous/SKILL.md +9 -4
  25. package/template/.agents/skills/doctor/SKILL.md +8 -4
  26. package/template/.agents/skills/feature/SKILL.md +9 -1
  27. package/template/.agents/skills/fix/SKILL.md +2 -1
  28. package/template/.agents/skills/implement/SKILL.md +47 -3
  29. package/template/.agents/skills/onboard/SKILL.md +40 -11
  30. package/template/.agents/skills/overview/SKILL.md +14 -0
  31. package/template/.agents/skills/rollback/SKILL.md +3 -1
  32. package/template/.agents/skills/status/SKILL.md +14 -4
  33. package/template/.claude/skills/audit/SKILL.md +65 -18
  34. package/template/.claude/skills/audit/reference/independent-review.md +31 -4
  35. package/template/.claude/skills/autopilot/SKILL.md +62 -18
  36. package/template/.claude/skills/ci/SKILL.md +8 -1
  37. package/template/.claude/skills/complete/SKILL.md +27 -2
  38. package/template/.claude/skills/continuous/SKILL.md +9 -4
  39. package/template/.claude/skills/doctor/SKILL.md +8 -4
  40. package/template/.claude/skills/feature/SKILL.md +9 -1
  41. package/template/.claude/skills/fix/SKILL.md +2 -1
  42. package/template/.claude/skills/implement/SKILL.md +47 -3
  43. package/template/.claude/skills/onboard/SKILL.md +40 -11
  44. package/template/.claude/skills/overview/SKILL.md +14 -0
  45. package/template/.claude/skills/rollback/SKILL.md +3 -1
  46. package/template/.claude/skills/status/SKILL.md +14 -4
  47. package/template/AGENTS.md +4 -2
  48. package/template/devflow/analysis/REQ-20260904-001-sync-upstream-ai-blueprint/codebase-impact.md +47 -0
  49. package/template/devflow/build-plan.md +18 -0
  50. package/template/devflow/config.json +5 -2
  51. package/template/devflow/context/ai-interaction.md +2 -0
  52. package/template/devflow/inbox/REQ-20260904-001-sync-upstream-ai-blueprint/clarifications.md +28 -0
  53. package/template/devflow/inbox/REQ-20260904-001-sync-upstream-ai-blueprint/parsed.md +59 -0
  54. package/template/devflow/inbox/REQ-20260904-001-sync-upstream-ai-blueprint/raw/upstream-diff.txt +23 -0
@@ -111,6 +111,8 @@ During `/check`:
111
111
  ### ⚡ Review Cadence & Implementation Loop
112
112
  - **Efficient Default (`stepReview: "feature"`)**: Presents one comprehensive review packet after all implementation steps of the feature complete, with step checkpoint commits disabled (`checkpointCommits: "disabled"`). This minimizes review fatigue and saves context window tokens.
113
113
  - **Guided Review (`stepReview: "every"`)**: Available for high-risk changes, pair programming, or instructional sessions. Pauses for user approval after each small step and offers checkpoint commits (`checkpointCommits: "enabled"`).
114
+ - **Post-Implementation Walkthrough**: After the final review packet, `/implement` always offers an optional read-only walkthrough of the finished code, regardless of review cadence or checkpoint settings.
115
+ - **Independent Review Execution**: Regular and Continuous independent review default to `when-sensitive`, while `review.independentExecution` defaults to `automatic` (spawning an isolated reviewer child when the active adapter supports it). Setting `review.independentExecution: "manual"` produces the fresh-session handoff.
114
116
  - **Configuration**: Managed directly in `devflow/config.json`.
115
117
 
116
118
  ---
@@ -0,0 +1,28 @@
1
+ # Socratic Gap Detection & Clarification Checklist
2
+
3
+ > **Request ID**: `REQ-20260904-001-sync-upstream-ai-blueprint`
4
+ > **Source**: Upstream AI Blueprint Synchronization Analysis
5
+
6
+ ---
7
+
8
+ ## 🔍 Socratic Review & Technical Clarifications
9
+
10
+ ### 1. ตำแหน่งไฟล์ Manifest ใน Nexus-DevFlow
11
+ - **ประเด็น**: ใน Upstream `ai-blueprint` ใช้ไฟล์ `blueprint/.state/manifest.json` เป็นหลัก ขณะที่ Nexus-DevFlow มีทั้ง `.nexus/nexus-devflow.json` (จากตัวติดตั้ง package) และ `devflow/.state/manifest.json`
12
+ - **แนวทาง**: ในคำสั่ง `/onboard` ควรอ้างอิงทั้ง `devflow/.state/manifest.json` และ `.nexus/nexus-devflow.json` โดยให้ความสำคัญกับไฟล์ที่มีอยู่จริง เพื่อความยืดหยุ่นสูงสุด
13
+
14
+ ### 2. รายชื่อเครื่องมือที่รองรับใน DevFlow vs Upstream
15
+ - **ประเด็น**: Upstream รองรับ 4 ตัวหลัก (`codex`, `claude`, `copilot`, `opencode`) ขณะที่ Nexus-DevFlow มี First-Class Support เพิ่มเติมสำหรับ **Google Antigravity** (`antigravity` ซึ่งแชร์โครงสร้าง `.agents/`)
16
+ - **แนวทาง**: ข้อความใน Step 6 ของ Onboard ต้องระบุชื่อเครื่องมือให้ครอบคลุม: "Codex, Antigravity, GitHub Copilot, และ OpenCode"
17
+
18
+ ### 3. สถานะ Version Tagging & Roadmap
19
+ - **ประเด็น**: Upstream ออก release 1.5.3 สำหรับการแก้นี้ สำหรับ Nexus-DevFlow จะจัดเป็น Run `072` มุ่งสู่ Minor/Patch release ถัดไป (v2.12.2)
20
+ - **แนวทาง**: กำหนดหมายเลข Run `072-sync-upstream-ai-blueprint-v153` และบันทึกลงใน Build Plan
21
+
22
+ ---
23
+
24
+ ## ✅ Readiness Checklist for Implementation
25
+ - [x] ตรวจสอบ Diff ละเอียดจาก Upstream ครบถ้วน 100%
26
+ - [x] วิเคราะห์จุดแตกต่างระหว่างสถาปัตยกรรม DevFlow และ AI Blueprint
27
+ - [x] กำหนดขอบเขต E2E Scenario และ Static Contract เรียบร้อย
28
+ - [ ] รอเจ้านายอนุมัติเพื่อเริ่มกระบวนการ `/feature` หรือ `/implement`
@@ -0,0 +1,59 @@
1
+ # Requirement Specification: ซิงก์ส่วนขยาย Upstream AI Blueprint (v1.5.3 / Latest Commits)
2
+
3
+ > **Request ID**: `REQ-20260904-001-sync-upstream-ai-blueprint`
4
+ > **Source**: Upstream Repository `aiblueprinthq/ai-blueprint` (Commits `b4eb32e` .. `2b5f334`)
5
+ > **Ingested Date**: 2026-09-04
6
+ > **Target Run ID**: `072` (Feature)
7
+ > **Language**: Thai (`th`) Default
8
+
9
+ ---
10
+
11
+ ## 📌 Executive Summary
12
+
13
+ สกัดและวิเคราะห์การเปลี่ยนแปลงล่าสุดจากต้นน้ำ (Upstream `ai-blueprint`) หลังการซิงก์รอบ v1.5.2 (Run `071`) โดยพบการอัปเดตสำคัญระดับสถาปัตยกรรมและกระบวนการ Onboarding ใน commit `b4eb32e` (fix: honor selected adapters) พร้อมทั้งการปรับปรุงเอกสารและ Diagram ใน commit `ed9c19c`, `a231195`, `2b5f334`
14
+
15
+ หัวใจหลักของการอัปเดตครั้งนี้คือการทำให้ขั้นตอน `/onboard` มีความฉลาดในการอ่านและยึดถือรายการ Adapter จากไฟล์ Manifest (`.nexus/nexus-devflow.json` หรือ `devflow/.state/manifest.json`) เป็นความจริงหลัก (Authoritative Source of Truth) เพื่อแก้ปัญหาที่ Onboard เคยเดาเอาเองว่าการมีโฟลเดอร์ `.agents/` แปลว่าผู้ใช้เลือกเครื่องมือทุกตัว (Codex, Antigravity, GitHub Copilot, OpenCode) และถามผู้ใช้ซ้ำซ้อน
16
+
17
+ ---
18
+
19
+ ## 👥 Target Personas & User Stories
20
+
21
+ 1. **ผู้ใช้ใหม่ที่ติดตั้ง DevFlow ด้วย Interactive Installer**:
22
+ - *As a developer* ติดตั้ง DevFlow ด้วยคำสั่ง `npx @jakkrichm/create-nexus-devflow` และเลือกเฉพาะ Claude Code และ Antigravity/Codex
23
+ - *I want* เมื่อรันคำสั่ง `/onboard` ให้ระบบจำการเลือกของฉันจาก Manifest โดยตรง
24
+ - *So that* AI จะไม่ถามซ้ำ และไม่ทึกทักไปเองว่าเราเลือก GitHub Copilot หรือ OpenCode เพิ่มขึ้นมา
25
+
26
+ 2. **ผู้ใช้เดิมที่รัน Onboard โดยไม่มี Manifest (Legacy / Manual Copy)**:
27
+ - *As a developer* ที่คัดลอกไฟล์มาเองหรือไม่มี Manifest
28
+ - *I want* AI อธิบายชัดเจนว่าโครงสร้าง `.agents/` ใช้ร่วมกันได้หลายเครื่องมือ แล้วถามยืนยันว่าใช้เครื่องมือใดบ้าง
29
+ - *So that* รายงาน Onboarding ถูกต้องตรงกับสิ่งที่ใช้งานจริง
30
+
31
+ 3. **Core Framework Maintainer**:
32
+ - *As a maintainer* ของ Nexus-DevFlow
33
+ - *I want* ระบบ E2E Test มี Scenario ตัวที่ 10 (`adapter-selection.ts`) และ Static Contract Validator ป้องกัน Regression
34
+ - *So that* ฟีเจอร์ Onboard Manifest Preservation ทำงานถูกต้อง 100% ตามมาตรฐาน Upstream
35
+
36
+ ---
37
+
38
+ ## ⚙️ Functional Requirements (FR)
39
+
40
+ - **FR-1: Manifest-Aware Adapter Inspection ใน `/onboard` (Step 1)**
41
+ - เพิ่มการอ่านไฟล์ `devflow/.state/manifest.json` หรือ `.nexus/nexus-devflow.json` ในขั้นตอน Preflight/Inspection เพื่อดึง `adapters` list
42
+ - **FR-2: Authoritative Selection & No Repeated Prompts ใน `/onboard` (Step 6)**
43
+ - เมื่อพบ Manifest ที่ถูกต้อง ให้ยึด `adapters` ใน Manifest เป็นหลัก ห้ามถามผู้ใช้ซ้ำ
44
+ - อธิบายว่าการมีอยู่ของ `.agents/` ไม่ได้หมายความว่าเลือกเครื่องมือทุกตัว
45
+ - หากไม่มี Manifest ให้ถามอย่างชัดเจนโดยไม่เดา
46
+ - **FR-3: Dual-Adapter Contract Synchronicity**
47
+ - ปรับปรุงเนื้อหาใน `.agents/skills/onboard/SKILL.md` และ `.claude/skills/onboard/SKILL.md` ให้ตรงกัน 100%
48
+ - **FR-4: Automated E2E Scenario Integration**
49
+ - เพิ่มชุดทดสอบ E2E Scenario `scripts/e2e/scenarios/adapter-selection.ts` ตรวจสอบพฤติกรรม Onboard กับ Manifest
50
+ - **FR-5: Static Verification Guardrails**
51
+ - อัปเดต `agent-bundle.manifest.json` และ `scripts/validate-framework.ts` ให้ตรวจจับ Contract ใหม่ของ Onboard
52
+
53
+ ---
54
+
55
+ ## 🛡️ Non-Functional Requirements (NFR)
56
+
57
+ - **Context Budget**: Skill Description และ Instruction ต้องไม่เกินขีดจำกัด Context Budget (< 400 ตัวอักษรต่อคำอธิบาย, ไม่ทำให้ไฟล์เกิน 20KB)
58
+ - **Zero Breaking Change**: รักษาความเข้ากันได้กับโปรเจกต์เดิมที่มีหรือไม่มี Manifest
59
+ - **Cross-Tool Parity**: รองรับ Codex, Antigravity, Claude Code, GitHub Copilot และ OpenCode
@@ -0,0 +1,23 @@
1
+ # Upstream AI Blueprint Synchronization Request (v1.5.2 -> v1.5.3 / HEAD)
2
+
3
+ ## Raw Upstream Commits
4
+ - 2b5f334 docs: refresh workflow diagram asset
5
+ - a231195 docs: simplify workflow diagram
6
+ - ed9c19c docs: position AI Blueprint as a workflow framework
7
+ - b4eb32e fix: honor selected adapters
8
+ - 5b46859 fix: handle repositories without an initial commit (synced in 071)
9
+
10
+ ## Core Upstream Changes Diff Stat
11
+ .agents/skills/onboard/SKILL.md | 23 ++++----
12
+ .claude/skills/onboard/SKILL.md | 23 ++++----
13
+ CHANGELOG.md | 12 +++++
14
+ README.md | 20 +++----
15
+ assets/ai-blueprint-workflow-v2.png | Bin 0 -> 107098 bytes
16
+ assets/ai-blueprint-workflow.png | Bin 216758 -> 0 bytes
17
+ packages/create-ai-blueprint/README.md | 5 +-
18
+ packages/create-ai-blueprint/bin/create-ai-blueprint.ts | 4 +-
19
+ packages/create-ai-blueprint/package.json | 2 +-
20
+ packages/create-ai-blueprint/test/update.test.ts | 6 +--
21
+ scripts/e2e/scenarios/adapter-selection.ts | 59 +++++++++++++++++++++
22
+ scripts/validate-blueprint.ts | 9 +++-
23
+ 12 files changed, 126 insertions(+), 37 deletions(-)