@moxxy/cli 0.0.2 → 0.0.4
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 +64 -0
- package/dist/chunk-3QRJTRBT.mjs +1102 -0
- package/dist/chunk-6DZX6EAA.mjs +37 -0
- package/dist/chunk-C46NSEKG.mjs +211 -0
- package/dist/chunk-GSNMMI3H.mjs +530 -0
- package/dist/chunk-N5JTPB6U.mjs +820 -0
- package/dist/chunk-NGVL4Q5C.mjs +1102 -0
- package/dist/chunk-W32EQCVC.mjs +823 -0
- package/dist/cli-5RH4VBBL.mjs +7 -0
- package/dist/cli-7MK4YGOP.mjs +7 -0
- package/dist/cli-B4KH6MZI.mjs +8 -0
- package/dist/cli-O4ZGFAZG.mjs +8 -0
- package/dist/dist-2VGKJRBH.mjs +6820 -0
- package/dist/dist-7LTHRYKA.mjs +11569 -0
- package/dist/dist-7XJPQW5C.mjs +6950 -0
- package/dist/dist-FAXRJMEN.mjs +6812 -0
- package/dist/dist-HQGANM3P.mjs +6976 -0
- package/dist/dist-LKIOZQ42.mjs +17 -0
- package/dist/dist-UYA4RJUH.mjs +2792 -0
- package/dist/index.js +24205 -69
- package/dist/index.mjs +4 -2
- package/dist/src-D5HMDDVE.mjs +1324 -0
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -76,6 +76,70 @@ Start the orchestration server. Connects to the configured SDK, initializes the
|
|
|
76
76
|
|
|
77
77
|
Display current configuration: SDK provider, GitHub token status, webhook settings, watched repositories, and agent configuration.
|
|
78
78
|
|
|
79
|
+
## Connecting to GitHub
|
|
80
|
+
|
|
81
|
+
Moxxy uses standard GitHub repository webhooks (no GitHub App required). You need a **GitHub Personal Access Token** and a publicly reachable URL for your webhook server.
|
|
82
|
+
|
|
83
|
+
### 1. Generate a webhook secret
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
openssl rand -hex 32
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Save this value — you'll use it in both Moxxy config and GitHub.
|
|
90
|
+
|
|
91
|
+
### 2. Initialize Moxxy
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
moxxy config init
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
The interactive wizard will ask for your SDK provider, GitHub PAT, webhook secret, and port. Or pass flags directly:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
moxxy config init \
|
|
101
|
+
--sdk claude \
|
|
102
|
+
--github-token ghp_xxx \
|
|
103
|
+
--webhook-secret your-secret \
|
|
104
|
+
--webhook-port 3456
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### 3. Expose the webhook server
|
|
108
|
+
|
|
109
|
+
Moxxy listens on `localhost:3456` by default. For GitHub to reach it, expose it with a tunnel:
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
ngrok http 3456
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
This gives you a public URL like `https://abc123.ngrok-free.app`.
|
|
116
|
+
|
|
117
|
+
### 4. Add a webhook on GitHub
|
|
118
|
+
|
|
119
|
+
Go to your repository **Settings > Webhooks > Add webhook**:
|
|
120
|
+
|
|
121
|
+
| Field | Value |
|
|
122
|
+
|-------|-------|
|
|
123
|
+
| Payload URL | `https://<your-ngrok-url>/webhook/github` |
|
|
124
|
+
| Content type | `application/json` |
|
|
125
|
+
| Secret | the same secret from step 1 |
|
|
126
|
+
| Events | select "Let me select individual events" > check **Issues** |
|
|
127
|
+
|
|
128
|
+
### 5. Add the repo and start
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
moxxy repo add owner/repo
|
|
132
|
+
moxxy start
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
Open an issue on the repo to verify Moxxy picks it up.
|
|
136
|
+
|
|
137
|
+
### Webhook details
|
|
138
|
+
|
|
139
|
+
- **Path**: `/webhook/github` (fixed)
|
|
140
|
+
- **Signature verification**: HMAC-SHA256 via `X-Hub-Signature-256` header. Optional but recommended — if no secret is configured, all requests are accepted.
|
|
141
|
+
- **Supported events**: `issues` (actions: `opened`, `labeled`)
|
|
142
|
+
|
|
79
143
|
## Programmatic Usage
|
|
80
144
|
|
|
81
145
|
```typescript
|