@moxxy/cli 0.0.3 → 0.0.5

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
@@ -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