@jakkrichm/create-nexus-devflow 2.0.27 → 2.2.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.
- package/README.md +29 -7
- package/dist/bin/create-nexus-devflow.d.ts +5 -1
- package/dist/bin/create-nexus-devflow.js +247 -4
- package/dist/bin/create-nexus-devflow.js.map +1 -1
- package/dist/lib/branch-context.d.ts +39 -0
- package/dist/lib/branch-context.js +196 -0
- package/dist/lib/branch-context.js.map +1 -0
- package/dist/lib/code-graph.d.ts +30 -0
- package/dist/lib/code-graph.js +209 -0
- package/dist/lib/code-graph.js.map +1 -0
- package/dist/lib/context-slicer.d.ts +31 -0
- package/dist/lib/context-slicer.js +234 -0
- package/dist/lib/context-slicer.js.map +1 -0
- package/dist/lib/current-work.js +4 -2
- package/dist/lib/current-work.js.map +1 -1
- package/dist/lib/dashboard-page.d.ts +1 -1
- package/dist/lib/dashboard-page.js +140 -56
- package/dist/lib/dashboard-page.js.map +1 -1
- package/dist/lib/dashboard-snapshot.d.ts +13 -0
- package/dist/lib/dashboard-snapshot.js +24 -6
- package/dist/lib/dashboard-snapshot.js.map +1 -1
- package/dist/lib/dashboard.js +38 -0
- package/dist/lib/dashboard.js.map +1 -1
- package/dist/lib/drift-reconciler.d.ts +38 -0
- package/dist/lib/drift-reconciler.js +155 -0
- package/dist/lib/drift-reconciler.js.map +1 -0
- package/dist/lib/gatekeeper.d.ts +1 -0
- package/dist/lib/gatekeeper.js +30 -1
- package/dist/lib/gatekeeper.js.map +1 -1
- package/dist/lib/git-hooks.js +41 -16
- package/dist/lib/git-hooks.js.map +1 -1
- package/dist/lib/ide-extension.d.ts +38 -0
- package/dist/lib/ide-extension.js +61 -0
- package/dist/lib/ide-extension.js.map +1 -0
- package/dist/lib/mcp.d.ts +36 -0
- package/dist/lib/mcp.js +653 -0
- package/dist/lib/mcp.js.map +1 -0
- package/dist/lib/project-metadata.d.ts +1 -1
- package/dist/lib/project-metadata.js +3 -2
- package/dist/lib/project-metadata.js.map +1 -1
- package/dist/lib/status.d.ts +1 -1
- package/dist/lib/status.js +4 -4
- package/dist/lib/status.js.map +1 -1
- package/dist/lib/swarm-orchestrator.d.ts +31 -0
- package/dist/lib/swarm-orchestrator.js +134 -0
- package/dist/lib/swarm-orchestrator.js.map +1 -0
- package/dist/lib/update.js +7 -3
- package/dist/lib/update.js.map +1 -1
- package/dist/lib/webview-studio.d.ts +8 -0
- package/dist/lib/webview-studio.js +463 -0
- package/dist/lib/webview-studio.js.map +1 -0
- package/dist/lib/workflow-state.js +24 -8
- package/dist/lib/workflow-state.js.map +1 -1
- package/package.json +1 -1
- package/template/.agents/skills/adopt/SKILL.md +58 -5
- package/template/.agents/skills/doctor/SKILL.md +23 -16
- package/template/.agents/skills/implement/SKILL.md +2 -2
- package/template/.agents/skills/onboard/SKILL.md +18 -17
- package/template/.agents/skills/rollback/SKILL.md +1 -1
- package/template/.claude/skills/00-explore/SKILL.md +2 -2
- package/template/.claude/skills/10-define/SKILL.md +2 -2
- package/template/.claude/skills/20-spec/SKILL.md +1 -2
- package/template/.claude/skills/30-plan/SKILL.md +1 -2
- package/template/.claude/skills/40-execute/SKILL.md +2 -2
- package/template/.claude/skills/50-verify/SKILL.md +2 -2
- package/template/.claude/skills/60-report/SKILL.md +2 -2
- package/template/.claude/skills/70-deliver/SKILL.md +2 -2
- package/template/.claude/skills/adopt/SKILL.md +191 -75
- package/template/.claude/skills/audit/SKILL.md +267 -133
- package/template/.claude/skills/autopilot/SKILL.md +226 -167
- package/template/.claude/skills/brainstorm/SKILL.md +62 -0
- package/template/.claude/skills/brief/SKILL.md +93 -92
- package/template/.claude/skills/check/SKILL.md +96 -76
- package/template/.claude/skills/ci/SKILL.md +140 -61
- package/template/.claude/skills/complete/SKILL.md +156 -101
- package/template/.claude/skills/convert-any-to-md/SKILL.md +2 -2
- package/template/.claude/skills/convert-any-to-md/references/setup.md +29 -0
- package/template/.claude/skills/convert-any-to-md/scripts/convert_any_to_md.py +487 -0
- package/template/.claude/skills/convert-any-to-md/scripts/requirements.txt +3 -0
- package/template/.claude/skills/debug/SKILL.md +124 -49
- package/template/.claude/skills/devflow/SKILL.md +9 -3
- package/template/.claude/skills/discovery/SKILL.md +150 -129
- package/template/.claude/skills/doctor/SKILL.md +195 -72
- package/template/.claude/skills/feature/SKILL.md +195 -151
- package/template/.claude/skills/fix/SKILL.md +41 -90
- package/template/.claude/skills/idea/SKILL.md +2 -2
- package/template/.claude/skills/implement/SKILL.md +189 -46
- package/template/.claude/skills/onboard/SKILL.md +216 -85
- package/template/.claude/skills/overview/SKILL.md +44 -29
- package/template/.claude/skills/prototype/SKILL.md +82 -27
- package/template/.claude/skills/release/SKILL.md +119 -130
- package/template/.claude/skills/report-html/SKILL.md +2 -2
- package/template/.claude/skills/rollback/SKILL.md +123 -77
- package/template/.claude/skills/status/SKILL.md +109 -0
- package/template/.claude/skills/test/SKILL.md +2 -2
- package/template/.claude/skills/tests/SKILL.md +126 -0
- package/template/.claude/skills/try/SKILL.md +77 -65
- package/template/AGENTS.md +2 -1
- package/template/devflow/build-plan.md +50 -20
- package/template/devflow/history/features/README.md +5 -0
- package/template/devflow/history/fixes/README.md +5 -0
- package/template/devflow/history/rollbacks/README.md +5 -0
- package/template/devflow/project-plan.md +70 -18
- package/template/devflow/reference/studio.html +504 -0
|
@@ -1,108 +1,120 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: try
|
|
3
|
-
description: "[
|
|
3
|
+
description: "[devflow][B] Generate a human manual try guide for the current or most recently completed Blueprint feature, fix, or rollback. Reads the spec, project commands, and available app context, then tells the user exactly what to start, where to go, what to click or run, what to expect, and what would count as wrong. Read-only. Use when the user runs /try, invokes $try, asks how to test manually, asks where to click, asks how to see the change, or wants a manual review path after /implement, /autopilot, /check, or /complete."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# try -
|
|
6
|
+
# try - manual review guide
|
|
7
7
|
|
|
8
8
|
Where this sits in the workflow:
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
steps) what to click)
|
|
14
|
-
```
|
|
10
|
+
/implement or /complete -> [try] -> human review
|
|
11
|
+
(work exists) (manual (where to go,
|
|
12
|
+
path) what to click)
|
|
15
13
|
|
|
16
|
-
`
|
|
14
|
+
`/check` proves behavior from the agent side. `/try` gives the user a practical
|
|
15
|
+
manual walkthrough: start this command, open this route, click these controls,
|
|
16
|
+
expect this result, and watch for these failure signs.
|
|
17
17
|
|
|
18
|
-
It is always
|
|
18
|
+
It is always read-only. It does not edit files, install dependencies, commit,
|
|
19
|
+
merge, push, or run destructive commands.
|
|
19
20
|
|
|
20
21
|
## Input
|
|
21
22
|
|
|
22
23
|
Optional scope:
|
|
23
24
|
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
-
|
|
27
|
-
|
|
25
|
+
- no argument: use the active feature, fix, or rollback in
|
|
26
|
+
`devflow/context/current-feature.md`
|
|
27
|
+
- `latest`: use the most recent archive under `devflow/history/features/`,
|
|
28
|
+
`devflow/history/fixes/`, or `devflow/history/rollbacks/`
|
|
29
|
+
- a step name or number: focus the guide on that current-feature step
|
|
30
|
+
- a path, route, or command: include it as the main thing to try
|
|
28
31
|
|
|
29
|
-
If there is no active
|
|
32
|
+
If there is no active feature and no useful archive, ask what change the user
|
|
33
|
+
wants to try instead of guessing.
|
|
30
34
|
|
|
31
|
-
## Step 1 -
|
|
35
|
+
## Step 1 - find the work to explain
|
|
32
36
|
|
|
33
37
|
Read:
|
|
34
38
|
|
|
35
|
-
- `AGENTS.md`
|
|
36
|
-
- `devflow/context/current-
|
|
39
|
+
- `AGENTS.md`
|
|
40
|
+
- `devflow/context/current-feature.md`
|
|
37
41
|
- `devflow/context/project-overview.md`
|
|
38
42
|
- `devflow/context/coding-standards.md`
|
|
39
|
-
-
|
|
40
|
-
-
|
|
43
|
+
- `devflow/build-plan.md`
|
|
44
|
+
- latest files under `devflow/history/features/`,
|
|
45
|
+
`devflow/history/fixes/`, and `devflow/history/rollbacks/`, if the current
|
|
46
|
+
feature is reset
|
|
47
|
+
- git branch and working tree status
|
|
41
48
|
|
|
42
|
-
|
|
49
|
+
Prefer the active spec. If `current-feature.md` is the reset stub, use the most
|
|
50
|
+
recent archived feature, fix, or rollback by filename or modification time and
|
|
51
|
+
say that is what you used.
|
|
43
52
|
|
|
44
|
-
|
|
53
|
+
Do not dump the spec. Pull out the routes, commands, UI surfaces, CLI commands,
|
|
54
|
+
API endpoints, data states, and done-whens that matter for a human trying it.
|
|
55
|
+
For a rollback, lead with the path that proves the removed behavior is gone, then
|
|
56
|
+
include one unaffected regression path from the rollback spec.
|
|
45
57
|
|
|
46
|
-
|
|
58
|
+
## Step 2 - identify how to run the app
|
|
47
59
|
|
|
48
|
-
|
|
49
|
-
- **Server / API**: start command, base URL, endpoint, HTTP method, payload, and expected response shape.
|
|
50
|
-
- **CLI**: exact CLI command, flags, arguments, and expected terminal output.
|
|
51
|
-
- **Library / Module**: sample usage snippet, REPL call, or interactive test command.
|
|
52
|
-
- **Fullstack / Microservices**: minimal combined startup commands (e.g. backend + frontend).
|
|
60
|
+
Use the Commands section in `AGENTS.md`. Match the project type:
|
|
53
61
|
|
|
54
|
-
|
|
62
|
+
- **Web app** - dev server command, URL, and the route or screen to open.
|
|
63
|
+
- **Server/API** - server command, base URL, endpoint, method, and expected
|
|
64
|
+
response shape.
|
|
65
|
+
- **CLI** - exact command(s), arguments, and expected output.
|
|
66
|
+
- **Library** - example command, test fixture, REPL snippet, or sample call.
|
|
67
|
+
- **Hybrid app** - list the smallest set of commands needed, such as backend plus
|
|
68
|
+
web dev server.
|
|
55
69
|
|
|
56
|
-
|
|
70
|
+
If the app may already be running, say how to reuse it. If a command is missing
|
|
71
|
+
from `AGENTS.md`, report that as a gap rather than inventing certainty.
|
|
57
72
|
|
|
58
|
-
|
|
73
|
+
## Step 3 - write the manual guide
|
|
59
74
|
|
|
60
|
-
|
|
61
|
-
2. **2. Open** - URL(s), screens, tabs, API endpoints, or terminal locations.
|
|
62
|
-
3. **3. Do** - specific clicks, form inputs, toggles, selections, or arguments.
|
|
63
|
-
4. **4. Expect** - expected visible UI change, response payload, state change, output, or absence of errors.
|
|
64
|
-
5. **5. Watch For** - common failure symptoms, console errors, network 4xx/5xx errors, stale state, layout breakage, or safety warnings.
|
|
75
|
+
Produce a short guide with these sections:
|
|
65
76
|
|
|
66
|
-
|
|
77
|
+
1. **Start** - commands to run and where to run them.
|
|
78
|
+
2. **Open** - URLs, screens, tabs, API endpoints, or CLI commands.
|
|
79
|
+
3. **Do** - clicks, inputs, selections, or command arguments.
|
|
80
|
+
4. **Expect** - visible result, output, response, state change, file, or lack of
|
|
81
|
+
error.
|
|
82
|
+
5. **Watch For** - common wrong outcomes, console or network errors, stale data,
|
|
83
|
+
missing fields, bad empty states, layout issues, or safety warnings.
|
|
67
84
|
|
|
68
|
-
|
|
69
|
-
### 1. Start
|
|
70
|
-
Run `npm run dev` in the project root.
|
|
85
|
+
Keep it concrete. Prefer:
|
|
71
86
|
|
|
72
|
-
|
|
73
|
-
|
|
87
|
+
Open http://127.0.0.1:7788/api/snapshot
|
|
88
|
+
Expect a JSON object with `generated_at`, `services`, `projects`, and
|
|
89
|
+
`conflicts`.
|
|
74
90
|
|
|
75
|
-
|
|
76
|
-
1. Click the **"Export Report"** button in the top right.
|
|
77
|
-
2. Select **"Format: HTML"** from the dropdown.
|
|
78
|
-
3. Click **"Download"**.
|
|
91
|
+
Avoid:
|
|
79
92
|
|
|
80
|
-
|
|
81
|
-
- A new file `report.html` is downloaded.
|
|
82
|
-
- The UI displays a green success toast: *"Report exported successfully"*.
|
|
83
|
-
- The downloaded HTML file opens in the browser with full styling and charts.
|
|
93
|
+
Check that the snapshot works.
|
|
84
94
|
|
|
85
|
-
|
|
86
|
-
- Spinner hanging indefinitely without downloading.
|
|
87
|
-
- Console error related to `Blob` or `URL.createObjectURL`.
|
|
88
|
-
- Broken styling or unrendered Mermaid charts in the exported HTML.
|
|
89
|
-
```
|
|
95
|
+
## Step 4 - include confidence and gaps
|
|
90
96
|
|
|
91
|
-
|
|
97
|
+
End with:
|
|
92
98
|
|
|
93
|
-
|
|
99
|
+
- **Best signal** - the one thing the user should try first.
|
|
100
|
+
- **Optional deeper checks** - only if useful.
|
|
101
|
+
- **Gaps** - anything the guide cannot know from the docs, such as missing route
|
|
102
|
+
names, seed data, credentials, or external services.
|
|
94
103
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
- **Gaps & Assumptions**: anything the guide cannot know for certain (e.g. seed credentials, third-party API keys, required database fixtures).
|
|
104
|
+
If the feature is not user-visible, say so and provide the closest manual signal,
|
|
105
|
+
such as an API response, CLI output, log line, or unit test command.
|
|
98
106
|
|
|
99
107
|
## Rules
|
|
100
108
|
|
|
101
|
-
-
|
|
102
|
-
-
|
|
103
|
-
-
|
|
104
|
-
|
|
109
|
+
- Read-only only. Do not edit, commit, merge, push, install, or delete.
|
|
110
|
+
- Do not run the app unless the user explicitly asks you to try it for them.
|
|
111
|
+
- Do not pretend a path is known when the spec does not say it. Give the best
|
|
112
|
+
likely path and label uncertainty.
|
|
113
|
+
- Keep the guide short enough to follow while the app is open.
|
|
114
|
+
- Match the project's commands from `AGENTS.md`.
|
|
105
115
|
|
|
106
|
-
##
|
|
116
|
+
## Formatting
|
|
107
117
|
|
|
108
|
-
|
|
118
|
+
Format the output to match the project's conventions in
|
|
119
|
+
`devflow/context/ai-interaction.md`: concise, scannable markdown, with numbered
|
|
120
|
+
steps for the manual path and short bullets for warnings.
|
package/template/AGENTS.md
CHANGED
|
@@ -25,8 +25,9 @@ The workflow and skills are exposed through tool-specific adapters:
|
|
|
25
25
|
|
|
26
26
|
- **OpenAI Codex, Google Antigravity & GitHub Copilot**: `.agents/skills/<skill>/SKILL.md`
|
|
27
27
|
- **Claude Code**: `.claude/skills/<skill>/SKILL.md`
|
|
28
|
+
- **OpenCode**: `AGENTS.md` plus the compatible `.agents/skills/` or `.claude/skills/` tree already installed for the selected tools
|
|
28
29
|
|
|
29
|
-
Unused adapter families can be removed. Codex, Antigravity,
|
|
30
|
+
Unused adapter families can be removed. Codex, Antigravity, GitHub Copilot, and OpenCode share `.agents/` and `AGENTS.md`. OpenCode can also reuse `.claude/` when Claude Code is selected. Claude Code projects keep `.claude/` and `AGENTS.md` (via `CLAUDE.md`). Do not duplicate the same DevFlow skills under `.opencode/skills/`; OpenCode already discovers the compatible trees.
|
|
30
31
|
|
|
31
32
|
### Universal Invocation & Agent Directives:
|
|
32
33
|
|
|
@@ -1,40 +1,70 @@
|
|
|
1
1
|
# 📋 Build Plan (User-Owned Feature Queue)
|
|
2
2
|
|
|
3
3
|
> **Document Type**: Build Plan (User-Owned)
|
|
4
|
-
> **Purpose**:
|
|
4
|
+
> **Purpose**: รายการคิวฟีเจอร์การพัฒนาปรับปรุงระบบตามลำดับ พร้อมการประเมินขนาด (Sizing) และความสัมพันธ์ (Dependencies) สำหรับ `/brief` และ `/feature`
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
## 🚀 Phase 1:
|
|
8
|
+
## 🚀 Phase 1: Hard Quality Gates & Pre-commit Enforcement
|
|
9
9
|
|
|
10
|
-
- [
|
|
10
|
+
- [x] **1. Automated Quality Gatekeeper & Pre-commit Hook Integration** `[Size: S]`
|
|
11
11
|
- *Dependencies*: None
|
|
12
|
-
- *Scope*:
|
|
13
|
-
|
|
12
|
+
- *Scope*: ผสาน `nexus-devflow check-gate` เข้าสู่ Git Pre-commit Hooks และ CI เพื่อบล็อกการ Commit/Merge เมื่อมี Unchecked Tasks, Test ล้มเหลว หรือมี P0/P1 Finding ค้างอยู่
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## ⚡ Phase 2: DevFlow Model Context Protocol (MCP) Server Hub
|
|
17
|
+
|
|
18
|
+
- [x] **2. DevFlow MCP Server Hub & Type-Safe Schema Engine (`IDEA-004`)** `[Size: M]`
|
|
14
19
|
- *Dependencies*: Feature 1
|
|
15
|
-
- *Scope*:
|
|
16
|
-
|
|
20
|
+
- *Scope*: สร้าง Subcommand `nexus-devflow mcp` เปิด JSON-RPC Server พร้อมเครื่องมือ Typed Tools (`update_task`, `record_finding`, `get_stage_context`) ด้วย Zod Schema Validation
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## 🌿 Phase 3: Branch-Scoped Context Isolation
|
|
25
|
+
|
|
26
|
+
- [x] **3. Branch-Scoped Context Isolation & Dynamic Router** `[Size: M]`
|
|
17
27
|
- *Dependencies*: Feature 2
|
|
18
|
-
- *Scope*:
|
|
28
|
+
- *Scope*: แยกจัดเก็บ State ตาม Git Branch ใน `.nexus/branches/<branch-name>/`, ระบบ Canonical Dynamic Router สำหรับ AI Agent และระบบ Auto-Cleanup หลัง `/complete`
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## ✂️ Phase 4: JIT Context Slicing & Token Optimizer
|
|
33
|
+
|
|
34
|
+
- [x] **4. Just-In-Time (JIT) Dynamic Context Slicing Engine** `[Size: M]`
|
|
35
|
+
- *Dependencies*: Feature 3
|
|
36
|
+
- *Scope*: สร้างตัวตัดตอนบริบท (Context Slicer) สำหรับสคิล `/implement`, `/check`, `/00-explore` เพื่อส่งเฉพาะข้อมูลที่จำเป็นและควบคุม Token Budget ลดการใช้ Token 60–70%
|
|
19
37
|
|
|
20
38
|
---
|
|
21
39
|
|
|
22
|
-
##
|
|
40
|
+
## 🔄 Phase 5: State Drift Detection & Self-Healing
|
|
23
41
|
|
|
24
|
-
- [
|
|
25
|
-
- *Dependencies*: Phase 1
|
|
26
|
-
- *Scope*: Wire up `nexus-devflow check-gate`, GitHub Actions workflows, and pre-commit hooks.
|
|
27
|
-
- [ ] **5. External Services & Tooling** `[Size: L]`
|
|
42
|
+
- [x] **5. Git Diff Drift Reconciler & Self-Healing State Engine** `[Size: M]`
|
|
28
43
|
- *Dependencies*: Feature 4
|
|
29
|
-
- *Scope*:
|
|
44
|
+
- *Scope*: ตรวจจับความไม่สอดคล้องระหว่าง `git diff` กับรายการไฟล์ใน Living Spec พร้อมระบบแจ้งเตือนและ Auto-Reconcile ซิงค์สถานะอัตโนมัติ
|
|
30
45
|
|
|
31
46
|
---
|
|
32
47
|
|
|
33
|
-
##
|
|
48
|
+
## 🖥️ Phase 6: IDE Native Extension & Visual Studio
|
|
34
49
|
|
|
35
|
-
- [
|
|
36
|
-
- *Dependencies*:
|
|
37
|
-
- *Scope*:
|
|
38
|
-
|
|
50
|
+
- [x] **6. IDE Native Extension & Interactive Webview Studio** `[Size: L]`
|
|
51
|
+
- *Dependencies*: Feature 5
|
|
52
|
+
- *Scope*: พัฒนา Extension สำหรับ VS Code / Antigravity Webview เพื่อแสดง Live Kanban Board, ปุ่มกดรันคำสั่ง DevFlow และ Diff Inspector ในตัว IDE
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## 🤖 Phase 7: Multi-Agent Swarm Orchestration & Code Graph RAG
|
|
58
|
+
|
|
59
|
+
- [x] **7. Multi-Agent Swarm Orchestrator & Semantic Code Graph RAG** `[Size: L]`
|
|
39
60
|
- *Dependencies*: Feature 6
|
|
40
|
-
- *Scope*:
|
|
61
|
+
- *Scope*: พัฒนาระบบกระจายงานแบบคู่ขนานให้ Subagents (Coder, QA Verifier, Security Auditor) และระบบ Indexing Local Codebase Graph เพื่อดึงบริบทที่แม่นยำสูงสุด
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## 🔄 Phase 8: Upstream Synchronization & Multi-Adapter Expansion
|
|
66
|
+
|
|
67
|
+
- [x] **8. Sync Upstream v0.13.0 (Adopt Visibility, OpenCode & Multi-Adapter Selection)** `[Size: M]`
|
|
68
|
+
- *Dependencies*: None
|
|
69
|
+
- *Scope*: ผสานความสามารถ Adopt Workflow Visibility (Commit vs Local-only), การรองรับ OpenCode และ Multi-Adapter Checkbox Prompt ใน CLI พร้อมอัปเดต Doctor checks และซิงก์ Baseline SHA เป็น v0.13.0 (`0b65166`)
|
|
70
|
+
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Completed Features Archive
|
|
2
|
+
|
|
3
|
+
Finished feature specs, enhancements, architecture migrations, and tooling runs are archived here as `xxx-name.md` (for Fast-Track single living specs) or `xxx-name/` (for Deep-Track stage runs).
|
|
4
|
+
|
|
5
|
+
Together they form the project's permanent feature build history, recording what was built, why, and how it was verified.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Completed Fixes Archive
|
|
2
|
+
|
|
3
|
+
Finished bug fixes, hotfixes, regressions, security patches, and performance optimizations are archived here as `xxx-name.md` (for Fast-Track single living specs) or `xxx-name/` (for Deep-Track stage runs).
|
|
4
|
+
|
|
5
|
+
Together they form the project's permanent bug resolution history, recording root causes, TDD test decisions, and empirical proof.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Completed Rollbacks Archive
|
|
2
|
+
|
|
3
|
+
Safely reversed features and rollback execution records are archived here as `YYYY-MM-DD-xxx-name.md` (or `YYYY-MM-DD-xxx-name/`).
|
|
4
|
+
|
|
5
|
+
Together they form the project's safe feature reversal ledger, documenting target commits, dependency review, and post-reversal verification.
|
|
@@ -1,27 +1,79 @@
|
|
|
1
1
|
# 🗺️ Project Plan (User-Owned Architectural Vision)
|
|
2
2
|
|
|
3
3
|
> **Document Type**: Project Plan (User-Owned)
|
|
4
|
-
> **Purpose**: Single
|
|
4
|
+
> **Purpose**: แหล่งความจริงหลัก (Single Source of Truth) สำหรับวิสัยทัศน์ผลิตภัณฑ์ สถาปัตยกรรมระบบ มาตรการความปลอดภัย กฎเกณฑ์การส่งมอบ และแผนงานพัฒนาต่อยอด ถูกนำไปประมวลผลเป็น `devflow/context/project-overview.md` ผ่านคำสั่ง `/overview`
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
## 1. Product Vision & Problem Statement
|
|
9
|
-
|
|
10
|
-
- **
|
|
11
|
-
- **
|
|
9
|
+
|
|
10
|
+
- **What this is**: **Nexus-DevFlow** คือระบบ **Agentic Workflow Layer & Pair Programming Operating System** ที่เชื่อมต่อระหว่างนักพัฒนา (Human Developer) และปัญญาประดิษฐ์ (AI Coding Agents เช่น Google Antigravity, Claude Code, OpenAI Codex, Cursor, GitHub Copilot) เพื่อยกระดับการพัฒนาซอฟต์แวร์สู่มาตรฐานระดับวิศวกรรมสากล
|
|
11
|
+
- **Target Audience**:
|
|
12
|
+
- นักพัฒนาเดี่ยว (Solo Developers) ที่ต้องการความเร็วสูงแต่ยังคงมีระเบียบวินัยและหลักฐานการทดสอบที่ชัดเจน
|
|
13
|
+
- ทีมพัฒนาและองค์กร (Engineering Teams & Tech Leads) ที่ต้องการมาตรฐานการส่งมอบโค้ดที่ตรวจสอบได้ (Traceable), ตรวจสอบย้อนหลังได้ (Auditable) และไม่มีปัญหาโค้ดตีกัน (Zero Merge Conflict)
|
|
14
|
+
- **Core Value Proposition**:
|
|
15
|
+
- **The 3-Pillars Model**: จัดระเบียบบริบทเป็น 3 เสาหลักอย่างชัดเจน — *🔮 Future (Inbox `ideas.md`)* ➔ *⚡ Present (Living Context `devflow/context/`)* ➔ *📦 Past (Categorized History `devflow/history/`)*
|
|
16
|
+
- **Dual-Track Delivery Model**: เลือกความเร็วให้เหมาะกับขนาดงาน — *Fast-Track (4 ขั้นตอน)* สำหรับ 85% ของงานประจำวัน และ *Deep-Track (8 ขั้นตอน)* สำหรับ 15% ของงานสถาปัตยกรรม
|
|
17
|
+
- **Hard Quality Gates**: ระบบปฏิเสธการปล่อยงานเมื่อไม่ผ่านเกณฑ์การทดสอบ หรือมีข้อบกพร่องความปลอดภัยค้างอยู่
|
|
18
|
+
|
|
19
|
+
---
|
|
12
20
|
|
|
13
21
|
## 2. Architecture & Tech Stack
|
|
14
|
-
|
|
15
|
-
- **
|
|
16
|
-
- **
|
|
17
|
-
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
- **
|
|
21
|
-
- **
|
|
22
|
-
- **
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
- **
|
|
26
|
-
- **
|
|
27
|
-
-
|
|
22
|
+
|
|
23
|
+
- **Runtime & Language**: Node.js (>=18.17.0), TypeScript (Strict ESM-First `"type": "module"`)
|
|
24
|
+
- **Persistence & State**:
|
|
25
|
+
- Markdown-First Architecture พร้อม Type-Safe Schema Validation (Zod)
|
|
26
|
+
- Git-Backed History Archive (`devflow/history/features/`, `devflow/history/fixes/`, `devflow/history/rollbacks/`, `HISTORY.md`)
|
|
27
|
+
- Local State Management & Backup Snapshots (`.nexus/`)
|
|
28
|
+
- **Key Modules & Subsystems**:
|
|
29
|
+
- **Distribution CLI & Package**: `packages/create-nexus-devflow` (Scaffolding, Doctor, Status, Update, Gatekeeper)
|
|
30
|
+
- **Interactive Web Dashboard**: Embedded Local Webview Dashboard (`/dashboard`) พร้อม Dual-Track Visualizer และ Real-time Snapshot
|
|
31
|
+
- **Gatekeeper Engine**: ระบบตรวจสอบคุณภาพโค้ดและ Finding Blockers (`nexus-devflow check-gate`)
|
|
32
|
+
- **Model Context Protocol (MCP) Server**: JSON-RPC Hub สำหรับเชื่อมต่อ AI Agents แบบ Type-Safe
|
|
33
|
+
- **Dynamic Context Slicer**: ระบบจัดสรรและตัดตอนบริบทแบบ Just-In-Time (JIT) เพื่อประหยัด Token
|
|
34
|
+
- **Integration Points & AI Adapters**:
|
|
35
|
+
- Google Antigravity & OpenAI Codex (`.agents/skills/`)
|
|
36
|
+
- Claude Code (`.claude/skills/`)
|
|
37
|
+
- Model Context Protocol (`@modelcontextprotocol/sdk`)
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## 3. Constraints, Defensive Guardrails & Non-Goals
|
|
42
|
+
|
|
43
|
+
- **5 เสาหลักมาตรการป้องกันความเสี่ยง (Hard Defensive Guardrails)**:
|
|
44
|
+
1. *Hard Quality Gates & Git Hooks*: บล็อกการ Commit ทันทีหาก Spec ไม่ครบ หรือมี `P0/P1 Finding` ค้างอยู่ในสถานะ `open`
|
|
45
|
+
2. *Model Context Protocol (MCP)*: บังคับใช้ Typed Function Calling เพื่อป้องกันความเสียหายจากการ Parse ข้อความ Markdown
|
|
46
|
+
3. *Branch-Scoped Context Isolation*: แยกโฟลเดอร์ State ตาม Git Branch ใน `.nexus/branches/<name>/` ป้องกัน Merge Conflict เมื่อทำงานเป็นทีม
|
|
47
|
+
4. *Dynamic Context Slicing*: ส่งเฉพาะบริบทที่จำเป็นต่อ Stage นั้นๆ เข้าสู่ AI ลด Token Bloat 60–70%
|
|
48
|
+
5. *State Drift Reconciler*: ตรวจจับความไม่สอดคล้องระหว่าง Git Diffs กับ Spec Tasks และเสนอทางเลือก Auto-Sync ทันที
|
|
49
|
+
- **Non-Goals**:
|
|
50
|
+
- ไม่ใช่ Proprietary IDE หรือ Closed Cloud SaaS — DevFlow เป็น Transparent Git-Native Layer ที่ฝังตัวในโปรเจกต์ใดก็ได้
|
|
51
|
+
- ไม่ใช่ Auto-GPT ที่ปล่อยให้ AI เขียนโค้ดตามใจโดยไม่มี Human-in-the-Loop Review Gates
|
|
52
|
+
- **Delivery Rules**:
|
|
53
|
+
- เคร่งครัดใน TDD Mandate: โค้ดที่เพิ่มหรือแก้ไขต้องมี Automated Unit Tests เสมอ
|
|
54
|
+
- ห้ามข้ามขั้นตอน Verification: ต้องมีหลักฐานเชิงประจักษ์ (Empirical Proof) ใน `/check` ก่อนอนุมัติ `/complete`
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## 4. Key Milestones & Evolution Roadmap
|
|
59
|
+
|
|
60
|
+
- **🚀 Milestone 1: Hard Quality Gates & Pre-commit Enforcement**
|
|
61
|
+
- ติดตั้ง `check-gate` เข้าสู่ Git Pre-commit Hooks และ CI Pipeline
|
|
62
|
+
- บล็อกการส่งมอบเมื่อมี Unchecked Tasks หรือ P0/P1 Blockers
|
|
63
|
+
- **⚡ Milestone 2: DevFlow MCP Server Hub & Type-Safe Schemas (`IDEA-004`)**
|
|
64
|
+
- พัฒนา MCP Server ผ่าน JSON-RPC สำหรับ Antigravity, Claude, Codex, Cursor
|
|
65
|
+
- ใช้ Zod Schema ควบคุมการอัปเดต Task, Findings, และ Stage State 100% Type-safe
|
|
66
|
+
- **🌿 Milestone 3: Branch-Scoped Context Isolation & Dynamic Router**
|
|
67
|
+
- รองรับการเก็บ State แยกตาม Git Branch ป้องกัน Merge Conflict ในทีม
|
|
68
|
+
- ระบบ Auto-Cleanup ลบ Branch State หลังจบ `/complete` และย้ายเข้าสู่ History
|
|
69
|
+
- **✂️ Milestone 4: JIT Context Slicing & Token Budgeting Engine**
|
|
70
|
+
- ปรับระบบส่ง Context ให้ AI ตาม Stage แบบไดนามิก ประหยัด Token 70%
|
|
71
|
+
- ควบคุมขนาด `project-overview.md` ไม่ให้เกินงบประมาณ Token
|
|
72
|
+
- **🔄 Milestone 5: Git Diff Reconciler & Self-Healing State**
|
|
73
|
+
- ตรวจจับความคลาดเคลื่อนระหว่างการแก้โค้ดของมนุษย์กับ Living Spec
|
|
74
|
+
- ระบบ Smart Reconciliation แจ้งเตือนและซิงค์สเปกอัตโนมัติ
|
|
75
|
+
- **🖥️ Milestone 6: IDE Native Extension & Visual Kanban Studio**
|
|
76
|
+
- ส่วนขยายบน VS Code / Antigravity Webview สำหรับควบคุม DevFlow ครบวงจรใน IDE
|
|
77
|
+
- **🤖 Milestone 7: Multi-Agent Swarm Orchestration & Semantic Code RAG**
|
|
78
|
+
- ระบบประสานงาน Subagents หลายตัว (Coder, QA, Auditor) ทำงานขนานกัน
|
|
79
|
+
- Local Dependency Graph & Semantic Code Search เพื่อดึงบริบทที่แม่นยำสูงสุด
|