feat: enable type-aware no-misused-spread rule, fix 8 violations (#22749)

This commit is contained in:
Kit Langton 2026-04-15 23:50:50 -04:00 committed by GitHub
parent 8aa0f9fe95
commit bd29004831
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 22 additions and 10 deletions

View file

@ -520,7 +520,7 @@ export function Logo() {
const shadow = tint(theme.background, ink, 0.25)
const attrs = bold ? TextAttributes.BOLD : undefined
return [...line].map((char, i) => {
return Array.from(line).map((char, i) => {
const h = field(off + i, y, frame)
const n = wave(off + i, y, frame, lit(char)) + h
const s = wave(off + i, y, dusk, false) + h

View file

@ -37,9 +37,9 @@ export const UIRoutes = (): Hono =>
}
} else {
const response = await proxy(`https://app.opencode.ai${path}`, {
...c.req,
raw: c.req.raw,
headers: {
...c.req.raw.headers,
...Object.fromEntries(c.req.raw.headers.entries()),
host: "app.opencode.ai",
},
})

View file

@ -39,7 +39,11 @@ export namespace SessionEvent {
}) {
static create(input: FileAttachment) {
return new FileAttachment({
...input,
uri: input.uri,
mime: input.mime,
name: input.name,
description: input.description,
source: input.source,
})
}
}