GeezerVison is showing github.com — feat: better code and diff perf · awakecoding/opencode@9363c15
File treeExpand file treeCollapse file tree Open diff view settings enterprise/src/routes/share
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: bun.lock +4-2Lines changed: 4 additions & 2 deletions Collapse file Copy file name to clipboardExpand all lines: package.json +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 30 | 30 | "@tsconfig/bun": "1.0.9", | 31 | 31 | "@cloudflare/workers-types": "4.20251008.0", | 32 | 32 | "@openauthjs/openauth": "0.0.0-20250322224806", | 33 | | - "@pierre/precision-diffs": "0.6.0-beta.3", | | 33 | + "@pierre/precision-diffs": "0.6.0-beta.10", | 34 | 34 | "@tailwindcss/vite": "4.1.11", | 35 | 35 | "diff": "8.0.2", | 36 | 36 | "ai": "5.0.97", | |
Collapse file Copy file name to clipboardExpand all lines: packages/desktop/src/DesktopInterface.tsx +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -13,7 +13,7 @@ import Session from "@/pages/session" | 13 | 13 | import { LayoutProvider } from "./context/layout" | 14 | 14 | import { GlobalSDKProvider } from "./context/global-sdk" | 15 | 15 | import { SessionProvider } from "./context/session" | 16 | | -import { base64Encode } from "./utils" | | 16 | +import { base64Encode } from "@opencode-ai/util/encode" | 17 | 17 | import { createMemo, Show } from "solid-js" | 18 | 18 |
| 19 | 19 | const host = import.meta.env.VITE_OPENCODE_SERVER_HOST ?? "127.0.0.1" | |
Collapse file Copy file name to clipboardExpand all lines: packages/desktop/src/context/local.tsx +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -5,7 +5,7 @@ import type { FileContent, FileNode, Model, Provider, File as FileStatus } from | 5 | 5 | import { createSimpleContext } from "@opencode-ai/ui/context" | 6 | 6 | import { useSDK } from "./sdk" | 7 | 7 | import { useSync } from "./sync" | 8 | | -import { base64Encode } from "@/utils" | | 8 | +import { base64Encode } from "@opencode-ai/util/encode" | 9 | 9 |
| 10 | 10 | export type LocalFile = FileNode & | 11 | 11 | Partial<{ | |
Collapse file Copy file name to clipboardExpand all lines: packages/desktop/src/context/session.tsx +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -7,7 +7,7 @@ import { TextSelection } from "./local" | 7 | 7 | import { pipe, sumBy } from "remeda" | 8 | 8 | import { AssistantMessage, UserMessage } from "@opencode-ai/sdk/v2" | 9 | 9 | import { useParams } from "@solidjs/router" | 10 | | -import { base64Encode } from "@/utils" | | 10 | +import { base64Encode } from "@opencode-ai/util/encode" | 11 | 11 | import { useSDK } from "./sdk" | 12 | 12 |
| 13 | 13 | export type LocalPTY = { | |
Collapse file Copy file name to clipboardExpand all lines: packages/desktop/src/pages/directory-layout.tsx +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -4,7 +4,7 @@ import { SDKProvider } from "@/context/sdk" | 4 | 4 | import { SyncProvider, useSync } from "@/context/sync" | 5 | 5 | import { LocalProvider } from "@/context/local" | 6 | 6 | import { useGlobalSync } from "@/context/global-sync" | 7 | | -import { base64Decode } from "@/utils" | | 7 | +import { base64Decode } from "@opencode-ai/util/encode" | 8 | 8 | import { DataProvider } from "@opencode-ai/ui/context" | 9 | 9 | import { iife } from "@opencode-ai/util/iife" | 10 | 10 |
| |
Collapse file Copy file name to clipboardExpand all lines: packages/desktop/src/pages/home.tsx +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | import { useGlobalSync } from "@/context/global-sync" | 2 | | -import { base64Encode } from "@/utils" | | 2 | +import { base64Encode } from "@opencode-ai/util/encode" | 3 | 3 | import { For } from "solid-js" | 4 | 4 | import { A } from "@solidjs/router" | 5 | 5 | import { Button } from "@opencode-ai/ui/button" | |
Collapse file Copy file name to clipboardExpand all lines: packages/desktop/src/pages/layout.tsx +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -3,7 +3,7 @@ import { DateTime } from "luxon" | 3 | 3 | import { A, useNavigate, useParams } from "@solidjs/router" | 4 | 4 | import { useLayout } from "@/context/layout" | 5 | 5 | import { useGlobalSync } from "@/context/global-sync" | 6 | | -import { base64Decode, base64Encode } from "@/utils" | | 6 | +import { base64Decode, base64Encode } from "@opencode-ai/util/encode" | 7 | 7 | import { Mark } from "@opencode-ai/ui/logo" | 8 | 8 | import { Button } from "@opencode-ai/ui/button" | 9 | 9 | import { Icon } from "@opencode-ai/ui/icon" | |
Collapse file Copy file name to clipboardExpand all lines: packages/desktop/src/pages/session.tsx +6-1Lines changed: 6 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -31,6 +31,7 @@ import { useSession } from "@/context/session" | 31 | 31 | import { useLayout } from "@/context/layout" | 32 | 32 | import { getDirectory, getFilename } from "@opencode-ai/util/path" | 33 | 33 | import { Terminal } from "@/components/terminal" | | 34 | +import { checksum } from "@opencode-ai/util/encode" | 34 | 35 |
| 35 | 36 | export default function Page() { | 36 | 37 | const layout = useLayout() | @@ -489,7 +490,11 @@ export default function Page() { | 489 | 490 | <Match when={file()}> | 490 | 491 | {(f) => ( | 491 | 492 | <Code | 492 | | - file={{ name: f().path, contents: f().content?.content ?? "" }} | | 493 | + file={{ | | 494 | + name: f().path, | | 495 | + contents: f().content?.content ?? "", | | 496 | + cacheKey: checksum(f().content?.content ?? ""), | | 497 | + }} | 493 | 498 | overflow="scroll" | 494 | 499 | class="pb-40" | 495 | 500 | /> | |
Collapse file Copy file name to clipboardExpand all lines: packages/desktop/src/utils/encode.ts -7Lines changed: 0 additions & 7 deletions
|