summaryrefslogtreecommitdiffhomepage
path: root/packages/console/app/src
diff options
context:
space:
mode:
authorKit Langton <[email protected]>2026-04-15 21:56:23 -0400
committerGitHub <[email protected]>2026-04-15 21:56:23 -0400
commitd6b14e24678db678163c281257322c5a9bf0e6fa (patch)
treef3681988691b203ed5d766f47c9efb5af4f48beb /packages/console/app/src
parent66257663509bc12bb208c4c65f73c45206106aae (diff)
downloadopencode-d6b14e24678db678163c281257322c5a9bf0e6fa.tar.gz
opencode-d6b14e24678db678163c281257322c5a9bf0e6fa.zip
fix: prefix 32 unused parameters with underscore (#22694)
Diffstat (limited to 'packages/console/app/src')
-rw-r--r--packages/console/app/src/component/icon.tsx4
-rw-r--r--packages/console/app/src/routes/auth/status.ts2
-rw-r--r--packages/console/app/src/routes/debug/index.ts2
-rw-r--r--packages/console/app/src/routes/zen/util/provider/openai-compatible.ts2
-rw-r--r--packages/console/app/src/routes/zen/v1/models.ts2
-rw-r--r--packages/console/app/src/routes/zen/v1/models/[model].ts4
6 files changed, 8 insertions, 8 deletions
diff --git a/packages/console/app/src/component/icon.tsx b/packages/console/app/src/component/icon.tsx
index 4627c0084..da2e87ef4 100644
--- a/packages/console/app/src/component/icon.tsx
+++ b/packages/console/app/src/component/icon.tsx
@@ -1,6 +1,6 @@
import { JSX } from "solid-js"
-export function IconZen(props: JSX.SvgSVGAttributes<SVGSVGElement>) {
+export function IconZen(_props: JSX.SvgSVGAttributes<SVGSVGElement>) {
return (
<svg width="84" height="30" viewBox="0 0 84 30" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M24 24H6V18H18V12H24V24ZM6 18H0V12H6V18Z" fill="currentColor" fill-opacity="0.2" />
@@ -13,7 +13,7 @@ export function IconZen(props: JSX.SvgSVGAttributes<SVGSVGElement>) {
)
}
-export function IconGo(props: JSX.SvgSVGAttributes<SVGSVGElement>) {
+export function IconGo(_props: JSX.SvgSVGAttributes<SVGSVGElement>) {
return (
<svg width="54" height="30" viewBox="0 0 54 30" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M24 30H0V0H24V6H6V24H18V18H12V12H24V30Z" fill="currentColor" />
diff --git a/packages/console/app/src/routes/auth/status.ts b/packages/console/app/src/routes/auth/status.ts
index 215cae698..ed522d740 100644
--- a/packages/console/app/src/routes/auth/status.ts
+++ b/packages/console/app/src/routes/auth/status.ts
@@ -1,7 +1,7 @@
import { APIEvent } from "@solidjs/start"
import { useAuthSession } from "~/context/auth"
-export async function GET(input: APIEvent) {
+export async function GET(_input: APIEvent) {
const session = await useAuthSession()
return Response.json(session.data)
}
diff --git a/packages/console/app/src/routes/debug/index.ts b/packages/console/app/src/routes/debug/index.ts
index 2bdd269e7..4bfb63394 100644
--- a/packages/console/app/src/routes/debug/index.ts
+++ b/packages/console/app/src/routes/debug/index.ts
@@ -3,7 +3,7 @@ import { json } from "@solidjs/router"
import { Database } from "@opencode-ai/console-core/drizzle/index.js"
import { UserTable } from "@opencode-ai/console-core/schema/user.sql.js"
-export async function GET(evt: APIEvent) {
+export async function GET(_evt: APIEvent) {
return json({
data: await Database.use(async (tx) => {
const result = await tx.$count(UserTable)
diff --git a/packages/console/app/src/routes/zen/util/provider/openai-compatible.ts b/packages/console/app/src/routes/zen/util/provider/openai-compatible.ts
index e05f0d6c0..97b0abc64 100644
--- a/packages/console/app/src/routes/zen/util/provider/openai-compatible.ts
+++ b/packages/console/app/src/routes/zen/util/provider/openai-compatible.ts
@@ -30,7 +30,7 @@ export const oaCompatHelper: ProviderHelper = ({ adjustCacheUsage, safetyIdentif
headers.set("authorization", `Bearer ${apiKey}`)
headers.set("x-session-affinity", headers.get("x-opencode-session") ?? "")
},
- modifyBody: (body: Record<string, any>, workspaceID?: string) => {
+ modifyBody: (body: Record<string, any>, _workspaceID?: string) => {
return {
...body,
...(body.stream ? { stream_options: { include_usage: true } } : {}),
diff --git a/packages/console/app/src/routes/zen/v1/models.ts b/packages/console/app/src/routes/zen/v1/models.ts
index d2592d20b..6b4a878fc 100644
--- a/packages/console/app/src/routes/zen/v1/models.ts
+++ b/packages/console/app/src/routes/zen/v1/models.ts
@@ -5,7 +5,7 @@ import { WorkspaceTable } from "@opencode-ai/console-core/schema/workspace.sql.j
import { ModelTable } from "@opencode-ai/console-core/schema/model.sql.js"
import { ZenData } from "@opencode-ai/console-core/model.js"
-export async function OPTIONS(input: APIEvent) {
+export async function OPTIONS(_input: APIEvent) {
return new Response(null, {
status: 200,
headers: {
diff --git a/packages/console/app/src/routes/zen/v1/models/[model].ts b/packages/console/app/src/routes/zen/v1/models/[model].ts
index a4edd5861..bc1168eb0 100644
--- a/packages/console/app/src/routes/zen/v1/models/[model].ts
+++ b/packages/console/app/src/routes/zen/v1/models/[model].ts
@@ -6,8 +6,8 @@ export function POST(input: APIEvent) {
format: "google",
modelList: "full",
parseApiKey: (headers: Headers) => headers.get("x-goog-api-key") ?? undefined,
- parseModel: (url: string, body: any) => url.split("/").pop()?.split(":")?.[0] ?? "",
- parseIsStream: (url: string, body: any) =>
+ parseModel: (url: string, _body: any) => url.split("/").pop()?.split(":")?.[0] ?? "",
+ parseIsStream: (url: string, _body: any) =>
// ie. url: https://opencode.ai/zen/v1/models/gemini-3-pro:streamGenerateContent?alt=sse'
url.split("/").pop()?.split(":")?.[1]?.startsWith("streamGenerateContent") ?? false,
})