fix(skill): emit base directory as filesystem path, not file:// URL (#33580)

Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
This commit is contained in:
Chris Yuan
2026-06-24 00:08:22 -05:00
committed by GitHub
co-authored by Aiden Cline
parent 947e0017f5
commit 246d40db73
4 changed files with 4 additions and 8 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
import path from "path"
import { pathToFileURL } from "url"
import { Effect, Schema } from "effect"
import { Ripgrep } from "@opencode-ai/core/ripgrep"
import { Skill } from "../skill"
@@ -33,7 +32,7 @@ export const SkillTool = Tool.define(
})
const dir = path.dirname(info.location)
const base = pathToFileURL(dir).href
const base = dir
const files = yield* ripgrep.find({
cwd: dir,
pattern: "!**/SKILL.md",