GeezerVison is showing github.com — fix: clean up 49 unused variables, catch params, and stale imports (#… · ildella/opencode@cce05c1
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: infra/enterprise.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -3,7 +3,7 @@ import { shortDomain } from "./stage" | 3 | 3 |
| 4 | 4 | const storage = new sst.cloudflare.Bucket("EnterpriseStorage") | 5 | 5 |
| 6 | | -const teams = new sst.cloudflare.x.SolidStart("Teams", { | | 6 | +new sst.cloudflare.x.SolidStart("Teams", { | 7 | 7 | domain: shortDomain, | 8 | 8 | path: "packages/enterprise", | 9 | 9 | buildCommand: "bun run build:cloudflare", | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/src/addons/serialize.test.ts +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -180,8 +180,8 @@ describe("SerializeAddon", () => { | 180 | 180 | await writeAndWait(term, input) | 181 | 181 |
| 182 | 182 | const origLine = term.buffer.active.getLine(0) | 183 | | - const origFg = origLine!.getCell(0)!.getFgColor() | 184 | | - const origBg = origLine!.getCell(0)!.getBgColor() | | 183 | + const _origFg = origLine!.getCell(0)!.getFgColor() | | 184 | + const _origBg = origLine!.getCell(0)!.getBgColor() | 185 | 185 | expect(origLine!.getCell(0)!.isBold()).toBe(1) | 186 | 186 |
| 187 | 187 | const serialized = addon.serialize({ range: { start: 0, end: 0 } }) | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/src/app.tsx +1-6Lines changed: 1 addition & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -10,7 +10,7 @@ import { ThemeProvider } from "@opencode-ai/ui/theme/context" | 10 | 10 | import { MetaProvider } from "@solidjs/meta" | 11 | 11 | import { type BaseRouterProps, Navigate, Route, Router } from "@solidjs/router" | 12 | 12 | import { QueryClient, QueryClientProvider } from "@tanstack/solid-query" | 13 | | -import { type Duration, Effect } from "effect" | | 13 | +import { Effect } from "effect" | 14 | 14 | import { | 15 | 15 | type Component, | 16 | 16 | createMemo, | @@ -156,11 +156,6 @@ export function AppBaseProviders(props: ParentProps<{ locale?: Locale }>) { | 156 | 156 | ) | 157 | 157 | } | 158 | 158 |
| 159 | | -const effectMinDuration = | 160 | | - (duration: Duration.Input) => | 161 | | - <A, E, R>(e: Effect.Effect<A, E, R>) => | 162 | | - Effect.all([e, Effect.sleep(duration)], { concurrency: "unbounded" }).pipe(Effect.map((v) => v[0])) | 163 | | - | 164 | 159 | function ConnectionGate(props: ParentProps<{ disableHealthCheck?: boolean }>) { | 165 | 160 | const server = useServer() | 166 | 161 | const checkServerHealth = useCheckServerHealth() | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/src/pages/session.tsx -3Lines changed: 0 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -433,7 +433,6 @@ export default function Page() { | 433 | 433 | const isChildSession = createMemo(() => !!info()?.parentID) | 434 | 434 | const diffs = createMemo(() => (params.id ? list(sync.data.session_diff[params.id]) : [])) | 435 | 435 | const sessionCount = createMemo(() => Math.max(info()?.summary?.files ?? 0, diffs().length)) | 436 | | - const hasSessionReview = createMemo(() => sessionCount() > 0) | 437 | 436 | const canReview = createMemo(() => !!sync.project) | 438 | 437 | const reviewTab = createMemo(() => isDesktop()) | 439 | 438 | const tabState = createSessionTabs({ | @@ -443,8 +442,6 @@ export default function Page() { | 443 | 442 | review: reviewTab, | 444 | 443 | hasReview: canReview, | 445 | 444 | }) | 446 | | - const contextOpen = tabState.contextOpen | 447 | | - const openedTabs = tabState.openedTabs | 448 | 445 | const activeTab = tabState.activeTab | 449 | 446 | const activeFileTab = tabState.activeFileTab | 450 | 447 | const revertMessageID = createMemo(() => info()?.revert?.messageID) | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/src/pages/session/file-tabs.tsx -6Lines changed: 0 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -378,12 +378,6 @@ export function FileTabContent(props: { tab: string }) { | 378 | 378 | requestAnimationFrame(() => comments.clearFocus()) | 379 | 379 | }) | 380 | 380 |
| 381 | | - const cancelCommenting = () => { | 382 | | - const p = path() | 383 | | - if (p) file.setSelectedLines(p, null) | 384 | | - setNote("commenting", null) | 385 | | - } | 386 | | - | 387 | 381 | let prev = { | 388 | 382 | loaded: false, | 389 | 383 | ready: false, | |
Collapse file Copy file name to clipboardExpand all lines: packages/console/app/script/generate-sitemap.ts -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -8,7 +8,6 @@ import { LOCALES, route } from "../src/lib/language.js" | 8 | 8 | const __dirname = dirname(fileURLToPath(import.meta.url)) | 9 | 9 | const BASE_URL = config.baseUrl | 10 | 10 | const PUBLIC_DIR = join(__dirname, "../public") | 11 | | -const ROUTES_DIR = join(__dirname, "../src/routes") | 12 | 11 | const DOCS_DIR = join(__dirname, "../../../web/src/content/docs") | 13 | 12 |
| 14 | 13 | interface SitemapEntry { | |
Collapse file Copy file name to clipboardExpand all lines: packages/console/app/src/routes/index.tsx -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -31,8 +31,6 @@ export default function Home() { | 31 | 31 | const i18n = useI18n() | 32 | 32 | const language = useLanguage() | 33 | 33 | const githubData = createAsync(() => github()) | 34 | | - const release = createMemo(() => githubData()?.release) | 35 | | - | 36 | 34 | const handleCopyClick = (event: Event) => { | 37 | 35 | const button = event.currentTarget as HTMLButtonElement | 38 | 36 | const text = button.textContent | |
Collapse file Copy file name to clipboardExpand all lines: packages/console/app/src/routes/user-menu.tsx +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -6,7 +6,7 @@ import { useI18n } from "~/context/i18n" | 6 | 6 | import { useLanguage } from "~/context/language" | 7 | 7 | import "./user-menu.css" | 8 | 8 |
| 9 | | -const logout = action(async () => { | | 9 | +const _logout = action(async () => { | 10 | 10 | "use server" | 11 | 11 | const auth = await useAuthSession() | 12 | 12 | const event = getRequestEvent() | |
Collapse file Copy file name to clipboardExpand all lines: packages/function/src/api.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -181,7 +181,7 @@ export default new Hono<{ Bindings: Env }>() | 181 | 181 | let info | 182 | 182 | const messages: Record<string, any> = {} | 183 | 183 | data.forEach((d) => { | 184 | | - const [root, type, ...splits] = d.key.split("/") | | 184 | + const [root, type] = d.key.split("/") | 185 | 185 | if (root !== "session") return | 186 | 186 | if (type === "info") { | 187 | 187 | info = d.content | |
Collapse file Copy file name to clipboardExpand all lines: packages/opencode/src/bus/bus.ts -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -4,7 +4,6 @@ import { EffectBridge } from "@/effect/bridge" | 4 | 4 | import { Log } from "../util/log" | 5 | 5 | import { BusEvent } from "./bus-event" | 6 | 6 | import { GlobalBus } from "./global" | 7 | | -import { WorkspaceContext } from "@/control-plane/workspace-context" | 8 | 7 | import { InstanceState } from "@/effect/instance-state" | 9 | 8 | import { makeRuntime } from "@/effect/run-service" | 10 | 9 |
| |
|