@kosuke-ai/cli 0.0.31 → 0.0.32
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 +48 -0
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -288,6 +288,8 @@ node_modules/
|
|
|
288
288
|
|
|
289
289
|
## Development
|
|
290
290
|
|
|
291
|
+
### Local Development
|
|
292
|
+
|
|
291
293
|
If you want to contribute or run from source:
|
|
292
294
|
|
|
293
295
|
```bash
|
|
@@ -308,3 +310,49 @@ npm run dev <command>
|
|
|
308
310
|
npm link
|
|
309
311
|
kosuke <command>
|
|
310
312
|
```
|
|
313
|
+
|
|
314
|
+
### Docker Development
|
|
315
|
+
|
|
316
|
+
Run kosuke-cli inside Docker for an isolated development environment:
|
|
317
|
+
|
|
318
|
+
**Prerequisites:**
|
|
319
|
+
|
|
320
|
+
- Docker installed and running
|
|
321
|
+
- `kosuke_network` Docker network created (if you want to connect to other services)
|
|
322
|
+
|
|
323
|
+
**Quick Start:**
|
|
324
|
+
|
|
325
|
+
```bash
|
|
326
|
+
# Create .env file with your credentials
|
|
327
|
+
cat > .env << EOF
|
|
328
|
+
ANTHROPIC_API_KEY=your-api-key
|
|
329
|
+
GITHUB_TOKEN=your-github-token
|
|
330
|
+
EOF
|
|
331
|
+
|
|
332
|
+
# Run the development container
|
|
333
|
+
./docker-dev.sh
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
The script will:
|
|
337
|
+
|
|
338
|
+
- Build the Docker image
|
|
339
|
+
- Mount your current directory into the container
|
|
340
|
+
- Connect to `kosuke_network` for inter-service communication
|
|
341
|
+
- Load environment variables from `.env`
|
|
342
|
+
- Drop you into an interactive bash shell
|
|
343
|
+
|
|
344
|
+
**Inside the container:**
|
|
345
|
+
|
|
346
|
+
```bash
|
|
347
|
+
# Run any kosuke command
|
|
348
|
+
kosuke sync-rules
|
|
349
|
+
kosuke analyse
|
|
350
|
+
kosuke lint
|
|
351
|
+
|
|
352
|
+
# The workspace is mounted, so changes are reflected immediately
|
|
353
|
+
npm run build
|
|
354
|
+
kosuke <command>
|
|
355
|
+
|
|
356
|
+
# Exit the container
|
|
357
|
+
exit
|
|
358
|
+
```
|
package/dist/package.json
CHANGED