feat: configurable status lines for CLI footer (#904)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
jnjpng
2026-02-11 17:35:34 -08:00
committed by GitHub
parent 74b369d1ca
commit c3a7f6c646
16 changed files with 1689 additions and 15 deletions

View File

@@ -0,0 +1,30 @@
// Status line input field definitions for Letta Code.
export interface StatusLineFieldSpec {
path: string;
}
export const STATUSLINE_NATIVE_FIELDS: StatusLineFieldSpec[] = [
{ path: "cwd" },
{ path: "workspace.current_dir" },
{ path: "workspace.project_dir" },
{ path: "session_id" },
{ path: "version" },
{ path: "model.id" },
{ path: "model.display_name" },
{ path: "agent.name" },
{ path: "cost.total_duration_ms" },
{ path: "cost.total_api_duration_ms" },
{ path: "context_window.context_window_size" },
{ path: "context_window.total_input_tokens" },
{ path: "context_window.total_output_tokens" },
{ path: "permission_mode" },
{ path: "network_phase" },
{ path: "terminal_width" },
];
export const STATUSLINE_DERIVED_FIELDS: StatusLineFieldSpec[] = [
{ path: "context_window.used_percentage" },
{ path: "context_window.remaining_percentage" },
{ path: "exceeds_200k_tokens" },
];