Skip to content

语言配置发现:非 Python 仓无 .codeindex.yaml 时静默漏扫(建议 hint) #175

Description

@dreamlx

现象

.codeindex.yaml 时默认 languages=["python"]。TS/JS/Swift/Kotlin 仓因此静默只扫零星 .py:

  • HEXFORCE-RN(全 TS 仓)实测:无配置 → 7 实体(全来自 ios/Pods 里的 2 个 .py);配 languages: [typescript, javascript] 后 → 667 实体
  • 7≠0,不触发 mismatch hint,graph-export"成功"——下游(loomgraph index / agent 查询)拿到残缺图且零信号

建议(提醒不阻断,对齐失败处理哲学)

graph-export/scan 结束时做语言指纹:repo 内主流扩展名(.ts/.tsx/.js/.swift/.kt/.java/…)文件数显著 > .py,而生效 languages 不含它们 → stderr/JSON 输出 hint:

hint: detected 654 typescript files but languages=[python] — add .codeindex.yaml (languages: [typescript, ...])

不改 exit code、不自动改配置(保留用户控制权),只消除 silent partial。

关联

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions