@moxxy/cli 0.0.1 → 0.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/README.md +91 -0
- package/package.json +5 -4
package/README.md
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# @moxxy/cli
|
|
2
|
+
|
|
3
|
+
User-facing CLI for [Moxxy](https://github.com/webeferen/moxxy) agent orchestration.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @moxxy/cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
# Interactive setup — walks you through each config step
|
|
15
|
+
moxxy config init
|
|
16
|
+
|
|
17
|
+
# Or pass flags directly
|
|
18
|
+
moxxy config init --sdk claude --github-token ghp_xxx
|
|
19
|
+
|
|
20
|
+
# Add a repository to watch
|
|
21
|
+
moxxy repo add owner/repo --events issues.opened,issues.labeled
|
|
22
|
+
|
|
23
|
+
# Start orchestration
|
|
24
|
+
moxxy start
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Commands
|
|
28
|
+
|
|
29
|
+
### `moxxy config init`
|
|
30
|
+
|
|
31
|
+
Initialize configuration. Launches an interactive wizard when called without flags.
|
|
32
|
+
|
|
33
|
+
| Flag | Description | Default |
|
|
34
|
+
|------|-------------|---------|
|
|
35
|
+
| `--sdk <provider>` | `molt` or `claude` | _(interactive)_ |
|
|
36
|
+
| `--github-token <token>` | GitHub personal access token | _(interactive)_ |
|
|
37
|
+
| `--gateway-url <url>` | Molt Gateway URL (molt only) | |
|
|
38
|
+
| `--auth-token <token>` | Molt Gateway auth token | |
|
|
39
|
+
| `--claude-api-key <key>` | Anthropic API key (claude only) | |
|
|
40
|
+
| `--claude-model <model>` | Claude model | `claude-sonnet-4-5` |
|
|
41
|
+
| `--claude-cli-path <path>` | Path to Claude CLI binary | `claude` |
|
|
42
|
+
| `--webhook-secret <secret>` | GitHub webhook secret | |
|
|
43
|
+
| `--webhook-port <port>` | Webhook server port | `3456` |
|
|
44
|
+
| `--agent-id <id>` | Agent ID | |
|
|
45
|
+
|
|
46
|
+
### `moxxy config set <key> <value>`
|
|
47
|
+
|
|
48
|
+
Set a config value using dot notation (e.g. `moxxy config set webhook.port 8080`).
|
|
49
|
+
|
|
50
|
+
### `moxxy config get <key>`
|
|
51
|
+
|
|
52
|
+
Read a config value using dot notation.
|
|
53
|
+
|
|
54
|
+
### `moxxy repo add <owner/repo>`
|
|
55
|
+
|
|
56
|
+
Add a repository to watch.
|
|
57
|
+
|
|
58
|
+
| Flag | Description | Default |
|
|
59
|
+
|------|-------------|---------|
|
|
60
|
+
| `--branch <branch>` | Default branch | `main` |
|
|
61
|
+
| `--events <events>` | Comma-separated events | `issues.opened,issues.labeled` |
|
|
62
|
+
|
|
63
|
+
### `moxxy repo list`
|
|
64
|
+
|
|
65
|
+
List all configured repositories.
|
|
66
|
+
|
|
67
|
+
### `moxxy repo remove <owner/repo>`
|
|
68
|
+
|
|
69
|
+
Remove a repository from the watch list.
|
|
70
|
+
|
|
71
|
+
### `moxxy start`
|
|
72
|
+
|
|
73
|
+
Start the orchestration server. Connects to the configured SDK, initializes the agent supervisor, and starts the webhook server to listen for GitHub events on watched repositories.
|
|
74
|
+
|
|
75
|
+
### `moxxy status`
|
|
76
|
+
|
|
77
|
+
Display current configuration: SDK provider, GitHub token status, webhook settings, watched repositories, and agent configuration.
|
|
78
|
+
|
|
79
|
+
## Programmatic Usage
|
|
80
|
+
|
|
81
|
+
```typescript
|
|
82
|
+
import { createProgram, ConfigManager } from '@moxxy/cli';
|
|
83
|
+
|
|
84
|
+
const manager = new ConfigManager();
|
|
85
|
+
await manager.load();
|
|
86
|
+
console.log(manager.get('sdk'));
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## License
|
|
90
|
+
|
|
91
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moxxy/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "User-facing CLI for Moxxy agent orchestration",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"dist",
|
|
24
|
-
"bin"
|
|
24
|
+
"bin",
|
|
25
|
+
"README.md"
|
|
25
26
|
],
|
|
26
27
|
"main": "./dist/index.js",
|
|
27
28
|
"module": "./dist/index.mjs",
|
|
@@ -43,11 +44,11 @@
|
|
|
43
44
|
"prompts": "^2.4.2",
|
|
44
45
|
"zod": "^3.23.8",
|
|
45
46
|
"@moxxy/types": "1.0.0",
|
|
47
|
+
"@moxxy/claude": "0.1.0",
|
|
46
48
|
"@moxxy/molt": "1.0.0",
|
|
47
49
|
"@moxxy/integration-base": "1.0.0",
|
|
48
50
|
"@moxxy/integration-github": "1.0.0",
|
|
49
|
-
"@moxxy/agents": "1.0.0"
|
|
50
|
-
"@moxxy/claude": "0.1.0"
|
|
51
|
+
"@moxxy/agents": "1.0.0"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
53
54
|
"@biomejs/biome": "^2.3.13",
|