@bifos/dooray-cli 0.1.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.
- package/LICENSE +21 -0
- package/README.md +138 -0
- package/dist/index.js +1606 -0
- package/package.json +50 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 jon890
|
|
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,138 @@
|
|
|
1
|
+
# dooray-cli
|
|
2
|
+
|
|
3
|
+
NHN Dooray REST API를 래핑한 CLI 도구입니다. 터미널과 AI 에이전트 환경에서 Dooray 업무를 관리할 수 있습니다.
|
|
4
|
+
|
|
5
|
+
> A CLI tool wrapping the NHN Dooray REST API. Manage Dooray tasks from your terminal or AI agent workflows.
|
|
6
|
+
|
|
7
|
+
## 설치 (Installation)
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install -g @bifos/dooray-cli
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## 초기 설정 (Setup)
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
dooray config set base-url https://api.dooray.com
|
|
17
|
+
dooray config set api-key <YOUR_API_TOKEN>
|
|
18
|
+
dooray doctor
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
API 토큰은 `https://{org}.dooray.com/setting/api/token`에서 발급할 수 있습니다.
|
|
22
|
+
|
|
23
|
+
## 사용법 (Usage)
|
|
24
|
+
|
|
25
|
+
### 프로젝트
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
dooray project list # 프로젝트 목록
|
|
29
|
+
dooray project list --search ocr # 코드로 검색
|
|
30
|
+
dooray project members tc-ocr # 멤버 목록
|
|
31
|
+
dooray project workflows tc-ocr # 워크플로우 목록
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### 업무
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
dooray post list tc-ocr # 업무 목록 (최신순)
|
|
38
|
+
dooray post search tc-ocr "키워드" # 제목 검색
|
|
39
|
+
dooray post get tc-ocr 42 # 업무 상세
|
|
40
|
+
dooray post get tc-ocr 42 --json # JSON 출력
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### 업무 생성
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
dooray post create tc-ocr \
|
|
47
|
+
--subject "업무 제목" \
|
|
48
|
+
--body "본문 마크다운" \
|
|
49
|
+
--to "담당자이름" \
|
|
50
|
+
--priority normal
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### 업무 수정
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
# 대화형 ($EDITOR)
|
|
57
|
+
dooray post edit tc-ocr 42
|
|
58
|
+
|
|
59
|
+
# 비대화형 (AI 에이전트 친화)
|
|
60
|
+
dooray post edit tc-ocr 42 --subject "새 제목" --body "새 본문"
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### 댓글
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
dooray post comment list tc-ocr 42
|
|
67
|
+
dooray post comment add tc-ocr 42 --body "댓글 내용"
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### 상태 변경
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
dooray post done tc-ocr 42 # 완료 처리
|
|
74
|
+
dooray post workflow tc-ocr 42 "진행 중" # 워크플로우 변경
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### 위키
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
dooray wiki list # 위키 목록
|
|
81
|
+
dooray wiki pages tc-ocr # 페이지 목록
|
|
82
|
+
dooray wiki page get tc-ocr <page-id> # 페이지 상세
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## 출력 모드
|
|
86
|
+
|
|
87
|
+
| 플래그 | 설명 | 용도 |
|
|
88
|
+
|--------|------|------|
|
|
89
|
+
| (없음) | 테이블 출력 | 사람이 읽기 좋음 |
|
|
90
|
+
| `--json` | JSON 출력 | 파싱, 파이프라인 |
|
|
91
|
+
| `--quiet` | ID만 출력 | 스크립팅 |
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
# 파이프라인 예시
|
|
95
|
+
dooray post list tc-ocr --json | jq '.[] | select(.priority == "high")'
|
|
96
|
+
dooray post list tc-ocr --quiet | xargs -I{} dooray post done tc-ocr {}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## AI 에이전트 연동
|
|
100
|
+
|
|
101
|
+
`skills/dooray-cli/SKILL.md`에 AI 에이전트를 위한 스킬 파일이 포함되어 있습니다. Claude Code 등의 AI 에이전트에서 dooray-cli를 자동으로 활용할 수 있도록 의도→커맨드 매핑, 체이닝 예시, 에러 핸들링 가이드가 포함되어 있습니다.
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
# 스킬 파일 복사 (Claude Code 예시)
|
|
105
|
+
cp -r skills/dooray-cli ~/.claude/skills/
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## 캐시
|
|
109
|
+
|
|
110
|
+
프로젝트, 멤버, 워크플로우 정보는 `~/.dooray/cache/`에 캐시됩니다.
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
dooray cache clear # 캐시 삭제
|
|
114
|
+
dooray doctor # 캐시 상태 확인
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## 기술 스택
|
|
118
|
+
|
|
119
|
+
- TypeScript + Commander.js
|
|
120
|
+
- ky (fetch 기반 HTTP 클라이언트)
|
|
121
|
+
- tsup (esbuild 번들러)
|
|
122
|
+
- chalk + cli-table3 (출력 포맷)
|
|
123
|
+
|
|
124
|
+
## 개발
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
pnpm install
|
|
128
|
+
pnpm run build
|
|
129
|
+
node dist/index.js --help
|
|
130
|
+
|
|
131
|
+
# 글로벌 링크
|
|
132
|
+
pnpm link --global
|
|
133
|
+
dooray --help
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## 라이센스
|
|
137
|
+
|
|
138
|
+
[MIT](LICENSE)
|