|
@@ -4,7 +4,6 @@ import { Ripgrep } from "@opencode-ai/core/ripgrep"
|
|
|
import { Cause, Effect, Exit, Layer } from "effect"
|
|
import { Cause, Effect, Exit, Layer } from "effect"
|
|
|
import { afterEach, describe, expect } from "bun:test"
|
|
import { afterEach, describe, expect } from "bun:test"
|
|
|
import path from "path"
|
|
import path from "path"
|
|
|
-import { pathToFileURL } from "url"
|
|
|
|
|
import type { Permission } from "../../src/permission"
|
|
import type { Permission } from "../../src/permission"
|
|
|
import type { Tool } from "@/tool/tool"
|
|
import type { Tool } from "@/tool/tool"
|
|
|
import { SkillTool } from "../../src/tool/skill"
|
|
import { SkillTool } from "../../src/tool/skill"
|
|
@@ -90,7 +89,7 @@ Use this skill.
|
|
|
expect(requests[0].always).toContain("tool-skill")
|
|
expect(requests[0].always).toContain("tool-skill")
|
|
|
expect(result.metadata.dir).toBe(skill)
|
|
expect(result.metadata.dir).toBe(skill)
|
|
|
expect(result.output).toContain(`<skill_content name="tool-skill">`)
|
|
expect(result.output).toContain(`<skill_content name="tool-skill">`)
|
|
|
- expect(result.output).toContain(`Base directory for this skill: ${pathToFileURL(skill).href}`)
|
|
|
|
|
|
|
+ expect(result.output).toContain(`Base directory for this skill: ${skill}`)
|
|
|
expect(result.output).toContain(`<file>${file}</file>`)
|
|
expect(result.output).toContain(`<file>${file}</file>`)
|
|
|
}),
|
|
}),
|
|
|
)
|
|
)
|