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:
@@ -154,6 +154,19 @@ async fn hello_carries_token_formats_and_stt_then_audio_flows() {
|
||||
c.close();
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn hello_carries_the_memory_settings_when_there_are_any() {
|
||||
let w = FakeWorker::start(0).await;
|
||||
let mut o = WorkerClientOptions::new(w.url(), TOKEN);
|
||||
o.memory = json!({"others": false, "recent_records": 5}).as_object().cloned().unwrap();
|
||||
let (c, _rx) = WorkerClient::new(o);
|
||||
c.start();
|
||||
c.wait_ready(Duration::from_secs(2)).await.expect("ready");
|
||||
let Got::Json(hello) = &w.got()[0] else { panic!("hello first") };
|
||||
assert_eq!(hello["memory"], json!({"others": false, "recent_records": 5}));
|
||||
c.close();
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn events_pass_on_and_only_tts_audio_of_open_requests() {
|
||||
let w = FakeWorker::start(0).await;
|
||||
|
||||
Reference in New Issue
Block a user