GeezerVison is showing github.com — fix: prefix 32 unused parameters with underscore (#22694) · al-prk/opencode@d6b14e2
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: packages/console/app/src/component/icon.tsx +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | import { JSX } from "solid-js" | 2 | 2 |
| 3 | | -export function IconZen(props: JSX.SvgSVGAttributes<SVGSVGElement>) { | | 3 | +export function IconZen(_props: JSX.SvgSVGAttributes<SVGSVGElement>) { | 4 | 4 | return ( | 5 | 5 | <svg width="84" height="30" viewBox="0 0 84 30" fill="none" xmlns="http://www.w3.org/2000/svg"> | 6 | 6 | <path d="M24 24H6V18H18V12H24V24ZM6 18H0V12H6V18Z" fill="currentColor" fill-opacity="0.2" /> | @@ -13,7 +13,7 @@ export function IconZen(props: JSX.SvgSVGAttributes<SVGSVGElement>) { | 13 | 13 | ) | 14 | 14 | } | 15 | 15 |
| 16 | | -export function IconGo(props: JSX.SvgSVGAttributes<SVGSVGElement>) { | | 16 | +export function IconGo(_props: JSX.SvgSVGAttributes<SVGSVGElement>) { | 17 | 17 | return ( | 18 | 18 | <svg width="54" height="30" viewBox="0 0 54 30" fill="none" xmlns="http://www.w3.org/2000/svg"> | 19 | 19 | <path d="M24 30H0V0H24V6H6V24H18V18H12V12H24V30Z" fill="currentColor" /> | |
Collapse file Copy file name to clipboard +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | import { APIEvent } from "@solidjs/start" | 2 | 2 | import { useAuthSession } from "~/context/auth" | 3 | 3 |
| 4 | | -export async function GET(input: APIEvent) { | | 4 | +export async function GET(_input: APIEvent) { | 5 | 5 | const session = await useAuthSession() | 6 | 6 | return Response.json(session.data) | 7 | 7 | } |
Collapse file Copy file name to clipboardExpand all lines: packages/console/app/src/routes/debug/index.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -3,7 +3,7 @@ import { json } from "@solidjs/router" | 3 | 3 | import { Database } from "@opencode-ai/console-core/drizzle/index.js" | 4 | 4 | import { UserTable } from "@opencode-ai/console-core/schema/user.sql.js" | 5 | 5 |
| 6 | | -export async function GET(evt: APIEvent) { | | 6 | +export async function GET(_evt: APIEvent) { | 7 | 7 | return json({ | 8 | 8 | data: await Database.use(async (tx) => { | 9 | 9 | const result = await tx.$count(UserTable) | |
Collapse file Copy file name to clipboardExpand all lines: packages/console/app/src/routes/zen/util/provider/openai-compatible.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -30,7 +30,7 @@ export const oaCompatHelper: ProviderHelper = ({ adjustCacheUsage, safetyIdentif | 30 | 30 | headers.set("authorization", `Bearer ${apiKey}`) | 31 | 31 | headers.set("x-session-affinity", headers.get("x-opencode-session") ?? "") | 32 | 32 | }, | 33 | | - modifyBody: (body: Record<string, any>, workspaceID?: string) => { | | 33 | + modifyBody: (body: Record<string, any>, _workspaceID?: string) => { | 34 | 34 | return { | 35 | 35 | ...body, | 36 | 36 | ...(body.stream ? { stream_options: { include_usage: true } } : {}), | |
Collapse file Copy file name to clipboardExpand all lines: packages/console/app/src/routes/zen/v1/models.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -5,7 +5,7 @@ import { WorkspaceTable } from "@opencode-ai/console-core/schema/workspace.sql.j | 5 | 5 | import { ModelTable } from "@opencode-ai/console-core/schema/model.sql.js" | 6 | 6 | import { ZenData } from "@opencode-ai/console-core/model.js" | 7 | 7 |
| 8 | | -export async function OPTIONS(input: APIEvent) { | | 8 | +export async function OPTIONS(_input: APIEvent) { | 9 | 9 | return new Response(null, { | 10 | 10 | status: 200, | 11 | 11 | headers: { | |
Collapse file Copy file name to clipboardExpand all lines: packages/console/app/src/routes/zen/v1/models/[model].ts +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -6,8 +6,8 @@ export function POST(input: APIEvent) { | 6 | 6 | format: "google", | 7 | 7 | modelList: "full", | 8 | 8 | parseApiKey: (headers: Headers) => headers.get("x-goog-api-key") ?? undefined, | 9 | | - parseModel: (url: string, body: any) => url.split("/").pop()?.split(":")?.[0] ?? "", | 10 | | - parseIsStream: (url: string, body: any) => | | 9 | + parseModel: (url: string, _body: any) => url.split("/").pop()?.split(":")?.[0] ?? "", | | 10 | + parseIsStream: (url: string, _body: any) => | 11 | 11 | // ie. url: https://opencode.ai/zen/v1/models/gemini-3-pro:streamGenerateContent?alt=sse' | 12 | 12 | url.split("/").pop()?.split(":")?.[1]?.startsWith("streamGenerateContent") ?? false, | 13 | 13 | }) | |
Collapse file Copy file name to clipboardExpand all lines: packages/function/src/api.ts +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -49,9 +49,9 @@ export class SyncServer extends DurableObject<Env> { | 49 | 49 | }) | 50 | 50 | } | 51 | 51 |
| 52 | | - async webSocketMessage(ws, message) {} | | 52 | + async webSocketMessage(_ws, _message) {} | 53 | 53 |
| 54 | | - async webSocketClose(ws, code, reason, wasClean) { | | 54 | + async webSocketClose(ws, code, _reason, _wasClean) { | 55 | 55 | ws.close(code, "Durable Object is closing WebSocket") | 56 | 56 | } | 57 | 57 |
| |
Collapse file Copy file name to clipboardExpand all lines: packages/opencode/src/agent/agent.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -80,7 +80,7 @@ export namespace Agent { | 80 | 80 | const provider = yield* Provider.Service | 81 | 81 |
| 82 | 82 | const state = yield* InstanceState.make<State>( | 83 | | - Effect.fn("Agent.state")(function* (ctx) { | | 83 | + Effect.fn("Agent.state")(function* (_ctx) { | 84 | 84 | const cfg = yield* config.get() | 85 | 85 | const skillDirs = yield* skill.dirs() | 86 | 86 | const whitelistedDirs = [Truncate.GLOB, ...skillDirs.map((dir) => path.join(dir, "*"))] | |
Collapse file Copy file name to clipboardExpand all lines: packages/opencode/src/cli/cmd/tui/component/dialog-mcp.tsx +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -78,7 +78,7 @@ export function DialogMcp() { | 78 | 78 | title="MCPs" | 79 | 79 | options={options()} | 80 | 80 | keybind={keybinds()} | 81 | | - onSelect={(option) => { | | 81 | + onSelect={(_option) => { | 82 | 82 | // Don't close on select, only on escape | 83 | 83 | }} | 84 | 84 | /> | |
Collapse file Copy file name to clipboardExpand all lines: packages/opencode/src/cli/cmd/tui/ui/dialog-confirm.tsx +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -54,7 +54,7 @@ export function DialogConfirm(props: DialogConfirmProps) { | 54 | 54 | paddingLeft={1} | 55 | 55 | paddingRight={1} | 56 | 56 | backgroundColor={key === store.active ? theme.primary : undefined} | 57 | | - onMouseUp={(evt) => { | | 57 | + onMouseUp={(_evt) => { | 58 | 58 | if (key === "confirm") props.onConfirm?.() | 59 | 59 | if (key === "cancel") props.onCancel?.() | 60 | 60 | dialog.clear() | |
|