Skip to content

Commit 5f4d6e0

Browse files
simonkleekommander
authored andcommitted
tui(run): use keymap instead of raw key events (anomalyco#30077)
Co-authored-by: Sebastian Herrlinger <hasta84@gmail.com>
1 parent bec46b3 commit 5f4d6e0

4 files changed

Lines changed: 39 additions & 39 deletions

File tree

bun.lock

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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
"@types/cross-spawn": "6.0.6",
4444
"@octokit/rest": "22.0.0",
4545
"@hono/zod-validator": "0.4.2",
46-
"@opentui/core": "0.2.16",
47-
"@opentui/keymap": "0.2.16",
48-
"@opentui/solid": "0.2.16",
46+
"@opentui/core": "0.3.0",
47+
"@opentui/keymap": "0.3.0",
48+
"@opentui/solid": "0.3.0",
4949
"ulid": "3.0.1",
5050
"@kobalte/core": "0.13.11",
5151
"@types/luxon": "3.7.1",

packages/opencode/test/cli/run/footer.view.test.tsx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,8 @@ test("direct subagent panel renders active subagents", async () => {
379379
theme={() => RUN_THEME_FALLBACK.footer}
380380
tabs={tabs}
381381
current={current}
382-
onClose={() => {}}
383-
onSelect={() => {}}
382+
onClose={() => { }}
383+
onSelect={() => { }}
384384
onRows={(value) => {
385385
rows = value
386386
}}
@@ -506,18 +506,18 @@ test("direct footer shows subagent indicator while prompt is running", async ()
506506
tuiConfig={tuiConfig}
507507
agent="opencode"
508508
onSubmit={() => true}
509-
onPermissionReply={() => {}}
510-
onQuestionReply={() => {}}
511-
onQuestionReject={() => {}}
512-
onCycle={() => {}}
509+
onPermissionReply={() => { }}
510+
onQuestionReply={() => { }}
511+
onQuestionReject={() => { }}
512+
onCycle={() => { }}
513513
onInterrupt={() => false}
514-
onInputClear={() => {}}
515-
onExit={() => {}}
516-
onModelSelect={() => {}}
517-
onVariantSelect={() => {}}
518-
onRows={() => {}}
519-
onLayout={() => {}}
520-
onStatus={() => {}}
514+
onInputClear={() => { }}
515+
onExit={() => { }}
516+
onModelSelect={() => { }}
517+
onVariantSelect={() => { }}
518+
onRows={() => { }}
519+
onLayout={() => { }}
520+
onStatus={() => { }}
521521
/>
522522
</OpencodeKeymapProvider>
523523
)
@@ -572,7 +572,7 @@ test("direct question body separates single-select checkmark from label", async
572572
onReply={(input) => {
573573
replies.push(input)
574574
}}
575-
onReject={() => {}}
575+
onReject={() => { }}
576576
/>
577577
</box>
578578
),
@@ -720,8 +720,8 @@ test("direct model panel renders current model selector", async () => {
720720
theme={() => RUN_THEME_FALLBACK.footer}
721721
providers={providers}
722722
current={current}
723-
onClose={() => {}}
724-
onSelect={() => {}}
723+
onClose={() => { }}
724+
onSelect={() => { }}
725725
/>
726726
</box>
727727
),
@@ -759,8 +759,8 @@ test("direct variant panel renders current variant selector", async () => {
759759
theme={() => RUN_THEME_FALLBACK.footer}
760760
variants={variants}
761761
current={current}
762-
onClose={() => {}}
763-
onSelect={() => {}}
762+
onClose={() => { }}
763+
onSelect={() => { }}
764764
/>
765765
</box>
766766
),

packages/plugin/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
"zod": "catalog:"
2323
},
2424
"peerDependencies": {
25-
"@opentui/core": ">=0.2.16",
26-
"@opentui/keymap": ">=0.2.16",
27-
"@opentui/solid": ">=0.2.16"
25+
"@opentui/core": ">=0.3.0",
26+
"@opentui/keymap": ">=0.3.0",
27+
"@opentui/solid": ">=0.3.0"
2828
},
2929
"peerDependenciesMeta": {
3030
"@opentui/core": {

0 commit comments

Comments
 (0)