@byh3071/vhk 0.4.0 โ 0.5.1
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 +165 -28
- package/dist/index.js +1032 -316
- package/package.json +56 -55
package/README.md
CHANGED
|
@@ -1,58 +1,195 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: vhk-readme
|
|
3
|
+
date: 2026-05-23
|
|
4
|
+
tags: [vhk, cli, readme, v0.5.1]
|
|
5
|
+
---
|
|
6
|
+
|
|
1
7
|
# ๐ง VHK โ Vibe Harness Kit
|
|
2
8
|
|
|
3
|
-
> AI ์ฝ๋ฉ ์์ด์ ํธ๋ฅผ ๋ถ๋ฆฌ๋ ์ฌ๋์ ์ํ ํ์ฌ์ดํด CLI
|
|
9
|
+
> AI ์ฝ๋ฉ ์์ด์ ํธ๋ฅผ ๋ถ๋ฆฌ๋ ์ฌ๋์ ์ํ **ํ๊ตญ์ด ํ์ฌ์ดํด CLI** (v0.5.1)
|
|
10
|
+
|
|
11
|
+
๋ช
๋ น์ด๋ฅผ ์ธ์ฐ์ง ์์๋ ๋ฉ๋๋ค. `vhk`๋ง ์น๋ฉด ๋ฉ๋ด๊ฐ ๋์ค๊ณ , ํ๊ตญ์ด๋ก ๋งํด๋ ์์๋ฃ์ต๋๋ค.
|
|
4
12
|
|
|
5
13
|
## ์ค์น
|
|
6
14
|
|
|
7
15
|
```bash
|
|
8
|
-
npm
|
|
16
|
+
npm install -g @byh3071/vhk
|
|
9
17
|
```
|
|
10
18
|
|
|
11
19
|
```bash
|
|
12
|
-
#
|
|
13
|
-
npx vhk
|
|
20
|
+
# ํ ๋ฒ๋ง ์ธ ๋
|
|
21
|
+
npx @byh3071/vhk
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
๋ก์ปฌ ๊ฐ๋ฐ ์ค:
|
|
25
|
+
|
|
26
|
+
```powershell
|
|
27
|
+
cd vhk-cli
|
|
28
|
+
pnpm install
|
|
29
|
+
pnpm build
|
|
30
|
+
pnpm link --global
|
|
31
|
+
vhk --version
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## ๋น ๋ฅธ ์์
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
vhk
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
์ธ์ ์์ด ์คํํ๋ฉด **ใ๋ญ ๋์๋๋ฆด๊น์?ใ** ๋ฉ๋ด๊ฐ ์ด๋ฆฝ๋๋ค.
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
# ์์ฐ์ด๋ก๋ ๊ฐ๋ฅ
|
|
44
|
+
vhk ํ๋ก์ ํธ ๋ง๋ค๊ณ ์ถ์ด
|
|
45
|
+
vhk ๊ธฐํ ๋๋ฌ๊ณ ๋ฐ๋ก ์์
|
|
46
|
+
vhk ์ค๋ ํ ์ผ ์ ๋ฆฌ
|
|
47
|
+
vhk ์ ์ฅํด์ค
|
|
48
|
+
vhk ๋ณ๊ฒฝ์ฌํญ ๋ณด์ฌ์ค
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## ์ํฌํ๋ก์ฐ (๊ถ์ฅ ์์)
|
|
52
|
+
|
|
53
|
+
```text
|
|
54
|
+
vhk ๊ฒ์ฆ (gate) โ ์์ด๋์ด GO/๋ค๋ฌ๊ธฐ/๋ค๋ฅธ ์์ด๋์ด
|
|
55
|
+
vhk ์์ (init) โ ํ๋ค์ค ํ์ผ ์์ฑ (CLAUDE.md, PRD, ADR ํ
ํ๋ฆฟ ๋ฑ)
|
|
56
|
+
๊ฐ๋ฐ ...
|
|
57
|
+
vhk diff / ์ํ โ ๋ณ๊ฒฝ ์์ฝ ยท ๋ธ๋์นยท์๊ฒฉ ํํฉ
|
|
58
|
+
vhk ์ ์ฅ (save) โ git add ยท commit ยท push
|
|
59
|
+
vhk ์ ๋ฆฌ (recap) โ ์ธ์
๋ก๊ทธ + ADR/ํธ๋ฌ๋ธ์ํ
์ ์
|
|
60
|
+
vhk ์ ๊ฒ (check) โ RULES.md ๊ท์น ๋ฆฐํธ
|
|
61
|
+
vhk ๋ณด์ โ ์ํฌ๋ฆฟยทํค ์ ์ถ ๊ฒ์ฌ (scan ๋ณ์นญ ๋์ผ)
|
|
62
|
+
vhk ๋ฐฐํฌ (ship) โ ๋ฐฐํฌ ์ฒดํฌ๋ฆฌ์คํธ + ํ๊ณ โ docs/build-log/
|
|
14
63
|
```
|
|
15
64
|
|
|
16
|
-
|
|
65
|
+
๊ธฐํ์ด ์ด๋ฏธ ๋๋ฌ๋ค๋ฉด:
|
|
17
66
|
|
|
18
|
-
|
|
67
|
+
```bash
|
|
68
|
+
vhk ์์ --skip-gate
|
|
69
|
+
# ๋๋
|
|
70
|
+
vhk ๊ธฐํ ๋๋ฌ๊ณ ๋ฐ๋ก ์์
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## ์ ์ฒด ์ปค๋งจ๋
|
|
74
|
+
|
|
75
|
+
| ์์ด | ํ๊ตญ์ด ๋ณ์นญ | ์ค๋ช
|
|
|
76
|
+
|------|-------------|------|
|
|
77
|
+
| `vhk` | โ | ์์ ๋ฉ๋ด (๋ช
๋ น ์์) |
|
|
78
|
+
| `vhk gate` | `๊ฒ์ฆ`, `์์ด๋์ด` | ์์ด๋์ด ๊ฒ์ฆ (ํต 5๋ฌธํญ / ํ 13๋ฌธํญ / ์คํต) |
|
|
79
|
+
| `vhk init` | `์์`, `๋ง๋ค๊ธฐ` | ํ๋ก์ ํธ ์ด๊ธฐํ + ํ๋ค์ค ์์ฑ |
|
|
80
|
+
| `vhk recap` | `์ ๋ฆฌ`, `์ค๋` | Git ๋ณ๊ฒฝ โ `docs/log/` ์ธ์
๋ก๊ทธ |
|
|
81
|
+
| `vhk sync` | `๊ท์น`, `๋ง์ถ๊ธฐ` | RULES.md โ `.cursorrules` + CLAUDE.md |
|
|
82
|
+
| `vhk check` | `์ ๊ฒ`, `๋ฆฐํธ` | RULES.md ๊ท์น ์๋ฐ ๊ฒ์ฌ |
|
|
83
|
+
| `vhk secure` | `๋ณด์` | ์ํฌ๋ฆฟยทํค ์ ์ถ ์ค์บ (`scan` / `์ค์บ` ๋์ผ). **CRITICAL/HIGH ๋ฐ๊ฒฌ ์ exit code 1** (CI์ฉ) |
|
|
84
|
+
| `vhk ship` | `๋ฐฐํฌ`, `๋ฆด๋ฆฌ์ฆ` | ๋ฐฐํฌ ์ฒดํฌ๋ฆฌ์คํธ + ํ๊ณ + ๋น๋ ๋ก๊ทธ |
|
|
85
|
+
| `vhk doctor` | `ํ๊ฒฝ`, `์ง๋จ` | Node / npm / pnpm / Git ํ๊ฒฝ ์ ๊ฒ |
|
|
86
|
+
| `vhk save` | `์ ์ฅ`, `์ปค๋ฐ` | git add ยท commit ยท push ํ ๋ฒ์ |
|
|
87
|
+
| `vhk undo` | `๋๋๋ฆฌ๊ธฐ`, `์ทจ์` | ์ต๊ทผ ์ปค๋ฐ soft reset (๋ณ๊ฒฝ์ staged ์ ์ง) |
|
|
88
|
+
| `vhk diff` | `๋ณ๊ฒฝ`, `์ฐจ์ด` | staged / unstaged / ์ ํ์ผ ์์ฝ (์ค ์ ํฉ๊ณ๋ trackedยทHEAD ๊ธฐ์ค) |
|
|
89
|
+
| `vhk status` | `์ํ`, `ํํฉ` | ๋ธ๋์นยท๋ณ๊ฒฝยท์ปค๋ฐยท์๊ฒฉยท๋ฒ์ ๋์๋ณด๋ |
|
|
90
|
+
|
|
91
|
+
### init ์ต์
|
|
92
|
+
|
|
93
|
+
| ์ต์
| ์ค๋ช
|
|
|
94
|
+
|------|------|
|
|
95
|
+
| `--skip-gate` | ์์ด๋์ด ๊ฒ์ฆ(gate) ์๋ต |
|
|
96
|
+
| `--from-notion <url>` | Notion PRD ํ์ด์ง์์ import |
|
|
97
|
+
| `--name`, `--description`, `--type` | ๋น๋ํํ ์
๋ ฅ |
|
|
98
|
+
| `-y, --yes` | ์คํ ํ์ธ ์คํต |
|
|
99
|
+
|
|
100
|
+
### recap ์ต์
|
|
101
|
+
|
|
102
|
+
| ์ต์
| ์ค๋ช
|
|
|
103
|
+
|------|------|
|
|
104
|
+
| `--since YYYY-MM-DD` | ๋ถ์ ์์์ผ (๊ธฐ๋ณธ: ์ค๋) |
|
|
105
|
+
|
|
106
|
+
## v0.5.0 ํ์ด๋ผ์ดํธ
|
|
107
|
+
|
|
108
|
+
| ๊ธฐ๋ฅ | ์ค๋ช
|
|
|
109
|
+
|------|------|
|
|
110
|
+
| **save** | ๋ณ๊ฒฝ ๋ชฉ๋ก ํ์ธ โ ์ปค๋ฐ โ push (์๊ฒฉ ์์ผ๋ฉด ๋ก์ปฌ๋ง) |
|
|
111
|
+
| **undo** | ์ต๊ทผ 1~5์ปค๋ฐ soft reset, ์๊ฒฉ push ์ ๊ฒฝ๊ณ ยทํ์ธ |
|
|
112
|
+
| **diff** | staged / unstaged / untracked + HEAD ๋๋น ์ค ์ |
|
|
113
|
+
| **status** | ๋ธ๋์น, ๋ณ๊ฒฝ ๊ฐ์, ์ต๊ทผ ์ปค๋ฐ, upstream sync |
|
|
114
|
+
| **๋ณด์ ๊ฒฝ๊ณ ** | save / init / recap ์ `.env`ยท๋ฏผ๊ฐ ํ์ผ ๋
ธ์ถ ์๋ด |
|
|
115
|
+
|
|
116
|
+
## v0.4.0 ํ์ด๋ผ์ดํธ
|
|
117
|
+
|
|
118
|
+
| ๊ธฐ๋ฅ | ์ค๋ช
|
|
|
119
|
+
|------|------|
|
|
120
|
+
| **์์ ๋ฉ๋ด** | `vhk`๋ง ์
๋ ฅํด๋ ๋ค์ ์์
์ ํ |
|
|
121
|
+
| **ํ๊ตญ์ด ๋ณ์นญ** | `vhk ๊ฒ์ฆ`, `vhk ์์`, `vhk ์ ๋ฆฌ` ๋ฑ |
|
|
122
|
+
| **์์ฐ์ด ๋ผ์ฐํ
** | `vhk "ํ๋ก์ ํธ ๋ง๋ค๊ณ ์ถ์ด"` โ init ์คํ |
|
|
123
|
+
| **doctor** | Node / npm / pnpm / Git + ํ๋ก์ ํธ ํ์ผ ์ ๊ฒ |
|
|
124
|
+
| **ship** | ๋ฐฐํฌ ์ ์ฒดํฌ๋ฆฌ์คํธ, ํ๊ณ , `docs/build-log/` ์์ฑ |
|
|
125
|
+
| **๋ค์์ ์ด๊ฒ๋ง ํ์ธ์** | ๊ฐ ๋ช
๋ น ๋์ ๋ณต๋ถ ๋ช
๋ น + Cursor ํํธ |
|
|
126
|
+
| **check / secure** | RULES ๋ฆฐํธ, ์ํฌ๋ฆฟ ์ค์บ (๋ํ lockยทnode_modules ์ ์ธ) |
|
|
127
|
+
|
|
128
|
+
## init์ด ๋ง๋๋ ๊ฒ (์์ฝ)
|
|
129
|
+
|
|
130
|
+
- `CLAUDE.md`, `.cursorrules`
|
|
131
|
+
- `docs/PRD.md`, `docs/ARCHITECTURE.md`
|
|
132
|
+
- `docs/adr/`, `docs/log/`, `docs/troubleshooting/`
|
|
133
|
+
- `COMMANDS.md`, `BACKLOG.md` (ํ๋ก์ ํธ ์ ํ์ ๋ฐ๋ผ)
|
|
134
|
+
- `package.json` scripts: `save`, `check`, `scan`, `recap`, `ship`, `doctor` โ `vhk` ํธ์ถ
|
|
135
|
+
|
|
136
|
+
## ์์ฐ์ด ์์
|
|
137
|
+
|
|
138
|
+
| ๋งํ๋ฉด | ์คํ |
|
|
19
139
|
|--------|------|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
|
|
|
23
|
-
|
|
|
140
|
+
| ํ๋ก์ ํธ ๋ง๋ค๊ณ ์ถ์ด | `vhk ์์` |
|
|
141
|
+
| ๊ธฐํ ๋๋ฌ๊ณ ๋ฐ๋ก ์์ | `vhk ์์ --skip-gate` |
|
|
142
|
+
| ์ค๋ ํ ์ผ ์ ๋ฆฌ | `vhk ์ ๋ฆฌ` |
|
|
143
|
+
| ์ ์ฅํด์ค / ํธ์ ์ฌ๋ ค | `vhk ์ ์ฅ` |
|
|
144
|
+
| ์ปค๋ฐ ์ทจ์ / ๋กค๋ฐฑ | `vhk ๋๋๋ฆฌ๊ธฐ` |
|
|
145
|
+
| ๋ญ ๋ฐ๋์์ด | `vhk diff` |
|
|
146
|
+
| ํ๋ก์ ํธ ํํฉ | `vhk ์ํ` |
|
|
147
|
+
| ๋ณด์ ์ค์บ ๋๋ ค | `vhk ๋ณด์` |
|
|
148
|
+
| ๋ฐฐํฌํ๊ณ ์ถ์ด | `vhk ๋ฐฐํฌ` |
|
|
149
|
+
| ๋ญ๊ฐ ์ ๋ผ | `vhk doctor` |
|
|
24
150
|
|
|
25
151
|
## ํน์ง
|
|
26
152
|
|
|
27
|
-
- ๐ฐ๐ท **ํ๊ตญ์ด ํผ์คํธ** โ
|
|
28
|
-
-
|
|
29
|
-
- ๐ **๋ก์ปฌ ํผ์คํธ** โ
|
|
30
|
-
-
|
|
153
|
+
- ๐ฐ๐ท **ํ๊ตญ์ด ํผ์คํธ** โ ์ง๋ฌธยทํ์ ยท๋ค์ ๋จ๊ณ ์๋ด๊ฐ ํ๊ตญ์ด
|
|
154
|
+
- ๐ฃ๏ธ **์์ฐ์ด ์นํ** โ ๋ช
๋ น์ด ๋ชฐ๋ผ๋ ๋ฌธ์ฅ์ผ๋ก ์์
|
|
155
|
+
- ๐ **๋ก์ปฌ ํผ์คํธ** โ ๋ก๊ทธยทADRยท๋น๋ ๋ก๊ทธ๋ ํ๋ก์ ํธ ํด๋์ ์ ์ฅ
|
|
156
|
+
- ๐ **๋ณด์ ๊ธฐ๋ณธ** โ `.gitignore`ยท์ํฌ๋ฆฟ ์ค์บยท๋ฏผ๊ฐ ํ์ผ ๊ฒฝ๊ณ
|
|
31
157
|
|
|
32
158
|
## ์๊ตฌ ์ฌํญ
|
|
33
159
|
|
|
34
160
|
- Node.js >= 20
|
|
161
|
+
- Git (recapยทsaveยทship ๊ถ์ฅ)
|
|
162
|
+
|
|
163
|
+
## ๊ฐ๋ฐ
|
|
164
|
+
|
|
165
|
+
```powershell
|
|
166
|
+
pnpm install
|
|
167
|
+
pnpm build
|
|
168
|
+
pnpm test --run
|
|
169
|
+
pnpm dev
|
|
170
|
+
pnpm dev ๊ฒ์ฆ
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
> Windows PowerShell 5.x: `&&` ๋์ `;` ์ฌ์ฉ (`pnpm build; pnpm test --run`)
|
|
174
|
+
> ์คํ ์ ์ฑ
์ผ๋ก `pnpm`์ด ๋งํ๋ฉด **`pnpm.cmd`** ์ฌ์ฉ: `pnpm.cmd install`, `pnpm.cmd test --run`
|
|
175
|
+
|
|
176
|
+
### CI์์ secure
|
|
177
|
+
|
|
178
|
+
`vhk ๋ณด์` / `vhk secure scan`์ **CRITICAL ๋๋ HIGH** ํจํด์ด ์์ผ๋ฉด **exit code 1**์
๋๋ค. MEDIUM๋ง ์์ผ๋ฉด 0์
๋๋ค.
|
|
35
179
|
|
|
36
180
|
## ๋ผ์ด์ ์ค
|
|
37
181
|
|
|
38
|
-
MIT
|
|
182
|
+
MIT โ [LICENSE](LICENSE)
|
|
39
183
|
|
|
40
184
|
## ๋ฐฐํฌ (maintainers)
|
|
41
185
|
|
|
42
186
|
```bash
|
|
43
|
-
# 1. npm ๋ก๊ทธ์ธ (์ต์ด 1ํ)
|
|
44
187
|
npm login
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
pnpm test
|
|
49
|
-
|
|
50
|
-
# 3. ๋ฐฐํฌ
|
|
51
|
-
npm publish
|
|
52
|
-
|
|
53
|
-
# 4. ํ์ธ
|
|
54
|
-
npm info vhk
|
|
55
|
-
npx vhk --help
|
|
188
|
+
pnpm run prepublishOnly
|
|
189
|
+
npm publish --access public
|
|
190
|
+
npm info @byh3071/vhk
|
|
56
191
|
```
|
|
57
192
|
|
|
58
|
-
`
|
|
193
|
+
`prepublishOnly`๊ฐ publish ์ ์ `pnpm build && pnpm test:run`์ ์คํํฉ๋๋ค.
|
|
194
|
+
|
|
195
|
+
Repository: https://github.com/byh3071-cpu/vhk
|