chore: generate

This commit is contained in:
opencode-agent[bot]
2026-06-02 13:42:23 +00:00
parent 371ee321e0
commit fcfd47602b
5 changed files with 98 additions and 38 deletions
+6 -1
View File
@@ -116,5 +116,10 @@ function read(file: string) {
}
function exists(file: string) {
return Effect.promise(() => fs.stat(file).then(() => true, () => false))
return Effect.promise(() =>
fs.stat(file).then(
() => true,
() => false,
),
)
}
+3 -1
View File
@@ -42,7 +42,9 @@ describe("Repository", () => {
expect(reference).toMatchObject({ host: "file", protocol: "file:", label: localPath })
expect(reference && Repository.isFile(reference)).toBe(true)
expect(reference && Repository.isRemote(reference)).toBe(false)
expect(() => Repository.parseRemote(pathToFileURL(localPath).href)).toThrow(Repository.UnsupportedLocalRepositoryError)
expect(() => Repository.parseRemote(pathToFileURL(localPath).href)).toThrow(
Repository.UnsupportedLocalRepositoryError,
)
})
test("rejects unsafe remote references and branches with typed errors", () => {