chore: generate

This commit is contained in:
opencode-agent[bot]
2026-06-14 11:25:37 +00:00
parent 010b456dfd
commit 4810df0a71
19 changed files with 115 additions and 88 deletions
+12 -7
View File
@@ -78,7 +78,10 @@ export const { use: useFile, provider: FileProvider } = createSimpleContext({
const tree = createFileTreeStore({
scope,
normalizeDir: path.normalizeDir,
list: (dir) => sdk().client.file.list({ path: dir }).then((x) => x.data ?? []),
list: (dir) =>
sdk()
.client.file.list({ path: dir })
.then((x) => x.data ?? []),
onError: (message) => {
showToast({
variant: "error",
@@ -176,8 +179,8 @@ export const { use: useFile, provider: FileProvider } = createSimpleContext({
setLoading(file)
const promise = sdk().client.file
.read({ path: file })
const promise = sdk()
.client.file.read({ path: file })
.then((x) => {
if (scope() !== directory) return
const content = x.data
@@ -200,10 +203,12 @@ export const { use: useFile, provider: FileProvider } = createSimpleContext({
}
const search = (query: string, dirs: "true" | "false") =>
sdk().client.find.files({ query, dirs }).then(
(x) => (x.data ?? []).map(path.normalize),
() => [],
)
sdk()
.client.find.files({ query, dirs })
.then(
(x) => (x.data ?? []).map(path.normalize),
() => [],
)
const stop = sdk().event.listen((e) => {
invalidateFromWatcher(e.details, {