You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add admin dashboard and logging enhancements
- Implemented a new admin dashboard that starts on http://localhost:9000 using create-polyglot.
- Added logging initialization for services, creating a logger helper if it doesn't exist.
- Integrated chokidar for real-time log file monitoring and updates.
- Enhanced log retrieval with filtering options for level and timestamp.
- Updated service index.js to dynamically import the logger for better ESM compatibility.
- Improved error handling and graceful shutdown procedures in the Node service.
Signed-off-by: kaifcoder <kaifmohd2014@gmail.com>
-`init` writes `polyglot.json` manifest which powers all subsequent commands.
130
+
- Port uniqueness enforced during `init` and `add service`; collisions abort early.
131
+
-`hot` uses language-specific runners (e.g. Node via `nodemon` or custom; Python via `uvicorn`; Go recompile; Java Spring Boot restart) aggregated in a single multiplexed output.
132
+
-`admin` now auto-streams logs (no refresh or manual toggle) leveraging `LogFileWatcher` + WebSocket events described above.
- Prefer `execa` for invoking CLI within tests; set generous timeouts (≥30s) for Next.js or Java operations.
142
+
- For admin log stream tests, you can simulate writes to `.logs/<date>.log` then assert WebSocket `log_update` message.
143
+
144
+
When extending:
145
+
- Add new command flags in `bin/index.js` commander chain; reflect in README and this summary.
146
+
- Keep README examples authoritative; this section should remain concise.
147
+
66
148
---
67
149
Feedback: Let me know if any sections need more depth (e.g., Docker generation, prompt flow, adding new presets) or if emerging conventions should be captured.
0 commit comments