Commit graph

4 commits

Author SHA1 Message Date
Simon Klee
795f78fde3
wip: before the machine move 2026-11-05 12:36:11 +01:00
Simon Klee
f1123c4e61
refactor(cli-rs): load themes as the TUI does under new designs
The Rust client implements the TUI with experimental new-designs on, and only that. Built-in themes are generated with the new-designs parse, opencode2 is a built-in listed first, custom V1 themes take migrateV1NewDesigns, and agent accents use categorical step 400. ThemeState::set_new_designs and the legacy V1 migration are gone; the U.1 oracle records the new-designs views only.
2026-11-04 21:55:46 +01:00
Simon Klee
900d7dc51d
feat(cli-rs): add the in-process plugin API
Slots on the SlotMap paths with the TS resolution rules, keymap layers, routes, code-block renderers, and storage keys, generic over the host. The registry applies the cli.json plugins selectors to the built-ins and lists every other entry as skipped.
2026-11-04 20:55:58 +01:00
Simon Klee
271fc7c26d
feat(cli-rs): scaffold the Rust client workspace
Add packages/cli-rs: a Cargo workspace with the 14 crates of the plan,
module stubs for api, local, service, store, and ui, and the expected
third-party crates in [workspace.dependencies]. opentui is a path
dependency on the local opentui-rust checkout, linked statically.

script/opentui-lib.sh copies native artifacts whose header matches the
bindings into ~/.cache/opencode-rs/opentui, where .cargo/config.toml
points OPENTUI_LIB_DIR. opencode-rs --version runs; script/live.sh
runs it against the elected background service.
2026-11-04 17:52:34 +01:00