aKode 0.8.0: grafo del codice locale (tree-sitter + git) e strumento code_graph, memorie ancorate ai simboli con stato stale, client MCP akode-mcp-client
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -712,6 +712,24 @@ impl Default for MemoriaDeliveryConfig {
|
||||
}
|
||||
}
|
||||
|
||||
/// Local code graph (`[code_graph]`).
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub struct CodeGraphConfig {
|
||||
pub enabled: bool,
|
||||
pub repo_map: bool,
|
||||
pub max_output_tokens: u32,
|
||||
}
|
||||
|
||||
impl Default for CodeGraphConfig {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
enabled: true,
|
||||
repo_map: false,
|
||||
max_output_tokens: 1200,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Session-start briefing of the `memoria` plugin (`[memoria]`).
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub struct MemoriaBriefingConfig {
|
||||
@@ -1271,6 +1289,12 @@ pub struct Config {
|
||||
/// Session delivery of the `memoria` plugin (`[memoria]`).
|
||||
pub memoria_delivery: MemoriaDeliveryConfig,
|
||||
|
||||
/// Memory anchors to code symbols, checked locally (`[memoria] anchors`).
|
||||
pub memoria_anchors: bool,
|
||||
|
||||
/// Local code graph and the `code_graph` tool (`[code_graph]`).
|
||||
pub code_graph: CodeGraphConfig,
|
||||
|
||||
/// Idle timeout for unsubscribed app-server threads.
|
||||
pub thread_unload_delay: Duration,
|
||||
|
||||
@@ -4295,6 +4319,23 @@ impl Config {
|
||||
.clamp(1, 1440),
|
||||
}
|
||||
};
|
||||
let memoria_anchors = cfg
|
||||
.memoria
|
||||
.as_ref()
|
||||
.and_then(|memoria| memoria.anchors)
|
||||
.unwrap_or(true);
|
||||
let code_graph = {
|
||||
let defaults = CodeGraphConfig::default();
|
||||
let toml = cfg.code_graph.clone().unwrap_or_default();
|
||||
CodeGraphConfig {
|
||||
enabled: toml.enabled.unwrap_or(defaults.enabled),
|
||||
repo_map: toml.repo_map.unwrap_or(defaults.repo_map),
|
||||
max_output_tokens: toml
|
||||
.max_output_tokens
|
||||
.unwrap_or(defaults.max_output_tokens)
|
||||
.clamp(300, 4000),
|
||||
}
|
||||
};
|
||||
let background_terminal_max_timeout = cfg
|
||||
.background_terminal_max_timeout
|
||||
.unwrap_or(DEFAULT_MAX_BACKGROUND_TERMINAL_TIMEOUT_MS)
|
||||
@@ -4896,6 +4937,8 @@ impl Config {
|
||||
announce_nudges,
|
||||
memoria_briefing,
|
||||
memoria_delivery,
|
||||
memoria_anchors,
|
||||
code_graph,
|
||||
thread_unload_delay,
|
||||
ghost_snapshot,
|
||||
multi_agent_v2,
|
||||
|
||||
Reference in New Issue
Block a user