Skip to content

Commit 3e4463a

Browse files
authored
chore: use our QR encoder (#59057)
1 parent 798971c commit 3e4463a

7 files changed

Lines changed: 6 additions & 14 deletions

File tree

‎bun.lock‎

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎packages/cli/package.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
"solid-js": "catalog:",
5050
"tree-sitter-bash": "0.25.0",
5151
"tree-sitter-powershell": "0.25.10",
52-
"uqr": "0.1.3",
5352
"web-tree-sitter": "0.25.10",
5453
"ws": "8.21.0"
5554
},

‎packages/cli/src/commands/handlers/pair.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { EOL } from "os"
33
import { Effect, Option, Schedule } from "effect"
44
import { Service } from "@opencode/client/effect/service"
55
import { OpenCode } from "@opencode/client/promise"
6-
import { renderUnicodeCompact } from "uqr"
6+
import { renderUnicodeCompact } from "@opencode/util/qr"
77
import { Commands } from "../commands"
88
import { Runtime } from "../../framework/runtime"
99
import { RemoteTunnel } from "../../services/remote-tunnel"
@@ -40,7 +40,7 @@ export default Runtime.handler(
4040
...(remote.length
4141
? [
4242
"",
43-
// uqr separates rows with "\n" on every platform, so splitting on EOL ("\r\n" on Windows) indents only the first row.
43+
// renderUnicodeCompact separates rows with "\n" on every platform, so splitting on EOL ("\r\n" on Windows) indents only the first row.
4444
renderUnicodeCompact(JSON.stringify({ code: pairing.code, urls: remote }), {
4545
border: 2,
4646
})

‎packages/gui-extensions/package.json‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@
4646
"fuzzysort": "catalog:",
4747
"ghostty-web": "github:anomalyco/ghostty-web#83c0a07b8628b748aed073b232cb4b52a6ca11c1",
4848
"remeda": "catalog:",
49-
"solid-js": "catalog:",
50-
"uqr": "0.1.3"
49+
"solid-js": "catalog:"
5150
},
5251
"devDependencies": {
5352
"@happy-dom/global-registrator": "20.0.11",

‎packages/gui-extensions/src/pairing/page.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Spinner } from "@opencode/ui/spinner"
44
import { Switch } from "@opencode/ui/switch"
55
import { useMutation, useQuery, useQueryClient } from "@tanstack/solid-query"
66
import { createMemo, createSignal, onCleanup, Show, type Accessor, type JSX } from "solid-js"
7-
import { renderSVG } from "uqr"
7+
import { renderSVG } from "@opencode/util/qr"
88
import { useExtension, type Live, type IpcClient } from "../sdk"
99
import type { Pairing } from "./contract"
1010
import type definition from "./index"

‎packages/tui/package.json‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@
6969
"remeda": "catalog:",
7070
"solid-js": "catalog:",
7171
"string-width": "catalog:",
72-
"strip-ansi": "7.1.2",
73-
"uqr": "0.1.3"
72+
"strip-ansi": "7.1.2"
7473
},
7574
"devDependencies": {
7675
"@tsconfig/bun": "catalog:",

‎packages/tui/src/component/dialog-pair.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { TextAttributes } from "@opentui/core"
22
import { useTerminalDimensions } from "@opentui/solid"
33
import { createMemo, createResource, createSignal, For, Show } from "solid-js"
4-
import { renderUnicodeCompact } from "uqr"
4+
import { renderUnicodeCompact } from "@opencode/util/qr"
55
import { useClient } from "../context/client"
66
import { useTheme } from "../context/theme"
77
import { DialogHeader, DialogLayout, useDialog } from "../ui/dialog"

0 commit comments

Comments
 (0)