crabmate 0.4.0

Rust AI agent: OpenAI-compatible chat/completions, function calling, HTTP serve, ops CLI
Documentation
1
2
3
4
5
6
7
# crabmate_tool 信封金样:每行 `描述<TAB>期望 JSON 单行`(与 normalize 层 round-trip 一致)
# 运行 `cargo test tool_result_envelope_golden` 校验。

v1 最小成功	{"crabmate_tool":{"v":1,"name":"read_file","summary":"读:a.rs","ok":true,"output":"content"}}
v1 压缩元数据	{"crabmate_tool":{"v":1,"name":"run_command","summary":"grep","ok":true,"output":"x","output_truncated":true,"output_original_chars":9999,"output_kept_head_chars":40,"output_kept_tail_chars":40}}
v1 失败可重试	{"crabmate_tool":{"v":1,"name":"run_command","summary":"s","ok":false,"output":"错误:超时\n","error_code":"timeout","failure_category":"timeout","retryable":true}}
v1 并行批	{"crabmate_tool":{"v":1,"name":"read_file","summary":"s","ok":true,"output":"退出码:0\n","exit_code":0,"tool_call_id":"c1","execution_mode":"parallel_readonly_batch","parallel_batch_id":"pb-2"}}