mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-10 06:18:29 +00:00
Apply PR #30815: opentui with native yoga layout
This commit is contained in:
commit
dfa1c5a1f3
4 changed files with 360 additions and 473 deletions
12
package.json
12
package.json
|
|
@ -39,9 +39,9 @@
|
|||
"@octokit/rest": "22.0.0",
|
||||
"@hono/standard-validator": "0.2.0",
|
||||
"@hono/zod-validator": "0.4.2",
|
||||
"@opentui/core": "0.3.4",
|
||||
"@opentui/keymap": "0.3.4",
|
||||
"@opentui/solid": "0.3.4",
|
||||
"@opentui/core": "0.0.0-20260604-5b641b77",
|
||||
"@opentui/keymap": "0.0.0-20260604-5b641b77",
|
||||
"@opentui/solid": "0.0.0-20260604-5b641b77",
|
||||
"@tanstack/solid-virtual": "3.13.28",
|
||||
"@shikijs/stream": "4.2.0",
|
||||
"ulid": "3.0.1",
|
||||
|
|
@ -134,9 +134,9 @@
|
|||
"electron"
|
||||
],
|
||||
"overrides": {
|
||||
"@opentui/core": "catalog:",
|
||||
"@opentui/keymap": "catalog:",
|
||||
"@opentui/solid": "catalog:",
|
||||
"@opentui/core": "0.0.0-20260604-5b641b77",
|
||||
"@opentui/keymap": "0.0.0-20260604-5b641b77",
|
||||
"@opentui/solid": "0.0.0-20260604-5b641b77",
|
||||
"@types/bun": "catalog:",
|
||||
"@types/node": "catalog:"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -22,9 +22,9 @@
|
|||
"zod": "catalog:"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@opentui/core": ">=0.3.4",
|
||||
"@opentui/keymap": ">=0.3.4",
|
||||
"@opentui/solid": ">=0.3.4"
|
||||
"@opentui/core": "0.0.0-20260604-5b641b77",
|
||||
"@opentui/keymap": "0.0.0-20260604-5b641b77",
|
||||
"@opentui/solid": "0.0.0-20260604-5b641b77"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@opentui/core": {
|
||||
|
|
|
|||
|
|
@ -429,7 +429,9 @@ export function Session() {
|
|||
const maxTop = Math.max(0, scroll.scrollHeight - scroll.viewport.height)
|
||||
const filename = `session-${route.sessionID.slice(0, 8)}-render-state-${timestamp}.json`
|
||||
renderer.dumpBuffers(timestamp)
|
||||
await Filesystem.writeJson(path.join(process.cwd(), filename), {
|
||||
await writeExport(
|
||||
path.join(process.cwd(), filename),
|
||||
JSON.stringify({
|
||||
capturedAt: timestamp,
|
||||
channel: InstallationChannel,
|
||||
version: InstallationVersion,
|
||||
|
|
@ -463,7 +465,8 @@ export function Session() {
|
|||
}
|
||||
}),
|
||||
})),
|
||||
})
|
||||
}, null, 2),
|
||||
)
|
||||
toast.show({ message: `Session render state written to ${filename}`, variant: "success" })
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue