Repository navigation
v0.1.8 — .opencode is scanned, dead scan.ignore removed
opencode-okf-context v0.1.8
1. .opencode is now scanned
Auto-scan previously skipped every hidden directory — including .opencode, where opencode users commonly keep skill/knowledge bundles (e.g. .opencode/skill/). Such bundles are now auto-discovered through the normal heuristic (a root index.md declaring okf_version, or index.md/log.md + a typed concept). The build/VCS blacklist (node_modules, .git, .hg, .svn, dist, build, out, .next, .turbo, .cache, coverage) still applies at any depth — including inside .opencode — and all other hidden directories remain skipped. Hidden files (.foo.md) are skipped as before.
2. Removed the never-implemented scan.ignore config key
scan.ignore was accepted in okf.jsonc and described in the schema, but the discovery code never read it — a dead knob. It has been removed from the config interface, defaults, JSON schema, and README examples.
Verified: 114 tests pass (new: H5 ×4 — explicit-marker and heuristic discovery under .opencode, other hidden dirs still skipped, node_modules inside .opencode still skipped). tsc --noEmit clean.
中文摘要
.opencode目录参与扫描——此前所有隐藏目录一律跳过,放在.opencode/skill/下的知识 bundle 无法被自动发现。现在.opencode与普通目录一样被遍历(走正常 bundle 判定:okf_version显式标记,或 index/log + 带type的 concept)。黑名单目录(node_modules、.git、dist等 11 个)在任意深度仍然生效——包括.opencode内部;其余隐藏目录与隐藏文件依旧跳过。- 移除从未实现的
scan.ignore配置——该键在okf.jsonc里被接受、schema 里也有描述,但发现代码从未读取,纯死配置;已从接口、默认值、schema 和 README 示例中全部移除。
验证:114 测试全过(新增 4 个 H5 测试锁定行为),tsc --noEmit 无错误。