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>
33 lines
1023 B
Rust
33 lines
1023 B
Rust
//! Transient hook activity, independent of whether an agent turn owns a status row.
|
|
|
|
use crate::line_truncation::truncate_line_with_ellipsis_if_overflow;
|
|
use crate::motion::MotionMode;
|
|
use crate::motion::shimmer_text;
|
|
use crate::render::renderable::Renderable;
|
|
use crate::text_formatting::capitalize_first;
|
|
use ratatui::buffer::Buffer;
|
|
use ratatui::layout::Rect;
|
|
use ratatui::style::Stylize;
|
|
use ratatui::text::Line;
|
|
|
|
pub(super) struct HookStatus<'a> {
|
|
pub message: &'a str,
|
|
pub animations_enabled: bool,
|
|
}
|
|
|
|
impl Renderable for HookStatus<'_> {
|
|
fn render(&self, area: Rect, buf: &mut Buffer) {
|
|
let mut spans = vec!["• ".dim()];
|
|
spans.extend(shimmer_text(
|
|
&capitalize_first(self.message),
|
|
MotionMode::from_animations_enabled(self.animations_enabled),
|
|
));
|
|
truncate_line_with_ellipsis_if_overflow(Line::from(spans).dim(), usize::from(area.width))
|
|
.render(area, buf);
|
|
}
|
|
|
|
fn desired_height(&self, _width: u16) -> u16 {
|
|
1
|
|
}
|
|
}
|