multi-project-gateway 0.4.0 → 0.5.1
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 +8 -1
- package/dist/cli.js +1532 -93
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -434,6 +434,8 @@ Open `http://localhost:3100/` to view the dashboard, which shows:
|
|
|
434
434
|
|
|
435
435
|
## Architecture
|
|
436
436
|
|
|
437
|
+
For detailed architecture documentation — message lifecycle, session management, agent dispatch, security boundaries, and extension points — see [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md).
|
|
438
|
+
|
|
437
439
|
| Module | Responsibility |
|
|
438
440
|
|--------|---------------|
|
|
439
441
|
| `src/cli.ts` | CLI entry point — `mpg start`, `mpg init`, `mpg status` |
|
|
@@ -451,7 +453,7 @@ Open `http://localhost:3100/` to view the dashboard, which shows:
|
|
|
451
453
|
| `src/persona-presets.ts` | Built-in persona library (PM, engineer, etc.) for agent shorthand config |
|
|
452
454
|
| `src/role-check.ts` | Checks Discord member roles against `allowedRoles` |
|
|
453
455
|
| `src/rate-limiter.ts` | Per-user rate limiting (sliding window) |
|
|
454
|
-
| `src/
|
|
456
|
+
| `src/dashboard-server.ts` | Web dashboard and REST API (`/health`, `/api/sessions`, `/api/projects`, `/api/status`) |
|
|
455
457
|
| `src/logger.ts` | Structured logger with level filtering and JSON output |
|
|
456
458
|
| `src/discord.ts` | Discord.js client, message routing, agent handoff loop, response chunking |
|
|
457
459
|
|
|
@@ -473,6 +475,11 @@ Open `http://localhost:3100/` to view the dashboard, which shows:
|
|
|
473
475
|
- **Local only** — the gateway runs on the same machine as the project directories
|
|
474
476
|
- **Optional Discord access control** — per-project `allowedRoles` restricts usage to specific Discord roles; `rateLimitPerUser` throttles per-user message rate. Without these, any user in a mapped channel can send prompts
|
|
475
477
|
|
|
478
|
+
## Background reading
|
|
479
|
+
|
|
480
|
+
- [From tmux to Discord: Building a Multi-Project Gateway for Claude Code](https://yamakei.info/essays/from-tmux-to-discord-building-a-multi-project-gateway-for-claude-code) — what motivated this project
|
|
481
|
+
- [From Message Router to Agent Team: How MPG Learned to Coordinate](https://yamakei.info/essays/from-message-router-to-agent-team-how-mpg-learned-to-coordinate) — how the architecture evolved from simple routing to multi-agent coordination
|
|
482
|
+
|
|
476
483
|
## License
|
|
477
484
|
|
|
478
485
|
MIT
|