mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-24 22:14:37 +00:00
feat: enable type-aware no-misused-spread rule, fix 8 violations (#22749)
This commit is contained in:
parent
8aa0f9fe95
commit
bd29004831
8 changed files with 22 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
},
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue