dw-kit 1.9.1 → 1.9.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.
- package/.claude/agents/planner.md +100 -100
- package/.claude/agents/quality-checker.md +86 -86
- package/.claude/agents/researcher.md +93 -93
- package/.claude/agents/reviewer.md +126 -126
- package/.claude/hooks/supply-chain-scan.sh +0 -0
- package/.claude/rules/code-style.md +37 -37
- package/.claude/settings.json +2 -28
- package/.claude/skills/dw-plan/template-plan.md +47 -47
- package/.claude/skills/dw-research/template-research.md +51 -51
- package/.claude/skills/dw-review/checklist.md +88 -88
- package/.claude/skills/dw-thinking/THINKING.md +91 -91
- package/.claude/templates/agent-report.md +35 -35
- package/.claude/templates/en/task-context.md +77 -73
- package/.claude/templates/en/task-plan.md +83 -79
- package/.claude/templates/en/task-progress.md +69 -65
- package/.claude/templates/pr-template.md +56 -56
- package/.claude/templates/task-context.md +77 -73
- package/.claude/templates/task-plan.md +83 -79
- package/.claude/templates/task-progress.md +69 -65
- package/.dw/adapters/claude-cli/extensions/README.md +36 -36
- package/.dw/adapters/claude-cli/generated/README.md +23 -23
- package/.dw/adapters/claude-cli/overrides/README.md +37 -37
- package/.dw/adapters/generic/README.md +21 -21
- package/.dw/config/presets/enterprise.yml +52 -52
- package/.dw/config/presets/small-team.yml +39 -39
- package/.dw/config/presets/solo-quick.yml +37 -37
- package/.dw/core/AGENTS.md +53 -53
- package/.dw/core/QUALITY.md +220 -220
- package/.dw/core/THINKING.md +126 -126
- package/.dw/core/WORKFLOW.md +17 -12
- package/.dw/core/templates/v2/spec.md +2 -0
- package/.dw/core/templates/v2/tracking.md +2 -0
- package/.dw/core/templates/vi/task-context.md +96 -92
- package/.dw/core/templates/vi/task-plan.md +97 -93
- package/.dw/core/templates/vi/task-progress.md +60 -56
- package/LICENSE +201 -201
- package/NOTICE +26 -26
- package/README.md +150 -121
- package/README.vi.md +230 -0
- package/bin/dw.mjs +28 -28
- package/package.json +4 -1
- package/src/commands/claude-vn-fix.mjs +267 -267
- package/src/commands/prompt.mjs +112 -112
- package/src/commands/validate.mjs +102 -102
- package/src/commands/voice.mjs +431 -2
- package/src/lib/board-data.mjs +23 -57
- package/src/lib/clipboard.mjs +24 -24
- package/src/lib/goal-driver.mjs +312 -0
- package/src/lib/goal-progress.mjs +193 -0
- package/src/lib/platform.mjs +39 -39
- package/src/lib/process-kill.mjs +77 -0
- package/src/lib/prompt-suggest.mjs +84 -84
- package/src/lib/task-md-utils.mjs +78 -0
- package/src/lib/ui.mjs +66 -66
- package/src/lib/update-checker.mjs +73 -73
- package/.dw/security/advisory-snapshot.json +0 -157
|
@@ -1,93 +1,97 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
##
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
- **
|
|
37
|
-
- **
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
- **
|
|
41
|
-
- **
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
- **
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
- **
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
1
|
+
<!-- ⚠️ LEGACY TEMPLATE — do not use for new tasks. -->
|
|
2
|
+
<!-- Canonical task doc lineage = v3 (.dw/core/templates/v3/task.md), per ADR-0008 / ADR-0020. -->
|
|
3
|
+
<!-- Kept only as reference for `dw task migrate` + reading legacy task docs. -->
|
|
4
|
+
|
|
5
|
+
# Plan: [Task Name]
|
|
6
|
+
|
|
7
|
+
## Ngày tạo: [date]
|
|
8
|
+
## Trạng thái: Draft → cần approve
|
|
9
|
+
## Approved by: —
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Tóm Tắt Approach
|
|
14
|
+
|
|
15
|
+
[1-2 đoạn: tại sao approach này được chọn, alternatives đã bị loại vì lý do gì]
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Phương Án Đã Xem Xét
|
|
20
|
+
|
|
21
|
+
| # | Approach | Ưu điểm | Nhược điểm | Assumptions | Chọn? |
|
|
22
|
+
|---|----------|---------|------------|-------------|-------|
|
|
23
|
+
| 1 | [Option A] | | | | **Chọn** |
|
|
24
|
+
| 2 | [Option B] | | | | Loại — vì: |
|
|
25
|
+
| 3 | [Option C] | | | | Loại — vì: |
|
|
26
|
+
|
|
27
|
+
**Devil's Advocate**: Lý do mạnh nhất để KHÔNG chọn Option A:
|
|
28
|
+
> [điền vào]
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Subtasks
|
|
33
|
+
|
|
34
|
+
### ST-1: [Tên subtask]
|
|
35
|
+
- **Mô tả**: [actionable, cụ thể]
|
|
36
|
+
- **Files thay đổi**: [`path/to/file.ts`]
|
|
37
|
+
- **Acceptance Criteria**:
|
|
38
|
+
- Given [condition], When [action], Then [outcome]
|
|
39
|
+
- [ ] [Tiêu chí đo lường được]
|
|
40
|
+
- **Dependencies**: none
|
|
41
|
+
- **Estimate**: [giờ — nếu tracking bật]
|
|
42
|
+
|
|
43
|
+
### ST-2: [Tên subtask]
|
|
44
|
+
- **Mô tả**: ...
|
|
45
|
+
- **Files thay đổi**: [...]
|
|
46
|
+
- **Acceptance Criteria**:
|
|
47
|
+
- [ ] ...
|
|
48
|
+
- **Dependencies**: ST-1
|
|
49
|
+
|
|
50
|
+
<!-- Thêm subtasks theo nhu cầu. Tối đa ≤3 files, ≤4h per subtask -->
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## Dependency Graph
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
ST-1 → ST-2 → ST-3
|
|
58
|
+
↓
|
|
59
|
+
ST-4
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Rủi Ro & Giả Định
|
|
65
|
+
|
|
66
|
+
| # | Loại | Mô tả | Xác suất | Tác động | Giảm thiểu |
|
|
67
|
+
|---|------|--------|----------|----------|------------|
|
|
68
|
+
| 1 | Giả định | | Thấp/TB/Cao | Thấp/TB/Cao | Kiểm chứng bằng: |
|
|
69
|
+
| 2 | Rủi ro kỹ thuật | | | | |
|
|
70
|
+
| 3 | Rủi ro security | | | | |
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## Edge Cases
|
|
75
|
+
|
|
76
|
+
- [ ] [Edge case — khi nào xảy ra, xử lý thế nào]
|
|
77
|
+
- [ ] [Null/empty input]
|
|
78
|
+
- [ ] [Concurrent operations]
|
|
79
|
+
- [ ] [Rollback scenario]
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Tác Động Hệ Thống
|
|
84
|
+
|
|
85
|
+
- **Modules bị ảnh hưởng**: [danh sách]
|
|
86
|
+
- **API changes**: [endpoints mới/sửa/xóa]
|
|
87
|
+
- **DB changes**: [migration cần thiết?]
|
|
88
|
+
- **Backward compatibility**: [Có / Không — nếu không: migration plan?]
|
|
89
|
+
- **Breaking changes**: [nếu có, ai bị ảnh hưởng]
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## Góc Nhìn & Trade-offs
|
|
94
|
+
|
|
95
|
+
| Quyết định | User | Developer | Security | Ops |
|
|
96
|
+
|-----------|------|-----------|----------|-----|
|
|
97
|
+
| [Quyết định 1] | | | | |
|
|
@@ -1,56 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
##
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
##
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
-
|
|
1
|
+
<!-- ⚠️ LEGACY TEMPLATE — do not use for new tasks. -->
|
|
2
|
+
<!-- Canonical task doc lineage = v3 (.dw/core/templates/v3/task.md), per ADR-0008 / ADR-0020. -->
|
|
3
|
+
<!-- Kept only as reference for `dw task migrate` + reading legacy task docs. -->
|
|
4
|
+
|
|
5
|
+
# Progress: [Task Name]
|
|
6
|
+
|
|
7
|
+
## Trạng thái: Not Started | In Progress | Blocked | Done
|
|
8
|
+
## Branch: [branch-name]
|
|
9
|
+
## Sprint: [sprint-id — nếu dùng sprint tracking]
|
|
10
|
+
## Bắt đầu: [date]
|
|
11
|
+
## Kết thúc: —
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Subtask Progress
|
|
16
|
+
|
|
17
|
+
| # | Subtask | Trạng thái | Commit | Ghi chú |
|
|
18
|
+
|---|---------|-----------|--------|---------|
|
|
19
|
+
| ST-1 | [tên] | Pending | | |
|
|
20
|
+
| ST-2 | [tên] | Pending | | |
|
|
21
|
+
|
|
22
|
+
**Trạng thái hợp lệ**: Pending → In Progress → Done | Blocked | Skipped
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Changelog
|
|
27
|
+
|
|
28
|
+
Ghi lại mọi thay đổi so với plan gốc.
|
|
29
|
+
|
|
30
|
+
### [date] — [mô tả thay đổi]
|
|
31
|
+
- **Lý do**: [tại sao thay đổi]
|
|
32
|
+
- **Ảnh hưởng**: [subtasks nào bị ảnh hưởng]
|
|
33
|
+
- **Quyết định bởi**: [human / agent / cả hai]
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Phát Hiện Mới
|
|
38
|
+
|
|
39
|
+
| # | Phát hiện | Ảnh hưởng | Hành động | Trạng thái |
|
|
40
|
+
|---|-----------|-----------|-----------|-----------|
|
|
41
|
+
| 1 | | | | Resolved / Open |
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## Blockers
|
|
46
|
+
|
|
47
|
+
- [ ] [Blocker 1] — owner: [ai] — since: [date]
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Handoff Notes
|
|
52
|
+
|
|
53
|
+
*Điền trước khi kết thúc session.*
|
|
54
|
+
|
|
55
|
+
### Session [date]
|
|
56
|
+
- **Đang ở**: ST-[N] — [trạng thái cụ thể]
|
|
57
|
+
- **Context quan trọng**: [decisions, gotchas không obvious từ code]
|
|
58
|
+
- **Bước tiếp theo**: [việc cần làm ngay khi resume]
|
|
59
|
+
- **Cẩn thận**: [warnings, pitfalls đã gặp]
|
|
60
|
+
- **Git state**: `git status` output nếu có uncommitted changes
|