@multiplayer-app/cli 2.0.0 → 2.0.2
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 +57 -30
- package/dist/index.js +3436 -14003
- package/package.json +6 -4
- package/.turbo/turbo-build.log +0 -20
- package/.turbo/turbo-lint.log +0 -5
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Multiplayer Software, Inc.
|
|
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
CHANGED
|
@@ -1,77 +1,104 @@
|
|
|
1
1
|
# @multiplayer-app/debugging-agent
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
AI-powered debugging agent and release management CLI for [Multiplayer](https://multiplayer.app).
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
|
-
```
|
|
7
|
+
```sh
|
|
8
8
|
npm install -g @multiplayer-app/debugging-agent
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## Commands
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
| Command | Description |
|
|
14
|
+
|---------|-------------|
|
|
15
|
+
| `multiplayer` | Start the debugging agent (TUI by default) |
|
|
16
|
+
| `multiplayer releases create` | Register a release |
|
|
17
|
+
| `multiplayer deployments create` | Register a deployment |
|
|
18
|
+
| `multiplayer sourcemaps upload` | Upload sourcemap files |
|
|
18
19
|
|
|
19
20
|
---
|
|
20
21
|
|
|
21
22
|
## Debugging Agent
|
|
22
23
|
|
|
23
|
-
|
|
24
|
+
Connects to the Multiplayer backend and automatically resolves incoming issues using AI.
|
|
24
25
|
|
|
25
|
-
```
|
|
26
|
+
```sh
|
|
26
27
|
multiplayer [options]
|
|
27
28
|
```
|
|
28
29
|
|
|
29
|
-
Options
|
|
30
|
+
Options are resolved in this order: **CLI flag → environment variable → config profile**.
|
|
30
31
|
|
|
31
32
|
| Flag | Env var | Description |
|
|
32
33
|
|------|---------|-------------|
|
|
33
34
|
| `--api-key <key>` | `MULTIPLAYER_API_KEY` | Multiplayer API key |
|
|
34
35
|
| `--dir <path>` | `MULTIPLAYER_DIR` | Project directory (must be a git repo) |
|
|
35
36
|
| `--model <name>` | `AI_MODEL` | AI model (e.g. `claude-sonnet-4-6`, `gpt-4o`) |
|
|
36
|
-
| `--model-key <key>` | `AI_API_KEY` | API key
|
|
37
|
-
| `--model-url <url>` | `AI_BASE_URL` |
|
|
38
|
-
| `--headless` | `MULTIPLAYER_HEADLESS=true` | Run without TUI
|
|
39
|
-
| `--profile <name>` | `MULTIPLAYER_PROFILE` | Config profile to
|
|
37
|
+
| `--model-key <key>` | `AI_API_KEY` | AI provider API key (not required for Claude models) |
|
|
38
|
+
| `--model-url <url>` | `AI_BASE_URL` | Base URL for OpenAI-compatible APIs |
|
|
39
|
+
| `--headless` | `MULTIPLAYER_HEADLESS=true` | Run without TUI — outputs structured JSON logs |
|
|
40
|
+
| `--profile <name>` | `MULTIPLAYER_PROFILE` | Config profile to load (default: `default`) |
|
|
40
41
|
| `--name <name>` | `MULTIPLAYER_AGENT_NAME` | Agent name (defaults to hostname) |
|
|
41
|
-
| `--max-concurrent <n>` | `MULTIPLAYER_MAX_CONCURRENT` | Max parallel
|
|
42
|
+
| `--max-concurrent <n>` | `MULTIPLAYER_MAX_CONCURRENT` | Max issues resolved in parallel (default: `2`) |
|
|
42
43
|
| `--no-git-branch` | `MULTIPLAYER_NO_GIT_BRANCH=true` | Work in current branch — no worktree, no push |
|
|
43
|
-
| `--health-port <port>` | `MULTIPLAYER_HEALTH_PORT` | HTTP health check port (headless only) |
|
|
44
|
+
| `--health-port <port>` | `MULTIPLAYER_HEALTH_PORT` | HTTP health check port (headless mode only) |
|
|
44
45
|
| `--url <url>` | `MULTIPLAYER_URL` | Multiplayer API base URL |
|
|
45
46
|
|
|
46
47
|
### TUI mode (default)
|
|
47
48
|
|
|
48
|
-
|
|
49
|
+
An interactive terminal dashboard that shows active sessions and live logs.
|
|
50
|
+
|
|
51
|
+
```sh
|
|
49
52
|
multiplayer --api-key <key> --dir /path/to/repo --model claude-sonnet-4-6
|
|
50
53
|
```
|
|
51
54
|
|
|
52
55
|
### Headless mode
|
|
53
56
|
|
|
54
|
-
|
|
57
|
+
Outputs newline-delimited JSON logs — suitable for CI, containers, and log aggregators.
|
|
58
|
+
|
|
59
|
+
```sh
|
|
55
60
|
multiplayer --headless --api-key <key> --dir /path/to/repo --model claude-sonnet-4-6
|
|
56
61
|
```
|
|
57
62
|
|
|
63
|
+
In headless mode, `SIGTERM` waits for active sessions to finish before exiting; `SIGINT` exits immediately.
|
|
64
|
+
|
|
58
65
|
### Config profiles
|
|
59
66
|
|
|
60
|
-
Create a `.multiplayer/config` file in your project or home directory
|
|
67
|
+
Create a `.multiplayer/config` file in your project directory or home directory (`~/.multiplayer/config`). Uses INI format — the same as AWS credentials.
|
|
61
68
|
|
|
62
69
|
```ini
|
|
63
70
|
[default]
|
|
64
|
-
api_key
|
|
65
|
-
dir
|
|
66
|
-
model
|
|
71
|
+
api_key = <your-api-key>
|
|
72
|
+
dir = /path/to/repo
|
|
73
|
+
model = claude-sonnet-4-6
|
|
67
74
|
max_concurrent = 2
|
|
75
|
+
|
|
76
|
+
[staging]
|
|
77
|
+
api_key = <staging-api-key>
|
|
78
|
+
dir = /path/to/staging-repo
|
|
79
|
+
model = gpt-4o
|
|
80
|
+
model_key = <openai-api-key>
|
|
68
81
|
```
|
|
69
82
|
|
|
83
|
+
All supported profile keys:
|
|
84
|
+
|
|
85
|
+
| Key | Description |
|
|
86
|
+
|-----|-------------|
|
|
87
|
+
| `api_key` | Multiplayer API key |
|
|
88
|
+
| `dir` | Project directory |
|
|
89
|
+
| `model` | AI model name |
|
|
90
|
+
| `model_key` | AI provider API key |
|
|
91
|
+
| `model_url` | Base URL for OpenAI-compatible APIs |
|
|
92
|
+
| `name` | Agent name |
|
|
93
|
+
| `url` | Multiplayer API base URL |
|
|
94
|
+
| `max_concurrent` | Max parallel issues |
|
|
95
|
+
| `no_git_branch` | `true` to skip branch/worktree creation |
|
|
96
|
+
|
|
70
97
|
---
|
|
71
98
|
|
|
72
99
|
## Releases
|
|
73
100
|
|
|
74
|
-
```
|
|
101
|
+
```sh
|
|
75
102
|
multiplayer releases create [options]
|
|
76
103
|
```
|
|
77
104
|
|
|
@@ -87,7 +114,7 @@ multiplayer releases create [options]
|
|
|
87
114
|
|
|
88
115
|
**Example:**
|
|
89
116
|
|
|
90
|
-
```
|
|
117
|
+
```sh
|
|
91
118
|
multiplayer releases create \
|
|
92
119
|
--api-key $MULTIPLAYER_API_KEY \
|
|
93
120
|
--service my-service \
|
|
@@ -100,7 +127,7 @@ multiplayer releases create \
|
|
|
100
127
|
|
|
101
128
|
## Deployments
|
|
102
129
|
|
|
103
|
-
```
|
|
130
|
+
```sh
|
|
104
131
|
multiplayer deployments create [options]
|
|
105
132
|
```
|
|
106
133
|
|
|
@@ -108,13 +135,13 @@ multiplayer deployments create [options]
|
|
|
108
135
|
|------|---------|-------------|
|
|
109
136
|
| `--api-key <key>` | `MULTIPLAYER_API_KEY` | Multiplayer API key |
|
|
110
137
|
| `--service <name>` | `SERVICE_NAME` | Service name |
|
|
111
|
-
| `--release <version>` | `
|
|
138
|
+
| `--release <version>` | `VERSION` | Release version |
|
|
112
139
|
| `--environment <name>` | `ENVIRONMENT` | Environment name |
|
|
113
140
|
| `--base-url <url>` | `BASE_URL` | API base URL (optional) |
|
|
114
141
|
|
|
115
142
|
**Example:**
|
|
116
143
|
|
|
117
|
-
```
|
|
144
|
+
```sh
|
|
118
145
|
multiplayer deployments create \
|
|
119
146
|
--api-key $MULTIPLAYER_API_KEY \
|
|
120
147
|
--service my-service \
|
|
@@ -126,7 +153,7 @@ multiplayer deployments create \
|
|
|
126
153
|
|
|
127
154
|
## Sourcemaps
|
|
128
155
|
|
|
129
|
-
```
|
|
156
|
+
```sh
|
|
130
157
|
multiplayer sourcemaps upload <directories...> [options]
|
|
131
158
|
```
|
|
132
159
|
|
|
@@ -139,7 +166,7 @@ multiplayer sourcemaps upload <directories...> [options]
|
|
|
139
166
|
|
|
140
167
|
**Example:**
|
|
141
168
|
|
|
142
|
-
```
|
|
169
|
+
```sh
|
|
143
170
|
multiplayer sourcemaps upload ./dist ./build \
|
|
144
171
|
--api-key $MULTIPLAYER_API_KEY \
|
|
145
172
|
--service my-service \
|