aKode 0.5.0: riepilogo della memoria a inizio sessione, sollecito alle azioni annunciate, daemon allineato al CLI

- ext/memoria: legge una volta per sessione la risorsa memoria://briefing
  (file di git status, budget di token, timeout breve), accetta solo un
  blocco <memoria_briefing> chiuso e limitato, lo inserisce dopo le istruzioni
  del plugin e lo tiene in cache per il thread (prefisso del prompt stabile).
  Impostazioni [memoria] briefing, briefing_timeout_ms, briefing_max_tokens.
- Turno: se il modello chiude con un messaggio che annuncia un'azione senza
  chiamare strumenti, un solo sollecito per turno ([agent] announce_nudges,
  predefinito 1, 0 lo disattiva), con avviso visibile e test sui messaggi
  osservati con Qwen.
- Daemon: sync_with_cli confronta l'eseguibile del CLI con il pacchetto del
  daemon e, se diverso, lo seleziona e riavvia solo quando non ci sono
  sessioni caricate; altrimenti avviso. Usato all'avvio della TUI, da
  `akode update`, da install.sh e da `akode app-server daemon update
  --from-cli --if-idle`. Prima un daemon preparato una volta restava alla
  versione vecchia (CLI 0.4.0 con app server 0.3.1).
- Test: snapshot del doctor indipendenti dalla versione; snapshot della TUI
  aggiornati alla 0.5.0 e allo schema dei tool appiattiti della 0.4.0.
- Versione 0.5.0 e sezione Novità nel README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-14 21:49:51 +01:00
parent 546bd1da18
commit 95f4ddcd72
52 changed files with 1267 additions and 224 deletions

View File

@@ -217,7 +217,9 @@ async fn network_only_human_output() -> Result<()> {
"--no-color",
])
.output()?;
let stdout = String::from_utf8(output.stdout)?;
// The version changes with every release: keep the snapshots stable.
let stdout = String::from_utf8(output.stdout)?
.replace(concat!("Doctor v", env!("CARGO_PKG_VERSION")), "Doctor v<VERSION>");
assert!(output.status.success(), "{stdout}");
insta::assert_snapshot!("network_only_human_output", stdout);
Ok(())
@@ -233,7 +235,9 @@ async fn network_only_config_failure_human_output() -> Result<()> {
let output = local_command(&home)?
.args(["doctor", "--network-only", "--all", "--ascii", "--no-color"])
.output()?;
let stdout = String::from_utf8(output.stdout)?;
// The version changes with every release: keep the snapshots stable.
let stdout = String::from_utf8(output.stdout)?
.replace(concat!("Doctor v", env!("CARGO_PKG_VERSION")), "Doctor v<VERSION>");
assert_eq!(output.status.code(), Some(1));
assert!(!stdout.contains("sk-config-credential-fixture"));
// Config loading may canonicalize the directory, rendering may shorten it,

View File

@@ -2,7 +2,7 @@
source: cli/tests/doctor_enterprise_network.rs
expression: stdout
---
aKode Doctor v0.1.0
aKode Doctor v<VERSION>
Notes
[XX] config config could not be loaded - Fix the reported config error, then rerun akode doctor.

View File

@@ -2,7 +2,7 @@
source: cli/tests/doctor_enterprise_network.rs
expression: stdout
---
aKode Doctor v0.1.0
aKode Doctor v<VERSION>
Configuration
[ok] config loaded