@rlarua/agentteams-cli 0.0.6 → 0.0.8

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
@@ -25,16 +25,19 @@ agentteams init
25
25
  This command:
26
26
  - Opens your browser for OAuth authentication
27
27
  - Creates `.agentteams/config.json` with credentials
28
- - Downloads project conventions to `.agentteams/convention.md`
28
+ - Downloads convention index to `.agentteams/convention.md`
29
+ - Runs sync to download category conventions into `.agentteams/<category>/*.md`
29
30
  - Detects your AI environment (Claude Code, opencode, codex)
30
31
 
32
+ You can run `agentteams sync` later to refresh them again.
33
+
31
34
  **What gets created:**
32
35
 
33
36
  ```
34
37
  your-project/
35
38
  ├── .agentteams/
36
39
  │ ├── config.json # API credentials
37
- │ └── convention.md # Project conventions
40
+ │ └── convention.md # Convention index template
38
41
  ```
39
42
 
40
43
  ### 2. Add to .gitignore
@@ -51,11 +54,14 @@ Protect your API keys by adding this to `.gitignore`:
51
54
  After initialization, conventions are available to your AI agent. The CLI provides setup instructions based on your environment.
52
55
 
53
56
  ```bash
54
- # View conventions
57
+ # List conventions
58
+ agentteams convention list
59
+
60
+ # Show full conventions
55
61
  agentteams convention show
56
62
 
57
- # Update from server
58
- agentteams convention update
63
+ # Download all conventions from server
64
+ agentteams convention download
59
65
  ```
60
66
 
61
67
  ## Commands
@@ -75,16 +81,31 @@ Opens browser for authentication, saves config, and downloads conventions. For S
75
81
  Manage project conventions.
76
82
 
77
83
  ```bash
78
- # Show current conventions
84
+ # List conventions
85
+ agentteams convention list
86
+
87
+ # Show all convention markdown in terminal
79
88
  agentteams convention show
80
89
 
81
- # Update from server
82
- agentteams convention update
90
+ # Download all conventions and save dev files
91
+ agentteams convention download
92
+ ```
93
+
94
+ `convention download` saves files by category directory (for example: `.agentteams/rules/<name>.md`).
95
+ If duplicate names exist in the same category, numeric suffixes are added (for example: `rules.md`, `rules-2.md`).
96
+ Before saving, the CLI cleans up existing files in each target category directory.
83
97
 
84
- # Append reference to CLAUDE.md (Claude Code)
85
- agentteams convention append
98
+ ### `sync`
99
+
100
+ Sync local convention files from API.
101
+
102
+ ```bash
103
+ # Download conventions by category into .agentteams/<category>/*.md
104
+ agentteams sync
86
105
  ```
87
106
 
107
+ `sync` also refreshes `.agentteams/convention.md` template.
108
+
88
109
  ### `agent-config`
89
110
 
90
111
  Manage agent configurations.
@@ -108,9 +129,11 @@ Manage agent status reports.
108
129
  ```bash
109
130
  # Report status
110
131
  agentteams status report \
111
- --agent-name "my-agent" \
132
+ --agent "my-agent" \
112
133
  --status "IN_PROGRESS" \
113
- --project-id 1
134
+ --task "작업 중" \
135
+ --issues "" \
136
+ --remaining "next step"
114
137
 
115
138
  # List statuses
116
139
  agentteams status list
@@ -119,74 +142,90 @@ agentteams status list
119
142
  agentteams status get --id <status-id>
120
143
 
121
144
  # Update status
122
- agentteams status update --id <status-id> --status "COMPLETED"
145
+ agentteams status update --id <status-id> --status "DONE"
123
146
 
124
147
  # Delete status
125
148
  agentteams status delete --id <status-id>
126
149
  ```
127
150
 
128
- **Status values:** `IDLE`, `IN_PROGRESS`, `COMPLETED`, `ERROR`
151
+ **Status values:** `IN_PROGRESS`, `DONE`, `BLOCKED`
152
+
153
+ `--issues`, `--remaining` are comma-separated strings.
154
+ Examples:
155
+ - `--issues "api timeout,auth failure"`
156
+ - `--remaining "add tests,write docs"`
157
+ - empty list: `--issues ""`
129
158
 
130
- ### `task`
159
+ ### `plan`
131
160
 
132
- Manage tasks.
161
+ Manage plans.
133
162
 
134
163
  ```bash
135
- # List tasks
136
- agentteams task list
164
+ # List plans
165
+ agentteams plan list
137
166
 
138
- # Get task
139
- agentteams task get --id 1
167
+ # Get plan
168
+ agentteams plan get --id 1
140
169
 
141
- # Create task
142
- agentteams task create \
170
+ # Create plan
171
+ agentteams plan create \
143
172
  --title "Implement feature X" \
144
173
  --description "Details here" \
145
174
  --status "PENDING" \
146
- --priority "HIGH" \
147
- --plan-id 1
175
+ --priority "HIGH"
148
176
 
149
- # Update task
150
- agentteams task update --id 1 --status "IN_PROGRESS"
177
+ # Update plan
178
+ agentteams plan update --id 1 --status "IN_PROGRESS"
151
179
 
152
- # Assign task
153
- agentteams task assign --id 1 --agent "agent-name"
180
+ # Assign plan
181
+ agentteams plan assign --id 1 --agent "agent-name"
154
182
 
155
- # Delete task
156
- agentteams task delete --id 1
183
+ # Delete plan
184
+ agentteams plan delete --id 1
157
185
  ```
158
186
 
159
- **Task statuses:** `PENDING`, `IN_PROGRESS`, `DONE`, `CANCELLED`
187
+ **Plan statuses:** `PENDING`, `IN_PROGRESS`, `DONE`, `CANCELLED`
160
188
  **Priorities:** `LOW`, `MEDIUM`, `HIGH`
161
189
 
162
190
  ### `comment`
163
191
 
164
- Manage task comments.
192
+ Manage plan comments.
165
193
 
166
194
  ```bash
167
195
  agentteams comment create \
168
- --task-id 1 \
169
- --content "Great work!" \
170
- --author-id 1
196
+ --plan-id <plan-id> \
197
+ --type GENERAL \
198
+ --content "Great work!"
199
+
200
+ # Types: RISK, MODIFICATION, GENERAL
171
201
  ```
172
202
 
173
- ### `report`
203
+ ### `dependency`
174
204
 
175
- Create completion reports.
205
+ Manage plan dependencies.
176
206
 
177
207
  ```bash
178
- # Basic report
179
- agentteams report create \
180
- --task-id 1 \
181
- --summary "Task completed successfully" \
182
- --agent-id 1
208
+ # List dependencies for a plan
209
+ agentteams dependency list --plan-id <plan-id>
210
+
211
+ # Add dependency
212
+ agentteams dependency create --plan-id <plan-id> --blocking-plan-id <blocking-plan-id>
213
+
214
+ # Delete dependency
215
+ agentteams dependency delete --plan-id <plan-id> --dep-id <dependency-id>
216
+ ```
217
+
218
+ ### `report`
183
219
 
184
- # Report with details
220
+ Create completion reports (stored as Markdown).
221
+
222
+ ```bash
223
+ # Create from inline markdown
185
224
  agentteams report create \
186
- --task-id 1 \
187
- --summary "Feature implemented" \
188
- --agent-id 1 \
189
- --details '{"hours": 2, "files_changed": 5}'
225
+ --title "AgentBoard MVP 구현" \
226
+ --content "## TL;DR\n- done" \
227
+ --report-type IMPL_PLAN \
228
+ --status COMPLETED
190
229
  ```
191
230
 
192
231
  ### `config`
@@ -241,10 +280,10 @@ All commands support `--format` option:
241
280
 
242
281
  ```bash
243
282
  # JSON (default, machine-readable)
244
- agentteams task list --format json
283
+ agentteams plan list --format json
245
284
 
246
285
  # Text (human-friendly tables)
247
- agentteams task list --format text
286
+ agentteams plan list --format text
248
287
  ```
249
288
 
250
289
  ## Error Handling
@@ -1,4 +1,10 @@
1
- export declare function conventionShow(): Promise<string>;
2
- export declare function conventionAppend(): Promise<string>;
3
- export declare function conventionUpdate(): Promise<string>;
1
+ import type { Config } from "../types/index.js";
2
+ type ConventionCommandOptions = {
3
+ cwd?: string;
4
+ config?: Config;
5
+ };
6
+ export declare function conventionShow(): Promise<any>;
7
+ export declare function conventionList(): Promise<any>;
8
+ export declare function conventionDownload(options?: ConventionCommandOptions): Promise<string>;
9
+ export {};
4
10
  //# sourceMappingURL=convention.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"convention.d.ts","sourceRoot":"","sources":["../../src/commands/convention.ts"],"names":[],"mappings":"AAgCA,wBAAsB,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,CAgBtD;AAED,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC,CAmDxD;AAED,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC,CAoDxD"}
1
+ {"version":3,"file":"convention.d.ts","sourceRoot":"","sources":["../../src/commands/convention.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAMhD,KAAK,wBAAwB,GAAG;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AA+BF,wBAAsB,cAAc,IAAI,OAAO,CAAC,GAAG,CAAC,CA2BnD;AAED,wBAAsB,cAAc,IAAI,OAAO,CAAC,GAAG,CAAC,CAwBnD;AA4DD,wBAAsB,kBAAkB,CAAC,OAAO,CAAC,EAAE,wBAAwB,GAAG,OAAO,CAAC,MAAM,CAAC,CA6E5F"}
@@ -1,106 +1,154 @@
1
- import { existsSync, readFileSync, writeFileSync, copyFileSync } from "node:fs";
1
+ import { existsSync, mkdirSync, rmSync, writeFileSync } from "node:fs";
2
2
  import { join, resolve } from "node:path";
3
- import { createInterface } from "node:readline";
4
3
  import axios from "axios";
5
4
  import { loadConfig, findProjectConfig } from "../utils/config.js";
6
5
  const CONVENTION_DIR = ".agentteams";
7
- const CONVENTION_FILE = "reporting.md";
8
- const CLAUDE_MD = "CLAUDE.md";
9
- const CLAUDE_MD_BACKUP = "CLAUDE.md.backup";
10
- function findProjectRoot() {
11
- const configPath = findProjectConfig(process.cwd());
6
+ const LEGACY_CONVENTION_DOWNLOAD_DIR = "conventions";
7
+ const CONVENTION_INDEX_FILE = "convention.md";
8
+ function findProjectRoot(cwd) {
9
+ const configPath = findProjectConfig(cwd ?? process.cwd());
12
10
  if (!configPath)
13
11
  return null;
14
12
  // configPath = /path/.agentteams/config.json → resolve up 2 levels to project root
15
13
  return resolve(configPath, "..", "..");
16
14
  }
17
- function confirm(message) {
18
- const rl = createInterface({
19
- input: process.stdin,
20
- output: process.stdout,
21
- });
22
- return new Promise((resolve) => {
23
- rl.question(`${message} (y/N): `, (answer) => {
24
- rl.close();
25
- resolve(answer.trim().toLowerCase() === "y");
26
- });
27
- });
15
+ function getApiBaseUrl(apiUrl) {
16
+ return apiUrl.endsWith("/") ? apiUrl.slice(0, -1) : apiUrl;
17
+ }
18
+ function getApiConfigOrThrow(options) {
19
+ const config = options?.config ?? loadConfig();
20
+ if (!config) {
21
+ throw new Error("Configuration not found. Run 'agentteams init' first or set AGENTTEAMS_* environment variables.");
22
+ }
23
+ return {
24
+ config,
25
+ apiUrl: getApiBaseUrl(config.apiUrl),
26
+ headers: {
27
+ "X-API-Key": config.apiKey,
28
+ "Content-Type": "application/json",
29
+ },
30
+ };
28
31
  }
29
32
  export async function conventionShow() {
30
- const projectRoot = findProjectRoot();
31
- if (!projectRoot) {
32
- throw new Error("No .agentteams directory found. Run 'agentteams init' first.");
33
+ const { config, apiUrl, headers } = getApiConfigOrThrow();
34
+ const listResponse = await axios.get(`${apiUrl}/api/projects/${config.projectId}/conventions`, { headers });
35
+ const conventions = listResponse.data?.data;
36
+ if (!conventions || conventions.length === 0) {
37
+ throw new Error("No conventions found for this project. Create one via the web dashboard first.");
33
38
  }
34
- const conventionPath = join(projectRoot, CONVENTION_DIR, CONVENTION_FILE);
35
- if (!existsSync(conventionPath)) {
36
- throw new Error(`Convention file not found: ${conventionPath}\nRun 'agentteams convention update' to download it.`);
39
+ const sections = [];
40
+ for (const convention of conventions) {
41
+ const downloadResponse = await axios.get(`${apiUrl}/api/projects/${config.projectId}/conventions/${convention.id}/download`, { headers, responseType: "text" });
42
+ const sectionHeader = `# ${convention.title ?? "untitled"}\ncategory: ${convention.category ?? "uncategorized"}\nid: ${convention.id}`;
43
+ sections.push(`${sectionHeader}\n\n${downloadResponse.data}`);
37
44
  }
38
- return readFileSync(conventionPath, "utf-8");
45
+ return sections.join("\n\n---\n\n");
39
46
  }
40
- export async function conventionAppend() {
41
- const projectRoot = findProjectRoot();
42
- if (!projectRoot) {
43
- throw new Error("No .agentteams directory found. Run 'agentteams init' first.");
44
- }
45
- const conventionPath = join(projectRoot, CONVENTION_DIR, CONVENTION_FILE);
46
- if (!existsSync(conventionPath)) {
47
- throw new Error(`Convention file not found: ${conventionPath}\nRun 'agentteams convention update' first.`);
47
+ export async function conventionList() {
48
+ const { config, apiUrl, headers } = getApiConfigOrThrow();
49
+ const response = await axios.get(`${apiUrl}/api/projects/${config.projectId}/conventions`, { headers });
50
+ const conventions = response.data?.data;
51
+ if (!Array.isArray(conventions)) {
52
+ return response.data;
48
53
  }
49
- const claudeMdPath = join(projectRoot, CLAUDE_MD);
50
- const backupPath = join(projectRoot, CLAUDE_MD_BACKUP);
51
- const conventionRef = `\n\n<!-- AgentTeams Convention -->\nSee .agentteams/reporting.md for project conventions.\n`;
52
- if (existsSync(claudeMdPath)) {
53
- const existingContent = readFileSync(claudeMdPath, "utf-8");
54
- if (existingContent.includes("<!-- AgentTeams Convention -->")) {
55
- return "Convention reference already exists in CLAUDE.md. No changes made.";
56
- }
54
+ return {
55
+ data: conventions.map((item) => ({
56
+ id: item.id,
57
+ title: item.title,
58
+ category: item.category,
59
+ fileName: item.fileName,
60
+ updatedAt: item.updatedAt,
61
+ createdAt: item.createdAt,
62
+ })),
63
+ meta: response.data?.meta,
64
+ };
65
+ }
66
+ function toSafeFileName(input) {
67
+ return input
68
+ .toLowerCase()
69
+ .replace(/[^a-z0-9]+/g, "-")
70
+ .replace(/^-+|-+$/g, "")
71
+ .slice(0, 60);
72
+ }
73
+ function toSafeDirectoryName(input) {
74
+ const normalized = toSafeFileName(input);
75
+ return normalized.length > 0 ? normalized : "uncategorized";
76
+ }
77
+ function buildConventionFileName(convention) {
78
+ if (convention.fileName && convention.fileName.trim().length > 0) {
79
+ return convention.fileName.trim();
57
80
  }
58
- const confirmed = await confirm(`This will modify ${CLAUDE_MD} and create a backup at ${CLAUDE_MD_BACKUP}. Continue?`);
59
- if (!confirmed) {
60
- return "Operation cancelled by user.";
81
+ const titleSegment = convention.title ? toSafeFileName(convention.title) : "";
82
+ const prefix = titleSegment.length > 0 ? titleSegment : "convention";
83
+ return `${prefix}.md`;
84
+ }
85
+ async function downloadReportingTemplate(projectRoot, config, apiUrl, headers) {
86
+ const agentConfigResponse = await axios.get(`${apiUrl}/api/projects/${config.projectId}/agent-configs`, { headers });
87
+ const agentConfigs = agentConfigResponse.data?.data;
88
+ if (!Array.isArray(agentConfigs) || agentConfigs.length === 0) {
89
+ return false;
61
90
  }
62
- if (existsSync(claudeMdPath)) {
63
- copyFileSync(claudeMdPath, backupPath);
64
- const content = readFileSync(claudeMdPath, "utf-8");
65
- writeFileSync(claudeMdPath, content + conventionRef, "utf-8");
91
+ const firstAgentConfig = agentConfigs[0];
92
+ if (!firstAgentConfig?.id || typeof firstAgentConfig.id !== "string") {
93
+ return false;
66
94
  }
67
- else {
68
- writeFileSync(claudeMdPath, `# Project Conventions${conventionRef}`, "utf-8");
95
+ const templateResponse = await axios.get(`${apiUrl}/api/projects/${config.projectId}/agent-configs/${firstAgentConfig.id}/convention`, { headers });
96
+ const content = templateResponse.data?.data?.content;
97
+ if (typeof content !== "string") {
98
+ return false;
69
99
  }
70
- const backupMsg = existsSync(backupPath)
71
- ? `Backup created: ${CLAUDE_MD_BACKUP}`
72
- : "New CLAUDE.md created (no previous file to backup).";
73
- return `Convention reference appended to ${CLAUDE_MD}.\n${backupMsg}`;
100
+ const conventionPath = join(projectRoot, CONVENTION_DIR, CONVENTION_INDEX_FILE);
101
+ writeFileSync(conventionPath, content, "utf-8");
102
+ return true;
74
103
  }
75
- export async function conventionUpdate() {
76
- const config = loadConfig();
77
- if (!config) {
78
- throw new Error("Configuration not found. Run 'agentteams init' first or set environment variables.");
79
- }
80
- const projectRoot = findProjectRoot();
104
+ export async function conventionDownload(options) {
105
+ const { config, apiUrl, headers } = getApiConfigOrThrow(options);
106
+ const projectRoot = findProjectRoot(options?.cwd);
81
107
  if (!projectRoot) {
82
108
  throw new Error("No .agentteams directory found. Run 'agentteams init' first.");
83
109
  }
84
- const apiUrl = config.apiUrl.endsWith("/")
85
- ? config.apiUrl.slice(0, -1)
86
- : config.apiUrl;
87
- const headers = {
88
- "X-API-Key": config.apiKey,
89
- "Content-Type": "application/json",
90
- };
110
+ const conventionRoot = join(projectRoot, CONVENTION_DIR);
111
+ if (!existsSync(conventionRoot)) {
112
+ throw new Error(`Convention directory not found: ${conventionRoot}\nRun 'agentteams init' first.`);
113
+ }
114
+ const hasReportingTemplate = await downloadReportingTemplate(projectRoot, config, apiUrl, headers);
91
115
  const listResponse = await axios.get(`${apiUrl}/api/projects/${config.projectId}/conventions`, { headers });
92
116
  const conventions = listResponse.data?.data;
93
117
  if (!conventions || conventions.length === 0) {
118
+ if (hasReportingTemplate) {
119
+ return `Convention sync completed.\nUpdated ${CONVENTION_DIR}/${CONVENTION_INDEX_FILE}\nNo project conventions found.`;
120
+ }
94
121
  throw new Error("No conventions found for this project. Create one via the web dashboard first.");
95
122
  }
96
- const markdownParts = [];
123
+ const legacyDir = join(projectRoot, CONVENTION_DIR, LEGACY_CONVENTION_DOWNLOAD_DIR);
124
+ rmSync(legacyDir, { recursive: true, force: true });
125
+ const categoryDirs = new Set();
126
+ for (const convention of conventions) {
127
+ const categoryName = typeof convention.category === "string" ? convention.category : "";
128
+ categoryDirs.add(toSafeDirectoryName(categoryName));
129
+ }
130
+ for (const categoryDir of categoryDirs) {
131
+ rmSync(join(projectRoot, CONVENTION_DIR, categoryDir), { recursive: true, force: true });
132
+ mkdirSync(join(projectRoot, CONVENTION_DIR, categoryDir), { recursive: true });
133
+ }
134
+ const fileNameCount = new Map();
97
135
  for (const convention of conventions) {
98
136
  const downloadResponse = await axios.get(`${apiUrl}/api/projects/${config.projectId}/conventions/${convention.id}/download`, { headers, responseType: "text" });
99
- markdownParts.push(downloadResponse.data);
137
+ const baseFileName = buildConventionFileName(convention);
138
+ const categoryName = typeof convention.category === "string" ? convention.category : "";
139
+ const categoryDir = toSafeDirectoryName(categoryName);
140
+ const duplicateKey = `${categoryDir}/${baseFileName}`;
141
+ const seenCount = fileNameCount.get(duplicateKey) ?? 0;
142
+ fileNameCount.set(duplicateKey, seenCount + 1);
143
+ const fileName = seenCount === 0
144
+ ? baseFileName
145
+ : baseFileName.replace(/\.md$/, `-${seenCount + 1}.md`);
146
+ const filePath = join(projectRoot, CONVENTION_DIR, categoryDir, fileName);
147
+ writeFileSync(filePath, downloadResponse.data, "utf-8");
100
148
  }
101
- const fullMarkdown = markdownParts.join("\n\n---\n\n");
102
- const conventionPath = join(projectRoot, CONVENTION_DIR, CONVENTION_FILE);
103
- writeFileSync(conventionPath, fullMarkdown, "utf-8");
104
- return `Convention updated successfully.\nDownloaded ${conventions.length} convention(s) to ${CONVENTION_DIR}/${CONVENTION_FILE}`;
149
+ const reportingLine = hasReportingTemplate
150
+ ? `Updated ${CONVENTION_DIR}/${CONVENTION_INDEX_FILE}\n`
151
+ : "";
152
+ return `Convention sync completed.\n${reportingLine}Downloaded ${conventions.length} file(s) into category directories under ${CONVENTION_DIR}`;
105
153
  }
106
154
  //# sourceMappingURL=convention.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"convention.js","sourceRoot":"","sources":["../../src/commands/convention.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEnE,MAAM,cAAc,GAAG,aAAa,CAAC;AACrC,MAAM,eAAe,GAAG,cAAc,CAAC;AACvC,MAAM,SAAS,GAAG,WAAW,CAAC;AAC9B,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;AAE5C,SAAS,eAAe;IACtB,MAAM,UAAU,GAAG,iBAAiB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IACpD,IAAI,CAAC,UAAU;QAAE,OAAO,IAAI,CAAC;IAC7B,mFAAmF;IACnF,OAAO,OAAO,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACzC,CAAC;AAED,SAAS,OAAO,CAAC,OAAe;IAC9B,MAAM,EAAE,GAAG,eAAe,CAAC;QACzB,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,MAAM,EAAE,OAAO,CAAC,MAAM;KACvB,CAAC,CAAC;IAEH,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC7B,EAAE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AAO,UAAU,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;QACxF,MAAM,WAAW,GAAG,mBAAmB,CAAC,YAAY,CAAC,CAAC;QACtD,MAAM,YAAY,GAAG,GAAG,WAAW,IAAI,YAAY,EAAE,CAAC;QAEtD,MAAM,SAAS,GAAG,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QACvD,aAAa,CAAC,GAAG,CAAC,YAAY,EAAE,SAAS,GAAG,CAAC,CAAC,CAAC;QAE/C,MAAM,QAAQ,GAAG,SAAS,KAAK,CAAC;YAC9B,CAAC,CAAC,YAAY;YACd,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,SAAS,GAAG,CAAC,KAAK,CAAC,CAAC;QAC1D,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;QAC1E,aAAa,CAAC,QAAQ,EAAE,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED,MAAM,aAAa,GAAG,oBAAoB;QACxC,CAAC,CAAC,WAAW,cAAc,IAAI,qBAAqB,IAAI;QACxD,CAAC,CAAC,EAAE,CAAC;IAEP,OAAO,+BAA+B,aAAa,cAAc,WAAW,CAAC,MAAM,4CAA4C,cAAc,EAAE,CAAC;AAClJ,CAAC"}
@@ -1,4 +1,4 @@
1
- export declare function dependencyList(taskId: string): Promise<any>;
2
- export declare function dependencyCreate(taskId: string, dependsOnId: string): Promise<any>;
3
- export declare function dependencyDelete(taskId: string, depId: string): Promise<any>;
1
+ export declare function dependencyList(planId: string): Promise<any>;
2
+ export declare function dependencyCreate(planId: string, blockingPlanId: string): Promise<any>;
3
+ export declare function dependencyDelete(planId: string, depId: string): Promise<any>;
4
4
  //# sourceMappingURL=dependency.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dependency.d.ts","sourceRoot":"","sources":["../../src/commands/dependency.ts"],"names":[],"mappings":"AAoBA,wBAAsB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAOjE;AAED,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,GAAG,CAAC,CAQd;AAED,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,GAAG,CAAC,CAUd"}
1
+ {"version":3,"file":"dependency.d.ts","sourceRoot":"","sources":["../../src/commands/dependency.ts"],"names":[],"mappings":"AAwBA,wBAAsB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAQjE;AAED,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,GAAG,CAAC,CASd;AAED,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,GAAG,CAAC,CAWd"}
@@ -13,21 +13,27 @@ function getHeaders(apiKey) {
13
13
  'Content-Type': 'application/json',
14
14
  };
15
15
  }
16
- export async function dependencyList(taskId) {
16
+ function getApiBaseUrl(apiUrl) {
17
+ return apiUrl.endsWith('/') ? apiUrl.slice(0, -1) : apiUrl;
18
+ }
19
+ export async function dependencyList(planId) {
17
20
  const config = getConfigOrThrow();
18
- const response = await axios.get(`${config.apiUrl}/api/tasks/${taskId}/dependencies`, { headers: getHeaders(config.apiKey) });
21
+ const apiBaseUrl = getApiBaseUrl(config.apiUrl);
22
+ const response = await axios.get(`${apiBaseUrl}/api/projects/${config.projectId}/plans/${planId}/dependencies`, { headers: getHeaders(config.apiKey) });
19
23
  return response.data;
20
24
  }
21
- export async function dependencyCreate(taskId, dependsOnId) {
25
+ export async function dependencyCreate(planId, blockingPlanId) {
22
26
  const config = getConfigOrThrow();
23
- const response = await axios.post(`${config.apiUrl}/api/tasks/${taskId}/dependencies`, { dependsOnId: Number(dependsOnId) }, { headers: getHeaders(config.apiKey) });
27
+ const apiBaseUrl = getApiBaseUrl(config.apiUrl);
28
+ const response = await axios.post(`${apiBaseUrl}/api/projects/${config.projectId}/plans/${planId}/dependencies`, { blockingPlanId }, { headers: getHeaders(config.apiKey) });
24
29
  return response.data;
25
30
  }
26
- export async function dependencyDelete(taskId, depId) {
31
+ export async function dependencyDelete(planId, depId) {
27
32
  const config = getConfigOrThrow();
28
- const response = await axios.delete(`${config.apiUrl}/api/tasks/${taskId}/dependencies/${depId}`, { headers: getHeaders(config.apiKey) });
33
+ const apiBaseUrl = getApiBaseUrl(config.apiUrl);
34
+ const response = await axios.delete(`${apiBaseUrl}/api/projects/${config.projectId}/plans/${planId}/dependencies/${depId}`, { headers: getHeaders(config.apiKey) });
29
35
  if (response.status === 204) {
30
- return { message: `Dependency ${depId} deleted from task ${taskId}.` };
36
+ return { message: `Dependency ${depId} deleted from plan ${planId}.` };
31
37
  }
32
38
  return response.data;
33
39
  }
@@ -1 +1 @@
1
- {"version":3,"file":"dependency.js","sourceRoot":"","sources":["../../src/commands/dependency.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,SAAS,gBAAgB;IACvB,MAAM,MAAM,GAAG,UAAU,EAAE,CAAC;IAC5B,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CACb,iGAAiG,CAClG,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,UAAU,CAAC,MAAc;IAChC,OAAO;QACL,WAAW,EAAE,MAAM;QACnB,cAAc,EAAE,kBAAkB;KACnC,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,cAAc,C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iB,MAAM,CAAC,SAAS,UAAU,MAAM,eAAe,EAC7E,EAAE,cAAc,EAAE,EAClB,EAAE,OAAO,EAAE,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CACvC,CAAC;IACF,OAAO,QAAQ,CAAC,IAAI,CAAC;AACvB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,MAAc,EACd,KAAa;IAEb,MAAM,MAAM,GAAG,gBAAgB,EAAE,CAAC;IAClC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAChD,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,MAAM,CACjC,GAAG,UAAU,iBAAiB,MAAM,CAAC,SAAS,UAAU,MAAM,iBAAiB,KAAK,EAAE,EACtF,EAAE,OAAO,EAAE,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CACvC,CAAC;IACF,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;QAC5B,OAAO,EAAE,OAAO,EAAE,cAAc,KAAK,sBAAsB,MAAM,GAAG,EAAE,CAAC;IACzE,CAAC;IACD,OAAO,QAAQ,CAAC,IAAI,CAAC;AACvB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAOA,wBAAsB,cAAc,CAClC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,GAAG,GACX,OAAO,CAAC,GAAG,CAAC,CAwCd"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAWA,wBAAsB,cAAc,CAClC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,GAAG,GACX,OAAO,CAAC,GAAG,CAAC,CA+Ed"}