chore: generate

This commit is contained in:
opencode-agent[bot]
2026-06-09 16:12:42 +00:00
parent ffcb45d7c9
commit ada5b31bb0
11 changed files with 69 additions and 33 deletions

View File

@@ -30,7 +30,9 @@ export const Plugin = {
local(entry)
? new Reference.LocalSource({
type: "local",
path: AbsolutePath.make(localPath(directory, global.home, typeof entry === "string" ? entry : entry.path)),
path: AbsolutePath.make(
localPath(directory, global.home, typeof entry === "string" ? entry : entry.path),
),
})
: new Reference.GitSource({
type: "git",

View File

@@ -627,6 +627,4 @@ export const layer = Layer.effect(
}),
)
export const locationLayer = layer.pipe(
Layer.provide(Ripgrep.defaultLayer),
)
export const locationLayer = layer.pipe(Layer.provide(Ripgrep.defaultLayer))

View File

@@ -13,11 +13,7 @@ import { tmpdir } from "./fixture/tmpdir"
import { location } from "./fixture/location"
import { it } from "./lib/effect"
function provide(
directory: string,
filesystem = FSUtil.defaultLayer,
data = Global.Path.data,
) {
function provide(directory: string, filesystem = FSUtil.defaultLayer, data = Global.Path.data) {
return Effect.provide(
FileSystem.layer.pipe(
Layer.provide(
@@ -447,5 +443,4 @@ describe("FileSystem", () => {
}).pipe(provide(directory)),
),
)
})

View File

@@ -44,7 +44,11 @@ describe("Reference", () => {
yield* update((editor) => editor.add("sdk", source))
expect(yield* references.list()).toEqual([
new Reference.Info({ name: "sdk", path: AbsolutePath.make(Repository.cachePath(Global.Path.repos, repository)), source }),
new Reference.Info({
name: "sdk",
path: AbsolutePath.make(Repository.cachePath(Global.Path.repos, repository)),
source,
}),
])
}).pipe(
Effect.scoped,