0
11
近 7 天 2
21.9
生态多维模型
3 个月前
2026-05-21
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-ntfs-glob-plugin@0.1.0"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-ntfs-glob-plugin@0.1.0"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D opencode-ntfs-glob-pluginopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
Windows-only OpenCode plugin that replaces the glob tool with an NTFS-accelerated implementation and an rg --files fallback.
Platform Support
This plugin is Windows-only. The package declares os: ["win32"] and cpu: ["x64", "arm64"], so npm blocks installation on unsupported platforms.
The accelerated globbing backend is designed for local NTFS volumes and uses NTFS-native USN/MFT/file-ID APIs. On unsupported filesystems, network shares, insufficient-permission paths, USN journal rebuild or rollback cases, or when native volume APIs are unavailable, the plugin falls back to a slower best-effort traversal path.
This package does not provide macOS/Linux native acceleration, content grep acceleration, or a cross-platform filesystem index.
Install
opencode plugin opencode-ntfs-glob-plugin@latest --global
Alternatively, add it to OpenCode config:
{
"plugin": ["opencode-ntfs-glob-plugin@latest"]
}
Tool Surface
The plugin registers only glob.
Arguments:
pattern: glob pattern to match files.path: optional directory to search.
It does not register grep and does not accelerate content search.
Development Verification
bun run typecheck
bun test --max-concurrency=1 --timeout=120000
bun run build:ntfs-broker
bun run check:package
rtk cargo fmt --check --all
rtk cargo check -p opencode-ntfs-broker
rtk cargo test -p opencode-ntfs-broker
Packaged broker benchmarks must run serially, not concurrently with other benchmarks.
License
UNLICENSED. No open-source license is granted by this package metadata.