Skip to main content

Module exit_code_hints

Module exit_code_hints 

Source
Expand description

GAP-005 (v1.0.82): Mapeamento de exit codes de subprocesso LLM para diagnósticos acionáveis.

Enums§

LlmBackendError
Structured error for an LLM subprocess invocation that failed.

Constants§

DIAG_TAIL_BYTES
Maximum number of bytes captured from each subprocess stream (stdout and stderr) for the diagnostic tail. 1 KiB matches the limit used by tracing::log macros and keeps the JSON envelope under 4 KiB.

Statics§

EXIT_CODE_HINTS
Tabela imutável de exit codes conhecidos para sugestões acionáveis.

Functions§

diagnose_exit_code
Retorna diagnóstico acionável baseado no exit code.
into_legacy_embedding
Converts an LlmBackendError to a legacy AppError::Embedding(String) so call sites that still return the old shape keep compiling during the migration window. Once all call sites are migrated to return LlmBackendError directly, this helper can be deleted.