@rlarua/agentteams-cli 0.0.12 → 0.0.14
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/API-CLI-WORKFLOW.md +402 -0
- package/README.md +24 -28
- package/dist/api/plan.d.ts +26 -0
- package/dist/api/plan.d.ts.map +1 -1
- package/dist/api/plan.js +20 -0
- package/dist/api/plan.js.map +1 -1
- package/dist/commands/convention.js.map +1 -1
- package/dist/commands/index.d.ts +1 -1
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +37 -48
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +1 -0
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/plan.d.ts +1 -0
- package/dist/commands/plan.d.ts.map +1 -1
- package/dist/commands/plan.js +190 -52
- package/dist/commands/plan.js.map +1 -1
- package/dist/commands/postmortem.d.ts.map +1 -1
- package/dist/commands/postmortem.js +2 -1
- package/dist/commands/postmortem.js.map +1 -1
- package/dist/commands/report.d.ts.map +1 -1
- package/dist/commands/report.js +3 -8
- package/dist/commands/report.js.map +1 -1
- package/dist/index.js +12 -45
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +1 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/authServer.d.ts +1 -0
- package/dist/utils/authServer.d.ts.map +1 -1
- package/dist/utils/authServer.js +1 -0
- package/dist/utils/authServer.js.map +1 -1
- package/dist/utils/errors.js +1 -3
- package/dist/utils/errors.js.map +1 -1
- package/dist/utils/outputPolicy.d.ts.map +1 -1
- package/dist/utils/outputPolicy.js +0 -1
- package/dist/utils/outputPolicy.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
---
|
|
2
|
+
trigger:
|
|
3
|
+
description:
|
|
4
|
+
agentInstruction: |
|
|
5
|
+
본 문서는 한국어로 작성해주세요.
|
|
6
|
+
* npm 사이트에 본 문서가 노출되어서 api/ 폴더로 이동
|
|
7
|
+
---
|
|
8
|
+
# API ↔ CLI 워크플로우
|
|
9
|
+
|
|
10
|
+
이 문서는 AgentTeams CLI(`agentteams`)가 API 서버와 어떻게 통신하는지, 그리고 그 결과로 로컬 워크스페이스에 어떤 파일이 생성/업데이트되는지를 설명합니다.
|
|
11
|
+
|
|
12
|
+
## 범위(Scope)
|
|
13
|
+
|
|
14
|
+
- CLI 인증/설정(config) 로딩 규칙
|
|
15
|
+
- 요청/응답 컨벤션(엔벨로프, 페이지네이션)
|
|
16
|
+
- 엔드투엔드 흐름(Plan → Comments/Status → Completion Report → Postmortem)
|
|
17
|
+
- CLI가 생성하는 로컬 파일 위치 및 역할
|
|
18
|
+
- (추가) 공통 출력 UX(`--output-file`, `--verbose`)와 단축 워크플로우(`plan start/finish`)
|
|
19
|
+
|
|
20
|
+
> 최종 소스 오브 트루스는 코드입니다. 이 문서는 운영/사용 가이드입니다.
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## 구성 요소와 책임
|
|
25
|
+
|
|
26
|
+
- CLI(`/cli`)
|
|
27
|
+
- 커맨드 파싱: `commander`
|
|
28
|
+
- HTTP 호출: `axios`
|
|
29
|
+
- 설정 로딩: `.agentteams/config.json`, `~/.agentteams/config.json`, `AGENTTEAMS_*`
|
|
30
|
+
- 로컬 아티팩트 생성: 플랜 스냅샷(runbook), 컨벤션/가이드 다운로드 파일
|
|
31
|
+
- (추가) 공통 출력 UX: `--output-file`, `--verbose`
|
|
32
|
+
- (추가) 단축 워크플로우: `agentteams plan start|finish`
|
|
33
|
+
- API(`/api`)
|
|
34
|
+
- REST API: Fastify
|
|
35
|
+
- 인증/권한: 주로 `X-API-Key` 기반
|
|
36
|
+
- DB 접근: Prisma
|
|
37
|
+
- Swagger UI: `/docs`
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## 인증(Authentication)과 설정(Config) 로딩
|
|
42
|
+
|
|
43
|
+
### `agentteams init` (최초 설정)
|
|
44
|
+
|
|
45
|
+
개요 흐름:
|
|
46
|
+
|
|
47
|
+
1. 로컬 OAuth 콜백 서버를 실행합니다.
|
|
48
|
+
2. 브라우저에서 authorize 페이지를 엽니다(SSH 환경에서는 URL을 출력).
|
|
49
|
+
3. `apiUrl`, `apiKey`, `teamId`, `projectId`, `agentName`을 수신하고 로컬에 저장합니다.
|
|
50
|
+
4. 컨벤션 템플릿을 `.agentteams/convention.md`로 저장합니다.
|
|
51
|
+
5. 컨벤션/플랫폼 가이드를 `.agentteams/*`로 다운로드합니다.
|
|
52
|
+
|
|
53
|
+
```mermaid
|
|
54
|
+
sequenceDiagram
|
|
55
|
+
participant U as "User"
|
|
56
|
+
participant CLI as "CLI (agentteams)"
|
|
57
|
+
participant WEB as "Web (Authorize)"
|
|
58
|
+
participant API as "API"
|
|
59
|
+
participant FS as "Local FS"
|
|
60
|
+
|
|
61
|
+
U->>CLI: agentteams init
|
|
62
|
+
CLI->>CLI: Start local OAuth callback server
|
|
63
|
+
CLI->>WEB: Open/print authorize URL
|
|
64
|
+
WEB->>CLI: OAuth callback (auth result)
|
|
65
|
+
CLI->>FS: Write .agentteams/config.json
|
|
66
|
+
CLI->>API: Fetch convention template
|
|
67
|
+
API-->>CLI: template(content)
|
|
68
|
+
CLI->>FS: Write .agentteams/convention.md
|
|
69
|
+
CLI->>API: Download conventions
|
|
70
|
+
API-->>CLI: conventions (+ platform guides)
|
|
71
|
+
CLI->>FS: Write .agentteams/<category>/*.md and manifest
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### 설정 우선순위(높음 → 낮음)
|
|
75
|
+
|
|
76
|
+
1. CLI option overrides (some commands only)
|
|
77
|
+
2. Env vars `AGENTTEAMS_*`
|
|
78
|
+
3. Project config: nearest `.agentteams/config.json` found by walking up from `cwd`
|
|
79
|
+
4. Global config: `~/.agentteams/config.json`
|
|
80
|
+
|
|
81
|
+
지원 환경변수:
|
|
82
|
+
|
|
83
|
+
- `AGENTTEAMS_API_KEY`
|
|
84
|
+
- `AGENTTEAMS_API_URL`
|
|
85
|
+
- `AGENTTEAMS_TEAM_ID`
|
|
86
|
+
- `AGENTTEAMS_PROJECT_ID`
|
|
87
|
+
- `AGENTTEAMS_AGENT_NAME`
|
|
88
|
+
|
|
89
|
+
### 기본 요청 헤더
|
|
90
|
+
|
|
91
|
+
- `X-API-Key: key_...`
|
|
92
|
+
- `Content-Type: application/json`
|
|
93
|
+
|
|
94
|
+
예외:
|
|
95
|
+
|
|
96
|
+
- `DELETE` 요청은 서버의 빈 JSON body 검증 충돌을 피하기 위해 `Content-Type`을 포함하지 않습니다.
|
|
97
|
+
|
|
98
|
+
API는 다음 중 하나를 허용합니다:
|
|
99
|
+
|
|
100
|
+
- `Authorization: Bearer <token>`
|
|
101
|
+
- `X-API-Key: key_...` (API keys must have the `key_` prefix)
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## 공통 API 컨벤션
|
|
106
|
+
|
|
107
|
+
### Base URL
|
|
108
|
+
|
|
109
|
+
The CLI calls `{apiUrl}/api/...`.
|
|
110
|
+
|
|
111
|
+
Example: `GET {apiUrl}/api/projects/{projectId}/plans`
|
|
112
|
+
|
|
113
|
+
### Response envelopes
|
|
114
|
+
|
|
115
|
+
- Single: `{ data: {...} }`
|
|
116
|
+
- List: `{ data: [...], meta: {...} }`
|
|
117
|
+
- Error: `{ statusCode, error, message, errorCode? }`
|
|
118
|
+
|
|
119
|
+
에러 응답의 `errorCode`는 선택 필드이며, CLI는 `errorCode`가 있을 때 이를 우선 사용해 에러를 분기합니다.
|
|
120
|
+
`errorCode`가 없는 구버전/부분 적용 응답에서는 기존 `statusCode + message` 기반 동작으로 fallback합니다.
|
|
121
|
+
|
|
122
|
+
### Pagination
|
|
123
|
+
|
|
124
|
+
Many list endpoints accept `page` and `pageSize`.
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## 공통 출력 UX(추가)
|
|
129
|
+
|
|
130
|
+
### `--output-file <path>` / `--verbose`
|
|
131
|
+
|
|
132
|
+
대상(주요 커맨드 전반): `init`, `sync`, `status`, `plan`, `comment`, `report`, `postmortem`, `dependency`, `agent-config`, `config`, `convention`
|
|
133
|
+
|
|
134
|
+
- `--output-file <path>`
|
|
135
|
+
- “원래 stdout에 출력될 전체 결과”를 지정한 파일에 그대로 저장합니다.
|
|
136
|
+
- stdout에는 기본적으로 **요약 1~3줄**만 출력합니다.
|
|
137
|
+
- 상대 경로는 `cwd` 기준이며 내부에서 `path.resolve`로 절대경로로 변환합니다.
|
|
138
|
+
- 부모 디렉토리가 없으면 생성합니다.
|
|
139
|
+
- `--verbose`
|
|
140
|
+
- `--output-file`과 함께 사용하면 stdout에도 전체 결과를 출력합니다(파일 저장은 유지).
|
|
141
|
+
|
|
142
|
+
요약 출력은 기본 영어 메시지로 출력됩니다(자동화/로그 파싱 관점에서 고정된 문구를 선호).
|
|
143
|
+
|
|
144
|
+
text 출력에서 객체 필드는 핵심 식별 필드(`id/title/status/priority/updatedAt/createdAt`)를 우선 표시한 뒤 나머지를 정렬해 출력합니다.
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## 커맨드별 워크플로우
|
|
149
|
+
|
|
150
|
+
### Plan
|
|
151
|
+
|
|
152
|
+
- Create: `POST /api/projects/:projectId/plans`
|
|
153
|
+
- Plans are always created as `DRAFT` (server-enforced). Even if a client sends `status`, it will be ignored on creation.
|
|
154
|
+
- Use `--content` or `--file` for the body.
|
|
155
|
+
- `--template refactor-minimal`로 최소 리팩터링 체크리스트 본문을 자동 채울 수 있습니다(내용이 비어 있을 때).
|
|
156
|
+
- `--template quick-minimal`로 약식 작업 계획서(최소 템플릿)를 자동 채울 수 있습니다(내용이 비어 있을 때).
|
|
157
|
+
- 멀티라인을 `--content`로 전달해야 하는 경우, `--interpret-escapes`를 사용하면 `\\n` 시퀀스를 실제 줄바꿈으로 변환합니다(기본 OFF).
|
|
158
|
+
- Get alias: `plan show --id <id>`는 `plan get --id <id>`와 동일 동작입니다.
|
|
159
|
+
- Include dependencies: `plan get|show --id <id> --include-deps`
|
|
160
|
+
- 내부적으로 `GET /plans/:id` + `GET /plans/:id/dependencies`를 호출해 응답을 합성합니다.
|
|
161
|
+
- `--format json`: `data.dependencies = { blocking: [...], dependents: [...] }`
|
|
162
|
+
- `--format text`: Plan 필드 출력 뒤 `## Dependencies` 섹션을 추가합니다.
|
|
163
|
+
- Download snapshot: `GET /api/projects/:projectId/plans/:id`
|
|
164
|
+
- Saved to `.agentteams/active-plan/{safe-title}.md` with frontmatter.
|
|
165
|
+
- (추가) 단축 커맨드
|
|
166
|
+
- `agentteams plan start --id <planId>`
|
|
167
|
+
- 내부적으로 `POST /api/projects/:projectId/plans/:id/start`를 호출합니다.
|
|
168
|
+
- 서버는 플랜을 `IN_PROGRESS`로 변경하고(`startedAt` 포함), 필요 시 `assignedTo`를 함께 설정합니다.
|
|
169
|
+
- `agentteams plan finish --id <planId>`
|
|
170
|
+
- 내부적으로 `POST /api/projects/:projectId/plans/:id/finish`를 호출합니다.
|
|
171
|
+
- 요청에 completion report payload가 포함되면, 서버는 completion report를 생성합니다.
|
|
172
|
+
- (추가) `--report-template minimal`을 사용하면 completion report 본문 템플릿을 자동으로 첨부할 수 있습니다.
|
|
173
|
+
- `--report-content` 또는 `--report-file`이 제공되면 `--report-template`은 무시됩니다.
|
|
174
|
+
|
|
175
|
+
### Comment (plan-scoped)
|
|
176
|
+
|
|
177
|
+
- List: `GET /api/projects/:projectId/plans/:planId/comments`
|
|
178
|
+
- Create: `POST /api/projects/:projectId/plans/:planId/comments`
|
|
179
|
+
- Get/Update/Delete by ID: `GET/PUT/DELETE /api/projects/:projectId/comments/:id`
|
|
180
|
+
|
|
181
|
+
Types: `RISK`, `MODIFICATION`, `GENERAL`
|
|
182
|
+
|
|
183
|
+
### Convention
|
|
184
|
+
|
|
185
|
+
Convention commands are tightly coupled to `.agentteams/`.
|
|
186
|
+
|
|
187
|
+
- Sync download: `agentteams sync` (internally runs `convention download`)
|
|
188
|
+
- Writes conventions and platform guides under `.agentteams/`
|
|
189
|
+
- Updates `.agentteams/conventions.manifest.json`
|
|
190
|
+
- Create/Update/Delete: `agentteams convention create|update|delete`
|
|
191
|
+
- Files are expected under `.agentteams/<category>/...`
|
|
192
|
+
- `update/delete` default to a non-destructive preview; use `--apply` to execute.
|
|
193
|
+
|
|
194
|
+
### Completion report / Postmortem
|
|
195
|
+
|
|
196
|
+
- Completion reports: `.../completion-reports`
|
|
197
|
+
- Postmortems: `.../post-mortems`
|
|
198
|
+
|
|
199
|
+
CLI supports `--api-url`, `--api-key`, `--team-id`, `--project-id`, `--agent-name` overrides for environments without local config.
|
|
200
|
+
|
|
201
|
+
#### (추가) `report create`의 템플릿/Deprecated 옵션
|
|
202
|
+
|
|
203
|
+
- `--template minimal`
|
|
204
|
+
- `--content`가 없을 때 최소 템플릿을 자동으로 채워서 생성할 수 있습니다.
|
|
205
|
+
- Deprecated(호환 유지, 경고 출력)
|
|
206
|
+
- `--summary`: `--title`의 별칭(Deprecated)
|
|
207
|
+
- `--details`: `--content`가 없을 때 Details 섹션으로 삽입(Deprecated)
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
## CLI가 생성/관리하는 로컬 파일
|
|
212
|
+
|
|
213
|
+
- Project config: `.agentteams/config.json`
|
|
214
|
+
- Global config: `~/.agentteams/config.json`
|
|
215
|
+
- Convention template: `.agentteams/convention.md`
|
|
216
|
+
- Download manifest: `.agentteams/conventions.manifest.json`
|
|
217
|
+
- Plan snapshots: `.agentteams/active-plan/*.md`
|
|
218
|
+
- Output capture: `--output-file <path>`로 지정한 임의 경로(사용자 지정)
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
## 엔드투엔드: plan 생성 → 완료 보고서
|
|
223
|
+
|
|
224
|
+
```mermaid
|
|
225
|
+
sequenceDiagram
|
|
226
|
+
participant U as "User/Agent"
|
|
227
|
+
participant CLI as "CLI (agentteams)"
|
|
228
|
+
participant API as "API"
|
|
229
|
+
participant FS as "Local FS"
|
|
230
|
+
|
|
231
|
+
U->>CLI: plan create (title, content, priority)
|
|
232
|
+
CLI->>API: POST /api/projects/:projectId/plans
|
|
233
|
+
API-->>CLI: { data: plan(status=DRAFT) }
|
|
234
|
+
|
|
235
|
+
U->>CLI: plan start --id {planId}
|
|
236
|
+
CLI->>API: POST /api/projects/:projectId/plans/:id/start
|
|
237
|
+
API-->>CLI: { data: { id, plan, completionReport=null } }
|
|
238
|
+
|
|
239
|
+
U->>CLI: plan download --id {planId}
|
|
240
|
+
CLI->>API: GET /api/projects/:projectId/plans/:id
|
|
241
|
+
API-->>CLI: { data: plan(contentMarkdown) }
|
|
242
|
+
CLI->>FS: Write .agentteams/active-plan/{safe-title}.md
|
|
243
|
+
|
|
244
|
+
U->>CLI: comment create --type RISK|MODIFICATION|GENERAL
|
|
245
|
+
CLI->>API: POST /api/projects/:projectId/plans/:planId/comments
|
|
246
|
+
API-->>CLI: { data: comment }
|
|
247
|
+
|
|
248
|
+
U->>CLI: plan finish --id {planId}
|
|
249
|
+
CLI->>API: POST /api/projects/:projectId/plans/:id/finish
|
|
250
|
+
API-->>CLI: { data: { id, plan, completionReport } }
|
|
251
|
+
|
|
252
|
+
U->>CLI: report create --plan-id {planId}
|
|
253
|
+
CLI->>API: POST /api/projects/:projectId/completion-reports
|
|
254
|
+
API-->>CLI: { data: report }
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
## 엔드투엔드(추가): plan start / plan finish
|
|
258
|
+
|
|
259
|
+
```mermaid
|
|
260
|
+
sequenceDiagram
|
|
261
|
+
participant U as "User/Agent"
|
|
262
|
+
participant CLI as "CLI (agentteams)"
|
|
263
|
+
participant API as "API"
|
|
264
|
+
|
|
265
|
+
U->>CLI: plan start --id {planId}
|
|
266
|
+
CLI->>API: POST /api/projects/:projectId/plans/:id/start
|
|
267
|
+
API-->>CLI: { data: { id, plan, completionReport=null } }
|
|
268
|
+
|
|
269
|
+
U->>CLI: plan finish --id {planId}
|
|
270
|
+
CLI->>API: POST /api/projects/:projectId/plans/:id/finish
|
|
271
|
+
API-->>CLI: { data: { id, plan, completionReport } }
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
---
|
|
275
|
+
|
|
276
|
+
## Plan status model and constraints
|
|
277
|
+
|
|
278
|
+
### Status values
|
|
279
|
+
|
|
280
|
+
- `DRAFT`
|
|
281
|
+
- `PENDING`
|
|
282
|
+
- `ASSIGNED`
|
|
283
|
+
- `IN_PROGRESS`
|
|
284
|
+
- `BLOCKED`
|
|
285
|
+
- `DONE` (terminal)
|
|
286
|
+
- `CANCELLED` (terminal)
|
|
287
|
+
|
|
288
|
+
### Allowed status transitions (server-validated)
|
|
289
|
+
|
|
290
|
+
```mermaid
|
|
291
|
+
stateDiagram-v2
|
|
292
|
+
[*] --> DRAFT
|
|
293
|
+
|
|
294
|
+
DRAFT --> PENDING
|
|
295
|
+
|
|
296
|
+
PENDING --> ASSIGNED
|
|
297
|
+
PENDING --> IN_PROGRESS
|
|
298
|
+
PENDING --> DONE
|
|
299
|
+
PENDING --> CANCELLED
|
|
300
|
+
|
|
301
|
+
ASSIGNED --> PENDING
|
|
302
|
+
ASSIGNED --> IN_PROGRESS
|
|
303
|
+
ASSIGNED --> DONE
|
|
304
|
+
ASSIGNED --> CANCELLED
|
|
305
|
+
|
|
306
|
+
IN_PROGRESS --> DONE
|
|
307
|
+
IN_PROGRESS --> BLOCKED
|
|
308
|
+
IN_PROGRESS --> CANCELLED
|
|
309
|
+
|
|
310
|
+
BLOCKED --> IN_PROGRESS
|
|
311
|
+
BLOCKED --> CANCELLED
|
|
312
|
+
|
|
313
|
+
DONE --> [*]
|
|
314
|
+
CANCELLED --> [*]
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
If you attempt a disallowed transition, the API returns `400` with `허용되지 않은 상태 전이입니다`.
|
|
318
|
+
|
|
319
|
+
### `plan assign` behavior
|
|
320
|
+
|
|
321
|
+
`agentteams plan assign` sets the plan to `ASSIGNED` as long as the plan is not terminal.
|
|
322
|
+
|
|
323
|
+
- Not allowed when current status is `DONE` or `CANCELLED`
|
|
324
|
+
- Otherwise allowed and results in `ASSIGNED`
|
|
325
|
+
|
|
326
|
+
### Content edit/delete constraints (status-based)
|
|
327
|
+
|
|
328
|
+
```mermaid
|
|
329
|
+
flowchart TD
|
|
330
|
+
A["plan update (title/content/priority change)"] --> B{Current status is<br/>DRAFT or PENDING?}
|
|
331
|
+
B -- "No" --> E["400: Content edits allowed only in DRAFT or PENDING"]
|
|
332
|
+
B -- "Yes" --> F["Allowed"]
|
|
333
|
+
|
|
334
|
+
C["plan delete"] --> D{Current status is<br/>PENDING, DRAFT, or CANCELLED?}
|
|
335
|
+
D -- "No" --> G["400: Delete allowed only in PENDING, DRAFT, or CANCELLED"]
|
|
336
|
+
D -- "Yes" --> H["204 No Content"]
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
---
|
|
340
|
+
|
|
341
|
+
## Completion report writing rules (practical)
|
|
342
|
+
|
|
343
|
+
- Prefer the platform template if available: `.agentteams/platform/guides/completion-report-guide.md`
|
|
344
|
+
- Include reproducible verification evidence (commands + outcomes).
|
|
345
|
+
- Keep outcomes short: write `pass/fail + 1–3 lines of summary`; do not paste long raw logs into the report body.
|
|
346
|
+
|
|
347
|
+
---
|
|
348
|
+
|
|
349
|
+
## Troubleshooting
|
|
350
|
+
|
|
351
|
+
- `401 Unauthorized`
|
|
352
|
+
- Check `AGENTTEAMS_API_KEY` / `.agentteams/config.json` `apiKey`.
|
|
353
|
+
- API keys must have the `key_` prefix.
|
|
354
|
+
- `403 Forbidden`
|
|
355
|
+
- You likely lack project/role permissions (especially for convention writes).
|
|
356
|
+
- `400 Bad Request`
|
|
357
|
+
- 플랜 상태 전이처럼 서버가 검증하는 제약을 위반했을 수 있습니다.
|
|
358
|
+
- 예: 허용되지 않은 상태 전이 시 `400` + `허용되지 않은 상태 전이입니다`
|
|
359
|
+
- Connection issues (`ECONNREFUSED`, `ENOTFOUND`)
|
|
360
|
+
- Check `AGENTTEAMS_API_URL` / config `apiUrl`, and ensure the server is reachable.
|
|
361
|
+
|
|
362
|
+
---
|
|
363
|
+
|
|
364
|
+
## 최소 사용 예시
|
|
365
|
+
|
|
366
|
+
```bash
|
|
367
|
+
# First-time setup
|
|
368
|
+
agentteams init
|
|
369
|
+
|
|
370
|
+
# Create plan (always DRAFT)
|
|
371
|
+
agentteams plan create --title "My plan" --content "# TODO\n- ..." --priority MEDIUM
|
|
372
|
+
|
|
373
|
+
# Download local snapshot/runbook
|
|
374
|
+
agentteams plan download --id <planId>
|
|
375
|
+
|
|
376
|
+
# Add a risk comment
|
|
377
|
+
agentteams comment create --plan-id <planId> --type RISK --content "Potential failure mode..."
|
|
378
|
+
|
|
379
|
+
# Move plan forward (manual)
|
|
380
|
+
agentteams plan update --id <planId> --status IN_PROGRESS
|
|
381
|
+
agentteams plan update --id <planId> --status DONE
|
|
382
|
+
|
|
383
|
+
# Start/finish shortcuts
|
|
384
|
+
agentteams plan start --id <planId>
|
|
385
|
+
agentteams plan finish --id <planId>
|
|
386
|
+
agentteams plan finish --id <planId> --report-template minimal
|
|
387
|
+
|
|
388
|
+
# Create completion report (recommended flags)
|
|
389
|
+
agentteams report create --plan-id <planId> --title "Done" --template minimal
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
Environment-only mode (no config file):
|
|
393
|
+
|
|
394
|
+
```bash
|
|
395
|
+
export AGENTTEAMS_API_URL="https://..."
|
|
396
|
+
export AGENTTEAMS_API_KEY="key_..."
|
|
397
|
+
export AGENTTEAMS_TEAM_ID="..."
|
|
398
|
+
export AGENTTEAMS_PROJECT_ID="..."
|
|
399
|
+
export AGENTTEAMS_AGENT_NAME="..."
|
|
400
|
+
|
|
401
|
+
agentteams plan list --page 1 --page-size 20
|
|
402
|
+
```
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @rlarua/agentteams-cli
|
|
2
2
|
|
|
3
3
|
A CLI for working with the AgentTeams API from your terminal.
|
|
4
|
-
It supports convention sync
|
|
4
|
+
It supports convention sync and plan/comment/report management.
|
|
5
5
|
|
|
6
6
|
## Installation
|
|
7
7
|
|
|
@@ -27,6 +27,7 @@ The `init` command:
|
|
|
27
27
|
|
|
28
28
|
- Opens a browser for OAuth authentication
|
|
29
29
|
- Creates `.agentteams/config.json`
|
|
30
|
+
- Optionally selects a default project repository (saved as `repositoryId` in config)
|
|
30
31
|
- Saves the convention template to `.agentteams/convention.md`
|
|
31
32
|
- Syncs convention files into `.agentteams/<category>/*.md`
|
|
32
33
|
|
|
@@ -160,28 +161,6 @@ Resync convention files.
|
|
|
160
161
|
agentteams sync
|
|
161
162
|
```
|
|
162
163
|
|
|
163
|
-
### `status`
|
|
164
|
-
|
|
165
|
-
Manage agent statuses.
|
|
166
|
-
|
|
167
|
-
```bash
|
|
168
|
-
agentteams status report \
|
|
169
|
-
--agent "my-agent" \
|
|
170
|
-
--status "IN_PROGRESS" \
|
|
171
|
-
--task "Working on task" \
|
|
172
|
-
--issues "" \
|
|
173
|
-
--remaining "next step"
|
|
174
|
-
|
|
175
|
-
agentteams status list
|
|
176
|
-
agentteams status get --id <status-id>
|
|
177
|
-
agentteams status update --id <status-id> --status "DONE"
|
|
178
|
-
agentteams status delete --id <status-id>
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
Note: `--agent` is optional, but your server may require it depending on your setup.
|
|
182
|
-
|
|
183
|
-
Status values: `IN_PROGRESS`, `DONE`, `BLOCKED`
|
|
184
|
-
|
|
185
164
|
### `plan`
|
|
186
165
|
|
|
187
166
|
Manage plans.
|
|
@@ -193,17 +172,23 @@ agentteams plan list
|
|
|
193
172
|
agentteams plan get --id <plan-id>
|
|
194
173
|
agentteams plan get --id <plan-id> --include-deps --format text
|
|
195
174
|
agentteams plan show --id <plan-id> # alias of get
|
|
175
|
+
agentteams plan status --id <plan-id>
|
|
176
|
+
agentteams plan set-status --id <plan-id> --status <status>
|
|
196
177
|
|
|
197
178
|
agentteams plan create \
|
|
198
179
|
--title "Implement feature" \
|
|
199
180
|
--content "Detailed content" \
|
|
200
181
|
--priority "HIGH"
|
|
201
182
|
|
|
183
|
+
# repository linkage
|
|
184
|
+
# - `plan create` uses `.agentteams/config.json` -> `repositoryId` when present.
|
|
185
|
+
|
|
202
186
|
# optional checklist template for create
|
|
203
187
|
agentteams plan create \
|
|
204
188
|
--title "Refactor module" \
|
|
205
189
|
--template "refactor-minimal"
|
|
206
190
|
|
|
191
|
+
agentteams plan quick --title "Quick task" --report-title "Work completion summary" --report-file .agentteams/temp/report.md
|
|
207
192
|
agentteams plan update --id <plan-id> --status "PENDING"
|
|
208
193
|
agentteams plan update --id <plan-id> --status "IN_PROGRESS"
|
|
209
194
|
agentteams plan assign --id <plan-id> --agent "agent-name"
|
|
@@ -216,7 +201,14 @@ Status values: `DRAFT`, `PENDING`, `ASSIGNED`, `IN_PROGRESS`, `BLOCKED`, `DONE`,
|
|
|
216
201
|
|
|
217
202
|
Priorities: `LOW`, `MEDIUM`, `HIGH`
|
|
218
203
|
|
|
219
|
-
Plan template values (create): `refactor-minimal`
|
|
204
|
+
Plan template values (create): `refactor-minimal`, `quick-minimal`
|
|
205
|
+
|
|
206
|
+
`plan quick` behavior:
|
|
207
|
+
|
|
208
|
+
- Creates a plan with the `quick-minimal` template
|
|
209
|
+
- Uses `LOW` as the default priority (override with `--priority`)
|
|
210
|
+
- Starts and finishes the plan in one flow
|
|
211
|
+
- If `--report-content` or `--report-file` is provided, attaches a completion report on finish
|
|
220
212
|
|
|
221
213
|
`--include-deps` (get/show): also fetches dependency data and appends a `Dependencies` section in text output; in json output it adds `data.dependencies` with `blocking` and `dependents` arrays.
|
|
222
214
|
|
|
@@ -270,9 +262,11 @@ agentteams report list
|
|
|
270
262
|
agentteams report create \
|
|
271
263
|
--title "AgentTeams completion report" \
|
|
272
264
|
--content "## TL;DR\n- done" \
|
|
273
|
-
--report-type IMPL_PLAN \
|
|
274
265
|
--status COMPLETED
|
|
275
266
|
|
|
267
|
+
# repository linkage
|
|
268
|
+
# - `report create` uses `.agentteams/config.json` -> `repositoryId` when present.
|
|
269
|
+
|
|
276
270
|
# with metrics (auto + manual)
|
|
277
271
|
agentteams report create \
|
|
278
272
|
--title "CLI metrics report" \
|
|
@@ -289,8 +283,6 @@ agentteams report create \
|
|
|
289
283
|
--no-git
|
|
290
284
|
```
|
|
291
285
|
|
|
292
|
-
Report types: `IMPL_PLAN`, `COMMIT_RANGE`, `TASK_COMPLETION`
|
|
293
|
-
|
|
294
286
|
Status values: `COMPLETED`, `FAILED`, `PARTIAL`
|
|
295
287
|
|
|
296
288
|
Metrics behavior:
|
|
@@ -313,6 +305,9 @@ agentteams postmortem create \
|
|
|
313
305
|
--content "## Root cause\n- Missing configuration" \
|
|
314
306
|
--action-items "Automate rollback,Pre-release checklist" \
|
|
315
307
|
--status RESOLVED
|
|
308
|
+
|
|
309
|
+
# repository linkage
|
|
310
|
+
# - `postmortem create` uses `.agentteams/config.json` -> `repositoryId` when present.
|
|
316
311
|
```
|
|
317
312
|
|
|
318
313
|
Status values: `OPEN`, `IN_PROGRESS`, `RESOLVED`
|
|
@@ -341,6 +336,7 @@ Configuration is merged in this priority order (highest first):
|
|
|
341
336
|
{
|
|
342
337
|
"teamId": "team_xxx",
|
|
343
338
|
"projectId": "proj_xxx",
|
|
339
|
+
"repositoryId": "repo_xxx",
|
|
344
340
|
"agentName": "my-agent",
|
|
345
341
|
"apiKey": "key_xxx",
|
|
346
342
|
"apiUrl": "https://agent-api.justin-mk.me"
|
|
@@ -363,7 +359,7 @@ Most resource commands support `--format json|text`.
|
|
|
363
359
|
|
|
364
360
|
Output behavior by default:
|
|
365
361
|
|
|
366
|
-
- `plan create|update|start|finish`: prints short summary lines on stdout by default.
|
|
362
|
+
- `plan create|update|start|finish|quick`: prints short summary lines on stdout by default.
|
|
367
363
|
- `plan list|get` and other read-oriented commands: keep full output by default.
|
|
368
364
|
- `--verbose`: always prints full output to stdout.
|
|
369
365
|
- `--output-file <path>`: always writes full output to file and keeps stdout short.
|
package/dist/api/plan.d.ts
CHANGED
|
@@ -5,9 +5,35 @@ export declare function createPlan(apiUrl: string, projectId: string, headers: a
|
|
|
5
5
|
title: string;
|
|
6
6
|
content: string;
|
|
7
7
|
priority: string;
|
|
8
|
+
repositoryId?: string;
|
|
8
9
|
status: 'DRAFT';
|
|
9
10
|
}): Promise<any>;
|
|
10
11
|
export declare function updatePlan(apiUrl: string, projectId: string, headers: any, id: string, body: Record<string, unknown>): Promise<any>;
|
|
11
12
|
export declare function assignPlan(apiUrl: string, projectId: string, headers: any, id: string, assignedTo: string): Promise<any>;
|
|
13
|
+
export declare function startPlanLifecycle(apiUrl: string, projectId: string, headers: any, id: string, body: {
|
|
14
|
+
assignedTo?: string;
|
|
15
|
+
task?: string;
|
|
16
|
+
}): Promise<any>;
|
|
17
|
+
export declare function finishPlanLifecycle(apiUrl: string, projectId: string, headers: any, id: string, body: {
|
|
18
|
+
task?: string;
|
|
19
|
+
completionReport?: {
|
|
20
|
+
repositoryId?: string;
|
|
21
|
+
title: string;
|
|
22
|
+
content: string;
|
|
23
|
+
commitHash?: string;
|
|
24
|
+
commitStart?: string;
|
|
25
|
+
commitEnd?: string;
|
|
26
|
+
branchName?: string;
|
|
27
|
+
pullRequestId?: string;
|
|
28
|
+
durationSeconds?: number;
|
|
29
|
+
filesModified?: number;
|
|
30
|
+
linesAdded?: number;
|
|
31
|
+
linesDeleted?: number;
|
|
32
|
+
status?: string;
|
|
33
|
+
qualityScore?: number;
|
|
34
|
+
};
|
|
35
|
+
}): Promise<any>;
|
|
12
36
|
export declare function deletePlan(apiUrl: string, projectId: string, headers: any, id: string): Promise<any>;
|
|
37
|
+
export declare function getPlanStatus(apiUrl: string, projectId: string, headers: any, id: string): Promise<any>;
|
|
38
|
+
export declare function patchPlanStatus(apiUrl: string, projectId: string, headers: any, id: string, status: string): Promise<any>;
|
|
13
39
|
//# sourceMappingURL=plan.d.ts.map
|
package/dist/api/plan.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../../src/api/plan.ts"],"names":[],"mappings":"AAGA,wBAAsB,SAAS,CAC7B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,GAAG,EACZ,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GACvC,OAAO,CAAC,GAAG,CAAC,CAQd;AAED,wBAAsB,OAAO,CAC3B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,GAAG,EACZ,EAAE,EAAE,MAAM,GACT,OAAO,CAAC,GAAG,CAAC,CAId;AAED,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,GAAG,EACZ,EAAE,EAAE,MAAM,GACT,OAAO,CAAC,GAAG,CAAC,CAId;AAED,wBAAsB,UAAU,CAC9B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,GAAG,EACZ,IAAI,EAAE;IACJ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;CACjB,GACA,OAAO,CAAC,GAAG,CAAC,CAId;AAED,wBAAsB,UAAU,CAC9B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,GAAG,EACZ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,OAAO,CAAC,GAAG,CAAC,CAId;AAED,wBAAsB,UAAU,CAC9B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,GAAG,EACZ,EAAE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AId;AAED,wBAAsB,UAAU,CAC9B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,GAAG,EACZ,EAAE,EAAE,MAAM,GACT,OAAO,CAAC,GAAG,CAAC,CAMd;AAED,wBAAsB,aAAa,CACjC,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,GAAG,EACZ,EAAE,EAAE,MAAM,GACT,OAAO,CAAC,GAAG,CAAC,CAId;AAED,wBAAsB,eAAe,CACnC,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,GAAG,EACZ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,GAAG,CAAC,CAId"}
|
package/dist/api/plan.js
CHANGED
|
@@ -33,6 +33,16 @@ export async function assignPlan(apiUrl, projectId, headers, id, assignedTo) {
|
|
|
33
33
|
const response = await axios.post(`${baseUrl}/${id}/assign`, { assignedTo }, { headers });
|
|
34
34
|
return response.data;
|
|
35
35
|
}
|
|
36
|
+
export async function startPlanLifecycle(apiUrl, projectId, headers, id, body) {
|
|
37
|
+
const baseUrl = `${apiUrl}/api/projects/${projectId}/plans`;
|
|
38
|
+
const response = await axios.post(`${baseUrl}/${id}/start`, body, { headers });
|
|
39
|
+
return response.data;
|
|
40
|
+
}
|
|
41
|
+
export async function finishPlanLifecycle(apiUrl, projectId, headers, id, body) {
|
|
42
|
+
const baseUrl = `${apiUrl}/api/projects/${projectId}/plans`;
|
|
43
|
+
const response = await axios.post(`${baseUrl}/${id}/finish`, body, { headers });
|
|
44
|
+
return response.data;
|
|
45
|
+
}
|
|
36
46
|
export async function deletePlan(apiUrl, projectId, headers, id) {
|
|
37
47
|
const baseUrl = `${apiUrl}/api/projects/${projectId}/plans`;
|
|
38
48
|
const response = await axios.delete(`${baseUrl}/${id}`, {
|
|
@@ -40,4 +50,14 @@ export async function deletePlan(apiUrl, projectId, headers, id) {
|
|
|
40
50
|
});
|
|
41
51
|
return response.data;
|
|
42
52
|
}
|
|
53
|
+
export async function getPlanStatus(apiUrl, projectId, headers, id) {
|
|
54
|
+
const baseUrl = `${apiUrl}/api/projects/${projectId}/plans`;
|
|
55
|
+
const response = await axios.get(`${baseUrl}/${id}/status`, { headers });
|
|
56
|
+
return response.data;
|
|
57
|
+
}
|
|
58
|
+
export async function patchPlanStatus(apiUrl, projectId, headers, id, status) {
|
|
59
|
+
const baseUrl = `${apiUrl}/api/projects/${projectId}/plans`;
|
|
60
|
+
const response = await axios.patch(`${baseUrl}/${id}/status`, { status }, { headers });
|
|
61
|
+
return response.data;
|
|
62
|
+
}
|
|
43
63
|
//# sourceMappingURL=plan.js.map
|
package/dist/api/plan.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan.js","sourceRoot":"","sources":["../../src/api/plan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,MAAM,CAAC,KAAK,UAAU,SAAS,CAC7B,MAAc,EACd,SAAiB,EACjB,OAAY,EACZ,MAAwC;IAExC,MAAM,OAAO,GAAG,GAAG,MAAM,iBAAiB,SAAS,QAAQ,CAAC;IAC5D,MAAM,aAAa,GAAG,MAAM,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,GAAG,CAAC;QAC5D,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE;QACrB,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC;IAEhB,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;IACzD,OAAO,QAAQ,CAAC,IAAI,CAAC;AACvB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,MAAc,EACd,SAAiB,EACjB,OAAY,EACZ,EAAU;IAEV,MAAM,OAAO,GAAG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