feat(app): M5 step 1, the admin backend under the management app
- datadir: the data folder layout, the location file (JARVIS_DATA_DIR wins), free space for the wizard. - settings_edit: the fields the five settings screens edit; apply writes only non-defaults, keeps unknown keys and writes nothing unless the app's own check passes. A memory section reaches the worker's hello. - secrets: config/secrets.dat, DPAPI for the Windows user; the services take the bot token from it before JARVIS_DISCORD_TOKEN. - logs: the log hub behind the log screen (tabs, daily files kept 14 days, the recent error report, a zip under 10 MB, secrets and token-shaped text masked); the log macros and the worker's output feed it. Spec: app/src/admin.spec.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -47,9 +47,10 @@ app/
|
||||
## Starting
|
||||
|
||||
`start_services(data_dir)` reads `<data_dir>/config/settings.json`, starts the voice worker process,
|
||||
connects to it once it prints `READY`, and starts the Discord core. Until the setup wizard (M5) stores
|
||||
it encrypted, the bot token comes from `JARVIS_DISCORD_TOKEN` and the data folder from the first
|
||||
argument or `JARVIS_DATA_DIR`. The binary stops every service on Ctrl+C or SIGTERM.
|
||||
connects to it once it prints `READY`, and starts the Discord core. The bot token comes from the
|
||||
stored secrets (`config/secrets.dat`, `admin.spec.md`), else from `JARVIS_DISCORD_TOKEN`; the binary
|
||||
takes the data folder from the first argument or `JARVIS_DATA_DIR`, installs the log hub (daily files
|
||||
in `logs/`) and stops every service on Ctrl+C or SIGTERM.
|
||||
|
||||
## Settings
|
||||
|
||||
@@ -72,6 +73,7 @@ strings (numbers would lose precision).
|
||||
| `voiceWorker.python` | `python3` (`python.exe` on Windows) | Python of the worker venv. |
|
||||
| `voiceWorker.cwd` | the repo's `src/` (development builds) | Folder holding the `voice_worker` package. |
|
||||
| `voiceWorker.args` | `[]` | Extra worker arguments, e.g. `["--melo-python", "<MeloTTS venv python>"]`. |
|
||||
| `memory` | `{}` | The worker's memory settings (`voice_worker.spec.md`, "Memory settings"), sent in its `hello`; the settings screens check them (`admin.spec.md`). |
|
||||
|
||||
The `call` and `response` sections (call detection and response policies, M4) are in
|
||||
`conversation.spec.md`.
|
||||
|
||||
Reference in New Issue
Block a user