mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix: disable claude skill loading for now
This commit is contained in:
parent
64f898601b
commit
009b096004
1 changed files with 15 additions and 15 deletions
|
|
@ -58,7 +58,7 @@ export namespace Skill {
|
|||
)
|
||||
|
||||
const SKILL_GLOB = new Bun.Glob("skill/*/SKILL.md")
|
||||
const CLAUDE_SKILL_GLOB = new Bun.Glob("*/SKILL.md")
|
||||
// const CLAUDE_SKILL_GLOB = new Bun.Glob("*/SKILL.md")
|
||||
|
||||
async function discover(): Promise<string[]> {
|
||||
const directories = await Config.directories()
|
||||
|
|
@ -78,20 +78,20 @@ export namespace Skill {
|
|||
}
|
||||
|
||||
// Also scan .claude/skills/ walking up from cwd to worktree
|
||||
for await (const dir of Filesystem.up({
|
||||
targets: [".claude/skills"],
|
||||
start: Instance.directory,
|
||||
stop: Instance.worktree,
|
||||
})) {
|
||||
for await (const match of CLAUDE_SKILL_GLOB.scan({
|
||||
cwd: dir,
|
||||
absolute: true,
|
||||
onlyFiles: true,
|
||||
followSymlinks: true,
|
||||
})) {
|
||||
paths.push(match)
|
||||
}
|
||||
}
|
||||
// for await (const dir of Filesystem.up({
|
||||
// targets: [".claude/skills"],
|
||||
// start: Instance.directory,
|
||||
// stop: Instance.worktree,
|
||||
// })) {
|
||||
// for await (const match of CLAUDE_SKILL_GLOB.scan({
|
||||
// cwd: dir,
|
||||
// absolute: true,
|
||||
// onlyFiles: true,
|
||||
// followSymlinks: true,
|
||||
// })) {
|
||||
// paths.push(match)
|
||||
// }
|
||||
// }
|
||||
|
||||
return paths
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue