feat(server,kernel): repo-map indexer + droppable L3 context injection

This commit is contained in:
2026-06-04 01:48:05 +04:00
parent 0ca7d4c86b
commit 8b6eedcf87
9 changed files with 242 additions and 4 deletions
@@ -418,6 +418,9 @@ object ConfigLoader {
enabled = asBoolean(projectSection["enabled"], false),
root = asString(projectSection["root"], ""),
memoryK = asInt(projectSection["memory_k"], 5),
maxDepth = asInt(projectSection["max_depth"], 4),
ignoreGlobs = asStringList(projectSection["ignore_globs"]).ifEmpty { ProjectConfig.DEFAULT_IGNORES },
injectTopK = asInt(projectSection["inject_top_k"], 30),
)
val modelsSettings = ModelsSettings(
@@ -26,7 +26,16 @@ data class ProjectConfig(
val enabled: Boolean = false,
val root: String = "",
val memoryK: Int = 5,
)
val maxDepth: Int = 4,
val ignoreGlobs: List<String> = DEFAULT_IGNORES,
val injectTopK: Int = 30,
) {
companion object {
val DEFAULT_IGNORES: List<String> = listOf(
".git", "node_modules", "build", "target", ".gradle", "dist", ".idea", ".opencode",
)
}
}
/**
* A user-declared artifact kind. [schemaPath] points to a JSON file holding the