dw-kit 1.0.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 (90) hide show
  1. package/.claude/agents/executor.md +80 -0
  2. package/.claude/agents/planner.md +100 -0
  3. package/.claude/agents/quality-checker.md +86 -0
  4. package/.claude/agents/researcher.md +93 -0
  5. package/.claude/agents/reviewer.md +126 -0
  6. package/.claude/hooks/post-write.sh +62 -0
  7. package/.claude/hooks/pre-commit-gate.sh +90 -0
  8. package/.claude/hooks/progress-ping.sh +47 -0
  9. package/.claude/hooks/safety-guard.sh +54 -0
  10. package/.claude/rules/code-style.md +37 -0
  11. package/.claude/rules/commit-standards.md +37 -0
  12. package/.claude/rules/workflow-rules.md +62 -0
  13. package/.claude/settings.json +71 -0
  14. package/.claude/settings.local.json +12 -0
  15. package/.claude/skills/dw-arch-review/SKILL.md +119 -0
  16. package/.claude/skills/dw-archive/SKILL.md +81 -0
  17. package/.claude/skills/dw-commit/SKILL.md +81 -0
  18. package/.claude/skills/dw-config-init/SKILL.md +91 -0
  19. package/.claude/skills/dw-config-validate/SKILL.md +75 -0
  20. package/.claude/skills/dw-dashboard/SKILL.md +209 -0
  21. package/.claude/skills/dw-debug/SKILL.md +97 -0
  22. package/.claude/skills/dw-docs-update/SKILL.md +125 -0
  23. package/.claude/skills/dw-estimate/SKILL.md +90 -0
  24. package/.claude/skills/dw-execute/SKILL.md +98 -0
  25. package/.claude/skills/dw-flow/SKILL.md +274 -0
  26. package/.claude/skills/dw-handoff/SKILL.md +81 -0
  27. package/.claude/skills/dw-log-work/SKILL.md +69 -0
  28. package/.claude/skills/dw-plan/SKILL.md +125 -0
  29. package/.claude/skills/dw-plan/template-plan.md +47 -0
  30. package/.claude/skills/dw-requirements/SKILL.md +98 -0
  31. package/.claude/skills/dw-research/SKILL.md +98 -0
  32. package/.claude/skills/dw-research/template-research.md +51 -0
  33. package/.claude/skills/dw-review/SKILL.md +66 -0
  34. package/.claude/skills/dw-review/checklist.md +88 -0
  35. package/.claude/skills/dw-rollback/SKILL.md +90 -0
  36. package/.claude/skills/dw-sprint-review/SKILL.md +99 -0
  37. package/.claude/skills/dw-task-init/SKILL.md +59 -0
  38. package/.claude/skills/dw-test-plan/SKILL.md +113 -0
  39. package/.claude/skills/dw-thinking/SKILL.md +70 -0
  40. package/.claude/skills/dw-thinking/THINKING.md +91 -0
  41. package/.claude/skills/dw-upgrade/SKILL.md +82 -0
  42. package/.claude/templates/en/task-context.md +73 -0
  43. package/.claude/templates/en/task-plan.md +79 -0
  44. package/.claude/templates/en/task-progress.md +65 -0
  45. package/.claude/templates/pr-template.md +56 -0
  46. package/.claude/templates/task-context.md +73 -0
  47. package/.claude/templates/task-plan.md +79 -0
  48. package/.claude/templates/task-progress.md +65 -0
  49. package/.dw/adapters/claude-cli/extensions/.gitkeep +0 -0
  50. package/.dw/adapters/claude-cli/extensions/README.md +36 -0
  51. package/.dw/adapters/claude-cli/generated/README.md +23 -0
  52. package/.dw/adapters/claude-cli/generated/agents/.gitkeep +0 -0
  53. package/.dw/adapters/claude-cli/generated/skills/.gitkeep +0 -0
  54. package/.dw/adapters/claude-cli/overrides/README.md +35 -0
  55. package/.dw/adapters/claude-cli/overrides/agents/.gitkeep +0 -0
  56. package/.dw/adapters/claude-cli/overrides/skills/.gitkeep +0 -0
  57. package/.dw/adapters/generic/AGENT.md +169 -0
  58. package/.dw/adapters/generic/README.md +21 -0
  59. package/.dw/config/config.schema.json +121 -0
  60. package/.dw/config/dw.config.yml +82 -0
  61. package/.dw/config/presets/enterprise.yml +52 -0
  62. package/.dw/config/presets/small-team.yml +39 -0
  63. package/.dw/config/presets/solo-quick.yml +37 -0
  64. package/.dw/core/QUALITY.md +220 -0
  65. package/.dw/core/ROLES.md +257 -0
  66. package/.dw/core/THINKING.md +126 -0
  67. package/.dw/core/WORKFLOW.md +450 -0
  68. package/.dw/core/templates/vi/task-context.md +92 -0
  69. package/.dw/core/templates/vi/task-plan.md +93 -0
  70. package/.dw/core/templates/vi/task-progress.md +56 -0
  71. package/CLAUDE.md +98 -0
  72. package/LICENSE +21 -0
  73. package/README.md +183 -0
  74. package/bin/dw.mjs +28 -0
  75. package/package.json +52 -0
  76. package/scripts/e2e-local-check.sh +76 -0
  77. package/scripts/migrate-v03-to-v1.sh +243 -0
  78. package/scripts/upgrade.sh +246 -0
  79. package/setup.sh +382 -0
  80. package/src/cli.mjs +68 -0
  81. package/src/commands/doctor.mjs +149 -0
  82. package/src/commands/init.mjs +332 -0
  83. package/src/commands/migrate.mjs +215 -0
  84. package/src/commands/upgrade.mjs +262 -0
  85. package/src/commands/validate.mjs +102 -0
  86. package/src/lib/config.mjs +75 -0
  87. package/src/lib/copy.mjs +110 -0
  88. package/src/lib/platform.mjs +39 -0
  89. package/src/lib/ui.mjs +66 -0
  90. package/src/smoke-test.mjs +315 -0
package/CLAUDE.md ADDED
@@ -0,0 +1,98 @@
1
+ <!-- dw-kit | core: 1.0 | platform: 1.0 -->
2
+ # dw-kit
3
+
4
+ Workflow toolkit cho dev team. Config: `.dw/config/dw.config.yml`
5
+ Methodology: `core/WORKFLOW.md` (load on demand — không phải always-loaded)
6
+
7
+ ---
8
+
9
+ ## Quy Tắc Vàng
10
+
11
+ 1. **Config-driven**: Đọc `.dw/config/dw.config.yml` trước mọi action
12
+ 2. **Research trước, code sau**: Task ≥3 files BẮT BUỘC qua research → plan → execute
13
+ 3. **Thinking framework**: Áp dụng `core/THINKING.md` khi planning
14
+ 4. **TDD**: Viết test trước khi code
15
+ 5. **Commit nhỏ**: Mỗi subtask = 1 commit
16
+
17
+ ---
18
+
19
+ ## Routing
20
+
21
+ Đọc `workflow.default_depth` từ config. AI assess per-task:
22
+
23
+ | Scope | Depth | Workflow |
24
+ |-------|-------|---------|
25
+ | ≤2 files, hotfix, familiar module | quick | Understand → Execute → Close |
26
+ | 3-5 files, module mới | standard | Tất cả 6 phases |
27
+ | 6+ files, API/DB/security changes | thorough | Full + arch-review + test-plan |
28
+
29
+ Không chắc scope → dùng `standard`. Assess dựa trên facts (file count, API changes, git blame).
30
+
31
+ ---
32
+
33
+ ## Session Start
34
+
35
+ 1. Đọc `.dw/config/dw.config.yml` → depth, roles, quality commands
36
+ 2. Kiểm tra `.dw/tasks/` → active tasks
37
+ 3. Đọc `[task]-progress.md` của task đang dở → tiếp tục từ subtask cuối
38
+
39
+ ---
40
+
41
+ ## Skills
42
+
43
+ | Skill | Mô tả | Depth |
44
+ |-------|--------|-------|
45
+ | `/dw-task-init [name]` | Khởi tạo task docs | all |
46
+ | `/dw-research [name]` | Khảo sát codebase | all |
47
+ | `/dw-plan [name]` | Lập kế hoạch (DỪNG chờ approve) | standard+ |
48
+ | `/dw-execute [name]` | Implement theo plan (TDD) | all |
49
+ | `/dw-commit [msg]` | Smart commit + quality gates | all |
50
+ | `/dw-review` | Code review với checklist | standard+ |
51
+ | `/dw-debug [issue]` | Debug: investigate → diagnose → fix | all |
52
+ | `/dw-thinking [question]` | Apply thinking framework | all |
53
+ | `/dw-estimate [name]` | Ước lượng effort | if enabled |
54
+ | `/dw-log-work [name]` | Ghi effort thực tế | if enabled |
55
+ | `/dw-handoff` | Bàn giao session | all |
56
+ | `/dw-requirements` | BA: requirements + user stories | if ba role |
57
+ | `/dw-test-plan` | QC: test plan + regression | if qc role |
58
+ | `/dw-arch-review` | TL: architecture review | if techlead |
59
+ | `/dw-dashboard` | PM: metrics report | if pm role |
60
+ | `/dw-sprint-review` | Team retrospective | all |
61
+ | `/dw-docs-update` | Cập nhật living docs | thorough |
62
+ | `/dw-config-init` | Khởi tạo config mới | always |
63
+ | `/dw-config-validate` | Validate config file | always |
64
+ | `/dw-upgrade` | Upgrade toolkit | always |
65
+ | `/dw-rollback [name]` | Rollback task docs | always |
66
+ | `/dw-archive [name]` | Archive completed task | always |
67
+
68
+ ---
69
+
70
+ ## Task Documentation
71
+
72
+ ```
73
+ .dw/tasks/[task-name]/
74
+ ├── [name]-context.md # Research findings
75
+ ├── [name]-plan.md # Implementation plan
76
+ └── [name]-progress.md # Progress + handoff notes
77
+ ```
78
+
79
+ ---
80
+
81
+ ## Commit Format
82
+
83
+ ```
84
+ <type>(<scope>): <mô tả ≤72 ký tự>
85
+
86
+ Co-Authored-By: Claude <noreply@anthropic.com>
87
+ ```
88
+
89
+ Types: `feat` `fix` `refactor` `test` `docs` `chore` `style` `perf`
90
+
91
+ ---
92
+
93
+ ## Methodology Reference
94
+
95
+ Full methodology: `core/WORKFLOW.md`
96
+ Thinking framework: `core/THINKING.md`
97
+ Quality strategy: `core/QUALITY.md`
98
+ Role definitions: `core/ROLES.md`
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 huygdv
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,183 @@
1
+ # dw-kit
2
+
3
+ > Bộ workflow toolkit cho dev team sử dụng Claude Code Agent — từ requirements đến dashboard.
4
+
5
+ **v1.0** · `npm install -g dw-kit` · [Docs](docs/README.md) · [Cheatsheet](docs/cheatsheet.md) · [Migration v0.3→v1](scripts/migrate-v03-to-v1.sh)
6
+
7
+ ---
8
+
9
+ ## Toolkit Này Làm Gì?
10
+
11
+ Thay vì để Claude tự do code, dw-kit tạo ra **rails có cấu trúc**:
12
+
13
+ ```
14
+ Research → Plan → Execute (TDD) → Review → Commit
15
+ ```
16
+
17
+ Với đầy đủ hỗ trợ cho các roles trong team: BA · TL · Dev · QC · PM.
18
+
19
+ ---
20
+
21
+ ## Quick Start
22
+
23
+ ### Option A — npm (recommended)
24
+
25
+ ```bash
26
+ npm install -g dw-kit
27
+ ```
28
+
29
+ Then in your project directory:
30
+
31
+ ```bash
32
+ dw init
33
+ ```
34
+
35
+ Interactive wizard asks 3 questions (project, depth, language) and auto-selects roles by depth. Or use presets:
36
+
37
+ ```bash
38
+ dw init --preset small-team # skip wizard
39
+ dw init --preset solo-quick # solo dev, minimal ceremony
40
+ dw init --preset enterprise # full team, all features
41
+ ```
42
+
43
+ Zero-install (one-time use):
44
+
45
+ ```bash
46
+ npx dw-kit init
47
+ ```
48
+
49
+ ### Option B — Git submodule (legacy)
50
+
51
+ ```bash
52
+ git submodule add https://github.com/dv-workflow/dv-workflow.git .dw-module
53
+ bash .dw-module/setup.sh
54
+ ```
55
+
56
+ `setup.sh` là luồng legacy/fallback. Luồng khuyến nghị cho v1 là `npm install -g dw-kit` + `dw init`.
57
+
58
+ ### Start working
59
+
60
+ Open Claude Code in your project directory:
61
+
62
+ ```
63
+ /dw-task-init tên-feature
64
+ ```
65
+
66
+ ### CLI Commands
67
+
68
+ ```bash
69
+ dw init # Setup wizard
70
+ dw upgrade # Update toolkit files (override-aware)
71
+ dw upgrade --dry-run # Preview changes
72
+ dw upgrade --check # Check for updates only
73
+ dw validate # Validate config against schema
74
+ dw doctor # Check installation health
75
+ dw migrate # Migrate from v0.3 to v1
76
+ ```
77
+
78
+ ---
79
+
80
+ ## Depth System (thay thế Level 1/2/3)
81
+
82
+ | Depth | Dành cho | Workflow |
83
+ |-------|----------|----------|
84
+ | `quick` | Solo dev, hotfix, familiar code | Understand → Execute → Close |
85
+ | `standard` | Team nhỏ, feature mới | Tất cả 6 phases |
86
+ | `thorough` | Enterprise, API/DB/security changes | Full workflow + arch-review + test-plan |
87
+
88
+ Cấu hình trong `.dw/config/dw.config.yml`:
89
+ ```yaml
90
+ workflow:
91
+ default_depth: "standard"
92
+ ```
93
+
94
+ `default_depth` là baseline. Với task cụ thể, bạn có thể override sang `thorough` khi scope/risk tăng (API/DB/security), kể cả project nhỏ.
95
+
96
+ ---
97
+
98
+ ## Kiến Trúc v1 (4 Layers)
99
+
100
+ ```
101
+ Layer 0: core/ ← Portable methodology (platform-agnostic)
102
+ Layer 1: .claude/ ← Claude Code execution (agents, hooks, skills)
103
+ Layer 2: config/claude: ← Model-specific features (extended thinking, MCP)
104
+ Layer 3: adapters/overrides/ ← Team customizations (never overwritten by upgrade)
105
+ ```
106
+
107
+ ---
108
+
109
+ ## Cấu Trúc Sau Khi Setup
110
+
111
+ ```
112
+ dự-án-của-bạn/
113
+ ├── .dw-module/ ← toolkit (git submodule, read-only)
114
+ ├── core/ ← portable methodology
115
+ │ ├── WORKFLOW.md ← 6-phase workflow
116
+ │ ├── THINKING.md ← thinking framework
117
+ │ ├── QUALITY.md ← 4-layer quality strategy
118
+ │ └── ROLES.md ← team role definitions
119
+ ├── config/
120
+ │ ├── dw.config.yml ← config (~45 lines)
121
+ │ ├── config.schema.json ← validation schema
122
+ │ └── presets/ ← solo-quick, small-team, enterprise
123
+ ├── adapters/
124
+ │ ├── claude-cli/overrides/ ← team customizations (upgrade-safe)
125
+ │ ├── claude-cli/extensions/ ← net-new team skills
126
+ │ └── generic/AGENT.md ← for Cursor/Windsurf/Copilot
127
+ ├── .claude/ ← skills, agents, rules, hooks
128
+ ├── .dw/ ← tasks, docs, metrics, reports
129
+ └── scripts/
130
+ ├── upgrade.sh ← upgrade toolkit (--dry-run)
131
+ └── migrate-v03-to-v1.sh ← migration từ v0.3
132
+ ```
133
+
134
+ ---
135
+
136
+ ## Skills Có Sẵn
137
+
138
+ Xem [docs/cheatsheet.md](docs/cheatsheet.md) để có bảng tham chiếu nhanh.
139
+
140
+ ---
141
+
142
+ ## Migrating từ v0.3
143
+
144
+ ```bash
145
+ dw migrate --dry-run # preview changes
146
+ dw migrate # apply migration
147
+ ```
148
+
149
+ Or via bash (legacy):
150
+
151
+ ```bash
152
+ bash scripts/migrate-v03-to-v1.sh --dry-run
153
+ bash scripts/migrate-v03-to-v1.sh
154
+ ```
155
+
156
+ `scripts/upgrade.sh` và `scripts/migrate-v03-to-v1.sh` được giữ cho backward-compat; ưu tiên dùng `dw upgrade` và `dw migrate`.
157
+
158
+ Migration sẽ:
159
+ - Map `level: 2` → `default_depth: standard`
160
+ - Preserve customized skills vào `.dw/adapters/claude-cli/overrides/`
161
+ - Backup old config, create new `.dw/config/dw.config.yml`
162
+
163
+ ---
164
+
165
+ ## Demo
166
+
167
+ - [Demo A](examples/demo-A-bug-fix/) — Bug fix workflow (quick depth)
168
+ - [Demo B](examples/demo-B-new-feature/) — Full team feature workflow (BA → PM)
169
+
170
+ ---
171
+
172
+ ## Tài Liệu
173
+
174
+ | Tài liệu | Nội dung |
175
+ |----------|---------|
176
+ | [docs/README.md](docs/README.md) | Hướng dẫn đầy đủ, setup, tips |
177
+ | [docs/cheatsheet.md](docs/cheatsheet.md) | Bảng tham chiếu nhanh tất cả skills |
178
+ | [docs/custom-skills.md](docs/custom-skills.md) | Hướng dẫn tạo custom skills |
179
+ | [CHANGELOG.md](CHANGELOG.md) | Lịch sử thay đổi |
180
+
181
+ ---
182
+
183
+ > Maintainer: [huygdv](mailto:huygdv19@gmail.com)
package/bin/dw.mjs ADDED
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env node
2
+
3
+ const [major] = process.versions.node.split('.').map(Number);
4
+ if (major < 18) {
5
+ console.error(`dw-kit requires Node.js >= 18. Current: ${process.version}`);
6
+ process.exit(1);
7
+ }
8
+
9
+ process.on('unhandledRejection', (reason) => {
10
+ console.error();
11
+ console.error(' Unexpected error:', reason?.message || reason);
12
+ if (reason?.code === 'EACCES' || reason?.code === 'EPERM') {
13
+ console.error(' Permission denied. Try running with appropriate permissions.');
14
+ }
15
+ if (reason?.code === 'ENOSPC') {
16
+ console.error(' Disk full. Free up space and try again.');
17
+ }
18
+ process.exit(1);
19
+ });
20
+
21
+ process.on('uncaughtException', (error) => {
22
+ console.error();
23
+ console.error(' Fatal error:', error.message);
24
+ process.exit(1);
25
+ });
26
+
27
+ const { run } = await import('../src/cli.mjs');
28
+ run(process.argv);
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "dw-kit",
3
+ "version": "1.0.0",
4
+ "description": "AI development workflow toolkit — structured, quality-assured, team-ready. From requirements to dashboard.",
5
+ "type": "module",
6
+ "bin": {
7
+ "dw": "./bin/dw.mjs"
8
+ },
9
+ "files": [
10
+ "bin/",
11
+ "src/",
12
+ ".dw/core/",
13
+ ".dw/config/",
14
+ ".dw/adapters/",
15
+ "scripts/",
16
+ ".claude/",
17
+ "CLAUDE.md",
18
+ "setup.sh"
19
+ ],
20
+ "engines": {
21
+ "node": ">=18"
22
+ },
23
+ "scripts": {
24
+ "test": "node src/smoke-test.mjs",
25
+ "link": "npm link",
26
+ "test:e2e-local": "bash scripts/e2e-local-check.sh"
27
+ },
28
+ "keywords": [
29
+ "ai",
30
+ "workflow",
31
+ "claude",
32
+ "cursor",
33
+ "development",
34
+ "toolkit",
35
+ "tdd",
36
+ "code-review",
37
+ "agent"
38
+ ],
39
+ "author": "huygdv <huygdv19@gmail.com>",
40
+ "license": "MIT",
41
+ "repository": {
42
+ "type": "git",
43
+ "url": "https://github.com/dv-workflow/dv-workflow.git"
44
+ },
45
+ "homepage": "https://github.com/dv-workflow/dv-workflow#readme",
46
+ "dependencies": {
47
+ "ajv": "^8.18.0",
48
+ "chalk": "^5.6.2",
49
+ "commander": "^14.0.3",
50
+ "js-yaml": "^4.1.1"
51
+ }
52
+ }
@@ -0,0 +1,76 @@
1
+ #!/bin/bash
2
+ # scripts/e2e-local-check.sh
3
+ # End-to-end local publish check (pack -> install -> run CLI)
4
+
5
+ set -euo pipefail
6
+
7
+ ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
8
+ cd "$ROOT_DIR"
9
+
10
+ log() { echo " $*"; }
11
+ info() { echo ""; echo "▶ $*"; }
12
+ ok() { echo " ✓ $*"; }
13
+ warn() { echo " ⚠ $*"; }
14
+
15
+ cleanup() {
16
+ if [ -n "${TMP_DIR:-}" ] && [ -d "${TMP_DIR:-}" ]; then
17
+ rm -rf "$TMP_DIR"
18
+ fi
19
+ if [ -n "${PACK_FILE:-}" ] && [ -f "${PACK_FILE:-}" ]; then
20
+ rm -f "$PACK_FILE"
21
+ fi
22
+ }
23
+ trap cleanup EXIT
24
+
25
+ info "Step 1: Run smoke tests"
26
+ npm test
27
+ ok "Smoke tests passed"
28
+
29
+ info "Step 2: Build npm package tarball"
30
+ PACK_OUTPUT="$(npm pack)"
31
+ PACK_FILE="$(echo "$PACK_OUTPUT" | tail -n 1 | tr -d '\r')"
32
+ if [ ! -f "$PACK_FILE" ]; then
33
+ echo " ✗ Failed to produce package tarball"
34
+ exit 1
35
+ fi
36
+ ok "Tarball: $PACK_FILE"
37
+
38
+ info "Step 3: Create isolated test project"
39
+ TMP_DIR="$(mktemp -d 2>/dev/null || true)"
40
+ if [ -z "${TMP_DIR}" ]; then
41
+ TMP_DIR=".tmp-e2e-local-check"
42
+ rm -rf "$TMP_DIR"
43
+ mkdir -p "$TMP_DIR"
44
+ fi
45
+ TEST_DIR="$TMP_DIR/e2e-project"
46
+ mkdir -p "$TEST_DIR"
47
+ cd "$TEST_DIR"
48
+ npm init -y >/dev/null 2>&1
49
+ git init >/dev/null 2>&1 || true
50
+ ok "Created isolated project at $TEST_DIR"
51
+
52
+ info "Step 4: Install from local tarball"
53
+ npm install "$ROOT_DIR/$PACK_FILE" >/dev/null
54
+ ok "Installed package from tarball"
55
+
56
+ info "Step 5: Run CLI checks in isolated project"
57
+ VERSION_OUT="$(npx dw --version | tr -d '\r')"
58
+ log "dw --version: $VERSION_OUT"
59
+ npx dw init --preset small-team
60
+ npx dw validate
61
+ npx dw doctor
62
+ npx dw upgrade --check
63
+ npx dw migrate --dry-run
64
+
65
+ info "Step 6: Verify task-depth override guidance artifacts"
66
+ grep -q "Task-Level Depth Override" ".dw/core/WORKFLOW.md"
67
+ grep -q "Depth Source: default (from config) | override (task-specific)" ".dw/core/templates/vi/task-context.md"
68
+ ok "Depth override guidance exists in generated artifacts"
69
+
70
+ ok "CLI flow passed in isolated project"
71
+
72
+ echo ""
73
+ echo "══════════════════════════════════════════"
74
+ echo " E2E local check passed"
75
+ echo "══════════════════════════════════════════"
76
+ echo ""