Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2427 commits
Select commit Hold shift + click to select a range
17eb433
fix(cli-rs): run Luau plugins on x86_64 Windows MSVC
simonklee Nov 19, 2026
7d91a92
refactor(cli-rs): share the composer tabs' command builder
simonklee Nov 19, 2026
d4a8788
refactor(cli-rs): share the integration flows' starting dialog
simonklee Nov 19, 2026
6e225b1
refactor(cli-rs): build the missing location's footer with the prompt's
simonklee Nov 19, 2026
abf29b2
refactor(cli-rs): derive the prompt metadata's layout candidates
simonklee Nov 19, 2026
7fa16f9
refactor(cli-rs): share the sidebar's foldable section
simonklee Nov 19, 2026
cd331b9
refactor(cli-rs): merge the second tool row test file into tools
simonklee Nov 19, 2026
06d506b
refactor(cli-rs): share the TUI tests' Bun oracle runner
simonklee Nov 19, 2026
6233d66
refactor(cli-rs): share the P-COMP dialog panel comparison
simonklee Nov 19, 2026
f1adb68
refactor(cli-rs): share the TUI tests' message, event and MCP fixtures
simonklee Nov 19, 2026
eb87709
refactor(cli-rs): open integration links through the links feature
simonklee Nov 19, 2026
51d98c9
refactor(cli-rs): share JS truthiness as api-types js::truthy
simonklee Nov 19, 2026
0863d06
refactor(cli-rs): share the model tests' SplitMix64 from util
simonklee Nov 19, 2026
138d0f1
refactor(cli-rs): share the local oracle tests' checkout and bun command
simonklee Nov 19, 2026
e0601d5
refactor(cli-rs): share realpath from util::path with the service
simonklee Nov 19, 2026
e3ae884
refactor(cli-rs): share the follow tests' scratch home setup
simonklee Nov 19, 2026
2ff23cc
refactor(cli-rs): share the prompt state oracles' provider harness
simonklee Nov 19, 2026
fcace2b
refactor(cli-rs): share the home placeholder mask of the scenarios
simonklee Nov 19, 2026
f0c51b6
refactor(cli-rs): share the scenarios' test location and model
simonklee Nov 19, 2026
590d502
refactor(cli-rs): merge the scratch home CLI tests into one file
simonklee Nov 19, 2026
5580209
refactor(cli-rs): share the ACP tests' current_value from wire
simonklee Nov 19, 2026
3c04c25
refactor(cli-rs): measure help columns with the prompt's ANSI strip
simonklee Nov 19, 2026
2a1b3c5
fix(cli-rs): import the plugin tests' shared cc only on Unix
simonklee Nov 19, 2026
05950b4
test(cli-rs): press a dialog row's key once its tree shows
simonklee Nov 19, 2026
461c4aa
fix(cli-rs): read catalogs again when the event stream connects
simonklee Nov 19, 2026
5e3a7f2
test(cli-rs): wait for a P-PTY image paste before its checkpoint
simonklee Nov 19, 2026
8b9a2fc
test(cli): wait longer for an ACP agent's first response
simonklee Nov 19, 2026
33b81dd
test(cli-rs): find the decoder's late key in any VM's table order
simonklee Nov 19, 2026
af6e5c5
fix(cli-rs): key Luau's table hashes per VM against hash flooding
simonklee Nov 19, 2026
36da25a
fix(cli-rs): write Luau JSON object keys in byte order in every VM
simonklee Nov 19, 2026
2321abe
test(cli-rs): start the parent probe with its signals blocked
simonklee Nov 19, 2026
99c5072
test(cli-rs): let a slow TypeScript start finish before the stop
simonklee Nov 19, 2026
7a9ae24
fix(cli-rs): count a stall of the machine as no JS host silence
simonklee Nov 19, 2026
f90a35e
fix(cli-rs): send no save of a plugin whose build ended the host
simonklee Nov 19, 2026
10fc9ef
test(cli-rs): fill the effect queue by its bound, not by 80 frames
simonklee Nov 19, 2026
72f7fe9
test(cli-rs): wait for a route page to draw before asserting it
simonklee Nov 19, 2026
063422f
test(cli-rs): wait for the page before the settle check
simonklee Nov 19, 2026
b774b09
chore(cli-rs): pin OpenTUI 0.9.4 from crates.io
simonklee Nov 19, 2026
16b7d22
refactor(cli-rs): parse theme hex colors with OpenTUI's Color::parse
simonklee Nov 19, 2026
f2f864b
refactor(cli-rs): measure prompt text with OpenTUI's measure_edit_text
simonklee Nov 19, 2026
bf12e0a
refactor(cli-rs): strip escapes with OpenTUI's strip_ansi_sequences
simonklee Nov 19, 2026
b43c74b
refactor(cli-rs): decode clipboard text with OpenTUI's decode_paste_b…
simonklee Nov 19, 2026
73c8016
refactor(cli-rs): parse bindings with OpenTUI's Keymap::parse_binding
simonklee Nov 19, 2026
845d6ce
refactor(cli-rs): fit mini images with OpenTUI's ImageView::fitted_size
simonklee Nov 19, 2026
44f338e
docs(cli-rs): say why mini keeps its stable Markdown prefix
simonklee Nov 19, 2026
5f323e3
fix(cli-rs): strip escape sequences from a pasted form answer
simonklee Nov 19, 2026
eeb2d73
docs(cli-rs): record that a field's own paste drops control characters
simonklee Nov 19, 2026
e8a2232
chore(cli-rs): regenerate for OpenTUI 0.9.4 in the TypeScript TUI
simonklee Nov 19, 2026
0c103c3
test(cli-rs): re-record the TS side under OpenTUI 0.9.4
simonklee Nov 19, 2026
1ffde42
fix(cli-rs): end the fade-in on the frame its time runs out
simonklee Nov 19, 2026
2d822d5
test(cli-rs): compare an opened reasoning block drawn as Markdown
simonklee Nov 19, 2026
8cab445
fix(cli-rs): scroll a hovered tab's overflowing title as TS does
simonklee Nov 19, 2026
3f63aad
fix(cli-rs): restore a deleted chip's part on undo as TS does
simonklee Nov 19, 2026
5adcce2
fix(cli-rs): read a restored prompt's web mention ranges as cells
simonklee Nov 19, 2026
4771bf3
fix(cli-rs): draw mini's reasoning as rendered Markdown
simonklee Nov 19, 2026
ffb04b7
fix(cli-rs): stream a compaction summary only while it runs
simonklee Nov 19, 2026
1825ee2
fix(cli-rs): end a reasoning block's streaming once it is done
simonklee Nov 19, 2026
0e430f6
test(cli-rs): follow the OpenTUI 0.9.4 TS side in P-PTY and P-SIM
simonklee Nov 19, 2026
e68b42b
docs(cli-rs): drop the field paste deviation TS no longer has
simonklee Nov 19, 2026
1de0ee9
test(cli-rs): show M.5/requests' global form before the permission
simonklee Nov 19, 2026
7205ad9
fix(cli-rs): draw mini mono task boxes as [ ] and [x]
simonklee Nov 19, 2026
2eeb8af
test(cli-rs): drop 12 OpenTUI deviations TS 0.9.4 now shares
simonklee Nov 19, 2026
6a115e7
fix(cli-rs): keep the system theme's transparent field background
simonklee Nov 19, 2026
adbed76
test(cli-rs): gate M.5/requests' child permission on the drawn form
simonklee Nov 19, 2026
b677538
test(cli-rs): read the pending plugin's color from one frame
simonklee Nov 19, 2026
2d4dd9c
fix(cli-rs): retry a lock path Windows reports busy
simonklee Nov 19, 2026
596e63e
fix(cli-rs): retry a state file rename Windows reports busy
simonklee Nov 19, 2026
56aa0d9
refactor(cli-rs): decode Luau output with lua_rawiterpeek
simonklee Nov 19, 2026
6eef912
refactor(cli-rs): state and test the Luau decode's string borrow rule
simonklee Nov 19, 2026
3ef901e
test(cli-rs): fix the busy retry test and run it on every platform
simonklee Nov 19, 2026
02c1cf5
test(cli-rs): serve the counter test's session so no 404 races it
simonklee Nov 19, 2026
e1360f5
chore(cli-rs): pin OpenTUI 0.9.5
simonklee Nov 19, 2026
552a394
refactor(cli-rs): commit mini's Markdown by OpenTUI's block rows
simonklee Nov 19, 2026
ea3800d
fix(cli-rs): wrap mini mono task items after their box
simonklee Nov 19, 2026
06f8814
chore(cli-rs): regenerate for the job cancel route and job event
simonklee Nov 19, 2026
0548f2d
feat(cli-rs): make the new theme opencode, add opencode-classic
simonklee Nov 19, 2026
5db7ef5
fix(cli-rs): cut off long lists, drop the empty footer, red delete bar
simonklee Nov 19, 2026
1efad37
fix(cli-rs): use buttons and single-row gaps in prompt and export
simonklee Nov 19, 2026
b1d757e
feat(cli-rs): open the picker on the first busy tab
simonklee Nov 19, 2026
097b63a
fix(cli-rs): keep service set values out of the CLI log
simonklee Nov 19, 2026
8faf0ba
test(cli-rs): re-record the TS side for 6e6cd0cf5f
simonklee Nov 19, 2026
59418fb
test(cli-rs): split the busy tab test, emit the running shell
simonklee Nov 19, 2026
b8fcc13
test(cli-rs): a release config draws the new designs in TS too
simonklee Nov 19, 2026
6af8609
test(cli-rs): pin P-APP and Markdown fixtures to opencode-classic
simonklee Nov 19, 2026
3147d67
test(cli-rs): run P-TUI in opencode-classic too
simonklee Nov 19, 2026
fe522e6
test(cli-rs): mask the placeholder in P.8/select-search's search
simonklee Nov 20, 2026
da0b59b
test(cli-rs): count the job cancel operation in the Luau client test
simonklee Nov 20, 2026
4fa3728
test(cli-rs): record E.10a's dialogs in the default theme
simonklee Nov 20, 2026
f930d91
test(cli-rs): wait for the prompt dialog's Submit button
simonklee Nov 20, 2026
762e0ec
test(cli-rs): read a palette token that differs between modes
simonklee Nov 20, 2026
1c60b43
test(cli-rs): mask the placeholder below E.11b's worktree name prompt
simonklee Nov 20, 2026
9bb7da3
feat(cli-rs): keep the running background jobs of synced session trees
simonklee Nov 19, 2026
163c8f7
feat(cli-rs): find the running jobs a session's tree owns
simonklee Nov 20, 2026
0f848d6
feat(cli-rs): let a session's family read its scripts and busy jobs
simonklee Nov 20, 2026
2b49a8c
feat(cli-rs): add the Scripts tab and count scripts as running work
simonklee Nov 20, 2026
0744793
test(cli-rs): P-APP scenario for the Scripts tab and the footer
simonklee Nov 20, 2026
0e77849
chore(cli-rs): regenerate the API types for three config flags
simonklee Nov 20, 2026
518612a
fix(cli-rs): wrap the editor selection context in <system-update>
simonklee Nov 20, 2026
288fc97
fix(cli-rs): sync atomic file replacements before and after rename
simonklee Nov 20, 2026
5f20090
refactor(cli-rs): hand a reply to its last handler instead of a copy
simonklee Nov 20, 2026
28d7fff
refactor(cli-rs): free a Luau plugin's large replies off the UI thread
simonklee Nov 20, 2026
82af9ec
refactor(cli-rs): make each JSON key a Luau string once per conversion
simonklee Nov 20, 2026
5b9382c
chore(cli-rs): link store, api, local and mermaid tests into one binary
simonklee Nov 20, 2026
7943251
chore(cli-rs): deny unsafe blocks without a SAFETY comment
simonklee Nov 20, 2026
ba920ab
fix(cli-rs): keep a rail width only while its write is in flight
simonklee Nov 20, 2026
ce3741a
refactor(cli-rs): gate plugin-abi's C ABI behind a default c-abi feature
simonklee Nov 20, 2026
ef7f5ee
refactor(cli-rs): gate the native plugin carrier behind a native feature
simonklee Nov 20, 2026
222804d
refactor(cli-rs): refuse plugin dev and test without native
simonklee Nov 20, 2026
b08bdfb
docs(cli-rs): describe the native and c-abi features
simonklee Nov 20, 2026
d814e50
test(cli-rs): move store unit tests up to the store's end results
simonklee Nov 20, 2026
38f4bbc
test(cli-rs): move latex parser tables into the P.2 oracle
simonklee Nov 20, 2026
8be4ad6
test(cli-rs): read the event stream through its public reader
simonklee Nov 20, 2026
06dbac5
test(cli-rs): drive the headless app for drive's key and wire tables
simonklee Nov 20, 2026
858e6ee
test(cli-rs): move the dotted edge rows into the P.3 oracle
simonklee Nov 20, 2026
ba0622d
test(cli-rs): leave the P-APP harness's decoding to its replays
simonklee Nov 20, 2026
8f150e2
test(cli-rs): drop the borrowed-text pin on api-types' raw union value
simonklee Nov 20, 2026
b1126aa
test(cli-rs): leave shared local files to the TS interop tests
simonklee Nov 20, 2026
8f2131d
test(cli-rs): leave json_object's keys to the ACP wire tests
simonklee Nov 20, 2026
8fb8957
test(cli-rs): send ACP's content block table through a prompt
simonklee Nov 20, 2026
01eee97
test(cli-rs): leave command output rows to the P-CLI scenarios
simonklee Nov 20, 2026
1922e09
chore(cli-rs): pin OpenTUI 0.9.6
simonklee Nov 20, 2026
e5a9dc8
test(cli-rs): run P-APP, P-TUI and Markdown fixtures in opencode again
simonklee Nov 20, 2026
9fdcc0c
refactor(cli-rs): link musl statically and compile native plugins out…
simonklee Nov 20, 2026
6405394
docs(cli-rs): say the musl builds are static without native plugins
simonklee Nov 20, 2026
068c149
test(cli-rs): start E.13b/scripts' jobs in the future so elapsed is 0s
simonklee Nov 20, 2026
336e137
test(cli-rs): move tui unit tests up to end-result tests
simonklee Nov 20, 2026
fe93886
test(cli-rs): cut ui unit tests that tui and ui tests cover
simonklee Nov 20, 2026
88a804d
test(cli-rs): cut mini unit tests that P-PTY scenarios cover
simonklee Nov 20, 2026
8801cb1
chore(cli-rs): regenerate the API types for the session history index…
simonklee Nov 20, 2026
f81b30a
fix(cli-rs): restart the service for a local build only in channel local
simonklee Nov 20, 2026
9642a3b
chore(cli-rs): pin OpenTUI 0.9.7
simonklee Nov 20, 2026
0fb8584
refactor(cli-rs): turn native plugins off by default
simonklee Nov 20, 2026
d4ee852
fix(cli-rs): build the parity client with native plugins
simonklee Nov 20, 2026
61dbd96
test(cli-rs): leave plugin unit tests the TUI's plugin tests cover
simonklee Nov 20, 2026
fd23522
test(cli-rs): leave plugin-abi unit tests the carriers cover
simonklee Nov 20, 2026
860937c
test(cli-rs): gate the approvals helper to unix
simonklee Nov 20, 2026
0d8992c
chore(cli-rs): regenerate the API types for shell automation actions
simonklee Nov 20, 2026
8e34edb
fix(cli-rs): trim only JavaScript white space in searches and numbers
simonklee Nov 20, 2026
450b6a4
fix(cli-rs): print a number tied between two shortest forms as JS does
simonklee Nov 20, 2026
ee193d1
fix(cli-rs): reject a percent sign without two hex digits
simonklee Nov 20, 2026
f61bfe2
fix(cli-rs): reject a signed hex port as JavaScript Number does
simonklee Nov 20, 2026
3fdb10f
fix(cli-rs): reject a plugin color with a sign in a hex channel
simonklee Nov 20, 2026
9d198df
fix(cli-rs): write null in a joined array as JavaScript does
simonklee Nov 20, 2026
678ab61
fix(cli-rs): keep a mention without text after an external edit
simonklee Nov 20, 2026
e626bc4
fix(cli-rs): realign many mention occurrences without overflowing the…
simonklee Nov 20, 2026
f66fd93
fix(cli-rs): let the longer mention claim an overlap as TS measures it
simonklee Nov 20, 2026
ecb33c5
fix(cli-rs): remove a JSONC array item before a wide character
simonklee Nov 20, 2026
1c19b62
docs(cli-rs): record the localeCompare and fuzzy accent deviations
simonklee Nov 20, 2026
3715a9b
fix(cli-rs): read server JSON with a lone surrogate escape
simonklee Nov 20, 2026
2a7a233
fix(cli-rs): bound an event stream of invalid UTF-8
simonklee Nov 20, 2026
b546a61
fix(cli-rs): keep U+0085 before an event's data as TypeScript does
simonklee Nov 20, 2026
c9fa423
test(cli-rs): fold generated event sequences as TypeScript does
simonklee Nov 20, 2026
e89cbe0
fix(cli-rs): drop a prompt's row once the pending read no longer list…
simonklee Nov 20, 2026
99a9216
fix(cli-rs): show a prompt delivered while the event stream was down
simonklee Nov 20, 2026
b65891d
fix(cli-rs): ignore a late prompt for a deleted session
simonklee Nov 20, 2026
fbcc488
test(cli-rs): drop the fold sequence differential
simonklee Nov 20, 2026
7bc54ed
test(cli-rs): model the prompt's edits against a reference prompt
simonklee Nov 20, 2026
979f13d
fix(cli-rs): a paste over a selection sends the pasted text
simonklee Nov 20, 2026
95e3f9a
test(cli-rs): model newlines, line moves and Ctrl+C in the prompt
simonklee Nov 20, 2026
2f875f8
fix(cli-rs): a select shows its selection after the terminal grows
simonklee Nov 20, 2026
8b8f9eb
test(cli-rs): share the prompt model's text helper
simonklee Nov 20, 2026
39c10a8
fix(cli-rs): read a cli.json nested past 512 levels as invalid
simonklee Nov 20, 2026
50fdcf2
fix(cli-rs): refuse to edit a cli.json nested past 512 levels
simonklee Nov 20, 2026
27e6794
fix(cli-rs): read a cli.json saved with a BOM or Latin-1 bytes
simonklee Nov 20, 2026
7fa1b11
fix(cli-rs): keep a state file with a stray non-UTF-8 byte readable
simonklee Nov 20, 2026
921b17d
fix(cli-rs): share file locks with TS when XDG paths are not normal
simonklee Nov 20, 2026
5413e30
fix(cli-rs): name a channel's service files as TS does for emoji
simonklee Nov 20, 2026
b84a592
docs(cli-rs): record how frecency orders lines no client writes
simonklee Nov 20, 2026
b5378a8
fix(cli-rs): drop an empty model variant from model.json as TS does
simonklee Nov 20, 2026
ea79bc9
fix(cli-rs): the plugin schema bounds an absolute z as the host reads it
simonklee Nov 20, 2026
9a58b07
fix(cli-rs): the plugin schema refuses a frame time with a field serd…
simonklee Nov 20, 2026
dace5cf
test(cli-rs): generate plugin messages from the schema against serde
simonklee Nov 20, 2026
ed65f37
fix(cli-rs): a Luau stack overflow error keeps 20 frames, not 20,000
simonklee Nov 20, 2026
182d775
test(cli-rs): run random risky Luau scripts in the sandbox
simonklee Nov 20, 2026
31b010e
fix(cli-rs): a JS plugin whose tree is past 8 MiB fails alone
simonklee Nov 20, 2026
97fb4c2
fix(cli-rs): report box layouts the compat layer cannot draw as TS does
simonklee Nov 20, 2026
a21b66a
fix(cli-rs): draw deeply nested LaTeX scripts instead of their source
simonklee Nov 20, 2026
a7b6ad5
fix(cli-rs): place many state transition labels without stalling
simonklee Nov 20, 2026
1dc064a
fix(cli-rs): measure flags, keycaps and controls in diagrams as TS does
simonklee Nov 20, 2026
b3afad1
fix(cli-rs): draw Gantt charts with far-out dates instead of hanging
simonklee Nov 20, 2026
65e6688
fix(cli-rs): keep LaTeX rows whole when \text holds a line break
simonklee Nov 20, 2026
0a8f34a
fix(cli-rs): keep a group after a prepended LaTeX character
simonklee Nov 20, 2026
9df7e43
fix(cli-rs): draw state rails that start and end on one row
simonklee Nov 20, 2026
fd19309
fix(cli-rs): reject Mermaid groups nested in themselves instead of cr…
simonklee Nov 20, 2026
3212970
test(cli-rs): render generated Mermaid diagrams within bounds and as …
simonklee Nov 20, 2026
b0b8b82
fix(cli-rs): route repeated flowchart edges without stalling
simonklee Nov 20, 2026
fc2a1fd
fix(cli-rs): keep a plugin's dotted storage keys from reading another…
simonklee Nov 20, 2026
cb8038b
test(cli-rs): settle the JS host before the restart row kills it
simonklee Nov 20, 2026
a378808
fix(cli-rs): accept any non-null value where an empty struct schema is
simonklee Nov 20, 2026
56fadbd
fix(cli-rs): name a missing client MCP tool as String(name) does
simonklee Nov 20, 2026
3b5e775
fix(cli-rs): record the event stream's errors in TypeScript's words
simonklee Nov 20, 2026
01383d4
test(cli-rs): drop connection loop examples the transport model covers
simonklee Nov 20, 2026
ed06b24
fix(cli-rs): attach a terminal whose title has a lone surrogate
simonklee Nov 20, 2026
20a0803
fix(cli-rs): ignore a PTY attached message whose size is not positive
simonklee Nov 20, 2026
7ea7290
fix(cli-rs): close a socket whose stream ends without a close frame
simonklee Nov 20, 2026
5b0518d
fix(cli-rs): say a failed terminal socket disconnected, as TS does
simonklee Nov 20, 2026
ace8da2
fix(cli-rs): drop the server URL's query from the PTY socket URL
simonklee Nov 20, 2026
8438f35
refactor(cli-rs): drop the unused SharedEvents
simonklee Nov 20, 2026
9346cf3
fix(cli-rs): place hundreds of state transition labels without freezing
simonklee Nov 20, 2026
b88f390
fix(cli-rs): return mini's footer to idle when a shell ends
simonklee Nov 20, 2026
614524f
fix(cli-rs): keep rows a reconnect or settle printed across a resize
simonklee Nov 20, 2026
d781934
fix(cli-rs): print a shell, skill or compaction once after a resize
simonklee Nov 20, 2026
366c142
test(cli-rs): leave transcript examples the TS comparison covers
simonklee Nov 20, 2026
50358e0
fix(cli-rs): print a tool start or quiet text once after a list
simonklee Nov 20, 2026
32b76c3
test(cli-rs): leave the fragment example the properties cover
simonklee Nov 20, 2026
204a996
fix(cli-rs): keep the transcript oracle out of the drift check
simonklee Nov 20, 2026
df641e5
test(cli-rs): match the transcript fold's tool events by their full n…
simonklee Nov 20, 2026
6db511f
fix(cli-rs): pair accepts a URL with an empty query or fragment as TS…
simonklee Nov 20, 2026
63056a6
fix(cli-rs): ACP reads a line with a BOM or U+0085 as the TS agent does
simonklee Nov 20, 2026
d3b6839
fix(cli-rs): ACP slash commands and custom answers trim as TS does
simonklee Nov 20, 2026
edbef23
fix(cli-rs): run treats a BOM-only message as empty, as TS does
simonklee Nov 20, 2026
493834e
fix(cli-rs): ACP reads apply_patch white space as TS's Patch.parse does
simonklee Nov 20, 2026
e42b0fe
fix(cli-rs): never restart a service through the binary it already runs
simonklee Nov 20, 2026
ffb54b5
docs(cli-rs): record the ACP agent's stricter JSON reader
simonklee Nov 20, 2026
b464ef8
fix(cli-rs): patch targets trim as TS does
simonklee Nov 20, 2026
bb9ddee
test(cli-rs): stop the plugin clock tests racing the scheduler
simonklee Nov 20, 2026
bcef500
fix(cli-rs): show help when the directory argument doesn't exist
simonklee Nov 20, 2026
c1ac66a
feat(cli-rs): add /login and /auth as aliases for /connect
simonklee Nov 20, 2026
c637d51
feat(cli-rs): show a script's file diffs below the execute block
simonklee Nov 20, 2026
e15b91c
chore(cli-rs): regenerate the API types for the project_overlay flag
simonklee Nov 21, 2026
bc8b538
test(cli-rs): re-record E.7b/blocks for the uncolored line-count unit
simonklee Nov 21, 2026
a675fd7
fix(cli-rs): a resize ends a message jump and its slack
simonklee Nov 20, 2026
1f2b44f
fix(cli-rs): a message jump lands at the top when the rows fit
simonklee Nov 20, 2026
3e4b212
fix(cli-rs): new rows keep the view a message jump holds
simonklee Nov 20, 2026
f4fc7f5
test(cli-rs): add a model of the transcript window
simonklee Nov 20, 2026
5e8275e
fix(cli-rs): Tab in a dialog keeps the focus in the dialog
simonklee Nov 20, 2026
27288fd
test(cli-rs): add a model of dialog focus
simonklee Nov 20, 2026
5f2d374
test(cli-rs): drop transcript examples the transcript model covers
simonklee Nov 20, 2026
b0c0f80
test(cli-rs): settle the models on answers and a still plugin clock
simonklee Nov 20, 2026
639cb39
test(cli-rs): trim the transcript and dialog models
simonklee Nov 21, 2026
a0bdc41
test(cli-rs): count the mount notice row's whole views, not each batch
simonklee Nov 21, 2026
d63ad5a
chore(cli-rs): regenerate types for origin/dev a4b7cc9a25
simonklee Nov 21, 2026
bf820cb
feat(cli-rs): add the hidden login shortcut for auth login
simonklee Nov 21, 2026
bf94094
feat(cli-rs): add machine add, list and remove
simonklee Nov 21, 2026
29c330b
fix(cli-rs): drop only deltas that repeat the end of mini's list
simonklee Nov 21, 2026
2bd4086
test(cli-rs): replace the store's inbox and transport models with reg…
simonklee Nov 21, 2026
ae22e54
test(cli-rs): replace the SSE and WebSocket differentials with examples
simonklee Nov 21, 2026
ca85326
test(cli-rs): drop the JSONC fuzzer and fold local regressions into e…
simonklee Nov 21, 2026
eacb819
test(cli-rs): fold ACP white space regressions into existing tests
simonklee Nov 21, 2026
5447c64
test(cli-rs): keep one regression table for the Mermaid hangs and cra…
simonklee Nov 21, 2026
2dbb5c9
test(cli-rs): keep one LaTeX row for the prepended-character fix
simonklee Nov 21, 2026
453e7fd
test(cli-rs): drop the random Luau script property
simonklee Nov 21, 2026
48cce9b
test(cli-rs): drop the generated plugin message property
simonklee Nov 21, 2026
0e2f6cf
test(cli-rs): trade the tui models for their shrunk cases
simonklee Nov 21, 2026
4168dcb
test(cli-rs): trade the ui select model for one regression
simonklee Nov 21, 2026
cbec178
test(cli-rs): replace mini's transcript properties with their shrunk …
simonklee Nov 21, 2026
fefe454
refactor(cli-rs): remove the native plugin carrier and its crash parent
simonklee Nov 21, 2026
1dbef37
feat(cli-rs): add --no-plugins
simonklee Nov 21, 2026
0e0e47c
refactor(cli-rs): move the docs and parity suites off native plugins
simonklee Nov 21, 2026
768f303
refactor(cli-rs): run the plugin machines on a Luau twin
simonklee Nov 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 15 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@ packages/protocol/openapi.json linguist-generated
packages/client/src/promise/generated/** linguist-generated
packages/client/src/effect/generated/** linguist-generated
packages/client/src/effect/api/** linguist-generated
# cli-rs: parity recordings and the files `script/gen` writes.
packages/cli-rs/parity/fixtures/** linguist-generated
packages/cli-rs/assets/queries/** linguist-generated
packages/cli-rs/crates/acp/src/permission/structured_patch.json linguist-generated
packages/cli-rs/crates/api-types/src/types.rs linguist-generated
packages/cli-rs/crates/api/src/generated/** linguist-generated
packages/cli-rs/crates/cli/src/run/mime.rs linguist-generated
packages/cli-rs/crates/cli/tests/fixtures/** linguist-generated
packages/cli-rs/crates/local/src/generated/** linguist-generated
packages/cli-rs/crates/mermaid/src/core/entities.rs linguist-generated
packages/cli-rs/crates/mermaid/src/core/wide.rs linguist-generated
packages/cli-rs/crates/ui/src/fuzzy/accents.rs linguist-generated
packages/cli-rs/crates/ui/src/keymap/generated.rs linguist-generated
packages/cli-rs/crates/ui/src/theme/generated/** linguist-generated
packages/cli-rs/crates/util/fixtures/time.tsv linguist-generated
packages/core/src/**/*.txt text eol=lf
packages/httpapi-codegen/test/generated/*.ts text eol=lf
# The site tests compare source text and humans.txt byte for byte, so Windows checkouts keep LF.
Expand Down
1 change: 1 addition & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
"**/.sst",
"**/*.d.ts",
"**/sdk.gen.ts",
"packages/cli-rs/**",
"packages/plugins/figma/skills/**",
".agent/**",
".agents/**",
Expand Down
18 changes: 18 additions & 0 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions packages/cli-rs/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# The host's native OpenTUI library for the pinned release (`v` and the `version` of `opentui` in Cargo.toml), relative to this
# package. script/opentui-native.ts fills it from the release zip, checked against its sha256 table, and
# `bun run cargo` runs that first. The directory is keyed by the tag, git-ignored, and inside the worktree, so a
# worktree on another pin keeps its own. A cargo run without the package script (an editor's) that finds it empty
# fails in opentui-sys, which prints OPENTUI_LIB_HINT as its advice. Values set in the shell win (CI, cross-target
# builds).
[env]
OPENTUI_LIB_DIR = { value = ".opentui/v0.9.7/host", relative = true, force = false }
OPENTUI_LIB_HINT = { value = "run `bun run opentui:native` in packages/cli-rs, or build through `bun run cargo`, which runs it first", force = false }
# Luau's C++ (the luau feature) with line tables only, as Rust gets from `debug = "line-tables-only"`: cargo's DEBUG
# makes cc-rs pass full `-g`, and luau0-src appends these flags after it. In a cold -j3 release build (luau-dx) Luau's
# unit took 51 s instead of 64 s, and its objects 14 MB instead of 47 MB. MSVC's cl.exe does not know the flag and
# warns that it ignores it.
LUAU_CXXFLAGS = { value = "-g1", force = false }

# The musl targets have no rustflags: they link statically, with Rust's default crt-static, and Zig (cargo zigbuild)
# links musl statically by default too, so the executable has no dynamic loader. O-188 supersedes O-164's dynamic musl
# link.
3 changes: 3 additions & 0 deletions packages/cli-rs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/target
/parity/out
/.opentui
63 changes: 63 additions & 0 deletions packages/cli-rs/AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# cli-rs

The OpenCode native CLI (command `opencode-native`), on OpenTUI's Rust crates. Rename only user-facing names
(decision O-114); crates, this directory and `OPENCODE_RS_*` test variables keep their names. The plan and decisions live outside this repository, in
`/home/simon/src/opendocs/oc-rust/plan.md` and `decisions.md`. The root `AGENTS.md` applies too.

## Running cargo

- Cargo reads `.cargo/config.toml` from the current directory, not from `--manifest-path`, and
`cargo -C` is unstable. Without that config `opentui-sys` fails with "set OPENTUI_LIB_DIR". Run
cargo through the package script, which runs in this directory:
`bun run --cwd packages/cli-rs cargo check -p opencode-api`.
- opentui comes from `packages/rust` of `anomalyco/opentui`, pinned to a release on crates.io
(`opentui` at an exact `version` in `Cargo.toml`; the tag is `v<version>`) and linked statically.
The crate has no native library: `.cargo/config.toml` points `OPENTUI_LIB_DIR` at
`.opentui/<tag>/host` in this package (git-ignored), which `script/opentui-native.ts` fills from the release zip,
checked against the sha256 table in the script and the header hash. `bun run cargo` runs it first, so nothing else is
needed; a plain `cargo` run that finds it empty fails with `OPENTUI_LIB_HINT`'s command.
`bun run opentui:native --target <target>` installs another target's and prints its directory. A shell
`OPENTUI_LIB_DIR` wins over the config.
- A change to OpenTUI's Rust crates is a pull request into `packages/rust` of `anomalyco/opentui`. A re-pin to a new
release adds its rows to the script's table and changes the `version`, `Cargo.lock` and the tag in `.cargo/config.toml`'s
directory together. A git `rev` between releases has no zip: build its library from source (native-hardening's
`abi-artifacts.py`) and set `OPENTUI_LIB_DIR` to it.

## Checks

Fast checks only, scoped with `-p` to the crates a step touches: `cargo fmt --check`, `cargo check`,
`cargo clippy --all-targets -- -D warnings`, and `cargo test`. Add one targeted parity scenario and single
TypeScript test files. No root `bun run check`, no full Bun suites, no OpenTUI `packages/rust/test.sh`, no
OpenTUI suites, no benchmarks. Put `timeout` on anything that could hang.

Run `cargo fmt` before every final commit; `cargo fmt --check` must be clean. `rustfmt.toml` matches OpenTUI's
`packages/rust/rustfmt.toml`.

The integration tests of `opencode-tui` and `opencode-ui` link the static OpenTUI set, so each crate
has one test binary, `tests/all/main.rs`, with one module per area and the shared helpers under
`tests/all/support`. Add a new test file there as a module, not as a new `tests/*.rs`. Run one area
with `cargo test -p opencode-tui --test all <module>::`, the unit tests with `--lib`.

## Ownership

- Each step owns the files plan 8.4 lists. `lib.rs` of `api`, `local`, `service`, `store`, and `ui`
already declares every module, each a stub file naming its step; fill your stubs and leave other
steps' files alone.
- Third-party crates are declared once in the root `[workspace.dependencies]`. A crate takes one with
`name.workspace = true`. `Cargo.lock`, crate `[dependencies]`, and `bun.lock` are shared and resolved
by rebase.

## Rules

- Deviations from the TypeScript client go in `parity/deviations/<row>-<slug>.md`: the TypeScript
behavior, the Rust behavior, and the reason. A difference without a file is a failure.
- OpenTUI handles are not `Send`. Network work runs on tokio through `App::spawn`; never block the
UI thread.
- Every queue between tasks and the UI is bounded.
- Where the TypeScript TUI uses `flexGrow`, use `grow().basis(Length::Auto)`: OpenTUI's `grow()`
alone sets basis 0, which lays out differently.
- Generated files are committed; regenerate with `bun run --cwd packages/cli-rs generate`, which runs
every `script/gen/*.ts`. Parity fixtures regenerate with `bun run --cwd packages/cli-rs fixtures`.
`bun run --cwd packages/cli-rs check:drift` reruns the generators and fixture oracles and fails on any
change. `OPENCODE_RS_REQUIRE_TS=1` makes the live TypeScript interop tests fail instead of skip
without bun or `node_modules`.
Loading
Loading