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>
29 lines
1.1 KiB
Rust
29 lines
1.1 KiB
Rust
//! Fixed ranges of original records for live, forward-only history consumers.
|
|
//! Positions identify persisted source records; they do not acknowledge downstream writes.
|
|
|
|
use akode_protocol::protocol::HistoryPosition;
|
|
use akode_rollout::RolloutItem;
|
|
|
|
/// Capture the current complete tail, optionally reading records after a saved position.
|
|
/// This API deliberately provides no implicit backfill or restart recovery.
|
|
pub enum OriginalHistoryRequest {
|
|
/// Return only the current complete end position.
|
|
Tail,
|
|
/// Freeze the current complete tail and read originals after this position.
|
|
/// Appends beyond that cutoff are excluded from the returned records.
|
|
After(HistoryPosition),
|
|
}
|
|
|
|
/// One original record and the exclusive position immediately after it.
|
|
pub struct OriginalHistoryItem {
|
|
pub item: RolloutItem,
|
|
pub end: HistoryPosition,
|
|
}
|
|
|
|
/// Original records in source order and their fixed upper boundary.
|
|
/// A tail request returns no items. Reading never advances consumer progress.
|
|
pub struct OriginalHistoryRead {
|
|
pub items: Vec<OriginalHistoryItem>,
|
|
pub end: HistoryPosition,
|
|
}
|