nworks 0.5.0 → 0.6.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 CHANGED
@@ -26,7 +26,7 @@ nworks login \
26
26
  --bot-id <BOT_ID>
27
27
 
28
28
  # User OAuth 로그인 (캘린더, 드라이브 등 사용자 API용)
29
- nworks login --user --scope "calendar.read,file,mail,task,user.read"
29
+ nworks login --user --scope "calendar,calendar.read,file,mail,task,user.read"
30
30
 
31
31
  # 인증 확인
32
32
  nworks whoami
@@ -40,6 +40,9 @@ nworks directory members
40
40
  # 오늘 일정 조회
41
41
  nworks calendar list
42
42
 
43
+ # 일정 생성
44
+ nworks calendar create --title "회의" --start "2026-03-14T14:00+09:00" --end "2026-03-14T15:00+09:00"
45
+
43
46
  # 드라이브 파일 목록
44
47
  nworks drive list
45
48
 
@@ -104,14 +107,37 @@ nworks directory members # 조직 구성원 목록
104
107
  # 오늘 일정 조회
105
108
  nworks calendar list
106
109
 
107
- # 기간 지정
108
- nworks calendar list --from 2026-03-01T00:00:00+09:00 --until 2026-03-31T23:59:59+09:00
110
+ # 기간 지정 (타임존 필수)
111
+ nworks calendar list --from "2026-03-14T00:00:00+09:00" --until "2026-03-14T23:59:59+09:00"
109
112
 
110
113
  # 특정 사용자의 일정
111
114
  nworks calendar list --user <userId>
115
+
116
+ # 일정 생성
117
+ nworks calendar create --title "회의" --start "2026-03-14T14:00:00+09:00" --end "2026-03-14T15:00:00+09:00"
118
+
119
+ # 초 생략 가능
120
+ nworks calendar create --title "회의" --start "2026-03-14T14:00+09:00" --end "2026-03-14T15:00+09:00"
121
+
122
+ # 장소/설명 포함
123
+ nworks calendar create --title "점심 미팅" --start "2026-03-14T12:00+09:00" --end "2026-03-14T13:00+09:00" \
124
+ --location "강남 식당" --description "분기 리뷰"
125
+
126
+ # 참석자 지정 + 알림
127
+ nworks calendar create --title "팀 회의" --start "2026-03-14T10:00+09:00" --end "2026-03-14T11:00+09:00" \
128
+ --attendees "user1@example.com,user2@example.com" --notify
129
+
130
+ # 일정 수정
131
+ nworks calendar update --id <eventId> --title "변경된 제목"
132
+
133
+ # 시간 변경
134
+ nworks calendar update --id <eventId> --start "2026-03-14T15:00+09:00" --end "2026-03-14T16:00+09:00"
135
+
136
+ # 일정 삭제
137
+ nworks calendar delete --id <eventId>
112
138
  ```
113
139
 
114
- > **Note**: 캘린더 API는 User OAuth가 필요합니다. 먼저 `nworks login --user --scope calendar.read`를 실행하세요.
140
+ > **Note**: 캘린더 API는 User OAuth가 필요합니다. 먼저 `nworks login --user --scope "calendar calendar.read"`를 실행하세요.
115
141
 
116
142
  ### 드라이브 (User OAuth 필요)
117
143
 
@@ -229,7 +255,8 @@ nworks mcp --list-tools # 등록된 tool 목록
229
255
  | `bot` | Bot 메시지 전송 | Service Account | `message send` |
230
256
  | `bot.read` | Bot 채널/구성원 조회 | Service Account | `message members` |
231
257
  | `user.read` | 조직 구성원 조회 | Service Account | `directory members` |
232
- | `calendar.read` | 캘린더 일정 조회 | User OAuth | `calendar list` |
258
+ | `calendar` | 캘린더 쓰기 | User OAuth | `calendar create/update/delete` (+ `calendar.read` 필요) |
259
+ | `calendar.read` | 캘린더 읽기 | User OAuth | `calendar list` |
233
260
  | `file` | 드라이브 읽기/쓰기 | User OAuth | `drive list/upload/download` |
234
261
  | `file.read` | 드라이브 읽기 전용 | User OAuth | `drive list/download` |
235
262
  | `mail` | 메일 읽기/쓰기 | User OAuth | `mail send/list/read` |
@@ -291,7 +318,7 @@ NWORKS_VERBOSE=1 # optional, 디버그 로깅
291
318
  - ~~**v0.3** — 드라이브 파일 조회/업로드/다운로드 (`nworks drive`)~~
292
319
  - ~~**v0.4** — 메일 (`nworks mail send/list/read`)~~
293
320
  - ~~**v0.5** — 할 일 (`nworks task list/create/update/delete`)~~
294
- - **v0.6** — 캘린더 쓰기 (`nworks calendar create/update/delete`)
321
+ - ~~**v0.6** — 캘린더 쓰기 (`nworks calendar create/update/delete`)~~
295
322
  - **v0.7** — 게시판 (`nworks board list/post/read`)
296
323
 
297
324
  ## License