specthread 0.1.0 → 0.1.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/LICENSE +21 -0
- package/dist/bin/cli.js +21 -5
- package/package.json +5 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Chanha Park
|
|
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/dist/bin/cli.js
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
const [command, ...rest] = process.argv.slice(2);
|
|
3
|
-
const usage = `specthread
|
|
3
|
+
const usage = `specthread — Spec-Driven Development (SDD) 도구
|
|
4
|
+
|
|
5
|
+
사용법: specthread <command> [options]
|
|
4
6
|
|
|
5
7
|
commands:
|
|
6
|
-
init [--tools claude,cursor]
|
|
7
|
-
check 문서 검사
|
|
8
|
-
gen [--write]
|
|
8
|
+
init [--tools claude,cursor] 프로젝트에 SDD 체계 초기화
|
|
9
|
+
check 문서 정합성 검사 (28개 규칙)
|
|
10
|
+
gen [--write] 참조 절·목차·미확정 사항 요약 생성
|
|
11
|
+
help 이 도움말 표시
|
|
12
|
+
|
|
13
|
+
examples:
|
|
14
|
+
npx specthread init 새 프로젝트에 SDD 세팅
|
|
15
|
+
npx specthread check 문서 규칙 위반 검사
|
|
16
|
+
npx specthread gen 변경 대상 미리보기
|
|
17
|
+
npx specthread gen --write 실제 적용
|
|
18
|
+
|
|
19
|
+
https://github.com/dingPie/specthread`;
|
|
9
20
|
const run = async () => {
|
|
10
21
|
switch (command) {
|
|
11
22
|
case "check":
|
|
@@ -17,9 +28,14 @@ const run = async () => {
|
|
|
17
28
|
case "init":
|
|
18
29
|
await (await import("../commands/init.js")).init(rest);
|
|
19
30
|
break;
|
|
31
|
+
case "help":
|
|
32
|
+
case "--help":
|
|
33
|
+
case "-h":
|
|
34
|
+
console.log(usage);
|
|
35
|
+
break;
|
|
20
36
|
default:
|
|
21
37
|
console.log(usage);
|
|
22
|
-
process.exit(command === undefined
|
|
38
|
+
process.exit(command === undefined ? 0 : 1);
|
|
23
39
|
}
|
|
24
40
|
};
|
|
25
41
|
run();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "specthread",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Spec-Driven Development (SDD) template. Docs are the single source of truth; code implements docs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
"scaffold/"
|
|
12
12
|
],
|
|
13
13
|
"license": "MIT",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/dingPie/specthread.git"
|
|
17
|
+
},
|
|
14
18
|
"engines": {
|
|
15
19
|
"node": ">=18.0.0"
|
|
16
20
|
},
|