MOS/mos_v3/mos_core/index_config.json

69 lines
1.1 KiB
JSON

{
"schema_version": 1,
"index_dir": "./index",
"root_dirs": [
"."
],
"include_extensions": [
".md",
".txt",
".json",
".jsonc",
".py",
".ps1",
".yml",
".yaml"
],
"max_file_bytes": 1048576,
"chunk": {
"target_chars": 1800,
"overlap_chars": 240
},
"exclude_dir_names": [
".git",
"node_modules",
"__pycache__",
".venv",
"venv",
"vendor",
"index",
"bootstrap_out",
"data"
],
"exclude_path_patterns": [
"auth.json",
".env",
"password",
"passwd",
"token",
"secret",
"credential",
"api_key",
"private_key",
"凭据",
"密码",
".tensor",
".onnx",
".nb",
".data",
".quantize",
".sqlite3",
".db",
".log"
],
"redact_line_patterns": [
"(?i)(api[_-]?key|token|secret|password|passwd|authorization|bearer)\\s*[:=]\\s*[^\\s]+"
],
"source_type_weights": {
"memory_card": 1.0,
"active_task": 0.95,
"task_log": 0.9,
"policy": 0.85,
"registry": 0.8,
"spec": 0.75,
"source": 0.5,
"log": 0.25,
"config": 0.2
}
}