绝尘
7c2e3b23c1
新增: AST 代码智能 read_symbol 三态(治 prompt 爆,信息密度驱动)
tree-sitter 语法层符号解析,治 aichat read_file 全文回灌 prompt 爆(e46f5605 360K/8dfe0b94 5M)。
核心思想:信息密度≠压缩,read_symbol 按语义层级返符号骨架/全文,非物理读全文件。
- code_intel.rs: grammar_for 集中 lookup(Rust/TS/JS/Vue借TS,3 grammar 4 类)+ read_symbol 三态(骨架默认/全文)+ 不报错兜底(无grammar/解析失败/未找到→grep提示)
- tool_registry 注册 read_symbol(对齐 read_file handler 闭包模式)
- Cargo.toml 加 tree-sitter 0.25 + rust/typescript/javascript grammar
- AST 设计文档 grammar 策略章节定稿(静态编译+lookup,不动态不trait)
实测: code_intel.rs 全文 21851B vs read_symbol 骨架 897B,降 24.4x(达设计目标一个量级+)。单测 14 全过。
2026-06-24 02:49:48 +08:00
..
2026-06-24 00:27:09 +08:00
2026-06-24 00:27:08 +08:00
2026-06-21 20:51:26 +08:00
2026-06-22 03:31:58 +08:00
2026-06-24 02:49:48 +08:00
2026-06-21 20:51:26 +08:00
2026-06-24 00:27:09 +08:00
2026-06-22 03:06:28 +08:00
2026-06-19 12:48:28 +08:00
2026-06-21 20:51:26 +08:00
2026-06-24 02:49:48 +08:00
2026-06-22 00:04:14 +08:00
2026-06-17 02:04:58 +08:00
2026-06-24 00:19:54 +08:00
2026-06-16 22:57:43 +08:00
2026-06-21 20:51:26 +08:00
2026-06-22 03:31:58 +08:00
2026-06-20 03:54:58 +08:00
2026-06-24 02:49:48 +08:00