mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-11 04:43:34 +00:00
chore: generate
This commit is contained in:
parent
0dcedc199c
commit
ec11d6ed03
9 changed files with 15 additions and 19 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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?",
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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?",
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,6 +19,5 @@ export const dict = {
|
|||
"desktop.updater.installFailed.title": "การอัปเดตล้มเหลว",
|
||||
"desktop.updater.installFailed.message": "ไม่สามารถติดตั้งการอัปเดตได้",
|
||||
|
||||
|
||||
"desktop.error.dev.rootNotFound": "ไม่พบองค์ประกอบรูท คุณลืมเพิ่มใน index.html หรือบางทีแอตทริบิวต์ id อาจสะกดผิด?",
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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ı?",
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue