@rlarua/agentteams-cli 0.0.1 → 0.0.3
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 +44 -186
- package/dist/utils/authServer.d.ts.map +1 -1
- package/dist/utils/authServer.js +34 -15
- package/dist/utils/authServer.js.map +1 -1
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
# @rlarua/agentteams-cli
|
|
2
2
|
|
|
3
|
-
Command-line interface for
|
|
3
|
+
Command-line interface for managing AI agent teams. Configure agents, sync conventions, track tasks, and report status from your terminal.
|
|
4
4
|
|
|
5
|
-
##
|
|
6
|
-
|
|
7
|
-
### 1. Install
|
|
5
|
+
## Installation
|
|
8
6
|
|
|
9
7
|
```bash
|
|
10
8
|
npm install -g @rlarua/agentteams-cli
|
|
11
9
|
```
|
|
12
10
|
|
|
13
|
-
Or use
|
|
11
|
+
Or use with npx:
|
|
14
12
|
|
|
15
13
|
```bash
|
|
16
14
|
npx @rlarua/agentteams-cli init
|
|
17
15
|
```
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
## Quick Start
|
|
20
18
|
|
|
21
|
-
|
|
19
|
+
### 1. Initialize
|
|
22
20
|
|
|
23
21
|
```bash
|
|
24
22
|
agentteams init
|
|
@@ -26,20 +24,22 @@ agentteams init
|
|
|
26
24
|
|
|
27
25
|
This command:
|
|
28
26
|
- Opens your browser for OAuth authentication
|
|
29
|
-
- Creates `.agentteams/config.json` with
|
|
27
|
+
- Creates `.agentteams/config.json` with credentials
|
|
30
28
|
- Downloads project conventions to `.agentteams/convention.md`
|
|
31
|
-
-
|
|
29
|
+
- Detects your AI environment (Claude Code, opencode, codex)
|
|
32
30
|
|
|
33
31
|
**What gets created:**
|
|
34
32
|
|
|
35
33
|
```
|
|
36
34
|
your-project/
|
|
37
35
|
├── .agentteams/
|
|
38
|
-
│ ├── config.json # API credentials
|
|
36
|
+
│ ├── config.json # API credentials
|
|
39
37
|
│ └── convention.md # Project conventions
|
|
40
38
|
```
|
|
41
39
|
|
|
42
|
-
|
|
40
|
+
### 2. Add to .gitignore
|
|
41
|
+
|
|
42
|
+
Protect your API keys by adding this to `.gitignore`:
|
|
43
43
|
|
|
44
44
|
```gitignore
|
|
45
45
|
# AgentTeams CLI config (contains API keys)
|
|
@@ -48,18 +48,13 @@ your-project/
|
|
|
48
48
|
|
|
49
49
|
### 3. Use conventions
|
|
50
50
|
|
|
51
|
-
After initialization, conventions are
|
|
52
|
-
|
|
53
|
-
**Manual setup (if needed):**
|
|
51
|
+
After initialization, conventions are available to your AI agent. The CLI provides setup instructions based on your environment.
|
|
54
52
|
|
|
55
53
|
```bash
|
|
56
|
-
# View
|
|
54
|
+
# View conventions
|
|
57
55
|
agentteams convention show
|
|
58
56
|
|
|
59
|
-
#
|
|
60
|
-
agentteams convention append
|
|
61
|
-
|
|
62
|
-
# Update conventions from server
|
|
57
|
+
# Update from server
|
|
63
58
|
agentteams convention update
|
|
64
59
|
```
|
|
65
60
|
|
|
@@ -67,20 +62,13 @@ agentteams convention update
|
|
|
67
62
|
|
|
68
63
|
### `init`
|
|
69
64
|
|
|
70
|
-
Initialize
|
|
65
|
+
Initialize with OAuth authentication.
|
|
71
66
|
|
|
72
67
|
```bash
|
|
73
68
|
agentteams init
|
|
74
69
|
```
|
|
75
70
|
|
|
76
|
-
|
|
77
|
-
1. Starts local OAuth server
|
|
78
|
-
2. Opens browser for authentication
|
|
79
|
-
3. Saves config to `.agentteams/config.json`
|
|
80
|
-
4. Downloads conventions to `.agentteams/convention.md`
|
|
81
|
-
|
|
82
|
-
**SSH/Remote environments:**
|
|
83
|
-
If browser can't open automatically, copy the displayed URL and open it manually.
|
|
71
|
+
Opens browser for authentication, saves config, and downloads conventions. For SSH/remote environments, manually copy the displayed URL if the browser doesn't open automatically.
|
|
84
72
|
|
|
85
73
|
### `convention`
|
|
86
74
|
|
|
@@ -90,40 +78,26 @@ Manage project conventions.
|
|
|
90
78
|
# Show current conventions
|
|
91
79
|
agentteams convention show
|
|
92
80
|
|
|
93
|
-
#
|
|
94
|
-
agentteams convention append
|
|
95
|
-
|
|
96
|
-
# Update conventions from server
|
|
81
|
+
# Update from server
|
|
97
82
|
agentteams convention update
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
**`convention show`**
|
|
101
|
-
- Displays content of `.agentteams/convention.md`
|
|
102
|
-
- Requires prior `init` or `convention update`
|
|
103
83
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
- Prompts for confirmation before modifying
|
|
108
|
-
|
|
109
|
-
**`convention update`**
|
|
110
|
-
- Downloads latest conventions from server
|
|
111
|
-
- Overwrites `.agentteams/convention.md`
|
|
112
|
-
- Merges all project conventions into single file
|
|
84
|
+
# Append reference to CLAUDE.md (Claude Code)
|
|
85
|
+
agentteams convention append
|
|
86
|
+
```
|
|
113
87
|
|
|
114
88
|
### `agent-config`
|
|
115
89
|
|
|
116
90
|
Manage agent configurations.
|
|
117
91
|
|
|
118
92
|
```bash
|
|
119
|
-
# List all
|
|
93
|
+
# List all configs
|
|
120
94
|
agentteams agent-config list
|
|
121
95
|
agentteams agent-config list --format text
|
|
122
96
|
|
|
123
|
-
# Get specific
|
|
97
|
+
# Get specific config
|
|
124
98
|
agentteams agent-config get --id <config-id>
|
|
125
99
|
|
|
126
|
-
# Delete
|
|
100
|
+
# Delete config
|
|
127
101
|
agentteams agent-config delete --id <config-id>
|
|
128
102
|
```
|
|
129
103
|
|
|
@@ -132,15 +106,14 @@ agentteams agent-config delete --id <config-id>
|
|
|
132
106
|
Manage agent status reports.
|
|
133
107
|
|
|
134
108
|
```bash
|
|
135
|
-
# Report
|
|
109
|
+
# Report status
|
|
136
110
|
agentteams status report \
|
|
137
111
|
--agent-name "my-agent" \
|
|
138
112
|
--status "IN_PROGRESS" \
|
|
139
113
|
--project-id 1
|
|
140
114
|
|
|
141
|
-
# List
|
|
115
|
+
# List statuses
|
|
142
116
|
agentteams status list
|
|
143
|
-
agentteams status list --format text
|
|
144
117
|
|
|
145
118
|
# Get specific status
|
|
146
119
|
agentteams status get --id <status-id>
|
|
@@ -159,11 +132,10 @@ agentteams status delete --id <status-id>
|
|
|
159
132
|
Manage tasks.
|
|
160
133
|
|
|
161
134
|
```bash
|
|
162
|
-
# List
|
|
135
|
+
# List tasks
|
|
163
136
|
agentteams task list
|
|
164
|
-
agentteams task list --format text
|
|
165
137
|
|
|
166
|
-
# Get task
|
|
138
|
+
# Get task
|
|
167
139
|
agentteams task get --id 1
|
|
168
140
|
|
|
169
141
|
# Create task
|
|
@@ -175,11 +147,9 @@ agentteams task create \
|
|
|
175
147
|
--plan-id 1
|
|
176
148
|
|
|
177
149
|
# Update task
|
|
178
|
-
agentteams task update
|
|
179
|
-
--id 1 \
|
|
180
|
-
--status "IN_PROGRESS"
|
|
150
|
+
agentteams task update --id 1 --status "IN_PROGRESS"
|
|
181
151
|
|
|
182
|
-
# Assign task
|
|
152
|
+
# Assign task
|
|
183
153
|
agentteams task assign --id 1 --agent "agent-name"
|
|
184
154
|
|
|
185
155
|
# Delete task
|
|
@@ -194,7 +164,6 @@ agentteams task delete --id 1
|
|
|
194
164
|
Manage task comments.
|
|
195
165
|
|
|
196
166
|
```bash
|
|
197
|
-
# Create comment
|
|
198
167
|
agentteams comment create \
|
|
199
168
|
--task-id 1 \
|
|
200
169
|
--content "Great work!" \
|
|
@@ -206,13 +175,13 @@ agentteams comment create \
|
|
|
206
175
|
Create completion reports.
|
|
207
176
|
|
|
208
177
|
```bash
|
|
209
|
-
#
|
|
178
|
+
# Basic report
|
|
210
179
|
agentteams report create \
|
|
211
180
|
--task-id 1 \
|
|
212
181
|
--summary "Task completed successfully" \
|
|
213
182
|
--agent-id 1
|
|
214
183
|
|
|
215
|
-
#
|
|
184
|
+
# Report with details
|
|
216
185
|
agentteams report create \
|
|
217
186
|
--task-id 1 \
|
|
218
187
|
--summary "Feature implemented" \
|
|
@@ -225,25 +194,22 @@ agentteams report create \
|
|
|
225
194
|
View current configuration.
|
|
226
195
|
|
|
227
196
|
```bash
|
|
228
|
-
# Show active config
|
|
229
197
|
agentteams config whoami
|
|
230
198
|
agentteams config whoami --format text
|
|
231
199
|
```
|
|
232
200
|
|
|
233
|
-
Displays merged configuration from all sources (see Configuration Priority below).
|
|
234
|
-
|
|
235
201
|
## Configuration
|
|
236
202
|
|
|
237
|
-
###
|
|
203
|
+
### Priority Order
|
|
238
204
|
|
|
239
|
-
|
|
205
|
+
Configuration is merged from multiple sources (highest to lowest priority):
|
|
240
206
|
|
|
241
|
-
1.
|
|
242
|
-
2.
|
|
243
|
-
3.
|
|
244
|
-
4.
|
|
207
|
+
1. CLI options (command-line arguments)
|
|
208
|
+
2. Environment variables (`AGENTTEAMS_*`)
|
|
209
|
+
3. Project config (`.agentteams/config.json`)
|
|
210
|
+
4. Global config (`~/.agentteams/config.json`)
|
|
245
211
|
|
|
246
|
-
###
|
|
212
|
+
### Config File
|
|
247
213
|
|
|
248
214
|
`.agentteams/config.json`:
|
|
249
215
|
|
|
@@ -257,17 +223,8 @@ The CLI merges configuration from multiple sources with the following priority (
|
|
|
257
223
|
}
|
|
258
224
|
```
|
|
259
225
|
|
|
260
|
-
**Required fields:**
|
|
261
|
-
- `teamId`: Team identifier
|
|
262
|
-
- `projectId`: Project identifier
|
|
263
|
-
- `agentName`: Agent name
|
|
264
|
-
- `apiKey`: API authentication key
|
|
265
|
-
- `apiUrl`: API server URL
|
|
266
|
-
|
|
267
226
|
### Environment Variables
|
|
268
227
|
|
|
269
|
-
Override config file values with environment variables:
|
|
270
|
-
|
|
271
228
|
```bash
|
|
272
229
|
export AGENTTEAMS_API_KEY="key_your_api_key_here"
|
|
273
230
|
export AGENTTEAMS_API_URL="http://localhost:3001"
|
|
@@ -276,48 +233,22 @@ export AGENTTEAMS_PROJECT_ID="proj_xxx"
|
|
|
276
233
|
export AGENTTEAMS_AGENT_NAME="my-agent"
|
|
277
234
|
```
|
|
278
235
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
### Project vs Global Config
|
|
282
|
-
|
|
283
|
-
**Project config** (`.agentteams/config.json`):
|
|
284
|
-
- Stored in project directory
|
|
285
|
-
- Shared with team (if not gitignored)
|
|
286
|
-
- Automatically found by walking up directory tree
|
|
287
|
-
|
|
288
|
-
**Global config** (`~/.agentteams/config.json`):
|
|
289
|
-
- Stored in home directory
|
|
290
|
-
- User-specific defaults
|
|
291
|
-
- Lowest priority
|
|
292
|
-
|
|
293
|
-
**Recommendation:** Use project config for team projects, global config for personal defaults.
|
|
236
|
+
Useful for CI/CD pipelines and temporary overrides.
|
|
294
237
|
|
|
295
238
|
## Output Formats
|
|
296
239
|
|
|
297
240
|
All commands support `--format` option:
|
|
298
241
|
|
|
299
242
|
```bash
|
|
300
|
-
# JSON
|
|
243
|
+
# JSON (default, machine-readable)
|
|
301
244
|
agentteams task list --format json
|
|
302
245
|
|
|
303
|
-
# Text
|
|
246
|
+
# Text (human-friendly tables)
|
|
304
247
|
agentteams task list --format text
|
|
305
248
|
```
|
|
306
249
|
|
|
307
|
-
**JSON format:**
|
|
308
|
-
- Structured data
|
|
309
|
-
- Easy to parse with `jq` or scripts
|
|
310
|
-
- Default for most commands
|
|
311
|
-
|
|
312
|
-
**Text format:**
|
|
313
|
-
- Human-readable tables
|
|
314
|
-
- Better for terminal viewing
|
|
315
|
-
- Formatted with colors (if supported)
|
|
316
|
-
|
|
317
250
|
## Error Handling
|
|
318
251
|
|
|
319
|
-
The CLI provides clear error messages:
|
|
320
|
-
|
|
321
252
|
| Error | Meaning | Solution |
|
|
322
253
|
|-------|---------|----------|
|
|
323
254
|
| **401 Unauthorized** | Invalid API key | Check `apiKey` in config or `AGENTTEAMS_API_KEY` |
|
|
@@ -326,31 +257,12 @@ The CLI provides clear error messages:
|
|
|
326
257
|
| **Network errors** | Can't connect to server | Verify `apiUrl` and server status |
|
|
327
258
|
| **Config not found** | No config file or env vars | Run `agentteams init` first |
|
|
328
259
|
|
|
329
|
-
## .gitignore Setup
|
|
330
|
-
|
|
331
|
-
**Critical:** Always add `.agentteams` to `.gitignore` to prevent committing API keys:
|
|
332
|
-
|
|
333
|
-
```gitignore
|
|
334
|
-
# AgentTeams CLI config (contains API keys)
|
|
335
|
-
.agentteams
|
|
336
|
-
```
|
|
337
|
-
|
|
338
|
-
**What to commit:**
|
|
339
|
-
- Convention files (if you want to share them)
|
|
340
|
-
- Documentation referencing conventions
|
|
341
|
-
|
|
342
|
-
**What NOT to commit:**
|
|
343
|
-
- `.agentteams/config.json` (contains API keys)
|
|
344
|
-
- Any files with sensitive credentials
|
|
345
|
-
|
|
346
260
|
## Development
|
|
347
261
|
|
|
348
|
-
### Local Development
|
|
349
|
-
|
|
350
262
|
```bash
|
|
351
263
|
# Clone repository
|
|
352
|
-
git clone https://github.com/
|
|
353
|
-
cd
|
|
264
|
+
git clone https://github.com/rlarua/AgentTeams.git
|
|
265
|
+
cd AgentTeams/cli
|
|
354
266
|
|
|
355
267
|
# Install dependencies
|
|
356
268
|
npm install
|
|
@@ -364,65 +276,11 @@ node dist/index.js init
|
|
|
364
276
|
# Link for global testing
|
|
365
277
|
npm link
|
|
366
278
|
agentteams init
|
|
367
|
-
```
|
|
368
279
|
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
```bash
|
|
280
|
+
# Run tests
|
|
372
281
|
npm test
|
|
373
282
|
```
|
|
374
283
|
|
|
375
|
-
### Build
|
|
376
|
-
|
|
377
|
-
```bash
|
|
378
|
-
npm run build
|
|
379
|
-
```
|
|
380
|
-
|
|
381
|
-
Output: `dist/` directory with compiled JavaScript.
|
|
382
|
-
|
|
383
|
-
## Publishing
|
|
384
|
-
|
|
385
|
-
To publish a new version to npm:
|
|
386
|
-
|
|
387
|
-
1. **Update version** in package.json:
|
|
388
|
-
```bash
|
|
389
|
-
npm version patch # 1.0.0 -> 1.0.1 (bug fixes)
|
|
390
|
-
npm version minor # 1.0.0 -> 1.1.0 (new features)
|
|
391
|
-
npm version major # 1.0.0 -> 2.0.0 (breaking changes)
|
|
392
|
-
```
|
|
393
|
-
|
|
394
|
-
2. **Publish to npm**:
|
|
395
|
-
```bash
|
|
396
|
-
npm publish --access public
|
|
397
|
-
```
|
|
398
|
-
|
|
399
|
-
Note: `--access public` is required for scoped packages (@rlarua/agentteams-cli)
|
|
400
|
-
|
|
401
|
-
3. **Push git tag**:
|
|
402
|
-
```bash
|
|
403
|
-
git push --follow-tags
|
|
404
|
-
```
|
|
405
|
-
|
|
406
|
-
### First-time setup
|
|
407
|
-
|
|
408
|
-
If publishing for the first time:
|
|
409
|
-
|
|
410
|
-
```bash
|
|
411
|
-
# Login to npm
|
|
412
|
-
npm login
|
|
413
|
-
|
|
414
|
-
# Verify login
|
|
415
|
-
npm whoami
|
|
416
|
-
```
|
|
417
|
-
|
|
418
|
-
### Publishing checklist
|
|
419
|
-
|
|
420
|
-
- [ ] Tests pass: `npm test`
|
|
421
|
-
- [ ] Build succeeds: `npm run build`
|
|
422
|
-
- [ ] Version updated: `npm version [patch|minor|major]`
|
|
423
|
-
- [ ] Publish: `npm publish --access public`
|
|
424
|
-
- [ ] Git tag pushed: `git push --follow-tags`
|
|
425
|
-
|
|
426
284
|
## License
|
|
427
285
|
|
|
428
286
|
MIT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authServer.d.ts","sourceRoot":"","sources":["../../src/utils/authServer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"authServer.d.ts","sourceRoot":"","sources":["../../src/utils/authServer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,MAAM,EAA6C,MAAM,WAAW,CAAC;AAQjG,MAAM,MAAM,UAAU,GAAG;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE;QACV,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC;IAC3C,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AA0GF,wBAAgB,oBAAoB,IAAI,gBAAgB,CAyHvD"}
|
package/dist/utils/authServer.js
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import { createRequire } from 'node:module';
|
|
2
1
|
import { createServer } from 'node:http';
|
|
3
2
|
import { execFileSync } from 'node:child_process';
|
|
4
|
-
const require = createRequire(import.meta.url);
|
|
5
|
-
const expressModule = require('express');
|
|
6
|
-
const express = expressModule.default ?? expressModule;
|
|
7
3
|
const DEFAULT_OAUTH_PORT = 7777;
|
|
8
4
|
const OAUTH_PORT_MIN = 7777;
|
|
9
5
|
const OAUTH_PORT_MAX = 7790;
|
|
@@ -75,10 +71,24 @@ function isAuthResult(value) {
|
|
|
75
71
|
typeof convention.fileName === 'string' &&
|
|
76
72
|
typeof convention.content === 'string');
|
|
77
73
|
}
|
|
74
|
+
function readRequestBody(request) {
|
|
75
|
+
return new Promise((resolve, reject) => {
|
|
76
|
+
const chunks = [];
|
|
77
|
+
request.on('data', (chunk) => chunks.push(chunk));
|
|
78
|
+
request.on('end', () => resolve(Buffer.concat(chunks).toString('utf-8')));
|
|
79
|
+
request.on('error', reject);
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
function sendJson(response, statusCode, payload) {
|
|
83
|
+
const body = JSON.stringify(payload);
|
|
84
|
+
response.writeHead(statusCode, {
|
|
85
|
+
'Content-Type': 'application/json',
|
|
86
|
+
'Content-Length': Buffer.byteLength(body),
|
|
87
|
+
});
|
|
88
|
+
response.end(body);
|
|
89
|
+
}
|
|
78
90
|
export function startLocalAuthServer() {
|
|
79
91
|
const port = findAvailablePortSync();
|
|
80
|
-
const app = express();
|
|
81
|
-
app.use(express.json());
|
|
82
92
|
let settled = false;
|
|
83
93
|
let timeoutHandle = null;
|
|
84
94
|
let isWaiting = false;
|
|
@@ -88,7 +98,6 @@ export function startLocalAuthServer() {
|
|
|
88
98
|
resolveCallback = resolve;
|
|
89
99
|
rejectCallback = reject;
|
|
90
100
|
});
|
|
91
|
-
const server = createServer(app);
|
|
92
101
|
const stopServer = () => {
|
|
93
102
|
if (!server.listening) {
|
|
94
103
|
return;
|
|
@@ -120,18 +129,28 @@ export function startLocalAuthServer() {
|
|
|
120
129
|
rejectCallback?.(error);
|
|
121
130
|
stopServer();
|
|
122
131
|
};
|
|
123
|
-
|
|
124
|
-
if (
|
|
125
|
-
response
|
|
132
|
+
const server = createServer(async (request, response) => {
|
|
133
|
+
if (request.method !== 'POST' || request.url !== '/callback') {
|
|
134
|
+
sendJson(response, 404, { message: 'Not found.' });
|
|
126
135
|
return;
|
|
127
136
|
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
response.status(400).json({ message: 'Invalid OAuth callback payload.' });
|
|
137
|
+
if (settled) {
|
|
138
|
+
sendJson(response, 409, { message: 'OAuth callback already processed.' });
|
|
131
139
|
return;
|
|
132
140
|
}
|
|
133
|
-
|
|
134
|
-
|
|
141
|
+
try {
|
|
142
|
+
const rawBody = await readRequestBody(request);
|
|
143
|
+
const payload = JSON.parse(rawBody);
|
|
144
|
+
if (!isAuthResult(payload)) {
|
|
145
|
+
sendJson(response, 400, { message: 'Invalid OAuth callback payload.' });
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
sendJson(response, 200, { success: true });
|
|
149
|
+
resolveAuth(payload);
|
|
150
|
+
}
|
|
151
|
+
catch {
|
|
152
|
+
sendJson(response, 400, { message: 'Invalid JSON body.' });
|
|
153
|
+
}
|
|
135
154
|
});
|
|
136
155
|
server.once('error', (error) => {
|
|
137
156
|
rejectAuth(new Error(error.code === 'EADDRINUSE'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authServer.js","sourceRoot":"","sources":["../../src/utils/authServer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"authServer.js","sourceRoot":"","sources":["../../src/utils/authServer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAA0D,MAAM,WAAW,CAAC;AACjG,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,MAAM,kBAAkB,GAAG,IAAI,CAAC;AAChC,MAAM,cAAc,GAAG,IAAI,CAAC;AAC5B,MAAM,cAAc,GAAG,IAAI,CAAC;AAC5B,MAAM,mBAAmB,GAAG,MAAM,CAAC;AAsBnC,SAAS,SAAS,CAAC,KAAyB;IAC1C,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,UAAU,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAC9C,IAAI,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,UAAU,GAAG,CAAC,IAAI,UAAU,GAAG,KAAK,EAAE,CAAC;QACrE,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,SAAS,mBAAmB;IAC1B,MAAM,aAAa,GAAG,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,IAAI,kBAAkB,CAAC;IACzF,MAAM,UAAU,GAAa,EAAE,CAAC;IAEhC,KAAK,IAAI,IAAI,GAAG,cAAc,EAAE,IAAI,IAAI,cAAc,EAAE,IAAI,IAAI,CAAC,EAAE,CAAC;QAClE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;IAED,MAAM,WAAW,GAAG,IAAI,GAAG,EAAU,CAAC;IACtC,WAAW,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC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AE,CACrD,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE;QACxB,IAAI,CAAC,OAAO,IAAI,SAAS,EAAE,CAAC;YAC1B,UAAU,CAAC,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAC,CAAC;YACjF,OAAO;QACT,CAAC;QAED,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,IAAI,CAAC;YACf,kBAAkB,EAAE,CAAC;QACvB,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;IAEjC,MAAM,eAAe,GAAG,GAAwB,EAAE;QAChD,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,SAAS,GAAG,IAAI,CAAC;YACjB,aAAa,GAAG,UAAU,CAAC,GAAG,EAAE;gBAC9B,UAAU,CAAC,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC,CAAC;YACtE,CAAC,EAAE,mBAAmB,CAAC,CAAC;QAC1B,CAAC;QAED,OAAO,eAAe,CAAC;IACzB,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,eAAe;QACf,IAAI;KACL,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rlarua/agentteams-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "CLI tool for AgentTeams API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -24,9 +24,8 @@
|
|
|
24
24
|
"author": "",
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"commander": "^12.1.0",
|
|
28
27
|
"axios": "^1.7.9",
|
|
29
|
-
"
|
|
28
|
+
"commander": "^12.1.0",
|
|
30
29
|
"open": "^10.1.0"
|
|
31
30
|
},
|
|
32
31
|
"devDependencies": {
|