| feat(graph): tree-sitter call-expression queries for 5 languages
Add .scm query files for Rust, Python, JavaScript, Java, and Go to
extract callee names from call expressions. Add calls_query() method
to Lang enum and a test verifying Rust query captures.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
| 1 个月前 |
| fix: ~ 路径在 sudo 场景下错误解析为 /root
问题: 当程序通过 sudo 运行时,~ 被错误解析为 /root 而不是实际用户的 home 目录
原因: dirs::home_dir() 优先读取 $HOME 环境变量,在 sudo 下 $HOME=/root
修复方案:
- 新增 real_home_dir() 函数,检查 SUDO_USER 环境变量
- 通过 getpwnam_r 获取实际用户的 home 目录
- 替换所有 dirs::home_dir() 调用
修改的文件:
- atomcode-core/tool/mod.rs: 新增 real_home_dir() 和 get_user_home()
- atomcode-core/tool/bash.rs, cd.rs, write.rs: 使用 real_home_dir()
- atomcode-core/agent/services.rs, mcp/config.rs, turn/datalog.rs: 同上
- atomcode-core/skill.rs, graph/indexer.rs, config/mod.rs: 同上
- atomcode-daemon/main.rs: 使用 real_home_dir()
- atomcode-cli/main.rs: panic hook 中使用 real_home_dir()
- atomcode-telemetry/identity.rs: 新增简化版 real_home_dir()
- atomcode-tuix/platform.rs: 使用 atomcode_core::tool::real_home_dir()
Closes: #214
| 1 个月前 |
| Merge feat/telemetry-v2 into release/v4.20.1
Integrates the atomcode-telemetry crate (new) with the MCP support,
Ollama function-calling, and background-commands features from release.
Key resolutions:
- CLI Commands enum: kept both Mcp(McpCli) and Telemetry { action } variants
- atomcode_tuix::run(): added mcp_registry + mcp_connect_rx + telemetry params
- LoopCtx: added both mcp_registry/mcp_connect_rx/mcp_reload and telemetry fields
- runner.rs: kept telemetry scope + tel_return! macro; added unwrap_doubly_nested_args
from HEAD into v2's ToolCallDone arm; preserved HEAD's async ToolRegistry API
- bash.rs: merged HEAD's enhanced netcat/mknod security detection with v2's
code structure improvements; added visit_f64 to lenient deserializer
- agent/mod.rs: took HEAD's emit_rich_context_stats().await form
- daemon/main.rs: kept register_sync form + telemetry Disabled("daemon") init
- commands.rs: took HEAD (mcp, background, init; no /fixissue)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
| 1 个月前 |
| feat(graph): CodeGraph data structures + bincode persistence
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
| 1 个月前 |
| feat(graph): symbol name resolver with priority-based disambiguation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
| 1 个月前 |