dw-kit 1.9.0 → 1.9.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 (53) hide show
  1. package/.claude/agents/planner.md +100 -100
  2. package/.claude/agents/quality-checker.md +86 -86
  3. package/.claude/agents/researcher.md +93 -93
  4. package/.claude/agents/reviewer.md +126 -126
  5. package/.claude/hooks/supply-chain-scan.sh +0 -0
  6. package/.claude/rules/code-style.md +37 -37
  7. package/.claude/settings.json +2 -28
  8. package/.claude/skills/dw-kit-report/SKILL.md +38 -7
  9. package/.claude/skills/dw-plan/template-plan.md +47 -47
  10. package/.claude/skills/dw-research/template-research.md +51 -51
  11. package/.claude/skills/dw-review/checklist.md +88 -88
  12. package/.claude/skills/dw-thinking/THINKING.md +91 -91
  13. package/.claude/templates/agent-report.md +35 -35
  14. package/.claude/templates/en/task-context.md +77 -73
  15. package/.claude/templates/en/task-plan.md +83 -79
  16. package/.claude/templates/en/task-progress.md +69 -65
  17. package/.claude/templates/pr-template.md +56 -56
  18. package/.claude/templates/task-context.md +77 -73
  19. package/.claude/templates/task-plan.md +83 -79
  20. package/.claude/templates/task-progress.md +69 -65
  21. package/.dw/adapters/claude-cli/extensions/README.md +36 -36
  22. package/.dw/adapters/claude-cli/generated/README.md +23 -23
  23. package/.dw/adapters/claude-cli/overrides/README.md +37 -37
  24. package/.dw/adapters/generic/README.md +21 -21
  25. package/.dw/config/presets/enterprise.yml +52 -52
  26. package/.dw/config/presets/small-team.yml +39 -39
  27. package/.dw/config/presets/solo-quick.yml +37 -37
  28. package/.dw/core/AGENTS.md +53 -53
  29. package/.dw/core/QUALITY.md +220 -220
  30. package/.dw/core/THINKING.md +126 -126
  31. package/.dw/core/WORKFLOW.md +17 -12
  32. package/.dw/core/templates/v2/spec.md +2 -0
  33. package/.dw/core/templates/v2/tracking.md +2 -0
  34. package/.dw/core/templates/v3/task.md +15 -22
  35. package/.dw/core/templates/vi/task-context.md +96 -92
  36. package/.dw/core/templates/vi/task-plan.md +97 -93
  37. package/.dw/core/templates/vi/task-progress.md +60 -56
  38. package/LICENSE +201 -201
  39. package/NOTICE +26 -26
  40. package/README.md +1 -1
  41. package/bin/dw.mjs +28 -28
  42. package/package.json +1 -1
  43. package/src/commands/claude-vn-fix.mjs +267 -267
  44. package/src/commands/prompt.mjs +112 -112
  45. package/src/commands/validate.mjs +102 -102
  46. package/src/lib/clipboard.mjs +24 -24
  47. package/src/lib/goal-store.mjs +2 -14
  48. package/src/lib/platform.mjs +39 -39
  49. package/src/lib/prompt-suggest.mjs +84 -84
  50. package/src/lib/timeline-parser.mjs +54 -15
  51. package/src/lib/ui.mjs +66 -66
  52. package/src/lib/update-checker.mjs +73 -73
  53. package/.dw/security/advisory-snapshot.json +0 -157
@@ -1,79 +1,83 @@
1
- # Plan: [Task Name]
2
-
3
- ## Created: [date]
4
- ## Status: Draft | Approved | In Progress | Done
5
- ## Approved by: [name / role]
6
-
7
- ---
8
-
9
- ## Solution Summary
10
-
11
- [1-2 paragraphs describing the goal and chosen approach]
12
-
13
- ## Options Considered
14
-
15
- | # | Option | Pros | Cons | Selected? |
16
- |---|--------|------|------|-----------|
17
- | 1 | [Approach A] | | | **Selected** |
18
- | 2 | [Approach B] | | | Rejected — reason: |
19
-
20
- ## Subtasks
21
-
22
- ### ST-1: [Subtask name]
23
- - **Description**: [Specific, actionable]
24
- - **Files**: [List of files to change]
25
- - **Acceptance Criteria**:
26
- - [ ] [Condition 1]
27
- - [ ] [Condition 2]
28
- - **Dependencies**: none
29
- - **Estimate**: [effort — if estimation enabled]
30
-
31
- ### ST-2: [Subtask name]
32
- - **Description**: ...
33
- - **Files**: ...
34
- - **Acceptance Criteria**:
35
- - [ ] ...
36
- - **Dependencies**: ST-1
37
- - **Estimate**: ...
38
-
39
- <!-- Add more subtasks as needed -->
40
-
41
- ## Risks & Assumptions
42
-
43
- | # | Type | Description | Probability | Impact | Mitigation |
44
- |---|------|-------------|-------------|--------|------------|
45
- | 1 | Assumption | | | | Verify by: |
46
- | 2 | Risk | | High/Med/Low | High/Med/Low | |
47
-
48
- ## Edge Cases
49
-
50
- - [ ] [Edge case 1 when it occurs, how to handle]
51
- - [ ] [Edge case 2]
52
-
53
- ## System Impact
54
-
55
- - **Affected modules**: [list]
56
- - **API changes**: [new/modified/removed endpoints]
57
- - **Database changes**: [migrations needed]
58
- - **Backward compatibility**: [Yes/No — details]
59
- - **Breaking changes**: [if any]
60
-
61
- ## Perspectives & Trade-offs
62
-
63
- | Decision | User impact | Developer impact | Security | Ops/Deploy |
64
- |----------|-------------|------------------|----------|------------|
65
- | [Decision 1] | | | | |
66
-
67
- <!-- Section below only shown when flags.estimation = true -->
68
-
69
- ## Estimation Summary
70
-
71
- | Phase | Estimate | Notes |
72
- |-------|----------|-------|
73
- | Research | [done] | |
74
- | Planning | [done] | |
75
- | Coding | | |
76
- | Testing | | |
77
- | Review | | |
78
- | Documentation | | |
79
- | **Total** | **[sum]** | |
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
+ ## Created: [date]
8
+ ## Status: Draft | Approved | In Progress | Done
9
+ ## Approved by: [name / role]
10
+
11
+ ---
12
+
13
+ ## Solution Summary
14
+
15
+ [1-2 paragraphs describing the goal and chosen approach]
16
+
17
+ ## Options Considered
18
+
19
+ | # | Option | Pros | Cons | Selected? |
20
+ |---|--------|------|------|-----------|
21
+ | 1 | [Approach A] | | | **Selected** |
22
+ | 2 | [Approach B] | | | Rejected — reason: |
23
+
24
+ ## Subtasks
25
+
26
+ ### ST-1: [Subtask name]
27
+ - **Description**: [Specific, actionable]
28
+ - **Files**: [List of files to change]
29
+ - **Acceptance Criteria**:
30
+ - [ ] [Condition 1]
31
+ - [ ] [Condition 2]
32
+ - **Dependencies**: none
33
+ - **Estimate**: [effort — if estimation enabled]
34
+
35
+ ### ST-2: [Subtask name]
36
+ - **Description**: ...
37
+ - **Files**: ...
38
+ - **Acceptance Criteria**:
39
+ - [ ] ...
40
+ - **Dependencies**: ST-1
41
+ - **Estimate**: ...
42
+
43
+ <!-- Add more subtasks as needed -->
44
+
45
+ ## Risks & Assumptions
46
+
47
+ | # | Type | Description | Probability | Impact | Mitigation |
48
+ |---|------|-------------|-------------|--------|------------|
49
+ | 1 | Assumption | | | | Verify by: |
50
+ | 2 | Risk | | High/Med/Low | High/Med/Low | |
51
+
52
+ ## Edge Cases
53
+
54
+ - [ ] [Edge case 1 — when it occurs, how to handle]
55
+ - [ ] [Edge case 2]
56
+
57
+ ## System Impact
58
+
59
+ - **Affected modules**: [list]
60
+ - **API changes**: [new/modified/removed endpoints]
61
+ - **Database changes**: [migrations needed]
62
+ - **Backward compatibility**: [Yes/No — details]
63
+ - **Breaking changes**: [if any]
64
+
65
+ ## Perspectives & Trade-offs
66
+
67
+ | Decision | User impact | Developer impact | Security | Ops/Deploy |
68
+ |----------|-------------|------------------|----------|------------|
69
+ | [Decision 1] | | | | |
70
+
71
+ <!-- Section below only shown when flags.estimation = true -->
72
+
73
+ ## Estimation Summary
74
+
75
+ | Phase | Estimate | Notes |
76
+ |-------|----------|-------|
77
+ | Research | [done] | |
78
+ | Planning | [done] | |
79
+ | Coding | | |
80
+ | Testing | | |
81
+ | Review | | |
82
+ | Documentation | | |
83
+ | **Total** | **[sum]** | |
@@ -1,65 +1,69 @@
1
- # Progress: [Task Name]
2
-
3
- ## Status: Not Started | In Progress | Blocked | Done
4
- ## Branch: [branch-name]
5
- ## Started: [date]
6
- ## Completed: [date — when done]
7
-
8
- ---
9
-
10
- ## Subtask Progress
11
-
12
- | # | Subtask | Status | Commit | Owner | Notes |
13
- |---|---------|--------|--------|-------|-------|
14
- | ST-1 | | Pending | | | |
15
- | ST-2 | | Pending | | | |
16
-
17
- **Status values**: Pending → In Progress → Done | Blocked | Skipped
18
-
19
- ## Changelog
20
-
21
- Record all deviations from the original plan.
22
-
23
- ### [date] — [description of change]
24
- - **Reason**: [why the change was made]
25
- - **Impact**: [which subtasks are affected]
26
- - **Decision by**: [human / agent / both]
27
-
28
- ## New Findings
29
-
30
- Record when assumptions are wrong, new risks appear, or scope changes.
31
-
32
- | # | Finding | Impact | Action | Status |
33
- |---|---------|--------|--------|--------|
34
- | 1 | | | | Resolved / Open |
35
-
36
- ## Blockers
37
-
38
- - [ ] [Blocker 1] owner: [who is responsible] since: [date]
39
-
40
- <!-- Section below only shown when flags.log_work = true -->
41
-
42
- ## Effort Log
43
-
44
- | Date | Subtask | Work type | Estimate | Actual | Notes |
45
- |------|---------|-----------|----------|--------|-------|
46
- | | | coding/testing/review | | | |
47
-
48
- ### Effort Summary
49
-
50
- | Metric | Value |
51
- |--------|-------|
52
- | Total Estimate | |
53
- | Total Actual | |
54
- | Variance | |
55
- | Accuracy | % |
56
-
57
- ## Handoff Notes
58
-
59
- Record at end of session so next person/agent can continue without asking.
60
-
61
- ### Session [date]
62
- - **Currently at**: ST-[N] — [describe current state]
63
- - **Important context**: [decisions, gotchas]
64
- - **Next steps**: [what to do immediately]
65
- - **Watch out for**: [warnings, edge cases encountered]
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
+ ## Status: Not Started | In Progress | Blocked | Done
8
+ ## Branch: [branch-name]
9
+ ## Started: [date]
10
+ ## Completed: [date — when done]
11
+
12
+ ---
13
+
14
+ ## Subtask Progress
15
+
16
+ | # | Subtask | Status | Commit | Owner | Notes |
17
+ |---|---------|--------|--------|-------|-------|
18
+ | ST-1 | | Pending | | | |
19
+ | ST-2 | | Pending | | | |
20
+
21
+ **Status values**: Pending In Progress → Done | Blocked | Skipped
22
+
23
+ ## Changelog
24
+
25
+ Record all deviations from the original plan.
26
+
27
+ ### [date] — [description of change]
28
+ - **Reason**: [why the change was made]
29
+ - **Impact**: [which subtasks are affected]
30
+ - **Decision by**: [human / agent / both]
31
+
32
+ ## New Findings
33
+
34
+ Record when assumptions are wrong, new risks appear, or scope changes.
35
+
36
+ | # | Finding | Impact | Action | Status |
37
+ |---|---------|--------|--------|--------|
38
+ | 1 | | | | Resolved / Open |
39
+
40
+ ## Blockers
41
+
42
+ - [ ] [Blocker 1] — owner: [who is responsible] — since: [date]
43
+
44
+ <!-- Section below only shown when flags.log_work = true -->
45
+
46
+ ## Effort Log
47
+
48
+ | Date | Subtask | Work type | Estimate | Actual | Notes |
49
+ |------|---------|-----------|----------|--------|-------|
50
+ | | | coding/testing/review | | | |
51
+
52
+ ### Effort Summary
53
+
54
+ | Metric | Value |
55
+ |--------|-------|
56
+ | Total Estimate | |
57
+ | Total Actual | |
58
+ | Variance | |
59
+ | Accuracy | % |
60
+
61
+ ## Handoff Notes
62
+
63
+ Record at end of session so next person/agent can continue without asking.
64
+
65
+ ### Session [date]
66
+ - **Currently at**: ST-[N] — [describe current state]
67
+ - **Important context**: [decisions, gotchas]
68
+ - **Next steps**: [what to do immediately]
69
+ - **Watch out for**: [warnings, edge cases encountered]
@@ -1,56 +1,56 @@
1
- ## Tóm Tắt
2
-
3
- [Mô tả ngắn: thay đổi gì, tại sao]
4
-
5
- ## Loại Thay Đổi
6
-
7
- - [ ] Feature mới (feat)
8
- - [ ] Bug fix (fix)
9
- - [ ] Refactoring (refactor)
10
- - [ ] Tests (test)
11
- - [ ] Documentation (docs)
12
- - [ ] Performance (perf)
13
- - [ ] Chore/Config (chore)
14
-
15
- ## Thay Đổi Chi Tiết
16
-
17
- - [Thay đổi 1]: [mô tả]
18
- - [Thay đổi 2]: [mô tả]
19
-
20
- ## Task Documentation
21
-
22
- - Plan: `.dw/tasks/[task-name]/[task-name]-plan.md`
23
- - Context: `.dw/tasks/[task-name]/[task-name]-context.md`
24
- - Progress: `.dw/tasks/[task-name]/[task-name]-progress.md`
25
-
26
- ## Testing
27
-
28
- - [ ] Unit tests pass
29
- - [ ] Integration tests pass (nếu applicable)
30
- - [ ] Manual testing done
31
- - [ ] Edge cases đã test: [liệt kê]
32
-
33
- ## Checklist
34
-
35
- - [ ] Code tuân thủ conventions (`.claude/rules/code-style.md`)
36
- - [ ] Commit messages đúng format
37
- - [ ] Không có sensitive data (secrets, tokens, .env)
38
- - [ ] Không có debug code (console.log, debugger)
39
- - [ ] Documentation cập nhật (nếu applicable)
40
- - [ ] Breaking changes đã documented (nếu có)
41
- - [ ] Backward compatible (hoặc migration plan có sẵn)
42
-
43
- ## Screenshots / Demo
44
-
45
- [Nếu UI changes — đính kèm screenshots]
46
-
47
- ## Estimate vs Actual
48
-
49
- | Metric | Giá trị |
50
- |--------|---------|
51
- | Estimated | [hours/points] |
52
- | Actual | [hours/points] |
53
- | Notes | |
54
-
55
- ---
56
- > PR này được tạo với sự hỗ trợ của AI Agent (dv-workflow-kit)
1
+ ## Tóm Tắt
2
+
3
+ [Mô tả ngắn: thay đổi gì, tại sao]
4
+
5
+ ## Loại Thay Đổi
6
+
7
+ - [ ] Feature mới (feat)
8
+ - [ ] Bug fix (fix)
9
+ - [ ] Refactoring (refactor)
10
+ - [ ] Tests (test)
11
+ - [ ] Documentation (docs)
12
+ - [ ] Performance (perf)
13
+ - [ ] Chore/Config (chore)
14
+
15
+ ## Thay Đổi Chi Tiết
16
+
17
+ - [Thay đổi 1]: [mô tả]
18
+ - [Thay đổi 2]: [mô tả]
19
+
20
+ ## Task Documentation
21
+
22
+ - Plan: `.dw/tasks/[task-name]/[task-name]-plan.md`
23
+ - Context: `.dw/tasks/[task-name]/[task-name]-context.md`
24
+ - Progress: `.dw/tasks/[task-name]/[task-name]-progress.md`
25
+
26
+ ## Testing
27
+
28
+ - [ ] Unit tests pass
29
+ - [ ] Integration tests pass (nếu applicable)
30
+ - [ ] Manual testing done
31
+ - [ ] Edge cases đã test: [liệt kê]
32
+
33
+ ## Checklist
34
+
35
+ - [ ] Code tuân thủ conventions (`.claude/rules/code-style.md`)
36
+ - [ ] Commit messages đúng format
37
+ - [ ] Không có sensitive data (secrets, tokens, .env)
38
+ - [ ] Không có debug code (console.log, debugger)
39
+ - [ ] Documentation cập nhật (nếu applicable)
40
+ - [ ] Breaking changes đã documented (nếu có)
41
+ - [ ] Backward compatible (hoặc migration plan có sẵn)
42
+
43
+ ## Screenshots / Demo
44
+
45
+ [Nếu UI changes — đính kèm screenshots]
46
+
47
+ ## Estimate vs Actual
48
+
49
+ | Metric | Giá trị |
50
+ |--------|---------|
51
+ | Estimated | [hours/points] |
52
+ | Actual | [hours/points] |
53
+ | Notes | |
54
+
55
+ ---
56
+ > PR này được tạo với sự hỗ trợ của AI Agent (dv-workflow-kit)
@@ -1,73 +1,77 @@
1
- # Context: [Task Name]
2
-
3
- ## Ngày khảo sát: [date]
4
- ## Người thực hiện: [dev / agent]
5
-
6
- ---
7
-
8
- ## Yêu Cầu Gốc
9
-
10
- > [Copy/paste yêu cầu từ user, ticket, hoặc BA requirements doc]
11
-
12
- ## Codebase Analysis
13
-
14
- ### Files Liên Quan
15
-
16
- | # | File | Vai trò | Cần thay đổi? | Ghi chú |
17
- |---|------|---------|----------------|---------|
18
- | 1 | | | | |
19
-
20
- ### Kiến Trúc Hiện Tại
21
-
22
- ```
23
- [Mô tả luồng hiện tại, có thể dùng ASCII diagram]
24
-
25
- Input → [Module A] → [Module B] → Output
26
-
27
- [Database]
28
- ```
29
-
30
- ### Data Flow
31
-
32
- - **Input**: [Dữ liệu đầu vào từ đâu, format gì]
33
- - **Processing**: [Logic xử lý chính]
34
- - **Output**: [Kết quả đi đâu, format gì]
35
- - **Storage**: [Lưu ở đâu, schema gì]
36
-
37
- ## Dependencies
38
-
39
- ### Upstream (task phụ thuộc vào)
40
- - [ ] [Module/API/Service] — [vai trò]
41
-
42
- ### Downstream (bị ảnh hưởng bởi task)
43
- - [ ] [Module/API/Service] [ảnh hưởng thế nào]
44
-
45
- ## Patterns & Conventions Phát Hiện
46
-
47
- | Pattern | tả | dụ (file:line) |
48
- |---------|--------|--------------------|
49
- | | | |
50
-
51
- ## Test Coverage Hiện Tại
52
-
53
- - [ ] Có tests cho khu vực liên quan? [Có/Không]
54
- - Test files: [danh sách]
55
- - Coverage: [% hoặc mô tả]
56
- - Gaps: [thiếu test ở đâu]
57
-
58
- ## Giả Định
59
-
60
- | # | Giả định | Cần kiểm chứng? | Nếu sai thì sao? |
61
- |---|----------|------------------|-------------------|
62
- | 1 | | Có / Không | |
63
-
64
- ## Hạn Chế Đã Biết
65
- - [Hạn chế 1]
66
-
67
- ## Chưa Rõ / Cần Làm Rõ
68
- - [ ] [Câu hỏi 1] — cần hỏi ai?
69
- - [ ] [Câu hỏi 2]
70
-
71
- ## Ghi Chú Bổ Sung
72
-
73
- [Bất kỳ thông tin quan trọng khác: gotchas, tech debt, lịch sử thay đổi gần đây]
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
+ # Context: [Task Name]
6
+
7
+ ## Ngày khảo sát: [date]
8
+ ## Người thực hiện: [dev / agent]
9
+
10
+ ---
11
+
12
+ ## Yêu Cầu Gốc
13
+
14
+ > [Copy/paste yêu cầu từ user, ticket, hoặc BA requirements doc]
15
+
16
+ ## Codebase Analysis
17
+
18
+ ### Files Liên Quan
19
+
20
+ | # | File | Vai trò | Cần thay đổi? | Ghi chú |
21
+ |---|------|---------|----------------|---------|
22
+ | 1 | | | | |
23
+
24
+ ### Kiến Trúc Hiện Tại
25
+
26
+ ```
27
+ [Mô tả luồng hiện tại, có thể dùng ASCII diagram]
28
+
29
+ Input → [Module A] → [Module B] → Output
30
+
31
+ [Database]
32
+ ```
33
+
34
+ ### Data Flow
35
+
36
+ - **Input**: [Dữ liệu đầu vào từ đâu, format gì]
37
+ - **Processing**: [Logic xử lý chính]
38
+ - **Output**: [Kết quả đi đâu, format gì]
39
+ - **Storage**: [Lưu đâu, schema gì]
40
+
41
+ ## Dependencies
42
+
43
+ ### Upstream (task phụ thuộc vào)
44
+ - [ ] [Module/API/Service] — [vai trò]
45
+
46
+ ### Downstream (bị ảnh hưởng bởi task)
47
+ - [ ] [Module/API/Service] [ảnh hưởng thế nào]
48
+
49
+ ## Patterns & Conventions Phát Hiện
50
+
51
+ | Pattern | tả | Ví dụ (file:line) |
52
+ |---------|--------|--------------------|
53
+ | | | |
54
+
55
+ ## Test Coverage Hiện Tại
56
+
57
+ - [ ] Có tests cho khu vực liên quan? [Có/Không]
58
+ - Test files: [danh sách]
59
+ - Coverage: [% hoặc mô tả]
60
+ - Gaps: [thiếu test đâu]
61
+
62
+ ## Giả Định
63
+
64
+ | # | Giả định | Cần kiểm chứng? | Nếu sai thì sao? |
65
+ |---|----------|------------------|-------------------|
66
+ | 1 | | Có / Không | |
67
+
68
+ ## Hạn Chế Đã Biết
69
+ - [Hạn chế 1]
70
+
71
+ ## Chưa / Cần Làm Rõ
72
+ - [ ] [Câu hỏi 1] — cần hỏi ai?
73
+ - [ ] [Câu hỏi 2]
74
+
75
+ ## Ghi Chú Bổ Sung
76
+
77
+ [Bất kỳ thông tin quan trọng khác: gotchas, tech debt, lịch sử thay đổi gần đây]