Explorar o código

chore: generate

opencode-agent[bot] hai 5 días
pai
achega
ec11d6ed03

+ 4 - 3
packages/app/e2e/regression/session-timeline-transport.spec.ts

@@ -48,9 +48,10 @@ test("delivers server heartbeat without mutating the timeline", async ({ page })
   const partID = "prt_transport_heartbeat_sentinel"
   const sentinel = await timeline.transport.send(partUpdated(textPart(partID, "heartbeat sentinel")))
   await timeline.waitForPart(partID)
-  await expect(
-    page.locator(`[data-timeline-part-id="${partID}"] [data-component="markdown"]`),
-  ).toHaveAttribute("data-markdown-ready", "")
+  await expect(page.locator(`[data-timeline-part-id="${partID}"] [data-component="markdown"]`)).toHaveAttribute(
+    "data-markdown-ready",
+    "",
+  )
   const before = await timelineRows(page)
   const heartbeat = await timeline.transport.heartbeat()
 

+ 1 - 4
packages/app/e2e/utils/waits.ts

@@ -11,10 +11,7 @@ export async function expectSessionTitle(page: Page, title: string) {
   await expectAppVisible(page.getByRole("heading", { name: title }))
 }
 
-export async function expectSessionReady(
-  page: Page,
-  input: { server: string; sessionID: string; title: string },
-) {
+export async function expectSessionReady(page: Page, input: { server: string; sessionID: string; title: string }) {
   await expect(page).toHaveURL(`/server/${base64Encode(input.server)}/session/${input.sessionID}`)
   await expectSessionTitle(page, input.title)
 }

+ 1 - 4
packages/cli/test/config.test.ts

@@ -120,10 +120,7 @@ test("migrates before the first update and does not remigrate afterward", async
 
 test("preserves legacy cursor settings", async () => {
   const directory = await Bun.$`mktemp -d`.text().then((value) => value.trim())
-  await Bun.write(
-    path.join(directory, "tui.json"),
-    JSON.stringify({ cursor: { style: "underline", blinking: false } }),
-  )
+  await Bun.write(path.join(directory, "tui.json"), JSON.stringify({ cursor: { style: "underline", blinking: false } }))
 
   try {
     const config = await run(

+ 0 - 1
packages/desktop/src/renderer/i18n/az.ts

@@ -19,7 +19,6 @@ export const dict = {
   "desktop.updater.installFailed.title": "Yeniləmə uğursuz oldu",
   "desktop.updater.installFailed.message": "Yeniləmə quraşdırıla bilmədi",
 
-
   "desktop.error.dev.rootNotFound":
     "Kök element tapılmadı. index.html-ə əlavə etməyi unutmusunuz? Yoxsa id atributu səhv yazılıb?",
 }

+ 0 - 1
packages/desktop/src/renderer/i18n/id.ts

@@ -19,7 +19,6 @@ export const dict = {
   "desktop.updater.installFailed.title": "Pembaruan gagal",
   "desktop.updater.installFailed.message": "Gagal menginstal pembaruan",
 
-
   "desktop.error.dev.rootNotFound":
     "Elemen root tidak ditemukan. Apakah Anda lupa menambahkannya ke index.html? Atau mungkin atribut id salah eja?",
 }

+ 0 - 1
packages/desktop/src/renderer/i18n/th.ts

@@ -19,6 +19,5 @@ export const dict = {
   "desktop.updater.installFailed.title": "การอัปเดตล้มเหลว",
   "desktop.updater.installFailed.message": "ไม่สามารถติดตั้งการอัปเดตได้",
 
-
   "desktop.error.dev.rootNotFound": "ไม่พบองค์ประกอบรูท คุณลืมเพิ่มใน index.html หรือบางทีแอตทริบิวต์ id อาจสะกดผิด?",
 }

+ 0 - 1
packages/desktop/src/renderer/i18n/tr.ts

@@ -19,7 +19,6 @@ export const dict = {
   "desktop.updater.installFailed.title": "Güncelleme başarısız oldu",
   "desktop.updater.installFailed.message": "Güncelleme yüklenemedi",
 
-
   "desktop.error.dev.rootNotFound":
     "Kök eleman bulunamadı. index.html dosyanıza eklemeyi unuttunuz mu? Ya da id özelliği yanlış mı yazıldı?",
 }

+ 8 - 1
packages/session-ui/src/components/message-part.tsx

@@ -460,7 +460,14 @@ function newLayout() {
 }
 
 function webSearchProviderLabel(provider: unknown, i18n: ReturnType<typeof useI18n>) {
-  const name = provider === "parallel" ? "Parallel" : provider === "exa" ? "Exa" : provider === "firecrawl" ? "Firecrawl" : undefined
+  const name =
+    provider === "parallel"
+      ? "Parallel"
+      : provider === "exa"
+        ? "Exa"
+        : provider === "firecrawl"
+          ? "Firecrawl"
+          : undefined
   if (name) return i18n.t("ui.tool.websearch.provider", { provider: name })
   return i18n.t("ui.tool.websearch")
 }

+ 1 - 3
packages/tui/src/routes/session/index.tsx

@@ -1059,9 +1059,7 @@ export function Session() {
               <BackgroundToolHint messages={messages()} />
               <Show when={session()?.revert?.messageID}>
                 <RevertMessage
-                  count={
-                    messagesFromRevert().filter((message) => message.type === "user").length
-                  }
+                  count={messagesFromRevert().filter((message) => message.type === "user").length}
                   files={session()!.revert!.files ?? []}
                 />
               </Show>