Browse Source

chore: format code

GitHub Action 2 months ago
parent
commit
bc524eeb44

+ 10 - 7
packages/opencode/src/auth/index.ts

@@ -41,13 +41,16 @@ export namespace Auth {
 
   export async function all(): Promise<Record<string, Info>> {
     const file = Bun.file(filepath)
-    const data = await file.json().catch(() => ({} as Record<string, unknown>))
-    return Object.entries(data).reduce((acc, [key, value]) => {
-      const parsed = Info.safeParse(value)
-      if (!parsed.success) return acc
-      acc[key] = parsed.data
-      return acc
-    }, {} as Record<string, Info>)
+    const data = await file.json().catch(() => ({}) as Record<string, unknown>)
+    return Object.entries(data).reduce(
+      (acc, [key, value]) => {
+        const parsed = Info.safeParse(value)
+        if (!parsed.success) return acc
+        acc[key] = parsed.data
+        return acc
+      },
+      {} as Record<string, Info>,
+    )
   }
 
   export async function set(key: string, info: Info) {

+ 1 - 1
packages/opencode/src/cli/cmd/tui/component/dialog-theme-list.tsx

@@ -6,7 +6,7 @@ import { onCleanup, onMount } from "solid-js"
 export function DialogThemeList() {
   const theme = useTheme()
   const options = Object.keys(theme.all())
-    .sort((a, b) => a.localeCompare(b, undefined, { sensitivity: 'base' }))
+    .sort((a, b) => a.localeCompare(b, undefined, { sensitivity: "base" }))
     .map((value) => ({
       title: value,
       value: value,

File diff suppressed because it is too large
+ 90 - 375
packages/sdk/js/openapi.json


File diff suppressed because it is too large
+ 90 - 375
packages/sdk/openapi.json


Some files were not shown because too many files changed in this diff