Riapplica la fase 5 di aKode (86e7c72e) sulla base ripulita:
- crate codex-* -> akode-*, codex-rs -> akode-rs, codex-cli -> akode-cli, binario e ausiliari akode;
- ~/.codex -> ~/.akode, CODEX_HOME -> AKODE_HOME, variabili CODEX_* -> AKODE_*, .codex/ -> .akode/ di progetto;
nessun fallback a ~/.codex o a CODEX_*;
- testi per l'utente "Codex" -> "aKode"; testi verso il modello e istruzioni di sistema invariati;
- snapshot insta rinominati (non ancora rigenerati).
I conflitti con la base ripulita sono stati risolti riapplicando la rinomina ai file senza le
funzioni di imeAI (script di mappa dei token per file).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
20 lines
953 B
Rust
20 lines
953 B
Rust
//! Lets an embedding observe completed agent work for host-managed result delivery.
|
|
|
|
use futures::future::BoxFuture;
|
|
|
|
use crate::agent::api::AgentTurnOutcome;
|
|
|
|
/// Observes the turn outcomes eligible for native parent result delivery.
|
|
///
|
|
/// Install an `Arc<dyn AgentTurnOutcomeReporter>` in
|
|
/// `StartThreadOptions::thread_extension_init` for each thread to observe,
|
|
/// including on cold resume. Native parent notifications are independent.
|
|
/// Core awaits the callback after emitting the terminal turn event. Graceful
|
|
/// shutdown waits for outstanding handoffs before running thread-stop hooks.
|
|
/// Hand off promptly to host-owned delivery. Waiting for this thread to shut
|
|
/// down inside the callback would deadlock. The host owns transport and retries.
|
|
/// The embedding can supply the session ID from its thread metadata.
|
|
pub trait AgentTurnOutcomeReporter: Send + Sync {
|
|
fn report(&self, outcome: AgentTurnOutcome) -> BoxFuture<'_, ()>;
|
|
}
|