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>
35 lines
1.3 KiB
Rust
35 lines
1.3 KiB
Rust
//! Request-only provenance for the history installed when a runtime starts.
|
|
//! Warm resumes retain this value: reconnecting does not reconstruct history or
|
|
//! explain metadata that was already missing before the reconnect.
|
|
|
|
use crate::InitialHistory;
|
|
use serde::Serialize;
|
|
|
|
/// Describes a reconstruction path, not proof that tool metadata was captured or lost.
|
|
/// Fork temperature records whether the source runtime was loaded and not shut down
|
|
/// at initialization. The value lasts for the runtime, including after compaction;
|
|
/// consumers must check missing tool metadata independently for each window.
|
|
#[derive(Clone, Copy, Debug, Serialize)]
|
|
#[serde(rename_all = "snake_case")]
|
|
pub enum HistoryInitialization {
|
|
New,
|
|
Cleared,
|
|
ColdResume,
|
|
WarmFork,
|
|
ColdFork,
|
|
SuppliedHistory,
|
|
}
|
|
|
|
impl HistoryInitialization {
|
|
/// Classifies history without assuming that a fork's source runtime is available.
|
|
pub fn from_history(history: &InitialHistory) -> Self {
|
|
match history {
|
|
InitialHistory::New => Self::New,
|
|
InitialHistory::Cleared => Self::Cleared,
|
|
InitialHistory::Resumed(_) => Self::ColdResume,
|
|
// Callers with a known fork source supply its runtime availability.
|
|
InitialHistory::Forked(_) => Self::SuppliedHistory,
|
|
}
|
|
}
|
|
}
|